/* ==========================
   VARIABLES DE DISEÑO
========================== */

:root {

    /* Colores de marca */
    --color-primary: #f00;
    --color-primary-dark: #c3160a;
    --color-primary-light: #f06c55;

    /* Textos */
    --color-heading: #192334;
    --color-text: #576379;
    --color-muted: #747d8c;

    /* Fondos */
    --color-white: #ffffff;
    --color-cream: #fff8f2;
    --color-cream-light: #fffdf9;
    --color-cream-dark: #ffe2d3;

    /* Bordes */
    --color-border: #e2e7ed;

    /* Gradientes */
    --gradient-brand:
        linear-gradient(
            135deg,
            #f00000 0%,
            #ef5144 48%,
            #c3160a 100%
        );

    --gradient-soft:
        linear-gradient(
            120deg,
            #fffdf9 0%,
            #fff8f2 47%,
            #ffe2d3 100%
        );

    /* Sombras */
    --shadow-soft:
        0 10px 28px rgba(20, 32, 50, 0.08);

    --shadow-card:
        0 14px 34px rgba(31, 39, 54, 0.10);

    /* Radios */
    --radius-small: 10px;
    --radius-medium: 16px;
    --radius-large: 20px;
}


/* ==========================
   RESET
========================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    color: var(--color-heading);
    background: var(--color-white);
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}


/* ==========================
   HEADER
========================== */

.header {
    position: relative;
    width: 100%;
    background: var(--color-white);
    border-bottom: 1px solid #eeeeee;
    z-index: 1000;
}

.header-container {
    max-width: 1280px;
    height: 82px;

    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 32px;
}


/* ==========================
   LOGO
========================== */

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo img {
    display: block;
    width: 74px;
    height: 74px;
    object-fit: contain;
}

.logo-text {
    font-size: 25px;
    font-weight: 700;
    line-height: 1;

    color: var(--color-heading);
    white-space: nowrap;

    transition:
        color 0.25s ease;
}

.logo-com {
    display: inline-block;
    margin-left: 2px;

    font-size: 0.78em;
    font-weight: 600;

    color: var(--color-primary);

    transition:
        color 0.25s ease;
}

.logo:hover .logo-text {
    color: var(--color-primary);
}

.logo:hover .logo-com {
    color: var(--color-primary-dark);
}


/* ==========================
   NAVEGACIÓN PRINCIPAL
========================== */

.nav {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 42px;

    margin-left: 40px;
    margin-right: 40px;
}

.nav-item {
    display: flex;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;

    padding: 0;

    color: #414958;

    font-size: 15px;
    font-weight: 600;

    white-space: nowrap;

    transition:
        color 0.2s ease;
}

.nav-link:hover {
    color: var(--color-primary);
}


/* ==========================
   HEADER ACTIONS
========================== */

.header-actions {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-shrink: 0;
}

