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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    color: #333;
}

/* Header */
header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 18px 36px;
    background: #ffffff;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(31, 45, 92, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    margin-right: auto;
}

.logo img {
    width: 200px;
    max-width: 100%;
    height: auto;
}

nav {
    margin-right: 20px;
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 30px;
}

nav ul li {
    margin-left: 0;
}

nav ul li a {
    text-decoration: none;
    color: #2f3f8f;
    font-weight: 600;
    font-size: 0.95em;
    position: relative;
    transition: color 0.3s ease-in-out;
    white-space: nowrap;
}

nav ul li a:hover {
    color: #7985bb;
}

nav ul li a::after {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    background: #7985bb;
    transition: width 0.3s ease-in-out;
}

nav ul li a:hover::after {
    width: 100%;
}

.btn-contact {
    background: #2f3f8f;
    color: white;
    padding: 11px 18px;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.92em;
    transition: all 0.3s ease;
    margin-left: 20px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 8px 20px rgba(47, 63, 143, 0.18);
}

.btn-contact:hover {
    background: #1f2d5c;
    color: white;
    transform: translateY(-1px);
}

/* Hero */
.hero-section {
    min-height: 32vh;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 52px 20px 36px;
    border-bottom: 1px solid rgba(31, 45, 92, 0.08);
}

.hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    color: #1f2d5c;
    margin-bottom: 14px;
    letter-spacing: 0;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-title::after {
    content: "";
    display: block;
    width: 64px;
    height: 3px;
    background: #2f3f8f;
    margin: 14px auto 0;
    border-radius: 999px;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: #5f6780;
    max-width: 660px;
    margin: 0 auto;
    line-height: 1.55;
    animation: fadeInUp 0.9s ease 0.25s both;
}

/* Main */
.contact-main {
    background: #ffffff;
    padding: 70px 0 90px;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-card {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 28px;
    background: #ffffff;
    border: 1px solid rgba(31, 45, 92, 0.08);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    animation: fadeInUp 0.9s ease;
}

.contact-info {
    padding: 10px 6px;
}

.contact-info h2 {
    font-size: 2rem;
    color: #1f2d5c;
    margin-bottom: 28px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(31, 45, 92, 0.08);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-label {
    font-size: 0.92rem;
    font-weight: 700;
    color: #2f3f8f;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.contact-item a,
.contact-item span:not(.contact-label) {
    font-size: 1.15rem;
    color: #374151;
    text-decoration: none;
    line-height: 1.5;
}

.contact-item a:hover {
    color: #2f3f8f;
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
}

.instagram-icon {
    width: 22px;
    height: 22px;
    display: block;
}

.contact-map {
    border-radius: 18px;
    overflow: hidden;
    min-height: 420px;
    border: 1px solid rgba(31, 45, 92, 0.08);
    background: #f4f7fb;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 420px;
    border: 0;
    display: block;
}

/* Dropdown por si lo reutilizas */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 280px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.12);
    border-radius: 8px;
    z-index: 1000;
    top: 100%;
    left: 0;
    border: 1px solid #e0e0e0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-content a:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.dropdown-content a:first-child {
    border-radius: 8px 8px 0 0;
}

.dropdown-content a:hover {
    background-color: #f8f9fa;
    color: #5469b0;
}

.dropdown-content .latest-news {
    font-weight: 600;
    color: #5469b0;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 4px;
}

.dropdown-content .external-link {
    font-size: 0.9em;
    color: #666;
}

.dropdown-content .external-link:hover {
    color: #5469b0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tablet */
@media (max-width: 1024px) {
    header {
        padding: 15px 20px;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .logo img {
        width: 180px;
    }

    nav {
        margin-right: 0;
    }

    nav ul {
        gap: 18px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-section {
        min-height: 28vh;
        padding: 44px 20px 30px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        max-width: 620px;
    }

    .contact-main {
        padding: 60px 0 80px;
    }

    .contact-card {
        grid-template-columns: 1fr;
    }

    .contact-map,
    .contact-map iframe {
        min-height: 360px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .logo {
        margin: 0;
    }

    .logo img {
        width: 170px;
        max-width: 100%;
        height: auto;
    }

    nav {
        margin-right: 0;
        width: 100%;
    }

    nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        width: 100%;
    }

    nav ul li {
        margin-left: 0;
    }

    nav ul li a {
        display: inline-block;
        width: auto;
        font-size: 0.82em;
    }

    .btn-contact {
        width: auto;
        margin-left: 0;
        padding: 10px 18px;
        justify-content: center;
        font-size: 0.82em;
    }

    .dropdown-content {
        min-width: 220px;
        left: 50%;
        transform: translateX(-50%);
    }

    .hero-section {
        min-height: 28vh;
        padding: 42px 18px 28px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .contact-main {
        padding: 45px 0 65px;
    }

    .contact-container {
        padding: 0 16px;
    }

    .contact-card {
        padding: 20px;
        gap: 22px;
        border-radius: 16px;
    }

    .contact-info h2 {
        font-size: 1.7rem;
        margin-bottom: 18px;
    }

    .contact-item {
        padding: 16px 0;
    }

    .contact-item a,
    .contact-item span:not(.contact-label) {
        font-size: 1.02rem;
    }

    .contact-map,
    .contact-map iframe {
        min-height: 320px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 12px;
        gap: 12px;
    }

    .logo img {
        width: 150px;
    }

    nav ul {
        gap: 8px;
    }

    nav ul li a {
        font-size: 0.78em;
    }

    .btn-contact {
        padding: 8px 14px;
        font-size: 0.78em;
        border-radius: 8px;
    }

    .dropdown-content {
        min-width: 200px;
    }

    .hero-section {
        min-height: 24vh;
        padding: 34px 14px 24px;
    }

    .hero-title {
        font-size: 2.1rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .contact-card {
        padding: 16px;
    }

    .contact-info h2 {
        font-size: 1.45rem;
    }

    .contact-item a,
    .contact-item span:not(.contact-label) {
        font-size: 0.96rem;
    }

    .contact-map,
    .contact-map iframe {
        min-height: 280px;
    }
}