/* ===================================
   HOSPITAL BRITÁNICO - PLAN DE SALUD
   css/style.css
   =================================== */

:root {
    --blue: #0192d3;
    --dark-blue: #004990;
    --green: #7dc242;
    --light-green: #a8d56a;
    --gray-bg: #f2f2f2;
    --gray-light: #e8e8e8;
    --text-dark: #1a1a2e;
    --text-mid: #444;
    --text-light: #666;
    --white: #ffffff;
    --font: 'Montserrat', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--text-dark);
    background: var(--white);
    font-size: 15px;
    line-height: 1.6;
}

img { max-width: 100%; display: block; }

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

.container {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===================================
   NAVBAR
   =================================== */
.navbar {
    position: relative;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    height: 110px;
}

.navbar-inner {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 32px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo { display: flex; align-items: center; }
.logo-img { height: 100px; width: auto; object-fit: contain; }

.btn-afiliate {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 2px solid var(--dark-blue);
    color: var(--dark-blue);
    font-family: var(--font);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s ease;
}
.btn-afiliate:hover {
    background: var(--dark-blue);
    color: var(--white);
}
.btn-afiliate .btn-icon { font-size: 13px; color: var(--blue); }
.btn-afiliate:hover .btn-icon { color: var(--white); }

/* ===================================
   HERO
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 0;
    overflow: hidden;
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    background-color: #1a2e4a;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
        to right,
        rgba(0, 20, 55, 0.65) 0%,
        rgba(0, 20, 55, 0.40) 55%,
        rgba(0, 20, 55, 0.05) 100%
    );
    pointer-events: none;
}

.hero-overlay-div { display: none; }
.hero-bg { display: none; }
.hero-img { display: none; }
.hero-overlay { display: none; }

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    padding: 60px 24px;
}

.hero-content-inner {
    max-width: 720px;
}

.hero-eyebrow {
    color: var(--white);
    font-size: 15px;
    font-weight: 400;
    margin-bottom: 10px;
    opacity: 0.9;
}

.hero-title {
    color: var(--white);
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-subtitle {
    color: var(--white);
    font-size: 20px;
    font-weight: 400;
    opacity: 0.92;
    margin-bottom: 24px;
    line-height: 1.7;
}

.hero-list {
    list-style: none;
    margin-bottom: 36px;
}

.hero-list li {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.bolt {
    color: var(--blue);
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ===================================
   BUTTONS
   =================================== */
.btn-cotiza {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: var(--blue);
    color: var(--white);
    font-family: var(--font);
    font-weight: 700;
    font-size: 16px;
    padding: 14px 36px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

/* Main label row: icon + text on same line */
.btn-cotiza-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 16px;
}

.btn-cotiza small {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.9;
    display: block;
    text-align: center;
}

.btn-cotiza:hover {
    background: #0179b5;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(1,146,211,0.4);
}

.btn-info {
    display: inline-block;
    background: transparent;
    border: 2px solid var(--dark-blue);
    color: var(--dark-blue);
    font-family: var(--font);
    font-weight: 600;
    font-size: 13px;
    padding: 10px 28px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 16px;
}
.btn-info:hover {
    background: var(--dark-blue);
    color: var(--white);
}

.btn-contactanos {
    background: var(--blue);
    margin-top: 8px;
    font-size: 15px;
    padding: 14px 32px;
}

/* ===================================
   SECTION TITLES
   =================================== */
.section-title {
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 400;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-dark);
}
.section-title strong { font-weight: 800; }

/* ===================================
   PLANES
   =================================== */
.planes-section {
    background: var(--gray-bg);
    padding: 80px 0;
}

.planes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.plan-card {
    background: var(--white);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.plan-card-img {
    position: relative;
    overflow: hidden;
    line-height: 0;
}

.plan-img-premium { background: #d4eef8; }
.plan-img-classic { background: #dde8d0; }

.plan-photo {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* plan-badge and plan-descuento styles removed - image-only card design */

/* Plan name as image */
.plan-name { margin-bottom: 14px; }
.plan-name-img {
    max-width: 260px;
    height: auto;
    display: block;
}

/* ===================================
   VIDEO SECTION
   =================================== */
.video-section {
    background: transparent;
    padding: 48px 0;
}

.video-wrapper {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    line-height: 0;
    border-radius: 12px;
    overflow: hidden;
}

.video-player {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #000;
}

.video-sound-btn {
    position: absolute;
    top: 16px; left: 16px;
    background: rgba(0,0,0,0.55);
    color: var(--white);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
    user-select: none;
}
.video-sound-btn:hover { background: rgba(0,0,0,0.8); }

.plan-card-body {
    padding: 24px 28px 28px;
}

.plan-name {
    font-size: 24px;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 10px;
}
.plan-name strong { font-weight: 900; }
.plan-name em { font-style: italic; font-weight: 400; }

.plan-name-premium { color: var(--blue); }
.plan-name-classic { color: var(--green); }
.plan-name-classic strong { color: var(--dark-blue); }

.plan-tagline { font-size: 13px; margin-bottom: 12px; color: var(--text-dark); }

.plan-desc {
    font-size: 13px;
    color: var(--text-mid);
    line-height: 1.7;
}

/* ===================================
   COBERTURAS
   =================================== */
.coberturas-section {
    padding: 80px 0;
    background: var(--white);
}

.coberturas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cobertura-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    overflow: hidden;
    padding-bottom: 20px;
    text-align: center;
}

.cobertura-img-wrap {
    height: 200px;
    overflow: hidden;
    margin-bottom: 16px;
}

.cobertura-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cobertura-card h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    padding: 0 16px;
    color: var(--text-dark);
}

.cobertura-card p {
    font-size: 12.5px;
    color: var(--text-mid);
    padding: 0 16px;
    line-height: 1.65;
}

/* ===================================
   APP SECTION
   =================================== */
.app-section {
    background: #f0f0f0;
    padding: 0;
    overflow: visible;
    position: relative;
}

.app-inner {
    display: flex;
    align-items: flex-end;
    gap: 0;
    min-height: 300px;
    overflow: visible;
}

.app-phones {
    flex: 0 0 38%;
    max-width: 38%;
    display: flex;
    align-items: flex-end;
    padding-left: 80px;
    margin-top: -40px; /* sobresale hacia arriba */
    position: relative;
    z-index: 2;
}

.app-phones-img {
    width: 100%;
    max-width: 280px;
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 12px 32px rgba(0,0,0,0.18));
}

.app-text {
    flex: 1;
    padding: 48px 60px 48px 48px;
    align-self: center;
}

.app-text h2 {
    font-size: clamp(18px, 2vw, 26px);
    font-weight: 400;
    color: var(--text-mid);
    line-height: 1.4;
    margin-bottom: 14px;
}

.app-tagline {
    color: var(--blue);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
}

.app-link {
    color: var(--blue);
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    margin-bottom: 24px;
    display: inline-block;
}
.app-link:hover { text-decoration: underline; }

.app-stores {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.store-badge {
    height: 48px;
    width: auto;
    border-radius: 8px;
}

/* ===================================
   PROPUESTA + SLIDER
   =================================== */
.propuesta-section {
    padding: 80px 0;
    background: var(--white);
}

/* propuesta-inner defined below with slider section */

.propuesta-text h2 {
    font-size: clamp(20px, 2.4vw, 30px);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 32px;
    color: var(--text-dark);
}

.propuesta-item {
    margin-bottom: 24px;
}

.propuesta-item h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 8px;
}

.propuesta-item p {
    font-size: 16px;
    color: var(--text-mid);
    line-height: 1.7;
}

/* Slider header removed */

/* Slider */
.propuesta-slider-wrap {
    position: relative;
}

.slider-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.slider-viewport {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: block;
}

.slider-track {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    transition: transform 0.4s ease;
    will-change: transform;
}

.slide {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    position: relative;
    line-height: 0;
    overflow: hidden;
}

.slide-img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

/* Dots below the image */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 12px 20px 14px;
    background: var(--white);
}

/* Slider btns */
.slider-btn {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    background: var(--white);
    border: none;
    border-radius: 50%;
    width: 40px; height: 40px;
    font-size: 16px;
    color: var(--blue);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.18);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.slider-btn:hover { background: var(--blue); color: var(--white); }
.slider-prev { left: 10px; }
.slider-next { right: 10px; }

/* propuesta inner aligned center */
.propuesta-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}