.info-button {
    padding: 12px 16px;

    background: var(--gradient-brand);
    color: var(--color-white);

    border-radius: var(--radius-small);

    font-size: 14px;
    font-weight: 600;

    white-space: nowrap;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.info-button:hover {
    transform: translateY(-1px);

    box-shadow:
        0 7px 18px rgba(233, 52, 44, 0.18);
}


/* ==========================
   MENÚ HAMBURGUESA
========================== */

.mobile-menu-button {
    display: none;

    width: 44px;
    height: 44px;

    padding: 8px;

    border: 0;
    background: transparent;

    cursor: pointer;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;
}

.mobile-menu-button span {
    display: block;

    width: 24px;
    height: 2px;

    border-radius: 10px;
    background: #192334;

    transition:
        transform 0.25s ease,
        opacity 0.2s ease;
}

.mobile-menu-button.active span:nth-child(1) {
    transform:
        translateY(7px)
        rotate(45deg);
}

.mobile-menu-button.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.active span:nth-child(3) {
    transform:
        translateY(-7px)
        rotate(-45deg);
}


/* ==========================
   MENÚ MÓVIL
========================== */

.mobile-menu {
    display: none;

    position: absolute;

    top: 100%;
    left: 0;
    right: 0;

    z-index: 999;

    padding: 12px 20px 22px;

    background:
        rgba(255, 255, 255, 0.98);

    border-top: 1px solid #edf0f3;
    border-bottom: 1px solid #e5e8ec;

    box-shadow:
        0 18px 35px rgba(25, 35, 52, 0.10);
}

.mobile-menu a {
    display: flex;
    align-items: center;

    min-height: 52px;

    padding: 0 8px;

    border-bottom: 1px solid #edf0f3;

    color: #192334;

    font-size: 16px;
    font-weight: 650;
}

.mobile-menu a:hover {
    color: var(--color-primary);
}

.mobile-menu.open {
    display: block;

    animation:
        mobileMenuOpen 0.24s ease both;
}

@keyframes mobileMenuOpen {

    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu .mobile-info-button {
    justify-content: center;

    margin-top: 14px;

    border: 0;
    border-radius: 11px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #ff2a21 0%,
            #df2117 100%
        );
}


/* ==========================
   PÁGINA CONTACTO
========================== */

.contact-page {
    position: relative;

    overflow: hidden;

    min-height:
        calc(100vh - 82px);

    background:
        radial-gradient(
            circle at 4% 15%,
            rgba(255, 103, 61, 0.11) 0%,
            rgba(255, 103, 61, 0.04) 17%,
            transparent 35%
        ),
        radial-gradient(
            circle at 96% 85%,
            rgba(237, 49, 36, 0.10) 0%,
            rgba(237, 49, 36, 0.03) 18%,
            transparent 38%
        ),
        linear-gradient(
            135deg,
            #f7f8fa 0%,
            #f3f5f7 50%,
            #fffaf7 100%
        );
}


/* ==========================
   DECORACIÓN
========================== */

.contact-decoration {
    position: absolute;

    pointer-events: none;
}

.contact-decoration-one {
    width: 92px;
    height: 340px;

    top: 170px;
    left: 12%;

    border-radius: 10px;

    background:
        rgba(255, 255, 255, 0.65);

    transform:
        rotate(45deg);
}

.contact-decoration-two {
    width: 330px;
    height: 330px;

    right: -170px;
    bottom: -80px;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            rgba(255, 112, 72, 0.14),
            rgba(195, 22, 10, 0.02)
        );
}


/* ==========================
   CONTENEDOR
========================== */
.contact-container {
    position: relative;
    z-index: 2;

    width:
        min(
            1280px,
            calc(100% - 64px)
        );

    margin: 0 auto;

    padding:
        24px 0 60px;
}
/* ==========================
   GRID PRINCIPAL
========================== */

.contact-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 0.9fr)
        minmax(430px, 1.05fr);

    gap: 70px;

    align-items: start;
}


/* ==========================
   COLUMNA IZQUIERDA
========================== */
.contact-intro {
    padding-top: 18px;
}
.contact-form-wrapper {
    position: relative;
    min-height: 780px;

    margin-top: -18px;
}
/* ==========================
   KICKER
========================== */

.contact-kicker {
    display: block;

    margin-bottom: 10px;

    color: var(--color-primary);

    font-size: 14px;
    font-weight: 700;

    letter-spacing: 0.35px;
}


/* ==========================
   TÍTULO
========================== */

.contact-intro h1 {
    color: #111821;

    font-size:
        clamp(54px, 5.5vw, 78px);

    line-height: 0.98;

    font-weight: 800;

    letter-spacing: -3px;
}

.contact-title-line {
    width: 74px;
    height: 4px;

    margin-top: 22px;

    background: var(--color-primary);

    border-radius: 10px;
}


/* ==========================
   DESCRIPCIÓN
========================== */

.contact-description {
    max-width: 620px;

    margin-top: 30px;

    color: #2f3745;

    font-size: 18px;
    line-height: 1.55;
}


/* ==========================
   OPCIONES
========================== */

.contact-options {
    display: grid;

    grid-template-columns: 1fr;

    gap: 14px;

    max-width: 520px;

    margin-top: 38px;
}


/* ==========================
   BOTONES OPCIÓN
========================== */

.contact-option {
    width: 100%;

    min-height: 76px;

    display: flex;
    align-items: center;

    gap: 16px;

    padding:
        17px 20px;

    border:
        1px solid #e0e5eb;

    border-radius:
        14px;

    background:
        rgba(255, 255, 255, 0.96);

    color:
        var(--color-heading);

    cursor: pointer;

    text-align: left;

    box-shadow:
        0 8px 22px rgba(25, 35, 52, 0.07);

    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease,
        color 0.22s ease,
        box-shadow 0.22s ease;
}

