* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.7;
    color: #383838; 
    background-color: #FFFFFF;
    padding-top: 70px; 
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: #005A8D; 
}

a:hover {
    color: #003F63; 
}

ul {
    list-style: none;
}

h1, h2, h3, h4 {
    color: #0A2F5B; 
    margin-bottom: 0.8em;
    font-weight: 600;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px; 
    font-weight: 700;
}

.section-title::after { 
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #005A8D; 
}

.section-subtitle {
    text-align: center;
    font-size: 1.2em;
    color: #555;
    margin-bottom: 40px;
    font-weight: 400;
}
.centered-text {
    text-align: center;
    margin-bottom: 30px;
}
.large-text {
    font-size: 1.15em;
    line-height: 1.8;
}

.content-section {
    padding: 70px 0;
}

.alt-bg {
    background-color: #F8F9FA; 
}

#main-header {
    background-color: #ffffff;
    padding: 0 15px; 
    height: 70px; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; 
}

.logo-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    flex-shrink: 0; 
}
.logo-link:hover .logo-header {
    opacity: 0.85;
    transition: opacity 0.2s ease-in-out;
}

#main-header .logo-header {
    font-size: 1.8em;
    font-weight: bold;
    color: #0A2F5B;
    letter-spacing: 2px;
    line-height: 1;
}

#navbar ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

#navbar ul li {
    margin-left: 25px;
}


#navbar ul li a {
    color: #333;
    font-weight: 500;
    padding: 8px 5px;
    position: relative;
    font-size: 0.95em;
    transition: color 0.3s ease;
    white-space: nowrap;
}

#navbar ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #005A8D;
    transition: width 0.3s ease;
}

#navbar ul li a:hover,
#navbar ul li a.active {
    color: #005A8D;
}

#navbar ul li a:hover::after,
#navbar ul li a.active::after {
    width: 100%;
}

#hero {
    background-image: linear-gradient(rgba(10, 47, 91, 0.6), rgba(10, 47, 91, 0.6)), url('images/main-background.jpg');
    background-size: cover;
    background-position: center;
    min-height: calc(100vh - 70px); 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 40px 20px;
}

#hero .hero-logo {
    font-size: 4.5em;
    font-weight: bold;
    margin-bottom: 15px;
    letter-spacing: 10px;
}

#hero h1 {
    font-size: 3.2em;
    margin-bottom: 10px;
    font-weight: 700;
    color: #fff;
}