.slider-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--gray-light);
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}
.slider-dot.active { background: var(--dark-blue); }

/* ===================================
   CENTROS / MAPA
   =================================== */
.centros-section {
    padding: 80px 0 60px;
    background: var(--white);
}

.centros-img-wrap {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.centros-img {
    width: 100%;
    object-fit: contain;
}

/* ===================================
   CTA FINAL
   =================================== */
.cta-section {
    background: var(--gray-bg);
    padding: 60px 0;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.cta-text h3 {
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 400;
}
.cta-text h3 strong { font-weight: 800; }

.cta-sub {
    font-size: 14px;
    margin: 8px 0 6px;
}

.cta-text p {
    font-size: 13px;
    color: var(--text-mid);
}
.cta-text em { font-style: normal; color: var(--text-light); }

.btn-cta-final {
    background: var(--dark-blue);
    font-size: 16px;
    padding: 18px 40px;
    white-space: nowrap;
}
.btn-cta-final:hover { background: #003a75; }

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: #d9d9d9;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 48px 24px 32px;
    gap: 32px;
    flex-wrap: wrap;
    max-width: 1380px;
    margin: 0 auto;
}

.footer-info p {
    font-size: 13px;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.6;
}
.footer-info strong { font-weight: 700; }

.footer-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}
.footer-logo { height: 72px; width: auto; object-fit: contain; }

.footer-social {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: flex-end;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--white);
    color: var(--dark-blue);
    font-size: 18px;
    transition: all 0.25s;
}
.social-icon:hover { background: var(--dark-blue); color: var(--white); }

