@import url('https://fonts.googleapis.com/css2?family=Geist:wght@100..900&display=swap');

/* ===== HERO FULLSCREEN PRINCIPAL ===== */
.hero-fullscreen {
    position: relative;
    /* Tu imagen real abarcando absolutamente todo el fondo */
    background: url('/assets/img/hero.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 1500px;
    padding-left: 80px;
    padding-right: 80px;
    padding-top: 120px;
    box-sizing: border-box;
    overflow: hidden;
}

/* Capa de contraste para proteger la lectura de los textos */
.hero-overlay-dark {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.6) 30%, rgba(10, 26, 53, 0.6) 70%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

/* Contenedor Maestro Flotante */
.hero-container-master {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 40px 140px 40px;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
}

/* ===== BLOQUE DE TEXTOS (IZQUIERDA) ===== */
.hero-text-block {
    width: 100%;
    max-width: 540px;
}

.hero-meta-tag {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.hero-tag-text {
    color: #b4935a;
    /* Dorado */
    font-size: 14px;
    letter-spacing: 1px;
    font-weight: 600;
    display: block;
    margin-bottom: 20px;
}

.hero-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-char.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* el espacio también necesita display inline-block */
.hero-char--space {
    display: inline-block;
    width: 0.28em;
}

.hero-main-heading {
    font-size: clamp(30px, 3.4vw, 45px);
    font-weight: 300;
    line-height: 1.1;
    color: #ffffff;
    margin: 0 0 25px 0;
    letter-spacing: -0.03em;
    font-family: "Geist", sans-serif;
    font-optical-sizing: auto;
}

.blue-text {
    color: #77858b;
    /* Crea un aura blanca difuminada directamente detrás del texto */
    text-shadow: 0 0 12px rgba(42, 37, 37, 0.693),
        0 0 4px rgb(0, 0, 0);
}

/* Contenedor maestro que alinea la línea roja y el bloque de cristal */
.hero-specs-container {
    display: flex;
    align-items: stretch;
    /* Hace que la línea roja mida lo mismo que la tarjeta */
    gap: 20px;
    /* Espacio entre la línea roja y el recuadro */
    margin-bottom: 40px;
    max-width: 620px;
    /* Controla el ancho máximo para mantener buena lectura */
    width: 100%;
}

/* Línea roja vertical a la izquierda */
.specs-vertical-line {
    width: 3px;
    background-color: #d01341;
    /* Rojo carmín idéntico a la captura */
    border-radius: 2px;
    flex-shrink: 0;
}

/* Tarjeta con efecto cristal (Glassmorphism) */
.hero-specs-table-glass {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.06);
    /* Fondo blanco ultra sutil */
    backdrop-filter: blur(16px);
    /* El efecto que desenfoca la imagen de fondo */
    -webkit-backdrop-filter: blur(16px);
    /* Compatibilidad para Safari */
    border: 1px solid rgba(255, 255, 255, 0.12);
    /* Borde fino brillante */
    border-radius: 8px;
    /* Esquinas ligeramente suavizadas */
    padding: 10px 24px;
    /* Espaciado interno premium */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    /* Sombra suave para dar profundidad */
    overflow: hidden;
}

/* Filas divisorias internas */
.spec-row {
    display: flex;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    /* Líneas sutiles entre filas */
    align-items: flex-start;
    gap: 30px;
    opacity: 0;
    transform: translateX(-32px);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.5s ease;
}

.spec-row.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Eliminar el borde inferior en la última fila */
.spec-row:last-child {
    border-bottom: none;
}

/* Etiquetas (SPECIALTY, TECHNIQUE, FOCUS) */
.spec-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #77858b;
    /* Azul brillante y nítido para resaltar en el cristal */
    width: 100px;
    flex-shrink: 0;
    padding-top: 2px;
    text-transform: uppercase;
}

/* Textos descriptivos en blanco nativo */
.spec-value {
    font-size: 14px;
    line-height: 1.5;
    color: #ffffff;
    /* Máxima legibilidad */
    margin: 0;
}

