@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,500&display=swap');

:root {
    --brand-blue: #1e3e81;
    --brand-blue-deep: #224997;
    --brand-cyan: #1ea8e0;
    --brand-green: #7dc132;
    --text-dark: #1e2542;
    --text-body: #5a6278;
    --panel-light: #f2f2f2;
    --panel-line: rgba(30, 37, 66, 0.34);
    --font-display: "Mont", "Poppins", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    --font-body: "Poppins", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 14% 20%, rgba(72, 210, 245, 0.28), transparent 28%),
        linear-gradient(90deg, var(--brand-cyan) 0%, var(--brand-blue) 100%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow-x: hidden;
}

main {
    font-family: var(--font-body);
    color: var(--text-dark);
    overflow-x: clip;
}

.page-lang {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-lang--floating {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1100;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(30, 62, 129, 0.14);
    box-shadow: 0 16px 36px rgba(31, 42, 68, 0.16);
    backdrop-filter: blur(12px);
    justify-content: center;
}

.page-lang__label {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-display);
    color: var(--brand-blue);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
}

.page-lang__select {
    display: inline-flex;
    align-items: center;
    height: 36px;
    min-width: 68px;
    font-family: var(--font-body) !important;
    font-style: italic;
    padding: 6px 28px 6px 10px;
    border: 1px solid rgba(30, 62, 129, 0.16);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(233, 244, 250, 0.96));
    color: var(--brand-blue);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1;
}

.page-lang__select:focus {
    outline: none;
    border-color: rgba(30, 168, 224, 0.7);
    box-shadow: 0 0 0 4px rgba(30, 168, 224, 0.14);
}

.contacto-form-section {
    padding: 104px 24px 72px;
}

.contacto-shell {
    width: min(1240px, 100%);
    margin: 0 auto;
}

.contacto-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.72fr) minmax(320px, 0.92fr);
    gap: 64px;
    align-items: center;
}

.contacto-form-panel {
    min-width: 0;
}

.contacto-form-card {
    background: rgba(244, 244, 244, 0.98);
    border-radius: 30px;
    padding: 42px 52px 34px;
    box-shadow: 0 22px 44px rgba(20, 34, 84, 0.14);
    position: relative;
}

.contacto-form-header h1 {
    margin: 0;
    font-family: var(--font-display);
    color: var(--brand-green);
    font-size: clamp(2.15rem, 3vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
}

.contacto-form-divider {
    display: block;
    width: 100%;
    height: 1px;
    margin: 12px 0 22px;
    background: rgba(40, 48, 72, 0.5);
}

.contacto-form {
    min-width: 0;
}

.contacto-toast-stack {
    position: absolute;
    left: 52px;
    right: 52px;
    bottom: 116px;
    z-index: 4;
    display: grid;
    gap: 12px;
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.contacto-toast-stack.is-hiding {
    opacity: 0;
    transform: translateY(-8px);
}

.contacto-toast {
    pointer-events: auto;
    padding: 16px 18px;
    border-radius: 18px;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.4;
    box-shadow: 0 18px 34px rgba(17, 28, 68, 0.22);
    backdrop-filter: blur(14px);
}

.contacto-toast ul {
    margin: 8px 0 0 18px;
    padding: 0;
}

.contacto-toast--success {
    background: linear-gradient(135deg, rgba(236, 248, 235, 0.96), rgba(225, 246, 252, 0.93));
    border: 1px solid rgba(125, 193, 50, 0.36);
    color: #234f2b;
}

.contacto-toast--error {
    background: rgba(255, 244, 244, 0.96);
    border: 1px solid rgba(212, 96, 96, 0.28);
    color: #6d1f1f;
}

.contacto-form-panel label {
    display: block;
    margin-top: 14px;
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-style: italic;
    color: rgba(35, 42, 62, 0.84);
    font-weight: 500;
}

.contacto-form-panel input,
.contacto-form-panel textarea {
    width: 100%;
    padding: 11px 14px;
    margin-top: 6px;
    border: 1px solid rgba(41, 48, 72, 0.42);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 0.98rem;
    line-height: 1.3;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.contacto-form-panel input:focus,
.contacto-form-panel textarea:focus {
    outline: none;
    border-color: rgba(30, 168, 224, 0.72);
    box-shadow: 0 0 0 4px rgba(30, 168, 224, 0.12);
    background: #ffffff;
}

.contacto-form-panel textarea {
    min-height: 130px;
    resize: none;
}

.contacto-form-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin-top: 22px;
}

.contacto-consent {
    max-width: 390px;
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-family: var(--font-body);
    font-size: 0.86rem;
    font-style: italic;
    line-height: 1.55;
    color: rgba(40, 48, 72, 0.76);
}

.contacto-consent-toggle {
    flex: 0 0 16px;
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
    cursor: pointer;
}

.contacto-consent-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.contacto-consent-indicator {
    display: block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(40, 48, 72, 0.52);
    border-radius: 50%;
    background: #ffffff;
    margin-top: 2px;
    position: relative;
    transition: border-color 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease;
}

.contacto-consent-text {
    display: block;
    flex: 1 1 auto;
}

.contacto-consent-indicator::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: transparent;
    transition: background-color 0.22s ease;
}

.contacto-consent-input:checked + .contacto-consent-indicator {
    border-color: var(--brand-green);
}

.contacto-consent-input:checked + .contacto-consent-indicator::after {
    background: var(--brand-green);
}

.contacto-consent-input:focus-visible + .contacto-consent-indicator {
    box-shadow: 0 0 0 4px rgba(30, 168, 224, 0.16);
}

.contacto-side-panel {
    color: #ffffff;
    padding: 18px 10px 18px 22px;
}

.contacto-side-panel h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(3rem, 3.8vw, 4.8rem);
    line-height: 0.92;
    font-weight: 800;
    letter-spacing: -0.03em;
    max-width: 340px;
}