.footer-legal {
    background: #c8c8c8;
    padding: 20px 0;
}
.footer-legal p {
    font-size: 10.5px;
    color: #555;
    line-height: 1.7;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-bottom {
    background: #c0c0c0;
    padding: 14px 0;
}
.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 24px;
}
.footer-bottom p {
    font-size: 11px;
    color: var(--text-mid);
}
/* Video desktop/mobile visibility */
.video-desktop-only { display: block; }
.video-mobile-only { display: none; }

/* Mobile video - full width, no container padding */
.video-mobile-only .video-wrapper {
    max-width: 100%;
    margin: 0;
}

/* Slider mobile/desktop visibility */
.slider-mobile-only { display: none; }
.slider-desktop-only { display: block; }

/* Signos logo */
.signos-logo { display: flex; align-items: center; }
.signos-img {
    height: 20px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* ===================================
   MODAL
   =================================== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: var(--white);
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 40px 36px 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
    position: absolute;
    top: 16px; right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-mid);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.modal-close:hover { color: var(--dark-blue); }

/* Form styles */
.form-header h1 {
    font-size: 22px;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 24px;
}
.form-header h1 strong { font-weight: 800; color: var(--dark-blue); }

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.required { color: red; margin-left: 2px; }

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-family: var(--font);
    font-size: 14px;
    transition: border-color 0.2s;
    color: var(--text-dark);
}

.form-group input:focus {
    outline: none;
    border-color: var(--blue);
}

.error-message {
    display: none;
    font-size: 11px;
    color: red;
    margin-top: 4px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 16px 0;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 2px;
    accent-color: var(--blue);
    flex-shrink: 0;
    width: 16px; height: 16px;
}

.checkbox-group label {
    font-size: 12px;
    color: var(--text-mid);
    line-height: 1.5;
}

.checkbox-group a {
    color: var(--blue);
    text-decoration: underline;
}

.recaptcha-container {
    margin: 16px 0;
}

.submit-button {
    width: 100%;
    background: var(--blue);
    color: var(--white);
    font-family: var(--font);
    font-weight: 700;
    font-size: 15px;
    padding: 14px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s;
    margin-top: 8px;
}

.submit-button:hover:not([disabled]) {
    background: var(--dark-blue);
}

.submit-button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

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

