/* ============================================================
   CASA BONITA - LANDING PÚBLICO EXTRANJERO
   Estilos principales y componentes UI
   ============================================================ */

:root {
    --cb-navy-bg: #031b2c;
    --cb-navy-dark: #042137;
    --cb-navy-card: #062b46;
    --cb-navy-text: #082944;
    --cb-yellow: #ffd000;
    --cb-yellow-hover: #f0c300;
    --cb-card-blue: #72aee2;
    --cb-card-blue-light: #82b9ea;
    --cb-white: #ffffff;
    --cb-black: #000000;
    --cb-cyan-dot: #00d2d3;
    --cb-wsp-green: #25d366;
    --cb-input-bg: rgba(255, 255, 255, 0.08);
    --cb-input-border: rgba(255, 255, 255, 0.4);
    --cb-input-border-focus: #ffd000;
    --cb-font: 'Plus Jakarta Sans', 'Poppins', system-ui, -apple-system, sans-serif;
    --cb-radius-sm: 10px;
    --cb-radius-md: 16px;
    --cb-radius-lg: 24px;
    --cb-radius-pill: 9999px;
    --cb-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    --cb-shadow-glow: 0 0 25px rgba(255, 208, 0, 0.35);
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: var(--cb-font);
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--cb-navy-bg);
    color: var(--cb-white);
    line-height: 1.4;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Contenedores */
.cb-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   DIV 1: HERO SECTION (DESKTOP)
   ============================================================ */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 720px;
    width: 100%;
    background: url('../img/1.webp') center top / cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 36px 64px 44px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(3, 27, 44, 0.45) 0%, rgba(3, 27, 44, 0.1) 40%, rgba(3, 27, 44, 0.85) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-top-bar {
    position: absolute;
    top: 36px;
    right: 64px;
    z-index: 10;
}

.hero-logo-box {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.hero-logo-box:hover {
    transform: scale(1.03);
    opacity: 0.95;
}

.hero-logo-img {
    height: clamp(110px, 11vw, 145px);
    width: auto;
    max-width: 240px;
    object-fit: contain;
    display: block;
    border-radius: var(--cb-radius-md);
}

.hero-main-content {
    position: relative;
    z-index: 2;
    margin-top: 0;
    padding-top: 50px;
    max-width: 960px;
}

.hero-headline {
    font-size: clamp(4.6rem, 9.4vw, 8.4rem);
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: -3px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.55);
}

.hero-headline .text-yellow {
    color: var(--cb-yellow);
    display: block;
}

.hero-headline .text-white {
    color: var(--cb-white);
    display: block;
}

.hero-bottom-bar {
    position: absolute;
    bottom: 40px;
    right: 64px;
    z-index: 10;
    display: flex;
    justify-content: flex-end;
}

.hero-subtag {
    max-width: 480px;
    color: var(--cb-white);
    font-size: clamp(1.35rem, 1.8vw, 1.85rem);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.3px;
    text-align: left;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.95);
    border-left: 3px solid var(--cb-yellow);
    padding-left: 16px;
}

/* ============================================================
   DIV 2: BENEFICIOS / ESTA ES TU OPORTUNIDAD
   ============================================================ */
.opportunity-section {
    position: relative;
    width: 100%;
    min-height: 85vh;
    background: url('../img/2.webp') center center / cover no-repeat;
    display: flex;
    align-items: center;
    padding: 75px 0 85px;
}

.opportunity-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.44);
    backdrop-filter: blur(0.5px);
    z-index: 1;
}