.contacto-side-divider {
    display: block;
    width: min(286px, 78%);
    height: 2px;
    margin: 22px 0 40px;
    background: rgba(58, 211, 255, 0.84);
}

.contacto-side-block {
    margin-bottom: 20px;
}

.contacto-side-text,
.contacto-side-copy {
    margin: 0;
    font-family: var(--font-body);
    font-size: 0.98rem;
    line-height: 1.12;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.96);
}

.contacto-side-link {
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-weight: 700;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.contacto-side-link:hover {
    opacity: 0.9;
    transform: translateX(2px);
}

.contacto-side-copy {
    max-width: 320px;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.45;
    color: rgba(233, 243, 255, 0.86);
}

.contacto-side-dots {
    display: flex;
    gap: 42px;
    margin-top: 48px;
    align-items: center;
}

.contacto-side-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 180ms ease, filter 180ms ease;
}

.contacto-side-social:hover,
.contacto-side-social:focus-visible {
    transform: scale(1.12);
    outline: none;
}

.contacto-side-dots img {
    display: block;
    width: 38px;
    height: 38px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: transform 180ms ease;
}

.contacto-side-social[aria-label="WhatsApp"] img {
    width: 40px;
    height: 40px;
}

.contacto-side-social[aria-label="Email"] img {
    width: 46px;
    height: 60px;
}

.row {
    display: flex;
    gap: 20px;
}

.row > div {
    flex: 1;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body) !important;
    padding: 14px 28px;
    min-width: 190px;
    border: 1px solid rgba(30, 62, 129, 0.2);
    border-radius: 999px;
    background: linear-gradient(135deg, #2f4ea0 0%, #1b9fe0 100%);
    cursor: pointer;
    text-decoration: none;
    color: #ffffff;
    font-size: 1.02rem;
    font-style: italic;
    font-weight: 500;
    box-shadow: 0 12px 18px rgba(20, 34, 84, 0.2);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 28px rgba(20, 34, 84, 0.24);
    filter: brightness(1.03);
}

.btn:disabled,
.btn[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.64;
    box-shadow: none;
    filter: saturate(0.7);
}

