* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --blue-primary: #1e3c72;
    /* Azul principal */
    --blue-secondary: #2a5298;
    /* Azul secundario */
    --blue-accent: #3d6bb3;
    /* Azul acento */
    --bg-light: #e8f0f8;
    /* Fondo claro elegante */
    --text-primary: #0F1C2E;
    /* Texto principal */
    --text-secondary: #4A5A70;
    /* Texto secundario */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-secondary) 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.8rem;
    font-weight: bold;
}

.logo img {
    height: 45px;
    width: 45px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    transition: all 0.22s ease;
    font-weight: 500;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    display: inline-block;
}

/* Only apply the white-background hover to non-social links */
nav a:not(.social-icon):hover {
    color: var(--blue-primary);
    background: white;
    transform: scale(1.03);
    text-shadow: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}



/* Header social icon: make it larger and add hover animation similar to footer */
nav .social-icon {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    color: var(--blue-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

nav .social-icon svg {
    width: 22px;
    height: 22px;
}

nav .social-icon:hover {
    background: var(--blue-primary);
    color: white;
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 8px 22px rgba(58, 109, 255, 0.18);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section (image full-screen, fixed) */
.hero {
    position: relative;
    color: #ffffff;
    height: 100vh;
    padding: 0;
    text-align: left;
    margin-top: 0;
    overflow: hidden;
}

/* hero image with parallax effect - appears fixed */
.hero-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    /* fill the hero without gaps */
    object-position: center;
    z-index: 0;
    pointer-events: none;
}

/* overlay that matches header gradient and animates */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-secondary) 100%);
    opacity: 0.18;
    mix-blend-mode: overlay;
    z-index: 1;
    pointer-events: none;
    transform: translateX(0);
    animation: overlayMove 12s ease-in-out infinite alternate;
}

@keyframes overlayMove {
    from {
        transform: translateX(-3%);
    }

    to {
        transform: translateX(3%);
    }
}

/* slow zoom-in effect for the hero image */
.hero-bg {
    will-change: transform;
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.06);
    }
}

/* animated border slides over the image */
.hero::after {
    content: '';
    position: absolute;
    left: 8px;
    right: 8px;
    top: 8px;
    bottom: 8px;
    border: 4px solid rgba(255, 255, 255, 0.95);
    transform: translateY(-120%);
    pointer-events: none;
    z-index: 3;
    animation: borderSlide 1s 0.45s ease forwards;
}

@keyframes borderSlide {
    to {
        transform: translateY(120%);
    }
}

/* hero content sits above border and image; left-aligned and vertically centered */
.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: 100vh;
    padding: 6rem 4rem;
    box-sizing: border-box;
    max-width: 1100px;
    text-align: left;
}

/* text drop animation while image remains fixed */
.hero h1,
.hero p,
.hero .btn {
    opacity: 0;
    transform: translateY(-20px);
}

@keyframes dropDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: dropDown 0.9s 0.25s forwards;
    font-weight: 900;
    color: var(--blue-primary);
    text-shadow:
        -2px -2px 0 #fff,
        2px -2px 0 #fff,
        -2px 2px 0 #fff,
        2px 2px 0 #fff,
        0 0 20px rgba(255, 255, 255, 0.9),
        0 0 30px rgba(255, 255, 255, 0.6);
}

.hero p {
    font-size: 1.5rem;
    max-width: 680px;
    margin: 0 0 1.5rem 0;
    animation: dropDown 0.9s 0.55s forwards;
    font-weight: 600;
    color: var(--blue-primary);
    text-shadow:
        -2px -2px 0 #fff,
        2px -2px 0 #fff,
        -2px 2px 0 #fff,
        2px 2px 0 #fff,
        0 0 15px rgba(255, 255, 255, 0.9),
        0 0 25px rgba(255, 255, 255, 0.6);
}

.hero .btn {
    display: inline-block;
    padding: 12px 30px;
    background: white;
    color: var(--blue-primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s;
    animation: dropDown 0.9s 0.85s forwards;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.4);
}

.hero .btn:hover {
    background: var(--blue-secondary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.6);
}

/* responsive adjustments */
@media (max-width: 1024px) {
    .hero-content {
        padding: 4rem 2rem;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 3rem 1rem;
    }

    .hero::after {
        display: none;
    }

    .hero-bg {
        position: absolute;
        object-fit: cover;
    }
}

/* Sections */
section {
    padding: 80px 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--blue-primary);
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s;
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(58, 109, 255, 0.18);
}

.service-card h3 {
    color: var(--blue-primary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.service-card p {
    color: var(--text-secondary);
}

.service-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    color: var(--blue-secondary);
}

.service-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-secondary) 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(30, 60, 114, 0.2);
}

.service-btn:hover {
    background: linear-gradient(135deg, var(--blue-secondary) 0%, var(--blue-accent) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 60, 114, 0.3);
}



.see-more-container {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s;
}

.see-more-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.btn-see-more {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    color: var(--blue-primary);
    text-decoration: none;
    border: 2px solid var(--blue-primary);
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(30, 60, 114, 0.1);
}