/* Resaltado dorado/dorado satinado dentro de los textos */
.spec-value strong {
    color: #77858b;
    /* Tu color var(--principal) o dorado elegante */
    font-weight: 600;
}

/* ===== AJUSTE RESPONSIVO PARA MÓVILES ===== */
@media (max-width: 640px) {
    .hero-specs-container {
        gap: 12px;
    }

    .hero-specs-table-glass {
        padding: 5px 16px;
    }

    .spec-row {
        flex-direction: column;
        /* Se apila en pantallas pequeñas */
        gap: 6px;
        padding: 14px 0;
    }

    .spec-label {
        width: 100%;
    }
}

/* Botón CTA */
.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #2d4f95;
    color: #ffffff;
    text-decoration: none;
    padding: 16px 32px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 4px;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.hero-cta-btn:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
}

/* ===== BLOQUE TARJETA (DERECHA) ===== */
.hero-badge-block {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.doctor-badge-card {
    background: linear-gradient(160deg, #1a2744 0%, #0d1628 60%, #0a1020 100%);
    border-left: 4px solid #d01341;
    padding: 22px 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    width: 320px;

    transform: translateX(80px);
    opacity: 0;
    transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.5s ease;
}

.doctor-badge-card.is-visible {
    transform: translateX(0);
    opacity: 1;
}

/* ── COLUMNA DERECHA: badge + trust apilados ───────────── */
.hero-right-column {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
}

/* badge card — quita .hero-badge-block, ahora vive aquí */
.doctor-badge-card {
    width: 320px;
    background-color: #061022;
    border-left: 4px solid #d01341;
    padding: 22px 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: translateX(80px);
    opacity: 0;
    transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.5s ease;
}

.doctor-badge-card.is-visible {
    transform: translateX(0);
    opacity: 1;
}

.doctor-badge-card h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.doctor-badge-card p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 11px;
    letter-spacing: 0.5px;
    margin: 0;
}

/* trust bar — ancho igual al badge */
.trust-bar-glass {
    width: 520px;
    display: flex;
    align-items: center;

    background: rgba(8, 20, 45, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 4px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    padding: 18px 24px;
    margin-top: 300px;
    position: relative;
    overflow: hidden;

    /* entra con delay después del badge */
    opacity: 0;
    transform: translateY(30px);
    /* abajo hacia arriba */
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s,
        opacity 0.6s ease 0.2s;
}

.trust-bar-glass.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.trust-bar-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2) 40%,
            rgba(255, 255, 255, 0.2) 60%,
            transparent);
    pointer-events: none;
}

.tb-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.tb-num {
    font-size: 32px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -0.03em;
}

.tb-label {
    font-size: 11px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.55);
}

.tb-divider {
    width: 1px;
    height: 36px;
    background: linear-gradient(to bottom,
            transparent,
            rgba(255, 255, 255, 0.15) 30%,
            rgba(255, 255, 255, 0.15) 70%,
            transparent);
    flex-shrink: 0;
    margin: 0 18px;
}

.tb-avatars-block {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.tb-avatars {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.tb-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: -10px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    background: #1a2a4a;
    transition: transform 0.2s ease;
}

.tb-avatar:first-child {
    margin-left: 0;
}

.tb-avatar:hover {
    transform: scale(1.12) translateY(-2px);
    position: relative;
    z-index: 10;
}

.tb-avatars-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tb-trusted-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.tb-trusted-count {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 992px) {
    .hero-right-column {
        align-items: flex-start;
        width: 100%;
    }

    .doctor-badge-card,
    .trust-bar-glass {
        width: 100%;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero-container-master {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 40px;
        padding-bottom: 40px;
    }

    .hero-text-block,
    .hero-badge-block {
        width: 100%;
        max-width: none;
    }

    .hero-badge-block {
        justify-content: flex-start;
    }

    .hero-stats-bar {
        grid-template-columns: 1fr;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: 20px 40px;
    }
}