.contact-option:hover {
    transform:
        translateY(-3px);

    border-color:
        rgba(240, 0, 0, 0.18);

    box-shadow:
        0 12px 28px rgba(25, 35, 52, 0.11);
}

.contact-option.active {
    color:
        #ffffff;

    border-color:
        transparent;

    background:
        var(--gradient-brand);

    box-shadow:
        0 12px 28px rgba(230, 46, 32, 0.18);
}


/* ==========================
   ICONO OPCIÓN
========================== */

.contact-option-icon {
    flex:
        0 0 40px;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    color:
        var(--color-primary);

    transition:
        color 0.22s ease;
}

.contact-option.active .contact-option-icon {
    color:
        #ffffff;
}

.contact-option-icon svg {
    width: 32px;
    height: 32px;
}


/* ==========================
   TEXTO BOTÓN OPCIÓN
========================== */

.contact-option > span:last-child {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
}


/* ==========================
   CONTENEDOR FORMULARIO
========================== */

.contact-form-wrapper {
    position: relative;

    min-height: 780px;
}


/* ==========================
   FORMULARIOS
========================== */

.contact-form {
    display: none;

    width: 100%;

    padding:
        34px 34px 30px;

    background:
        rgba(255, 255, 255, 0.97);

    border:
        1px solid rgba(231, 234, 239, 0.95);

    border-radius:
        24px;

    box-shadow:
        0 18px 45px rgba(25, 35, 52, 0.11);

    opacity: 0;

    transform:
        translateY(12px)
        scale(0.985);
}

.contact-form.active {
    display: block;

    animation:
        contactFormIn 0.34s ease both;
}

