/* Estilos del home (antes incrustados en index.php) */

* {
    font-family: 'Montserrat', sans-serif;
}

/* Navbar Brand - Tamaño base */
.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: clamp(1.35rem, 2.5vw, 1.65rem);
    white-space: nowrap;
    line-height: 1;
}

.navbar-brand .brand-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
    flex-shrink: 0;
}

.navbar-brand .brand-text {
    display: inline-flex;
    align-items: baseline;
    gap: 0.2rem;
}

.navbar-brand .brand-text span {
    font-size: inherit;
    line-height: 1;
}

.navbar-brand .brand-strong {
    font-weight: 900;
}

.navbar-brand .brand-light {
    font-weight: 500;
}

.hero {
    background: linear-gradient(135deg, #4f46e5 0%, #22c55e 100%);
    color: white;
    padding: 80px 0;

    /* 1. Fallback para navegadores muy antiguos (opcional) */
  min-height: 100vh;
  
  /* 2. La solución moderna */
  min-height: 100dvh;
  
  /* 3. Centrado de contenido habitual (opcional) */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.course-card {
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    position: relative;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.course-img {
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #4f46e5 0%, #22c55e 100%);
    position: relative;
}

.course-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 5px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.price-original {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: #6c757d;
    text-decoration: line-through;
}

.price-final {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: bold;
    color: #667eea;
}

.price-discount {
    font-size: clamp(1.6rem, 4.5vw, 2.2rem);
    font-weight: bold;
    color: #28a745;
}

.discount-badge {
    background: #28a745;
    color: white;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 0.9rem;
    font-weight: bold;
}

.rating-stars {
    color: #ffc107;
    font-size: 1rem;
}

.cupos-progress {
    height: 8px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 8px;
}

.cupos-bar {
    height: 100%;
    transition: width 0.3s;
}

.cupos-bar-low {
    background: #28a745;
}

.cupos-bar-medium {
    background: #ffc107;
}

.cupos-bar-high {
    background: #dc3545;
}

.cupos-info {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 5px;
}

.fecha-inicio {
    font-size: 0.9rem;
    color: #667eea;
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
}

footer {
    background: #343a40;
    color: white;
    padding: 80px 0;
    margin-top: 50px;
}

/* Sección de cita ancho completo */
.minimal-quote-section {
    background: linear-gradient(rgba(31, 41, 55, 0.9), rgba(31, 41, 55, 0.9)), url('https://derechointeligente.com.ar/assets/img/fondofrase.jpg');
    background-size: cover;
    background-attachment: fixed;
    color: white;
    text-align: center;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 60px 20px;
}

.minimal-quote-text {
    font-size: clamp(1.25rem, 4vw, 2rem);
    line-height: 1.4;
    max-width: 800px;
    margin: 0 auto;
}

.quote-mark {
    font-size: clamp(3rem, 10vw, 8rem);
    color: var(--secondary-color);
    opacity: 0.5;
    display: block;
    margin-bottom: -20px;
}

.hero {
    padding: 80px 0 !important;
}  
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: 12px !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    overflow: hidden;
}

.accordion-button {
    background-color: #fff;
    color: #212529;
    font-weight: 600;
    padding: 1.2rem;
    border-radius: 12px !important;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background-color: #e7f1ff;
    color: #0d6efd;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(13, 110, 253, 0.1);
}

.accordion-body {
    background-color: #fff;
    padding: 1.5rem;
    line-height: 1.6;
    color: #555;
}

.highlight-text {
    color: #0d6efd;
    font-weight: 600;
}

.section-padding {
    padding: 60px 0;
}

/* ========================================
   MEDIA QUERIES - MOBILE RESPONSIVE
   ======================================== */

/* Tablets y dispositivos medianos */
@media (max-width: 992px) {
    .hero {
        padding: 60px 0 !important;
    }

    .minimal-quote-section {
        padding: 50px 15px;
    }

    .section-padding {
        padding: 50px 0;
    }

    footer {
        padding: 25px 0;
    }
}

/* Tablets pequeñas */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: clamp(1.25rem, 4vw, 1.55rem);
        gap: 0.4rem;
    }

    .navbar-brand .brand-icon {
        width: 40px;
        height: 40px;
    }

    .hero {
        padding: 50px 0 !important;
    }

    .hero .display-4 {
        font-size: clamp(2.25rem, 7vw, 2.75rem) !important;
        font-weight: 900 !important;
    }

    .hero .lead {
        font-size: clamp(1.15rem, 4vw, 1.35rem) !important;
    }

    .minimal-quote-section {
        background-attachment: scroll;
        background-position: center center;
        padding: 40px 15px;
    }

    .quote-mark {
        margin-bottom: -15px;
    }

    .section-padding {
        padding: 40px 0;
    }

    .accordion-button {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .accordion-body {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .course-img {
        height: 180px;
    }

    .course-badge {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    footer {
        padding: 20px 0;
        margin-top: 40px;
    }
}

/* Dispositivos móviles */
@media (max-width: 576px) {
    .navbar-brand {
        font-size: clamp(1.15rem, 5.5vw, 1.45rem);
        gap: 0.35rem;
    }

    .navbar-brand .brand-icon {
        width: 36px;
        height: 36px;
        font-size: 1em;
    }

    /* Badge ADMIN más visible */
    .navbar-brand .badge {
        font-size: 0.7rem !important;
    }

    /* Hero section ajustado para móviles */
    .hero {
        padding: 40px 15px !important;
    }

    .hero .display-4 {
        font-size: clamp(2rem, 8vw, 3rem) !important;
        font-weight: 900 !important;
        line-height: 1.1 !important;
    }

    .hero .lead {
        font-size: clamp(1.1rem, 4.5vw, 1.4rem) !important;
    }

    .hero .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }

    /* Sección de cita optimizada */
    .minimal-quote-section {
        padding: 30px 15px;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    .minimal-quote-text {
        font-size: clamp(1.1rem, 5vw, 1.5rem) !important;
        line-height: 1.5;
        padding: 0 10px;
    }

    .quote-mark {
        margin-bottom: -10px;
    }

    /* Cards de cursos */
    .course-card {
        margin-bottom: 20px;
    }

    .course-img {
        height: 160px;
    }

    .course-badge {
        top: 8px;
        right: 8px;
        padding: 5px 10px;
        font-size: 0.8rem;
    }

    /* Precios responsive */
    .price-original {
        font-size: 1rem !important;
    }

    .price-final {
        font-size: 1.5rem !important;
    }

    .price-discount {
        font-size: 1.6rem !important;
    }

    .discount-badge {
        font-size: 0.8rem;
        padding: 3px 8px;
    }

    /* Secciones con padding reducido */
    .section-padding {
        padding: 30px 0;
    }

    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .bg-light.py-5 {
        padding: 2rem 0 !important;
    }

    /* Features section */
    .bg-light .col-md-4 {
        margin-bottom: 2rem;
    }

    .bg-light i[style*="font-size: 3rem"] {
        font-size: 2.5rem !important;
    }

    .bg-light h4 {
        font-size: 1.25rem;
        margin-top: 1rem !important;
    }

    .bg-light p {
        font-size: 0.9rem;
    }

    /* Accordion FAQ */
    .faq-container {
        padding: 0 15px;
    }

    .accordion-button {
        padding: 0.85rem;
        font-size: 0.9rem;
    }

    .accordion-body {
        padding: 0.85rem;
        font-size: 0.85rem;
    }

    /* Footer */
    footer {
        padding: 20px 15px;
        margin-top: 30px;
        font-size: 0.9rem;
    }

    /* Estrellas de rating */
    .rating-stars {
        font-size: 0.9rem;
    }

    /* Info de cupos */
    .cupos-info {
        font-size: 0.8rem;
    }

    .fecha-inicio {
        font-size: 0.85rem;
        padding: 4px 8px;
    }

    /* Container con padding lateral */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Dispositivos móviles muy pequeños */
@media (max-width: 375px) {
    .hero {
        padding: 30px 10px !important;
    }

    .hero .display-4 {
        font-size: 1.5rem !important;
    }

    .hero .lead {
        font-size: 0.95rem !important;
    }

    .minimal-quote-section {
        padding: 25px 10px;
    }

    .minimal-quote-text {
        font-size: 1rem !important;
    }

    .course-img {
        height: 140px;
    }

    .section-padding {
        padding: 25px 0;
    }

    .py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    h2 {
        font-size: 2rem !important;
        font-weight: 800 !important;
    }

    h3 {
        font-size: 1.6rem !important;
        font-weight: 700 !important;
    }

    h4 {
        font-size: 1.3rem !important;
        font-weight: 600 !important;
    }

    h5 {
        font-size: 1.1rem !important;
    }
}

/* ========================================
   ESTILOS RESPONSIVE PARA CURSO.PHP
   ======================================== */

/* Estilos base para curso.php */
.course-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    position: relative;
}

.course-badge-large {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.2rem;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    font-weight: bold;
}

.price-box {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    padding: 30px;
    position: sticky;
    top: 20px;
}

.price-amount {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: bold;
    color: #667eea;
}

.price-discount {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: bold;
    color: #28a745;
}

.discount-savings {
    background: #28a745;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: clamp(0.85rem, 2vw, 1rem);
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
}

.course-header .rating-stars {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
}

.cupos-alert {
    border-left: 4px solid;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}

.cupos-alert-danger {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.cupos-alert-warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.cupos-alert-info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.fecha-inicio-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #667eea;
    text-align: center;
    margin-bottom: 20px;
}

.benefit-card {
    background: white;
    border: none;
    padding: 30px;
    border-radius: 12px;
    height: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.icon-box {
    width: 60px;
    height: 60px;
    background-color: #e0e7ff;
    color: #667eea;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* Media queries para curso.php - Tablets */
@media (max-width: 992px) {
    .course-header {
        padding: 50px 0;
    }

    .price-box {
        margin-top: 30px;
        position: relative;
        top: 0;
    }

    .benefit-card {
        padding: 25px;
        margin-bottom: 20px;
    }
}

/* Media queries para curso.php - Tablets pequeñas */
@media (max-width: 768px) {
    .course-header {
        padding: 40px 15px;
    }

    .course-badge-large {
        top: 15px;
        right: 15px;
        font-size: 1rem;
        padding: 10px 18px;
    }

    .course-header .display-4 {
        font-size: clamp(2.25rem, 6.5vw, 2.75rem) !important;
        font-weight: 900 !important;
    }

    .course-header .lead {
        font-size: clamp(1.1rem, 3.5vw, 1.3rem) !important;
    }

    .price-box {
        padding: 25px;
    }

    .fecha-inicio-box {
        padding: 12px;
    }

    .feature-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .benefit-card {
        padding: 20px;
    }

    .icon-box {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
}

/* Media queries para curso.php - Móviles */
@media (max-width: 576px) {
    .course-header {
        padding: 30px 15px;
    }

    .course-header .breadcrumb {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }

    .course-badge-large {
        position: relative;
        top: 0;
        right: 0;
        display: inline-block;
        margin-bottom: 15px;
        font-size: 0.9rem;
        padding: 8px 15px;
    }

    .course-header .display-4 {
        font-size: 2rem !important;
        font-weight: 900 !important;
        line-height: 1.1 !important;
        margin-bottom: 15px;
    }

    .course-header .lead {
        font-size: 1.1rem !important;
    }

    .course-header .rating-stars {
        font-size: 1.1rem;
    }

    .price-box {
        padding: 20px;
        margin-top: 25px;
    }

    .price-amount {
        font-size: 2rem !important;
    }

    .price-original {
        font-size: 1.2rem !important;
    }

    .discount-savings {
        font-size: 0.9rem;
        padding: 6px 12px;
    }

    .fecha-inicio-box {
        padding: 10px;
        font-size: 0.9rem;
    }

    .fecha-inicio-box i {
        font-size: 1.3rem !important;
    }

    .fecha-inicio-box span {
        font-size: 1.1rem !important;
    }

    .cupos-alert {
        padding: 12px;
        font-size: 0.9rem;
    }

    .cupos-progress {
        height: 10px;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .card h3 {
        font-size: 1.75rem;
        font-weight: 800 !important;
    }

    .card h5 {
        font-size: 1.25rem;
        font-weight: 700 !important;
    }

    .benefit-card {
        padding: 20px;
        margin-bottom: 15px;
    }

    .icon-box {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    /* Modal ajustado para móviles */
    .modal-dialog {
        margin: 10px;
    }

    .modal-body {
        padding: 15px;
    }

    .modal-body .alert {
        font-size: 0.9rem;
        padding: 10px;
    }

    .modal-body .form-label {
        font-size: 0.9rem;
    }

    .modal-body .form-control {
        font-size: 0.9rem;
    }

    .modal-body .btn {
        font-size: 0.9rem;
    }

    .modal-title {
        font-size: 1.1rem;
    }
}

/* Móviles muy pequeños - curso.php */
@media (max-width: 375px) {
    .course-header {
        padding: 25px 10px;
    }

    .course-header .display-4 {
        font-size: 1.5rem !important;
    }

    .course-header .lead {
        font-size: 0.95rem !important;
    }

    .course-badge-large {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    .price-box {
        padding: 15px;
    }

    .price-amount {
        font-size: 1.75rem !important;
    }

    .fecha-inicio-box {
        padding: 8px;
        font-size: 0.85rem;
    }

    .card h3 {
        font-size: 1.35rem;
    }

    .feature-icon {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }

    .benefit-card {
        padding: 15px;
    }

    .icon-box {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .modal-body {
        padding: 12px;
    }

    .btn-lg {
        font-size: 0.95rem;
        padding: 0.65rem 1.25rem;
    }
}

/* ===========================================
   AJUSTES DE ESPACIADO ENTRE SECCIONES
   =========================================== */

/* Eliminar espacio entre secciones con mismo fondo */
section.bg-light + section.bg-light {
    padding-top: 0 !important;
}

/* Reducir margen superior de Features cuando viene después de FAQ */
section.bg-light:last-of-type {
    margin-bottom: 0;
}

/* ===========================================
   SECCIÓN BIO - Estilo Premium con Foto
   =========================================== */

.bio-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    min-height: 650px;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Efecto de brillo sutil en el fondo */
.bio-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

/* Contenedor de la imagen con difuminado */
.bio-image-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    z-index: 2;
    overflow: hidden;
}

.bio-image-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 20%; /* Ajusta para centrar el rostro */
    background-repeat: no-repeat;

    /* Difuminado progresivo hacia la izquierda */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 15%, rgba(0,0,0,0.7) 35%, black 50%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 15%, rgba(0,0,0,0.7) 35%, black 50%);

    /* Efecto de zoom sutil al hover (solo en desktop) */
    transition: transform 8s ease-out;
}

@media (min-width: 992px) {
    .bio-section:hover .bio-image-bg {
        transform: scale(1.05);
    }
}

/* Contenido de texto - asegurar que esté por encima */
.bio-content {
    position: relative;
    z-index: 10;
}

/* Subtítulo con espaciado de letras */
.bio-eyebrow {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #667eea;
    margin-bottom: 1.5rem;
    display: inline-block;
    position: relative;
    padding-left: 20px;
}

.bio-eyebrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 2px;
    background: linear-gradient(to right, #667eea, #22c55e);
}

/* Título principal */
.bio-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    color: white;
    line-height: 1.2;
    margin-bottom: 2rem;
}

/* Gradiente en el nombre */
.bio-name-highlight {
    background: linear-gradient(135deg, #667eea 0%, #22c55e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    position: relative;
}

/* Animación sutil del gradiente */
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.bio-name-highlight {
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

/* Texto de biografía */
.bio-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2.5rem;
}

.bio-text p {
    margin-bottom: 1.5rem;
}

.bio-text strong {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

/* Cita destacada */
.bio-quote {
    border-left: 4px solid #667eea;
    padding-left: 1.5rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.2rem;
    position: relative;
    margin: 2rem 0;
}

.bio-quote::before {
    content: '"';
    position: absolute;
    left: -0.25rem;
    top: -1rem;
    font-size: 4rem;
    color: rgba(102, 126, 234, 0.2);
    font-family: Georgia, serif;
}

/* Botones de acción */
.bio-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.bio-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.bio-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
}

.bio-btn-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.bio-btn-secondary:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    color: white;
}

/* CTA flotante mobile en curso.php */
.mobile-floating-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #0b1226 0%, #101a33 100%);
    padding: 12px 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.35);
    z-index: 1040;
}

.mobile-floating-cta .btn {
    white-space: nowrap;
}

@media (max-width: 992px) {
    body.has-mobile-cta {
        padding-bottom: 100px;
    }
}

/* Firma o metadata */
.bio-signature {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 1rem;
}

/* ===========================================
   RESPONSIVE - BIO SECTION
   =========================================== */

@media (max-width: 991px) {
    .bio-section {
        min-height: auto;
        padding: 80px 0;
    }

    /* En tablets, reducir tamaño de imagen */
    .bio-image-container {
        width: 45%;
        opacity: 0.3;
    }

    .bio-image-bg {
        -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 30%, black 60%);
        mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 30%, black 60%);
    }
}

@media (max-width: 768px) {
    .bio-section {
        padding: 60px 0;
    }

    /* En móvil, imagen de fondo más visible y centrada */
    .bio-image-container {
        width: 100%;
        height: 100%;
        opacity: 0.25;
        left: 0;
        right: 0;
    }

    .bio-image-bg {
        background-position: 60% center;
        background-size: cover;
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.4) 20%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.4) 80%, transparent 100%);
        mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.4) 20%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.4) 80%, transparent 100%);
    }

    .bio-title {
        font-size: 2.5rem;
        font-weight: 900 !important;
    }

    .bio-text {
        font-size: 1rem;
    }

    .bio-quote {
        font-size: 1.05rem;
        padding-left: 1rem;
    }

    .bio-actions {
        flex-direction: column;
        width: 100%;
    }

    .bio-btn-primary,
    .bio-btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .bio-section {
        padding: 50px 0;
    }

    .bio-eyebrow {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    .bio-title {
        font-size: 2.25rem;
        font-weight: 900 !important;
        line-height: 1.15 !important;
        margin-bottom: 1.5rem;
    }

    .bio-text {
        font-size: 1rem;
        line-height: 1.7;
    }
}

