/* ESTILOS PARA PÁGINAS INDIVIDUALES DE NOTICIAS */

/* Navbar específico para páginas de noticias */
.news-navbar {
    background: rgba(255, 255, 255, 0.95);
    color: #495057;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(163, 134, 177, 0.15);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.news-navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.news-navbar-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #495057;
}

.news-navbar-logo {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    object-fit: cover;
    background: #ffffff;
    padding: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.news-navbar-title {
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'Quicksand', sans-serif;
    color: #495057;
    margin: 0;
    transition: color 0.3s ease;
}

.news-navbar-nav {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.news-navbar-nav a {
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    font-family: 'Quicksand', sans-serif;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.news-navbar-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #a386b1, #90d4bd);
    transition: width 0.4s ease;
    border-radius: 2px;
}

.news-navbar-nav a:hover {
    color: #a386b1;
}

.news-navbar-nav a:hover::after {
    width: 100%;
}

.news-navbar-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.news-navbar-toggle:hover {
    background: rgba(163, 134, 177, 0.1);
}

.news-navbar-toggle span {
    width: 25px;
    height: 3px;
    background: #6c757d;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animación del hamburger cuando está activo */
.news-navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.news-navbar-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.news-navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section - Imagen principal con título */
.news-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    margin-top: 90px; /* Espacio para el navbar fijo */
    z-index: 1;
}

.news-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.news-hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
}

.news-hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
    width: 100%;
}

.news-breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.news-breadcrumb a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-breadcrumb a:hover {
    color: #90d4bd;
}

.news-breadcrumb span {
    margin: 0 0.5rem;
}

.news-date {
    font-size: 1rem;
    color: #90d4bd;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.news-title {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: 'Quicksand', sans-serif;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: -1px;
}

.news-subtitle {
    font-size: 1.3rem;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 1.5rem;
    max-width: 800px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.news-author {
    font-size: 1rem;
    opacity: 0.9;
}

.news-author strong {
    color: #a386b1;
}

/* Contenido principal */
.news-content {
    background: #ffffff;
    position: relative;
    z-index: 1;
    /* IMPORTANTE: Asegurar que el contenido sea visible por defecto */
    opacity: 1;
}

.news-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
    /* IMPORTANTE: Asegurar que el contenedor sea visible */
    opacity: 1;
}

/* CORREGIR ANIMACIONES - Los elementos principales deben ser visibles por defecto */
.content-section {
    margin-bottom: 3rem;
    /* IMPORTANTE: Mantener visible por defecto, animar solo si JavaScript está disponible */
    opacity: 1;
    transform: none;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Solo aplicar animación inicial si JavaScript la va a manejar */
.content-section.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
}

.content-section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.content-section h2 {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Quicksand', sans-serif;
    color: #2d3748;
    margin-bottom: 1.5rem;
    border-left: 4px solid #a386b1;
    padding-left: 1rem;
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* Caja destacada para puntos importantes */
.highlight-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid rgba(163, 134, 177, 0.2);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    /* Visible por defecto */
    opacity: 1;
    transform: none;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.highlight-box.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
}

.highlight-box.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.highlight-box h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #a386b1;
    margin-bottom: 1rem;
}

.highlight-box ul {
    list-style: none;
    padding: 0;
}

.highlight-box li {
    font-size: 1rem;
    color: #4a5568;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
}

/* Galería de imágenes */
.news-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.gallery-item {
    /* Visible por defecto */
    opacity: 1;
    transform: none;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.gallery-item.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
}

.gallery-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

.image-caption {
    font-size: 0.9rem;
    color: #6c757d;
    text-align: center;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Caja de citas */
.quote-box {
    background: rgba(163, 134, 177, 0.05);
    border-left: 4px solid #a386b1;
    border-radius: 0 12px 12px 0;
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
    /* Visible por defecto */
    opacity: 1;
    transform: none;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.quote-box.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
}

.quote-box.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.quote-box::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: #a386b1;
    opacity: 0.3;
    font-family: serif;
}

.quote-box blockquote {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #2d3748;
    font-style: italic;
    margin: 0 0 1rem 0;
}

.quote-box cite {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 600;
}