.btn-see-more:hover {
    background: var(--blue-primary);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(30, 60, 114, 0.3);
}

/* Why Choose Us */
.benefits {
    background: var(--bg-light);
    padding: 60px 2rem;
    border-radius: 10px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s;
}

.benefits.visible {
    opacity: 1;
    transform: translateY(0);
}

.benefits h3 {
    color: var(--blue-primary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.benefits ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.benefits li {
    padding: 1rem;
    background: white;
    border-radius: 5px;
    border-left: 4px solid var(--blue-secondary);
    transition: all 0.3s;
}

.benefits li:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* About Section */
#quienes-somos {
    background: linear-gradient(135deg, var(--bg-light) 0%, #ffffff 100%);
}

.about-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s;
}

.about-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.mission-vision {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.mv-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.mv-card h3 {
    color: var(--blue-primary);
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

/* Contact Section */
#contacto {
    text-align: center;
    background: var(--bg-light);
    color: var(--text-primary);
    border-radius: 10px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s;
}

#contacto.visible {
    opacity: 1;
    transform: translateY(0);
}

#contacto h2 {
    color: var(--blue-primary);
}

.map-container {
    max-width: 800px;
    margin: 2rem auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
}

.map-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.directions-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 10px 20px;
    background: var(--blue-primary);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.95rem;
    box-shadow: 0 3px 10px rgba(58, 109, 255, 0.4);
    transition: all 0.3s;
}

.directions-link:hover {
    background: var(--blue-secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(58, 109, 255, 0.6);
}

.directions-link svg {
    width: 18px;
    height: 18px;
}

.contact-btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--blue-primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(58, 109, 255, 0.3);
}

.contact-btn:hover {
    background: var(--blue-secondary);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(58, 109, 255, 0.5);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-secondary) 100%);
    color: white;
    padding: 3rem 2rem 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-section p {
    line-height: 1.8;
    opacity: 0.95;
}

.footer-brand {
    text-align: left;
}

.footer-brand .brand-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.8rem;
}

.footer-contact {
    text-align: left;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.contact-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-social {
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    background: var(--blue-secondary);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--blue-primary);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 20px rgba(168, 208, 255, 0.4);
}

.footer-text {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    text-align: center;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-brand,
    .footer-contact,
    .footer-social {
        text-align: center;
    }

    .contact-item {
        justify-content: center;
    }
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-secondary) 100%);
        flex-direction: column;
        gap: 2rem;
        padding: 80px 2rem 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    nav ul.active {
        right: 0;
    }

    nav ul li {
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.3s ease;
    }

    nav ul.active li {
        opacity: 1;
        transform: translateX(0);
    }

    nav ul.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    nav ul.active li:nth-child(2) {
        transition-delay: 0.2s;
    }

    nav ul.active li:nth-child(3) {
        transition-delay: 0.3s;
    }

    nav ul.active li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Separated Sections Styles */
#ubicacion {
    text-align: center;
    background: var(--bg-light);
    color: var(--text-primary);
    border-radius: 10px;
    margin-top: 4rem;
    padding-top: 6rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

#ubicacion.visible {
    opacity: 1;
    transform: translateY(0);
}

#ubicacion h2 {
    color: var(--blue-primary);
}

/* Contact Container Layout */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    padding: 1rem;
}

.contact-info h3 {
    color: var(--blue-primary);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.info-item {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.info-icon svg {
    width: 24px;
    height: 24px;
}

.info-details h4 {
    color: var(--blue-primary);
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.info-details p {
    margin-bottom: 0;
    font-size: 1rem;
    color: var(--text-secondary);
}

.contact-form {
    flex: 1.3;
    min-width: 340px;
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
    color: var(--blue-primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue-secondary);
    background: white;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

.phone-input-group {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    overflow: hidden;
    transition: all 0.3s ease;
}

.phone-input-group:focus-within {
    border-color: var(--blue-secondary);
    background: white;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

.phone-input-group .country-prefix {
    padding: 12px 15px;
    background: #e8f0f8;
    color: var(--blue-primary);
    font-weight: bold;
    border-right: 1px solid #ddd;
}

.phone-input-group input {
    border: none;
    box-shadow: none !important;
    background: transparent !important;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
}

.checkbox-group label {
    font-size: 0.9rem;
    font-weight: normal;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 0;
}

/* Responsive adjustments for contact form */
@media (max-width: 900px) {
    .contact-form {
        padding: 1.5rem;
    }

    .map-container {
        width: 100%;
        margin-bottom: 0;
    }
}

/* Team Section */
#nuestro-equipo {
    background: white;
    text-align: center;
}

.team-grid {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.team-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(30, 60, 114, 0.2);
}

.team-img-container {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.team-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
}

.team-card:hover .team-img-container img {
    transform: scale(1.1);
}

.team-info {
    padding: 1.5rem;
    text-align: center;
}

.team-info h3 {
    color: var(--blue-primary);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.team-role {
    color: var(--blue-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}