#hero p {
    font-size: 1.4em;
    margin-bottom: 35px;
    max-width: 700px;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    background-color: #FF7F50;
    color: #fff;
    padding: 14px 30px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.cta-button:hover {
    background-color: #E57345;
    color: #fff;
    transform: translateY(-2px);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
    text-align: center;
}
.feature-item {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.feature-icon {
    margin-bottom: 20px;
    line-height: 1;
}
.feature-icon-svg {
    width: 72px;
    height: 72px;
    stroke: #005A8D;
    stroke-width: 1.5;
    fill: none;
}
.feature-item h3 {
    font-size: 1.35em;
    font-weight: 600;
    color: #0A2F5B;
    margin-bottom: 10px;
}
.feature-item p {
    font-size: 1em; 
    color: #383838; 
    font-weight: 700; 
    line-height: 1.5; 
}

.firm-logo-svg-container {
    margin-top: 15px; 
    line-height: 1;
    width: 100%; 
}

.firm-logo-svg-container a {
    text-decoration: none;
    display: inline-block;
}

.almendros-asociados-logo {
    width: 100%;
    max-width: 400px; 
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    transition: opacity 0.3s ease;
}

.firm-logo-svg-container a:hover .almendros-asociados-logo {
    opacity: 0.8;
}

.features-grid > .feature-item:nth-child(1) > p,
.features-grid > .feature-item:nth-child(3) > p {
    margin-top: 22px; 
}

.services-list { list-style: none; padding-left: 0; max-width: 700px; margin: 0 auto 30px auto; }
.services-list li { font-size: 1.15em; padding: 10px 0 10px 30px; position: relative; border-bottom: 1px solid #e0e0e0; }
.services-list li:last-child { border-bottom: none; }
.services-list li::before { content: '•'; color: #005A8D; font-size: 1.5em; position: absolute; left: 0; top: 50%; transform: translateY(-50%); line-height: 1; }
.small-note { text-align: center; font-size: 0.9em; color: #666; max-width: 700px; margin: 20px auto 0 auto; }

.numbered-list { list-style: none; counter-reset: numbered-list-counter; padding-left: 0; max-width: 800px; margin: 0 auto; }
.numbered-list li { counter-increment: numbered-list-counter; margin-bottom: 25px; padding-left: 50px; position: relative; }
.numbered-list li::before { content: counter(numbered-list-counter); position: absolute; left: 0; top: 0; font-size: 1.5em; font-weight: 700; color: #fff; background-color: #005A8D; width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; justify-content: center; line-height: 1; }
.numbered-list h4 { font-size: 1.25em; margin-bottom: 5px; }

.advantage-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 768px) { .advantage-grid { grid-template-columns: 1fr 1fr; } }
.advantage-column h3 { font-size: 1.5em; border-bottom: 2px solid #005A8D; padding-bottom: 10px; margin-bottom: 20px; }
.advantage-column ul li { padding: 10px 0; font-size: 1.05em; display: flex; align-items: center; }
.advantage-icon-svg { width: 24px; height: 24px; stroke: #005A8D; stroke-width: 1.5; fill: none; margin-right: 12px; flex-shrink: 0; }
.advantage-column ul li svg.advantage-icon-svg[style*="fill:#003399"] { fill: #003399; stroke: #FFCC00; stroke-width: 1; }

.serve-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 30px; }
.serve-item { display: flex; align-items: flex-start; gap: 15px; padding: 15px; background-color: #F8F9FA; border-radius: 5px; }
.serve-number { font-size: 2.5em; font-weight: 700; color: #005A8D; line-height: 1; }
.serve-item p { font-size: 1.05em; flex: 1; }

.case-studies-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.case-study-item { background-color: #fff; padding: 25px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.07); }
.case-study-item h4 { font-size: 1.2em; }

#commitment .container > div[style*="text-align: center"] { margin-bottom: 25px !important; }
.commitment-icon-svg { width: 80px; height: 80px; stroke: #005A8D; stroke-width: 1.5; fill: none; display: block; margin-left: auto; margin-right: auto; }

#contact { padding: 80px 0; }
.contact-layout { display: grid; grid-template-columns: 1fr; gap: 50px; margin-top: 30px; }
@media (min-width: 992px) { .contact-layout { grid-template-columns: 1fr 1.2fr; gap: 60px; } }
.contact-details-wrapper, .contact-form-wrapper { padding: 20px; }
.contact-details-wrapper h3, .contact-form-wrapper h3 { font-size: 1.8em; color: #0A2F5B; margin-bottom: 25px; padding-bottom: 10px; border-bottom: 2px solid #005A8D; display: inline-block; }
.contact-intro-text { font-size: 1.05em; color: #555; margin-bottom: 30px; line-height: 1.7; }
.contact-item { display: flex; align-items: flex-start; margin-bottom: 25px; font-size: 1em; }
.contact-icon-svg { width: 24px; height: 24px; stroke-width: 1.5; margin-right: 15px; flex-shrink: 0; margin-top: 3px; }
.contact-icon-svg { fill: none; stroke: #005A8D; }
.contact-item svg[fill="#005A8D"] { 
    fill: #005A8D;
    stroke: none;
}
.contact-item svg path[d^="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"], 
.contact-item svg circle[cx="12"][cy="10"][r="3"] {
    fill: #005A8D;
    stroke: none;
}
.contact-item svg path[d^="M4 4h16c1.1"] { 
    fill: #005A8D;
    stroke: none;
}
.contact-item svg polyline[points="22,6 12,13 2,6"] { 
    stroke: #fff; 
    stroke-width: 1.5;
    fill: none;
}


.contact-text { display: flex; flex-direction: column; }
.contact-text strong { color: #0A2F5B; font-weight: 600; margin-bottom: 3px; display: block; }
.contact-text span, .contact-text a { color: #383838; line-height: 1.5; }
.contact-text a { color: #005A8D; text-decoration: none; }
.contact-text a:hover { text-decoration: underline; }
.request-meeting-link strong { color: #005A8D; font-size: 1.05em; text-decoration: none; }
.request-meeting-link:hover strong { text-decoration: underline; }

#contact-form { }
.form-group { margin-bottom: 22px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: #2c3e50; font-size: 0.95em; }
.form-group input[type="text"], .form-group input[type="email"], .form-group textarea { width: 100%; padding: 14px 16px; border: 1px solid #D2D6E0; border-radius: 6px; font-family: 'Montserrat', sans-serif; font-size: 1em; color: #333; background-color: #fff; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.form-group input[type="text"]::placeholder, .form-group input[type="email"]::placeholder, .form-group textarea::placeholder { color: #95a5a6; opacity: 1; }
.form-group input[type="text"]:focus, .form-group input[type="email"]:focus, .form-group textarea:focus { border-color: #005A8D; outline: none; box-shadow: 0 0 0 3px rgba(0, 90, 141, 0.15); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit-button { padding: 15px 35px; font-size: 1.05em; width: 100%; }
@media (min-width: 768px) { .form-submit-button { width: auto; } }

footer { background-color: #0A2F5B; color: #EAF2F8; text-align: center; padding: 30px 0; }
.footer-logo { font-size: 1.5em; font-weight: bold; letter-spacing: 2px; margin-bottom: 8px; }
.footer-company-name { font-size: 0.7em; font-weight: 400; display: block; opacity: 0.8; }
footer p { font-size: 0.9em; }

#mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin: 0;
    z-index: 1001;
}
#mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #0A2F5B;
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

@media (max-width: 992px) {
    body {
        padding-top: 60px;
    }
    #main-header {
        height: 60px;
        padding: 0 10px;
    }
     #main-header .logo-header {
        font-size: 1.6em;
    }

    #navbar {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 10px 0;
        z-index: 999;
    }
    #navbar.active {
        display: block;
    }

    #navbar ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    #navbar ul li {
        margin: 10px 0;
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
    #navbar ul li a {
        padding: 10px 15px;
        display: block;
        font-size: 1em;
    }
     #navbar ul li a::after {
        display: none;
    }
      #navbar ul li a.active {
        color: #003F63;
        font-weight: bold;
     }


    #mobile-menu-toggle {
        display: block;
    }
    #mobile-menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    #mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
    #mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

@media (max-width: 768px) {
    .section-title { font-size: 2em; }
    #hero { min-height: calc(100vh - 60px); }
    #hero h1 { font-size: 2.5em; }
    #hero .hero-logo { font-size: 3.5em; }
    #hero p { font-size: 1.2em; }

    .features-grid { grid-template-columns: 1fr; }
    .serve-grid { grid-template-columns: 1fr; }
    .case-studies-grid { grid-template-columns: 1fr; }

    .contact-layout {
        grid-template-columns: 1fr;
    }
    .contact-details-wrapper h3,
    .contact-form-wrapper h3 {
        font-size: 1.5em;
    }

    .advantage-grid { grid-template-columns: 1fr; }
    .advantage-column ul li {
        padding: 8px 0;
    }
    .advantage-icon-svg {
        width: 20px;
        height: 20px;
        margin-right: 8px;
    }
}