/* Botones de acción */
.news-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 3rem 0;
    flex-wrap: wrap;
    /* Visible por defecto */
    opacity: 1;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Quicksand', sans-serif;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.action-btn.primary {
    background: linear-gradient(135deg, #a386b1 0%, #90d4bd 100%);
    color: white;
}

.action-btn.secondary {
    background: white;
    color: #6c757d;
    border: 2px solid #e2e8f0;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.action-btn.primary:hover {
    box-shadow: 0 8px 25px rgba(163, 134, 177, 0.4);
}

/* Noticias relacionadas */
.related-news {
    border-top: 1px solid #e2e8f0;
    padding-top: 3rem;
    margin-top: 3rem;
}

.related-news h2 {
    text-align: center;
    font-size: 2.2rem;
    color: #2d3748;
    margin-bottom: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.related-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(163, 134, 177, 0.1);
    /* Visible por defecto */
    opacity: 1;
    transform: none;
}

.related-item.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
}

.related-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(163, 134, 177, 0.2);
}

.related-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin: 1rem 1.5rem 0.5rem;
}

.related-item p {
    font-size: 0.95rem;
    color: #6c757d;
    margin: 0 1.5rem 1.5rem;
    line-height: 1.5;
}

/* Estilos para tiempo de lectura */
.reading-time {
    background: rgba(163, 134, 177, 0.1);
    color: #6c757d;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease-out 1s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive para navbar de noticias */
@media (max-width: 768px) {
    .news-navbar {
        padding: 1rem;
    }
    
    .news-navbar-container {
        flex-wrap: wrap;
    }
    
    .news-navbar-toggle {
        display: flex;
        border: 2px solid transparent;
        position: relative;
        z-index: 1001;
    }
    
    .news-navbar-toggle:active {
        background: rgba(163, 134, 177, 0.2);
        border-color: rgba(163, 134, 177, 0.3);
    }
    
    .news-navbar-nav {
        width: 100%;
        flex-direction: column;
        gap: 1.5rem;
        border-top: 1px solid rgba(163, 134, 177, 0.2);
        border-radius: 0 0 12px 12px;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .news-navbar-nav.active {
        max-height: 350px;
        opacity: 1;
    }
    
    .news-navbar-nav a {
        padding: 16px 20px;
        text-align: center;
        border-radius: 8px;
        margin: 0 1rem;
        transition: all 0.3s ease;
    }
    
    .news-navbar-nav a:hover {
        background: rgba(163, 134, 177, 0.1);
        color: #a386b1;
    }
    
    .news-navbar-logo {
        width: 40px;
        height: 40px;
    }
    
    .news-navbar-title {
        font-size: 1.3rem;
    }
    
    .news-hero {
        margin-top: 80px;
        height: 60vh;
        min-height: 400px;
    }
    
    .news-hero-content {
        padding: 0 1rem 2rem;
    }
    
    .news-title {
        font-size: 2.5rem;
    }
    
    .news-subtitle {
        font-size: 1.1rem;
    }
    
    .news-container {
        padding: 3rem 1rem;
    }
    
    .content-section h2 {
        font-size: 1.7rem;
    }
    
    .content-section p {
        font-size: 1rem;
    }
    
    .highlight-box {
        padding: 1.5rem;
    }
    
    .news-gallery {
        grid-template-columns: 1fr;
    }
    
    .news-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .news-navbar {
        padding: 0.8rem;
    }
    
    .news-navbar-logo {
        width: 35px;
        height: 35px;
    }
    
    .news-navbar-title {
        font-size: 1.2rem;
    }
    
    .news-hero {
        height: 50vh;
        min-height: 350px;
        margin-top: 70px;
    }
    
    .news-title {
        font-size: 2rem;
    }
    
    .news-subtitle {
        font-size: 1rem;
    }
    
    .news-container {
        padding: 2rem 1rem;
    }
    
    .quote-box {
        padding: 1.5rem;
    }
    
    .highlight-box {
        padding: 1.2rem;
    }
}

/* ===== ESTILOS ESPECÍFICOS PARA NOTICIA DE BIENVENIDA ===== */

/* Grilla de horarios */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.schedule-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.schedule-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #a386b1, #90d4bd);
    border-radius: 16px 16px 0 0;
}

.schedule-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(163, 134, 177, 0.15);
    border-color: rgba(163, 134, 177, 0.3);
}