/* Tablet */
@media (max-width: 1024px) {
    .propuesta-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
    .coberturas-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .planes-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
    .coberturas-grid { grid-template-columns: repeat(2, 1fr); }
    .propuesta-inner { grid-template-columns: 1fr; gap: 40px; }
    .app-inner { flex-direction: column; text-align: center; }
    .app-stores { justify-content: center; }
    .cta-inner { flex-direction: column; text-align: center; align-items: center; }
    .footer-top { flex-direction: column; align-items: center; text-align: center; }
    .footer-bottom-inner { flex-direction: column; gap: 8px; text-align: center; padding: 0 16px; }
    .propuesta-slider-wrap { max-width: 520px; margin: 0 auto; }
}

/* Mobile hero: show/hide */
.hero-mobile { display: none; }
.hero-desktop { display: block; }

/* Mobile */
@media (max-width: 600px) {

    /* NAVBAR mobile: logo centrado, sin botón */
    .navbar { height: 120px; }
    .navbar-inner {
        justify-content: center;
        padding: 0 16px;
    }
    .navbar-logo {
        justify-content: center;
    }
    .logo-img { height: 100px; }
    .btn-afiliate { display: none; }

    /* HERO mobile */
    .hero {
        min-height: auto !important;
        padding-top: 0;
        padding-bottom: 0;
        background-position: center center !important;
        background-size: cover !important;
    }
    .hero-content { padding: 80px 16px 80px; }
    .hero-content-inner { max-width: 100%; }
    .hero-desktop { display: none; }
    .hero-mobile { display: block; }
    .hero-title { font-size: 26px; }
    .hero-subtitle { font-size: 16px; }
    .hero-list li { font-size: 16px; }
    .btn-cotiza { width: 100%; max-width: 340px; }

    /* VIDEO desktop/mobile - mobile video is vertical, no aspect-ratio constraint */
    .video-desktop-only { display: none; }
    .video-mobile-only { display: block; }
    .video-mobile-only .video-player {
        aspect-ratio: unset;
        object-fit: contain;
        height: auto;
        background: transparent;
    }

    /* SLIDER mobile arrows - at extreme edges, outside content area */
    .slider-mobile-only .slider-card { position: relative; }
    .slider-mobile-only .slider-btn {
        width: 32px;
        height: 32px;
        font-size: 13px;
        top: 40%;
        background: rgba(255,255,255,0.92);
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }
    .slider-mobile-only .slider-prev { left: 2px; }
    .slider-mobile-only .slider-next { right: 2px; }

    /* PLANES mobile */
    .planes-section { padding: 50px 0; }
    .planes-grid { max-width: 100%; }
    .plan-name-img { max-width: 200px; }

    /* COBERTURAS mobile */
    .coberturas-section { padding: 50px 0; }
    .coberturas-grid { grid-template-columns: 1fr; gap: 16px; }
    .cobertura-img-wrap { height: 160px; }

    /* APP mobile */
    .app-section { overflow: hidden; }
    .app-inner { flex-direction: column; gap: 0; align-items: center; min-height: auto; }
    .app-phones { flex: none; max-width: 100%; padding: 24px 20px 0; align-items: center; margin-top: 0; justify-content: center; }
    .app-phones-img { max-width: 220px; }
    .app-text { padding: 20px 20px 36px; text-align: center; }
    .app-stores { justify-content: center; }

    /* PROPUESTA mobile - slider arriba (mobile-only), texto abajo */
    .propuesta-section { padding: 50px 0; }
    .propuesta-inner { grid-template-columns: 1fr; gap: 32px; }
    .slider-mobile-only { display: block; margin-bottom: 32px; }
    .slider-desktop-only { display: none; }
    .propuesta-text h2 { font-size: 22px; }

    /* VIDEO mobile */
    .video-player { max-height: none; }

    /* CENTROS mobile */
    .centros-section { padding: 50px 0 30px; }

    /* CTA mobile */
    .cta-section { padding: 40px 0; }
    .btn-cta-final { width: 100%; max-width: 300px; }

    /* FOOTER mobile */
    .footer-top { padding: 32px 16px 24px; }
    .footer-info { text-align: center; }
    .footer-social { justify-content: center; }
    .footer-legal p { font-size: 10px; padding: 0 16px; }
    .footer-bottom-inner { padding: 0 16px; }

    /* MODAL mobile */
    .modal-box { padding: 32px 18px 24px; margin: 0 8px; }
}