@keyframes contactFormIn {

    from {
        opacity: 0;

        transform:
            translateY(12px)
            scale(0.985);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


/* ==========================
   CABECERA FORM
========================== */

.contact-form-heading {
    margin-bottom: 24px;
}

.contact-form-heading span {
    display: block;

    margin-bottom: 6px;

    color:
        var(--color-primary);

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 0.3px;
}

.contact-form-heading h2 {
    color:
        var(--color-heading);

    font-size: 28px;

    line-height: 1.15;

    font-weight: 800;

    letter-spacing: -0.8px;
}


/* ==========================
   CAMPOS
========================== */

.form-field {
    margin-bottom: 14px;
}

.form-field label {
    position: absolute;

    width: 1px;
    height: 1px;

    overflow: hidden;

    clip:
        rect(0 0 0 0);

    white-space: nowrap;
}

.form-field input,
.form-field textarea {
    width: 100%;

    border:
        1px solid #d8dde4;

    border-radius:
        13px;

    background:
        #ffffff;

    color:
        var(--color-heading);

    font-size: 15px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.form-field input {
    height: 54px;

    padding:
        0 17px;
}

.form-field textarea {
    min-height: 150px;

    padding:
        15px 17px;

    resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color:
        #9aa1aa;

    font-weight: 600;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color:
        rgba(240, 0, 0, 0.45);

    background:
        #fffdfc;

    box-shadow:
        0 0 0 3px rgba(240, 0, 0, 0.07);
}


/* ==========================
   CAPTCHA
========================== */

.form-captcha {
    display: flex;
    justify-content: center;

    margin:
        24px 0;
}

.captcha-placeholder {
    width: 290px;
    min-height: 74px;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid #d9dde3;

    border-radius:
        8px;

    background:
        #fafafa;

    color:
        #777f89;

    font-size: 14px;

    box-shadow:
        0 4px 12px rgba(25, 35, 52, 0.04);
}


/* ==========================
   BOTÓN ENVIAR
========================== */

.contact-submit {
    width: 100%;

    min-height: 56px;

    border: 0;

    border-radius:
        12px;

    background:
        var(--gradient-brand);

    color:
        #ffffff;

    cursor: pointer;

    font-size: 17px;
    font-weight: 800;

    letter-spacing: 0.4px;

    text-transform: uppercase;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.contact-submit:hover {
    transform:
        translateY(-2px);

    box-shadow:
        0 12px 26px rgba(230, 46, 32, 0.20);
}


/* ==========================
   PRIVACIDAD
========================== */

.contact-privacy {
    margin-top: 24px;

    padding-top: 20px;

    border-top:
        1px solid #edf0f3;
}

.contact-privacy strong {
    display: block;

    margin-bottom: 8px;

    color:
        var(--color-heading);

    font-size: 15px;
}

.contact-privacy p {
    color:
        var(--color-muted);

    font-size: 13px;

    line-height: 1.5;
}


/* ==========================
   RESPONSIVE HEADER
========================== */

@media (max-width: 1050px) {

    .header-container {
        padding:
            0 24px;
    }

    .nav {
        gap: 24px;

        margin-left: 24px;
        margin-right: 24px;
    }

    .nav-link {
        font-size: 14px;
    }

    .logo img {
        width: 64px;
        height: 64px;
    }

    .logo-text {
        font-size: 22px;
    }


    .contact-layout {
        grid-template-columns:
            minmax(0, 0.85fr)
            minmax(390px, 1fr);

        gap: 48px;
    }

    .contact-description {
        font-size: 17px;
    }
}


/* ==========================
   TABLET
========================== */

@media (max-width: 850px) {

    .header-container {
        height: 72px;

        padding:
            0 20px;
    }

    .nav {
        display: none;
    }

    .info-button {
        display: none;
    }

    .mobile-menu-button {
        display: flex;
    }

    .logo {
        gap: 8px;
    }

    .logo img {
        width: 50px;
        height: 50px;
    }

    .logo-text {
        font-size: 18px;
    }


    .contact-page {
        min-height:
            calc(100vh - 72px);
    }

    .contact-container {
        width:
            calc(100% - 40px);

        padding:
            30px 0 70px;
    }

    .contact-layout {
        grid-template-columns:
            1fr;

        gap: 42px;
    }

    .contact-intro {
        padding-top: 0;
    }

    .contact-intro h1 {
        font-size: 58px;
    }

    .contact-description {
        max-width: 680px;
    }

    .contact-options {
        max-width: 680px;

        grid-template-columns:
            repeat(2, 1fr);
    }

    .contact-form-wrapper {
        min-height: 0;
    }

    .contact-form {
        max-width: 680px;

        margin:
            0 auto;
    }
}


/* ==========================
   MÓVIL
========================== */

@media (max-width: 600px) {

    .contact-container {
        width:
            calc(100% - 30px);

        padding:
            24px 0 55px;
    }
    .contact-decoration-one {
        display: none;
    }

    .contact-decoration-two {
        width: 240px;
        height: 240px;

        right: -140px;
        bottom: -50px;
    }

    .contact-kicker {
        font-size: 13px;
    }

    .contact-intro h1 {
        font-size: 43px;

        letter-spacing: -2px;
    }

    .contact-title-line {
        margin-top: 18px;
    }

    .contact-description {
        margin-top: 24px;

        font-size: 16px;

        line-height: 1.55;
    }

    .contact-options {
        grid-template-columns:
            1fr;

        gap: 10px;

        margin-top: 28px;
    }

    .contact-option {
        min-height: 68px;

        padding:
            14px 16px;
    }

    .contact-option > span:last-child {
        font-size: 16px;
    }

    .contact-form {
        padding:
            26px 18px 22px;

        border-radius:
            18px;
    }

    .contact-form-heading h2 {
        font-size: 24px;
    }

    .form-field input {
        height: 50px;
    }

    .form-field textarea {
        min-height: 135px;
    }

    .captcha-placeholder {
        width: 100%;
    }

    .contact-submit {
        min-height: 52px;
    }
}


/* ==========================
   MÓVIL PEQUEÑO
========================== */

@media (max-width: 480px) {

    .header-container {
        padding:
            0 14px;
    }

    .logo img {
        width: 44px;
        height: 44px;
    }

    .logo-text {
        font-size: 15px;
    }

    .logo-com {
        font-size: 0.72em;
    }

    .contact-intro h1 {
        font-size: 38px;
    }
}
/* extras sobre el CSS del mockup: recaptcha real, mensaje de ok y cabecera/pie legacy */
.form-captcha .g-recaptcha {
    display: inline-block;
}

.form-captcha {
    min-height: 78px;
}

.contact-success {
    text-align: center;
    padding-top: 70px;
    padding-bottom: 70px;
}

.contact-success h2 {
    color: var(--color-heading);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.8px;
    margin-bottom: 12px;
}

.contact-success p {
    color: var(--color-text);
    font-size: 17px;
    line-height: 1.55;
}

.contact-error {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff4f2;
    color: #c3160a;
    font-size: 14px;
    font-weight: 600;
}

body.contact-page-new #header,
body.contact-page-new .navbar,
body.contact-page-new footer.piecyp,
body.contact-page-new .piecyp,
body.contact-page-new .footer-copy.xsmall {
    display: none !important;
}

/* pie home-cyp en la página de contacto */
.site-footer {
    width: 100%;
    overflow: hidden;
}
.footer-main {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    background: rgb(5, 19, 45);
}
.footer-shape {
    position: absolute;
    left: 0;
    top: 0;
    width: 36%;
    height: 100%;
    background: rgba(6, 39, 83, 0.32);
    clip-path: polygon(0 0, 100% 0, 0 100%);
    pointer-events: none;
}
.footer-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1450px;
    margin: 0 auto;
    padding: 80px 70px 75px;
    display: grid;
    grid-template-columns: 1fr 1.1fr 0.95fr;
    gap: 110px;
}
.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.footer-column h3,
.footer-contact h3 {
    margin: 0 0 24px;
    color: var(--color-white);
    font-size: 21px;
    font-weight: 800;
}
.footer-column a {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 17px;
    font-weight: 500;
    transition: transform .18s ease, opacity .18s ease;
}
.footer-column a:hover {
    opacity: 0.78;
    transform: translateX(4px);
}
.footer-subtitle {
    margin: 18px 0 16px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
}
.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.footer-brand {
    margin-bottom: 30px;
    color: var(--color-white);
    font-size: 29px;
    letter-spacing: -1px;
}
.footer-brand strong {
    font-weight: 800;
}
.footer-phone {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--color-white);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.8px;
    transition: transform .18s ease, opacity .18s ease;
}
.footer-phone:hover {
    opacity: 0.82;
    transform: translateX(3px);
}
.footer-email {
    display: inline-block;
    margin-bottom: 42px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 16px;
    font-weight: 650;
}
.footer-socials {
    display: flex;
    align-items: center;
    gap: 18px;
}
.footer-socials a {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 21px;
    font-weight: 800;
    border: 2px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    transition: transform .18s ease, background .18s ease, color .18s ease;
}
.footer-socials a:hover {
    color: var(--color-primary-light);
    background: var(--color-white);
    transform: translateY(-3px);
}
.footer-bottom {
    min-height: 78px;
    padding: 20px 70px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 35px;
    background: var(--color-white);
    border-top: 1px solid #eeeeee;
}
.footer-bottom-logo {
    color: var(--color-heading);
    font-size: 18px;
}
.footer-bottom-logo strong {
    font-weight: 800;
}
.footer-legal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
}
.footer-legal a {
    color: #697386;
    font-size: 13px;
    font-weight: 500;
    transition: color .18s ease;
}
.footer-legal a:hover {
    color: #ef4938;
}
body.contact-page-new .site-footer .footer-copy {
    color: #697386;
    font-size: 13px;
    text-align: right;
    display: block !important;
}
@media (max-width: 1000px) {
    .footer-content {
        gap: 55px;
        padding: 70px 45px;
    }
}
@media (max-width: 760px) {
    .footer-main {
        min-height: auto;
    }
    .footer-shape {
        width: 100%;
        height: 330px;
        opacity: 0.55;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 60px 25px;
    }
    .footer-contact {
        padding-top: 15px;
    }
    .footer-phone {
        font-size: 27px;
    }
    .footer-bottom {
        grid-template-columns: 1fr;
        padding: 28px 25px;
        gap: 20px;
        text-align: center;
    }
    .footer-bottom-logo,
    body.contact-page-new .site-footer .footer-copy {
        text-align: center;
    }
    .footer-legal {
        flex-wrap: wrap;
        gap: 12px 20px;
    }
}