.schedule-item h4 {
    color: #2d3748;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    font-family: 'Quicksand', sans-serif;
}

.schedule-item p {
    margin: 0.5rem 0;
    color: #4a5568;
    font-weight: 500;
}

.schedule-item strong {
    color: #a386b1;
}

/* Información de pagos */
.payment-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.payment-item {
    background: rgba(163, 134, 177, 0.05);
    border: 2px solid rgba(163, 134, 177, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.payment-item:hover {
    border-color: rgba(163, 134, 177, 0.3);
    background: rgba(163, 134, 177, 0.08);
}

.payment-item h4 {
    color: #a386b1;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    font-family: 'Quicksand', sans-serif;
}

.payment-item p {
    margin: 0.5rem 0;
    color: #2d3748;
}

.payment-item strong {
    font-size: 1.2rem;
    color: #a386b1;
}

/* Grilla de entrenadoras */
.coaches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.coach-info {
    background: linear-gradient(135deg, rgba(163, 134, 177, 0.05) 0%, rgba(144, 212, 189, 0.05) 100%);
    border: 1px solid rgba(163, 134, 177, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.coach-info::before {
    content: '👩‍🏫';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
}

.coach-info:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(163, 134, 177, 0.1);
    border-color: rgba(163, 134, 177, 0.2);
}

.coach-info h4 {
    color: #2d3748;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    font-family: 'Quicksand', sans-serif;
}

.coach-info p {
    margin: 0.3rem 0;
    color: #4a5568;
    font-size: 0.9rem;
}

.coach-info strong {
    color: #a386b1;
}

/* Timeline de pasos */
.steps-timeline {
    position: relative;
    margin: 2rem 0;
}

.steps-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #a386b1, #90d4bd);
    z-index: 1;
}

.step {
    display: flex;
    align-items: flex-start;
    margin: 2rem 0;
    position: relative;
}

.step-number {
    background: linear-gradient(135deg, #a386b1, #90d4bd);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-right: 2rem;
    box-shadow: 0 8px 25px rgba(163, 134, 177, 0.3);
    position: relative;
    z-index: 2;
    font-family: 'Quicksand', sans-serif;
}

.step-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(163, 134, 177, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-top: 0.5rem;
}

.step-content h4 {
    color: #2d3748;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    font-family: 'Quicksand', sans-serif;
}

.step-content p {
    color: #4a5568;
    margin: 0;
    line-height: 1.6;
}

/* Caja especial de información */
.highlight-box.info {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(155, 89, 182, 0.1) 100%);
    border-left: 4px solid #3498db;
}

/* Caja de cita */
.quote-box {
    background: linear-gradient(135deg, rgba(163, 134, 177, 0.1) 0%, rgba(144, 212, 189, 0.1) 100%);
    border: 2px solid rgba(163, 134, 177, 0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.quote-box::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 4rem;
    color: #a386b1;
    background: white;
    padding: 0 1rem;
    font-family: Georgia, serif;
}

.quote-box p:first-child {
    font-size: 1.2rem;
    font-style: italic;
    color: #2d3748;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.quote-box p:last-child {
    color: #a386b1;
    font-weight: 600;
    margin: 0;
}

/* Botones de acción mejorados */
.news-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 3rem 0 2rem 0;
}

.action-btn.tertiary {
    background: transparent;
    color: #6c757d;
    border: 2px solid #e9ecef;
}

.action-btn.tertiary:hover {
    background: #f8f9fa;
    border-color: #a386b1;
    color: #a386b1;
    transform: translateY(-2px);
}

/* Responsive para elementos específicos */
@media (max-width: 768px) {
    .schedule-grid,
    .payment-info,
    .coaches-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .steps-timeline::before {
        left: 20px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        margin-right: 1rem;
    }
    
    .step-content {
        padding: 1rem;
    }
    
    .news-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 360px) {
    .news-navbar-logo {
        display: none;
    }
}