.opportunity-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.opportunity-subtitle {
    color: #0d2847;
    font-size: clamp(1.4rem, 2.5vw, 2.3rem);
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.opportunity-title {
    color: #06223e;
    font-size: clamp(2.8rem, 5.6vw, 4.8rem);
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.08;
    margin-bottom: 38px;
}

.opportunity-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

.opportunity-card {
    background: #73aee3;
    border-radius: 40px;
    padding: 26px 16px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    box-shadow: 0 10px 28px rgba(8, 38, 68, 0.12);
    min-height: 245px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.opportunity-card:hover {
    transform: translateY(-5px);
    background: #80b9eb;
    box-shadow: 0 16px 36px rgba(8, 38, 68, 0.22);
}

.opportunity-icon-circle {
    width: 66px;
    height: 66px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.opportunity-icon-circle svg {
    width: 36px;
    height: 36px;
}

.opportunity-card-text {
    color: #07233f;
    font-size: 0.92rem;
    line-height: 1.34;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

/* ============================================================
   DIV 3 & 4: MODELOS DE CASAS (01 PISO & 02 PISOS)
   ============================================================ */
.house-section {
    position: relative;
    background-color: var(--cb-navy-dark);
    padding: 60px 0 80px;
    width: 100%;
}

.house-title {
    color: var(--cb-yellow);
    font-size: clamp(2.4rem, 4.8vw, 4rem);
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 30px;
}

/* Grid de Modelos */
.model-grid-1p,
.model-grid-2p {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr;
    gap: 20px;
    align-items: stretch;
}

/* Tarjeta Exterior Principal */
.exterior-main-card {
    position: relative;
    border-radius: var(--cb-radius-lg);
    overflow: hidden;
    box-shadow: var(--cb-shadow);
    min-height: 480px;
    background: #081e2e;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.exterior-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.exterior-main-card:hover .exterior-img {
    transform: scale(1.03);
}

.exterior-top-header {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px;
}

.card-tag-label {
    color: var(--cb-white);
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.cyan-status-dot {
    width: 18px;
    height: 18px;
    background-color: var(--cb-cyan-dot);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--cb-cyan-dot);
}

.exterior-bottom-content {
    position: relative;
    z-index: 2;
    padding: 22px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(3, 20, 32, 0.95) 55%);
}

.badges-price-row {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.badge-inicial {
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--cb-radius-md);
    padding: 6px 14px;
    color: var(--cb-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.badge-inicial .badge-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1px;
    font-style: italic;
    opacity: 0.9;
}

.badge-inicial .badge-amount {
    font-size: 1.45rem;
    font-weight: 900;
    font-style: italic;
    line-height: 1.1;
}

.badge-desde {
    background: var(--cb-yellow);
    border-radius: var(--cb-radius-md);
    padding: 6px 14px;
    color: var(--cb-black);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(255, 208, 0, 0.3);
}

.badge-desde .badge-label {
    font-size: 0.72rem;
    font-weight: 800;
}

.badge-desde .badge-amount {
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1.1;
}

.badge-desde .badge-sub {
    font-size: 0.72rem;
    font-weight: 700;
}

.specs-features-row {
    display: flex;
    gap: 16px;
    align-items: center;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--cb-white);
}

.spec-icon {
    width: 26px;
    height: 26px;
    stroke: var(--cb-white);
    stroke-width: 1.8;
    fill: none;
}

.spec-details {
    display: flex;
    flex-direction: column;
}

.spec-title {
    font-size: 0.78rem;
    font-weight: 600;
    opacity: 0.9;
}

.spec-value {
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1.1;
}

/* Tarjetas Secundarias (Planos e Interiores) */
.sub-render-card {
    position: relative;
    border-radius: var(--cb-radius-lg);
    overflow: hidden;
    box-shadow: var(--cb-shadow);
    background: #081e2e;
    min-height: 230px;
}

.sub-render-card.plan-card {
    min-height: 480px;
    height: 100%;
    background: #ffffff;
}

.sub-render-card.plan-card .sub-render-img,
.plan-card-half .plan-img {
    object-fit: contain;
    padding: 12px;
    background: #ffffff;
}

.plan-card-half {
    background: #ffffff;
}

.plan-card-half .sub-card-tag,
.sub-render-card.plan-card .sub-card-tag {
    background: rgba(3, 27, 44, 0.85);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: var(--cb-radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    text-shadow: none;
}

.sub-render-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.sub-render-card:hover .sub-render-img {
    transform: scale(1.04);
}

.sub-card-tag {
    position: absolute;
    color: var(--cb-white);
    font-weight: 800;
    font-size: 1.35rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
    z-index: 2;
}

.sub-card-tag.top-right {
    top: 18px;
    right: 18px;
}

.sub-card-tag.bottom-left {
    bottom: 18px;
    left: 18px;
}

.stacked-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
    justify-content: space-between;
}

/* Botón CTA debajo de Casas */
.model-cta-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 26px;
}

.btn-contact-advisor {
    background: var(--cb-yellow);
    color: var(--cb-black);
    font-size: 1.2rem;
    font-weight: 800;
    padding: 15px 38px;
    border-radius: var(--cb-radius-pill);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 208, 0, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.btn-contact-advisor:hover {
    background-color: var(--cb-yellow-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(255, 208, 0, 0.5);
}

/* ============================================================
   DIV 5: FORMULARIO CONTACTA UN ASESOR
   ============================================================ */
.contact-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: url('../img/4.webp') center center / cover no-repeat;
    display: flex;
    align-items: center;
    padding: 80px 0;
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 19, 31, 0.78);
    backdrop-filter: blur(4px);
    z-index: 1;
}

.contact-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 50px;
    align-items: flex-start;
}

.contact-header-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-title {
    color: var(--cb-white);
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -1px;
}

.contact-subtitle {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.1rem;
    line-height: 1.45;
    max-width: 480px;
}

.contact-form-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    max-width: 620px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-label {
    color: var(--cb-white);
    font-size: 1.02rem;
    font-weight: 600;
    opacity: 0.95;
}

.form-input {
    width: 100%;
    padding: 13px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid var(--cb-input-border);
    border-radius: var(--cb-radius-sm);
    color: var(--cb-white);
    font-family: var(--cb-font);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.form-input:focus {
    border-color: var(--cb-input-border-focus);
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 0 12px rgba(255, 208, 0, 0.25);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

/* Celular Internacional con Selector de País */
.phone-input-wrapper {
    display: flex;
    gap: 8px;
    width: 100%;
}

.country-select {
    flex: 0 0 45%;
    max-width: 190px;
    padding: 13px 12px;
    background: rgba(10, 26, 47, 0.85);
    border: 1.5px solid var(--cb-input-border);
    border-radius: var(--cb-radius-sm);
    color: var(--cb-white);
    font-family: var(--cb-font);
    font-size: 0.88rem;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.country-select:focus {
    border-color: var(--cb-input-border-focus);
    box-shadow: 0 0 12px rgba(255, 208, 0, 0.25);
}

.country-select option {
    background: #0a1a27;
    color: #ffffff;
    padding: 8px;
}

.phone-input-wrapper .phone-input {
    flex: 1;
    min-width: 0;
}

@media (max-width: 480px) {
    .phone-input-wrapper {
        flex-direction: column;
        gap: 6px;
    }
    .country-select {
        flex: 1;
        max-width: 100%;
        width: 100%;
    }
}

/* Preguntas Si/No */
.yes-no-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.yes-no-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
}

.choice-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 11px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid var(--cb-input-border);
    border-radius: var(--cb-radius-sm);
    color: var(--cb-white);
    font-family: var(--cb-font);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.choice-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.6);
}

.choice-btn.active {
    background: var(--cb-white);
    color: var(--cb-navy-bg);
    border-color: var(--cb-white);
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.25);
}

