html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #222222;
    background: #ffffff;
}

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

h1,
h2,
h3,
h4 {
    margin-top: 0;
    font-family: 'Montserrat', sans-serif;
    color: #1f1f1f;
    line-height: 1.15;
}

p {
    margin-top: 0;
}

.container {
    width: min(92%, 1440px);
    margin: 0 auto;
}

.pagina-contacto {
    overflow: hidden;
}

/* =========================================================
   HERO
========================================================= */

.contacto-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(135deg, #1b1b1b 0%, #2a2a2a 100%);
    overflow: hidden;
}

.contacto-hero_fondo {
    position: absolute;
    inset: 0;
}

.contacto-hero_overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(255, 193, 7, 0.22) 0%, rgba(255, 193, 7, 0.00) 35%),
        radial-gradient(circle at bottom right, rgba(255, 193, 7, 0.12) 0%, rgba(255, 193, 7, 0.00) 30%);
}

.contacto-hero_contenido {
    position: relative;
    z-index: 2;
    width: 100%;
}

.contacto-hero_card {
    max-width: 760px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 30px;
    padding: 38px 34px;
    color: #ffffff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.contacto-etiqueta,
.contacto-kicker {
    display: inline-block;
    margin-bottom: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #ffc107;
    color: #1f1f1f;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.contacto-kicker {
    padding: 0;
    background: transparent;
    color: #c28c00;
    border-radius: 0;
}

.contacto-hero_card h1 {
    color: #ffffff;
    font-size: clamp(2.2rem, 4vw, 4rem);
    margin-bottom: 14px;
}

.contacto-hero_card p {
    color: rgba(255, 255, 255, 0.94);
    font-size: 1.05rem;
    max-width: 62ch;
    margin-bottom: 0;
}

/* =========================================================
   HEAD
========================================================= */

.contacto-seccion {
    padding: 88px 0;
    background: #ffffff;
}

.contacto-head {
    max-width: 920px;
    margin: 0 auto 42px;
    text-align: center;
}

.contacto-head h2,
.contacto-mapa_head h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: 16px;
}

.contacto-head p {
    font-size: 1.06rem;
    color: #5f6368;
}

/* =========================================================
   GRID
========================================================= */

.contacto-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: start;
    margin-bottom: 34px;
}

.contacto-form_box,
.contacto-info_box {
    background: #ffffff;
    border-radius: 28px;
    padding: 30px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contacto-form_box h3,
.contacto-info_box h3 {
    font-size: 1.5rem;
    margin-bottom: 18px;
}

/* =========================================================
   FORMULARIO
========================================================= */

.contacto-formulario {
    display: grid;
    gap: 18px;
}

.contacto-campo {
    display: grid;
    gap: 8px;
}

.contacto-campo label {
    font-weight: 700;
    color: #1f1f1f;
    font-size: 0.96rem;
}

.contacto-formulario input,
.contacto-formulario textarea {
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    color: #222222;
    background: #ffffff;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contacto-formulario input:focus,
.contacto-formulario textarea:focus {
    border-color: rgba(255, 193, 7, 0.95);
    box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.16);
}

.contacto-formulario textarea {
    resize: vertical;
    min-height: 170px;
}

/* =========================================================
   BOTONES
========================================================= */

.contacto-boton {
    min-height: 50px;
    padding: 0 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.98rem;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.contacto-boton:hover {
    transform: translateY(-2px);
}

.contacto-boton_principal {
    width: 100%;
    background: #ffc107;
    color: #1f1f1f;
    box-shadow: 0 12px 24px rgba(255, 193, 7, 0.24);
}

.contacto-boton_principal:hover {
    background: #ffb300;
}

/* =========================================================
   INFO
========================================================= */

.contacto-item {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    text-decoration: none;
    color: #222222;
    border-radius: 18px;
    padding: 18px;
    background: #f8f8f8;
    margin-bottom: 14px;
    transition: background 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.contacto-item:hover {
    background: #ffc107;
    color: #1f1f1f;
    transform: translateY(-1px);
}

.contacto-item i {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #1f1f1f;
    font-size: 1rem;
    flex-shrink: 0;
}

.contacto-item strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 4px;
    color: inherit;
}

.contacto-item span {
    display: block;
    color: inherit;
    opacity: 0.88;
}

.contacto-redes {
    margin-top: 22px;
}

.contacto-redes h4 {
    font-size: 1.15rem;
    margin-bottom: 14px;
}

.contacto-redes_botones {
    display: grid;
    gap: 12px;
}

.contacto-red {
    min-height: 52px;
    padding: 0 18px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #222222;
    background: #f8f8f8;
    transition: background 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.contacto-red:hover {
    background: #ffc107;
    color: #1f1f1f;
    transform: translateY(-1px);
}

.contacto-red i {
    width: 20px;
    text-align: center;
}

/* =========================================================
   MAPA
========================================================= */

.contacto-mapa_box {
    background: #ffffff;
    border-radius: 28px;
    padding: 30px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contacto-mapa_head {
    margin-bottom: 18px;
}

.contacto-mapa {
    overflow: hidden;
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.contacto-mapa iframe {
    display: block;
    width: 100%;
    min-height: 420px;
    border: 0;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {
    .contacto-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contacto-hero {
        min-height: 360px;
    }

    .contacto-seccion {
        padding: 68px 0;
    }

    .contacto-hero_card,
    .contacto-form_box,
    .contacto-info_box,
    .contacto-mapa_box {
        padding: 24px 20px;
        border-radius: 24px;
    }

    .contacto-mapa iframe {
        min-height: 340px;
    }
}

@media (max-width: 520px) {
    .container {
        width: min(94%, 1440px);
    }

    .contacto-hero {
        min-height: 320px;
    }

    .contacto-hero_card h1 {
        font-size: 2rem;
    }

    .contacto-hero_card p,
    .contacto-head p,
    .contacto-item span,
    .contacto-formulario input,
    .contacto-formulario textarea {
        font-size: 0.98rem;
    }

    .contacto-item {
        padding: 16px;
    }

    .contacto-item i {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .contacto-red {
        min-height: 48px;
    }

    .contacto-mapa iframe {
        min-height: 280px;
    }
}
.contacto-alerta{
    max-width: 920px;
    margin: 0 auto 24px;
    padding: 16px 18px;
    border-radius: 18px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.contacto-alerta_ok{
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.contacto-alerta_error{
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}