.btn:disabled:hover,
.btn[aria-disabled="true"]:hover {
    transform: none;
    box-shadow: none;
    filter: saturate(0.7);
}

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 1025px) {
    .contacto-form-section {
        display: flex;
        align-items: center;
    }

    .contacto-layout {
        min-height: calc(100vh - 176px);
    }

    .contacto-form-card {
        min-height: 560px;
    }

    .contacto-form-footer {
        margin-top: 26px;
    }

    .contacto-consent {
        max-width: 355px;
    }

    .btn {
        min-width: 196px;
        padding: 13px 28px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .page-lang--floating {
        right: 18px;
        bottom: 18px;
    }

    .contacto-form-section {
        min-height: auto;
        padding: 96px 22px 56px;
    }

    .contacto-shell {
        width: min(960px, 100%);
    }

    .contacto-layout {
        grid-template-columns: minmax(0, 1.46fr) minmax(230px, 0.78fr);
        gap: 36px;
        align-items: center;
    }

    .contacto-form-card {
        padding: 34px 32px 30px;
        border-radius: 26px;
    }

    .contacto-toast-stack {
        left: 32px;
        right: 32px;
        bottom: 106px;
    }

    .contacto-side-panel {
        padding: 8px 4px 8px 0;
    }

    .contacto-side-panel h2 {
        max-width: 260px;
        font-size: clamp(2.55rem, 5.3vw, 3.7rem);
    }

    .contacto-side-divider {
        width: min(220px, 100%);
        margin: 18px 0 26px;
    }

    .contacto-side-text,
    .contacto-side-copy,
    .contacto-side-link {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .contacto-side-dots {
        gap: 24px;
        margin-top: 28px;
    }

    .contacto-side-dots img {
        width: 32px;
        height: 32px;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .page-lang--floating {
        right: 16px;
        bottom: 16px;
    }

    .contacto-form-section {
        min-height: auto;
        padding: 92px 18px 52px;
    }

    .contacto-shell {
        width: min(728px, 100%);
    }

    .contacto-layout {
        grid-template-columns: minmax(0, 1.34fr) minmax(180px, 0.62fr);
        gap: 24px;
        align-items: center;
    }

    .contacto-form-card {
        padding: 28px 24px 24px;
        border-radius: 24px;
    }

    .contacto-form-header h1 {
        font-size: clamp(2rem, 4vw, 2.6rem);
    }

    .contacto-form-panel label {
        font-size: 0.92rem;
    }

    .contacto-form-panel input,
    .contacto-form-panel textarea {
        padding: 10px 12px;
        font-size: 0.92rem;
    }

    .contacto-form-panel textarea {
        min-height: 122px;
    }

    .contacto-form-footer {
        gap: 16px;
        margin-top: 18px;
    }

    .contacto-consent {
        max-width: 260px;
        gap: 10px;
        font-size: 0.78rem;
        line-height: 1.45;
    }

    .contacto-toast-stack {
        left: 24px;
        right: 24px;
        bottom: 92px;
    }

    .contacto-toast {
        padding: 14px 16px;
        font-size: 0.92rem;
        border-radius: 16px;
    }

    .contacto-side-panel {
        padding: 4px 0 4px 0;
    }

    .contacto-side-panel h2 {
        max-width: 180px;
        font-size: clamp(2rem, 4.8vw, 2.9rem);
    }

    .contacto-side-divider {
        width: min(160px, 100%);
        margin: 14px 0 18px;
    }

    .contacto-side-block {
        margin-bottom: 14px;
    }

    .contacto-side-text,
    .contacto-side-copy,
    .contacto-side-link {
        font-size: 0.8rem;
        line-height: 1.28;
    }

    .contacto-side-dots {
        gap: 18px;
        margin-top: 18px;
    }

    .contacto-side-dots img {
        width: 28px;
        height: 28px;
    }

    .btn {
        min-width: 160px;
        padding: 12px 22px;
        font-size: 0.95rem;
    }
}

@media (max-width: 640px) {
    .page-lang--floating {
        right: 12px;
        bottom: 12px;
        padding: 8px 10px;
    }

    .page-lang__label {
        display: none;
    }

    .contacto-form-section {
        min-height: auto;
        padding: 92px 16px 56px;
    }

    .contacto-shell {
        width: 100%;
    }

    .contacto-layout {
        grid-template-columns: 1fr;
        gap: 24px;
        align-items: start;
    }

    .contacto-form-card {
        padding: 24px 18px 22px;
        border-radius: 22px;
    }

    .contacto-toast-stack {
        left: 18px;
        right: 18px;
        bottom: 120px;
    }

    .contacto-side-panel {
        padding: 8px 4px 0;
    }

    .row {
        flex-direction: column;
        gap: 0;
    }

    .contacto-form-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .contacto-consent {
        max-width: none;
        gap: 10px;
    }

    .btn {
        width: 100%;
        min-width: 0;
    }

    .contacto-side-divider {
        width: 100%;
    }

    .contacto-side-dots {
        gap: 24px;
        margin-top: 28px;
    }

    .contacto-side-panel h2 {
        font-size: clamp(2.45rem, 14vw, 3.8rem);
        max-width: 260px;
    }

    .contacto-side-text,
    .contacto-side-copy,
    .contacto-side-link {
        font-size: 0.98rem;
        line-height: 1.3;
    }
}

@media (orientation: portrait) and (max-width: 1024px) {
    .contacto-form-section {
        display: flex;
        justify-content: center;
    }

    .contacto-shell {
        width: min(760px, 100%);
        margin: 0 auto;
    }

    .contacto-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        justify-items: center;
        align-items: start;
    }

    .contacto-form-panel,
    .contacto-side-panel {
        width: 100%;
        max-width: 640px;
    }

    .contacto-form-panel {
        order: 2;
    }

    .contacto-side-panel {
        order: 1;
    }

    .contacto-side-panel {
        padding: 0;
        text-align: center;
    }

    .contacto-side-panel h2 {
        max-width: none;
        margin: 0 auto;
    }

    .contacto-side-divider {
        margin-left: auto;
        margin-right: auto;
    }

    .contacto-side-copy {
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .contacto-side-dots {
        justify-content: center;
    }
}
