/* Estilos para la pagina del Reto de 30 dias */

/* Banner principal */
.banner-reto {
    height: 100vh;
    background: linear-gradient(rgba(0, 1, 3, 0.7), rgba(0, 0, 0, 0.8)), url(../img/Reto/gym_2.png);
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.contenido-banner {
    max-width: 800px;
    padding: 0 20px;
}

.banner-reto h1 {
    font-size: 5rem;
    margin-bottom: 20px;
    letter-spacing: 3px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.banner-reto p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #ddd;
}

.objetivo-seleccionado {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
    display: inline-block;
}

.objetivo-seleccionado h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Mensaje de éxito */
.mensaje-exito {
    background-color: rgba(39, 174, 96, 0.9);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 80%;
    animation: fadeIn 0.5s ease;
}

.mensaje-exito i {
    margin-right: 10px;
    font-size: 24px;
}

.mensaje-exito p {
    margin: 0;
    font-size: 1.1rem;
}

/* Progreso del reto */
.reto-info {
    margin: 30px 0;
    display: flex;
    justify-content: center;
}

.reto-progreso {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.progreso-circular {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    --progreso: 0;
    --circumference: 283;
    --offset: 283;
}

.progreso-circular::before {
    content: '';
    position: absolute;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: #1f283e;
}

.progreso-circular::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: conic-gradient(#ff1133 0% calc(var(--progreso) * 1%), transparent calc(var(--progreso) * 1%) 100%);
    mask: radial-gradient(transparent 60px, black 60px);
    -webkit-mask: radial-gradient(transparent 60px, black 60px);
}

.progreso-valor {
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    z-index: 1;
}

.progreso-texto p {
    font-size: 1.2rem;
    color: #fff;
    margin: 0;
}

/* Secciones generales */
section {
    padding: 100px 0;
}

.contenedor {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.titulo-seccion {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.titulo-seccion .numero {
    font-size: 5rem;
    font-weight: bold;
    color: #ff1133;
    margin-right: 20px;
}

.titulo-seccion h2 {
    font-size: 3rem;
    color: #1f283e;
}

/* Programa */
.programa-seccion {
    background-color: #f5f5f5;
}

.descripcion-programa, 
.descripcion-productos, 
.descripcion-rutinas, 
.descripcion-nutricion, 
.descripcion-testimonios {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
}

.tabs-container {
    margin-top: 40px;
}

.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.tab-btn {
    background-color: #1f283e;
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:first-child {
    border-radius: 5px 0 0 5px;
}

.tab-btn:last-child {
    border-radius: 0 5px 5px 0;
}

.tab-btn.active {
    background-color: #ff1133;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.programa-info {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.programa-img {
    width: 40%;
    padding: 20px;
}

.programa-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
}

.programa-texto {
    width: 60%;
    padding: 30px;
}

.programa-texto h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #1f283e;
}

.programa-texto p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.beneficios-lista {
    list-style: none;
}

.beneficios-lista li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.beneficios-lista i {
    color: #ff1133;
    margin-right: 10px;
}

/* Productos */
.productos-seccion {
    background-color: #fff;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.producto-card {
    background-color: #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.producto-card:hover {
    transform: translateY(-10px);
}

.producto-img {
    height: 200px;
    overflow: hidden;
}

.producto-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    cursor: pointer;
}

.producto-img img:hover {
    transform: scale(1.1);
}

.producto-info {
    padding: 20px;
}

.producto-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #1f283e;
}

.producto-info p {
    margin-bottom: 15px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
}

.galeria-producto {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.galeria-producto img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.galeria-producto img:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.btn-producto {
    background-color: #1f283e;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.btn-producto:hover {
    background-color: #ff1133;
}

/* Modal para ampliar imágenes */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-contenido {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.cerrar-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Rutinas - Mejoras sutiles */
.rutinas-seccion {
    background-color: #f8f9fa;
}

.calendario-rutina {
    margin: 30px 0;
}

.semana {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.dia {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dia::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff1133, #ff3355);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.dia:hover {
    transform: translateY(-5px);
    border-color: #ff1133;
    box-shadow: 0 8px 25px rgba(255, 17, 51, 0.15);
}

.dia:hover::before {
    transform: scaleX(1);
}

.dia.active {
    background: linear-gradient(135deg, #ff1133 0%, #ff3355 100%);
    color: white;
    border-color: #ff1133;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 17, 51, 0.3);
}

.dia.active::before {
    transform: scaleX(1);
    background: rgba(255, 255, 255, 0.3);
}

.dia.descanso {
    background: linear-gradient(135deg, #6c757d 0%, #868e96 100%);
    color: white;
    border-color: #6c757d;
}

.dia.descanso:hover {
    border-color: #495057;
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.15);
}

.dia.descanso.active {
    background: linear-gradient(135deg, #495057 0%, #6c757d 100%);
    box-shadow: 0 10px 30px rgba(108, 117, 125, 0.3);
}

.dia h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    letter-spacing: 0.5px;
}

.dia p {
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.9;
    line-height: 1.3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.dia p i {
    font-size: 1rem;
    opacity: 0.8;
}

.dia.active h4,
.dia.active p {
    color: white;
}

/* Detalle de rutina mejorado */
.detalle-rutina {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detalle-rutina h3 {
    color: #6c757d;
    text-align: center;
    font-size: 1.2rem;
    margin: 0;
    font-weight: 500;
}

.rutina-detalle-activa {
    animation: fadeInUp 0.5s ease;
}

.rutina-detalle-activa h3 {
    color: #1f283e;
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
}

.rutina-detalle {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.rutina-img {
    flex: 0 0 300px;
}

.rutina-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.rutina-pasos {
    flex: 1;
}

.rutina-pasos h4 {
    color: #ff1133;
    font-size: 1.1rem;
    margin: 20px 0 10px 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rutina-pasos ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.rutina-pasos li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f4;
    position: relative;
    padding-left: 20px;
    transition: all 0.2s ease;
}

.rutina-pasos li:hover {
    background-color: #f8f9fa;
    padding-left: 25px;
}

.rutina-pasos li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #ff1133;
    font-size: 0.8rem;
}

.nota-importante {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.nota-importante strong {
    color: #856404;
}

/* Nutrición */
.nutricion-seccion {
    background-color: #fff;
}

.plan-nutricion {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 30px;
}

.nutricion-img {
    flex: 1;
    max-width: 500px;
    height: 400px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.nutricion-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

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

.nutricion-info {
    flex: 1;
    padding: 20px 0;
}

.nutricion-info h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #1f283e;
    font-weight: 700;
    line-height: 1.2;
}

.nutricion-lista {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.nutricion-lista li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #ff1133;
    transition: all 0.3s ease;
}

.nutricion-lista li:hover {
    background-color: #f0f0f0;
    transform: translateX(5px);
}

.nutricion-lista li i {
    color: #ff1133;
    margin-right: 15px;
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.nutricion-lista li strong {
    color: #1f283e;
    font-weight: 600;
}

.btn-plan {
    background: linear-gradient(45deg, #ff1133, #ff3355);
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(255, 17, 51, 0.3);
}

.btn-plan:hover {
    background: linear-gradient(45deg, #e60f2e, #ff1133);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 17, 51, 0.4);
}

/* Testimonios */
.testimonios-seccion {
    background-color: #f5f5f5;
}

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonio-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.testimonio-card:hover {
    transform: translateY(-5px);
}

.testimonio-img {
    height: 200px;
    overflow: hidden;
}

.testimonio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonio-info {
    padding: 20px;
    text-align: center;
}

.testimonio-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #1f283e;
    font-weight: 700;
}

.resultado {
    color: #ff1133;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 15px;
}

.testimonio-texto {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    font-style: italic;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Media Queries */
@media screen and (max-width: 768px) {
    .banner-reto h1 {
        font-size: 3.5rem;
    }
    
    .programa-info {
        flex-direction: column;
    }
    
    .programa-img, .programa-texto {
        width: 100%;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
        border-radius: 5px;
        margin-bottom: 5px;
    }
    
    .tab-btn:first-child, .tab-btn:last-child {
        border-radius: 5px;
    }
    
    /* Rutinas responsive */
    .semana {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .dia {
        padding: 15px 10px;
        min-height: 80px;
    }
    
    .dia h4 {
        font-size: 1rem;
    }
    
    .dia p {
        font-size: 0.8rem;
    }
    
    .rutina-detalle {
        flex-direction: column;
        gap: 20px;
    }
    
    .rutina-img {
        flex: none;
        max-width: 100%;
    }
    
    .rutina-img img {
        height: 150px;
    }
    
    /* Responsive para Nutrición */
    .plan-nutricion {
        flex-direction: column;
        gap: 30px;
    }
    
    .nutricion-img {
        max-width: 100%;
        height: 300px;
    }
    
    .nutricion-info h3 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .nutricion-lista li {
        flex-direction: column;
        text-align: center;
    }
    
    .nutricion-lista li i {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    /* Testimonios responsive */
    .testimonios-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .testimonio-img {
        height: 250px;
    }
}