/* Checkbox Consentimiento de Datos Personales */
.consent-group {
    margin: 14px 0 16px;
    padding: 8px 10px;
    border-radius: var(--cb-radius-sm, 10px);
    border: 1px solid transparent;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.consent-group.has-error {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.45);
    animation: consentShake 0.4s ease;
}

@keyframes consentShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    text-align: left;
}

.consent-checkbox {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    margin-top: 1px;
    cursor: pointer;
    accent-color: var(--cb-yellow);
}

.consent-text {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.45;
}

.consent-error-msg {
    display: none;
    font-size: 0.78rem;
    color: #fca5a5;
    margin-top: 6px;
    margin-left: 32px;
    font-weight: 600;
    line-height: 1.35;
}

.consent-group.has-error .consent-error-msg {
    display: block;
    animation: consentFadeIn 0.25s ease-out;
}

@keyframes consentFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Botón Enviar */
.btn-submit-form {
    width: 100%;
    background: var(--cb-yellow);
    color: var(--cb-black);
    font-size: 1.25rem;
    font-weight: 800;
    padding: 15px;
    border-radius: var(--cb-radius-pill);
    border: none;
    cursor: pointer;
    margin-top: 8px;
    box-shadow: 0 6px 20px rgba(255, 208, 0, 0.35);
    transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.btn-submit-form:hover {
    background-color: var(--cb-yellow-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(255, 208, 0, 0.5);
}

.form-disclaimer {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.78rem;
    line-height: 1.4;
    margin-top: 6px;
}

/* ============================================================
   FOOTER INSTITUCIONAL Y LEGAL
   ============================================================ */
.extranjero-footer {
    background: #02111c;
    color: #94a3b8;
    padding: 55px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 10;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 22px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.footer-tagline {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    letter-spacing: -0.2px;
}

.footer-divider {
    width: 100%;
    max-width: 680px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.footer-legal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 880px;
}

.footer-copyright {
    font-size: 0.85rem;
    color: #cbd5e1;
    font-weight: 600;
}

.footer-disclaimer {
    font-size: 0.74rem;
    color: #64748b;
    line-height: 1.6;
}

/* ============================================================
   WIDGET FLOTANTE DE WHATSAPP
   ============================================================ */
.floating-wsp-btn {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 58px;
    height: 58px;
    background-color: var(--cb-wsp-green);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    z-index: 999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: wspPulse 2.8s infinite;
}

.floating-wsp-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.wsp-icon {
    width: 32px;
    height: 32px;
}

.wsp-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: #031b2c;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: var(--cb-radius-pill);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.floating-wsp-btn:hover .wsp-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(-4px);
}

@keyframes wspPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    70% {
        box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ============================================================
   RESPONSIVE DESIGN (TABLETS & MÓVILES)
   ============================================================ */

/* --- TABLETS / PANTALLAS MEDIANAS (Max 1024px) --- */
@media (max-width: 1024px) {
    .opportunity-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .model-grid-1p,
    .model-grid-2p {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .exterior-main-card {
        grid-column: span 2;
        min-height: 400px;
    }

    .sub-render-card.plan-card {
        min-height: 340px;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-header-block {
        text-align: center;
    }

    .contact-subtitle {
        margin: 0 auto;
    }

    .contact-form-card {
        margin: 0 auto;
    }
}

/* --- MÓVILES (CELLPHONES - Max 768px) --- */
@media (max-width: 768px) {
    /* 1. HERO AMPLIO, ORDENADO Y ELEGANTE */
    .hero-section {
        height: auto;
        min-height: 82svh;
        min-height: 560px;
        padding: 24px 20px 34px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 20px;
        background-position: center top;
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(3, 27, 44, 0.45) 0%, rgba(3, 27, 44, 0.12) 38%, rgba(3, 27, 44, 0.88) 100%);
    }

    .hero-top-bar {
        position: static;
        top: auto;
        right: auto;
        display: flex;
        justify-content: flex-end;
        width: 100%;
        margin-bottom: 0;
    }

    .hero-logo-img {
        height: clamp(100px, 24vw, 135px);
        width: auto;
        max-width: 220px;
        filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.6));
    }

    .hero-main-content {
        position: static;
        padding: 0;
        margin: 0;
        max-width: 100%;
    }

    .hero-headline {
        font-size: clamp(2.35rem, 8vw, 3.2rem);
        line-height: 1.06;
        letter-spacing: -1px;
    }

    .hero-headline .text-yellow {
        color: var(--cb-yellow);
        display: block;
        text-shadow: 0 2px 14px rgba(255, 208, 0, 0.35), 0 3px 14px rgba(0, 0, 0, 0.9);
    }

    .hero-headline .text-white {
        color: #ffffff;
        display: block;
        text-shadow: 0 3px 14px rgba(0, 0, 0, 0.9);
    }

    .hero-bottom-bar {
        position: static;
        bottom: auto;
        right: auto;
        margin-top: 0;
        display: flex;
        justify-content: flex-start;
        width: 100%;
    }

    .hero-subtag {
        font-size: 0.98rem;
        font-weight: 600;
        line-height: 1.42;
        max-width: 100%;
        text-align: left;
        color: #f8fafc;
        text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95);
        border-left: 3px solid var(--cb-yellow);
        padding-left: 12px;
    }

    /* 2. OPORTUNIDAD / BENEFICIOS */
    .opportunity-section {
        padding: 45px 0 55px;
        min-height: auto;
    }

    .opportunity-title {
        font-size: 2.3rem;
        margin-bottom: 24px;
    }

    .opportunity-subtitle {
        font-size: 1.15rem;
    }

    .opportunity-cards-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .opportunity-card {
        min-height: auto;
        padding: 20px 16px;
        border-radius: 24px;
    }

    /* 3. MODELOS DE CASAS */
    .house-section {
        padding: 45px 0 55px;
    }

    .house-title {
        font-size: 2.1rem;
        margin-bottom: 22px;
    }

    .model-grid-1p,
    .model-grid-2p {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .exterior-main-card {
        min-height: 320px;
        aspect-ratio: 16/11;
        border-radius: 20px;
    }

    .sub-render-card.plan-card {
        min-height: 220px;
        aspect-ratio: 16/11;
        background: #ffffff;
        border-radius: 18px;
    }

    .sub-render-card.plan-card .sub-render-img {
        object-fit: contain;
        padding: 10px;
        background: #ffffff;
    }

    /* Caída vertical limpia: 1 tarjeta por fila a ancho completo */
    .stacked-col {
        display: flex;
        flex-direction: column;
        gap: 14px;
        width: 100%;
    }

    .sub-render-card {
        width: 100%;
        min-height: 220px;
        aspect-ratio: 16/10;
        border-radius: 18px;
    }

    .plan-card-half {
        background: #ffffff;
        border: 1px solid rgba(255, 255, 255, 0.15);
        min-height: 220px;
        aspect-ratio: 16/10;
    }

    .plan-card-half .plan-img {
        object-fit: contain;
        padding: 12px;
        background: #ffffff;
    }

    /* Etiquetas cápsula en las tarjetas */
    .sub-card-tag {
        font-size: 0.85rem;
        font-weight: 700;
        padding: 5px 14px;
        border-radius: var(--cb-radius-pill);
        background: rgba(3, 27, 44, 0.85);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #ffffff;
        text-shadow: none;
    }

    .sub-card-tag.top-right {
        top: 12px;
        right: 12px;
    }

    .sub-card-tag.bottom-left {
        bottom: 12px;
        left: 12px;
    }

    .badges-price-row {
        flex-direction: row;
        gap: 8px;
        margin-bottom: 10px;
    }

    .badge-inicial,
    .badge-desde {
        flex: 1;
        padding: 6px 10px;
    }

    .badge-inicial .badge-amount,
    .badge-desde .badge-amount {
        font-size: 1.25rem;
    }

    .specs-features-row {
        gap: 12px;
    }

    .spec-value {
        font-size: 1.05rem;
    }

    .model-cta-row {
        justify-content: center;
        margin-top: 18px;
    }

    .btn-contact-advisor {
        width: 100%;
        padding: 13px 24px;
        font-size: 1.05rem;
    }

    /* 4. FORMULARIO CONTACTO */
    .contact-section {
        padding: 50px 0 60px;
        min-height: auto;
    }

    .contact-title {
        font-size: 2.3rem;
    }

    .contact-subtitle {
        font-size: 0.98rem;
    }

    .wsp-tooltip {
        display: none;
    }

    /* 5. FOOTER RESPONSIVE */
    .extranjero-footer {
        padding: 40px 0 30px;
    }

    .footer-logo {
        height: 42px;
    }

    .footer-tagline {
        font-size: 0.88rem;
    }

    .footer-copyright {
        font-size: 0.8rem;
    }

    .footer-disclaimer {
        font-size: 0.72rem;
    }
}

/* --- MÓVILES MUY PEQUEÑOS (Max 380px) --- */
@media (max-width: 380px) {
    .hero-headline {
        font-size: 2.1rem;
    }

    .hero-subtag {
        font-size: 0.98rem;
    }

    .badges-price-row {
        flex-direction: column;
    }

    .badge-inicial,
    .badge-desde {
        width: 100%;
    }
}