/* ===========================================
   FOOTER NUEVO - ESTILOS ADICIONALES
   =========================================== */
footer {
    position: relative;
    overflow: hidden;
    margin-top: 0 !important; /* Forzar que no haya espacio entre bio y footer */
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(102, 126, 234, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Estilos para el iframe de Substack en el footer */
footer iframe[src*="substack.com/embed"] {
    border-radius: 8px;
    overflow: hidden;
    display: block; /* Elimina espacio inferior del iframe */
}

/* Contenedor del iframe con mejor estilo */
footer .substack-embed-container {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden; /* Asegura que el iframe respete el border-radius */
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1); /* Sombra interior sutil */
    transition: all 0.3s ease;
}

/* Efecto hover en el contenedor del iframe */
footer .substack-embed-container:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1), 0 0 15px rgba(102, 126, 234, 0.15);
}

/* Footer responsive adjustments */
@media (max-width: 991px) {
    footer {
        margin-top: 0 !important; /* Eliminar espacio en tablets también */
    }

    footer > div:first-child {
        padding: 40px 0 30px 0 !important;
    }

    footer h5 {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 768px) {
    footer {
        margin-top: 0 !important; /* Eliminar espacio en móviles también */
    }

    footer > div:first-child {
        padding: 35px 0 25px 0 !important;
    }

    footer .col-lg-4,
    footer .col-lg-3,
    footer .col-lg-5 {
        text-align: center !important;
    }

    footer .col-lg-4 .mb-3,
    footer .col-lg-4 .d-flex {
        justify-content: center !important;
    }

    footer ul {
        display: inline-block;
        text-align: left;
    }
}

@media (max-width: 576px) {
    footer {
        margin-top: 0 !important; /* Eliminar espacio en móviles pequeños también */
    }

    footer > div:first-child {
        padding: 30px 0 20px 0 !important;
    }

    footer > div:last-child {
        padding: 20px 0 !important;
    }

    footer h5 {
        font-size: 1rem !important;
        margin-bottom: 20px !important;
    }

    footer p {
        font-size: 0.9rem !important;
    }

    footer .col-md-6 {
        text-align: center !important;
    }
}

/* Corrección para móviles (Navbar Brand) */
@media (max-width: 576px) {
    
    /* 1. Apuntamos directo a los spans hijos para ganar especificidad */
    .navbar-brand .brand-strong,
    .navbar-brand .brand-light {
        font-size: 1.3rem !important; /* Aumenta este valor a tu gusto */
        line-height: 1.1;             /* Evita que se vea muy separado verticalmente */
    }

    /* 2. Ajustamos el icono proporcionalmente */
    .navbar-brand .brand-icon {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }
    
    /* 3. Ajuste fino de espaciado si es necesario */
    .navbar-brand {
        gap: 0.5rem; /* Espacio entre icono y texto */
    }
}
