:root {
    --primary-color: #3fb6f5;
    --secondary-color: #000000;
    --accent-color: #FF6584;
    --text-color: #e6e5d2;
    --dark-bg: #0F0F13;
    --card-bg: #0a1c39;
    --gradient-primary: linear-gradient(135deg, #3fb6f5 0%, #1e70b5 100%);
    --gradient-secondary: linear-gradient(135deg, #0a1c39 0%, #081022 100%);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --whatsapp-green: #25D366;
    --whatsapp-dark: #075E54;
    --whatsapp-light: #DCF8C6;
    --whatsapp-chat-bg: #E5DDD5;
    --primary: #ec994b;
    --white: #ffffff;
    --bg: #050678;
    --brown-glow: 0 0 10px #663300,
                 0 0 20px #663300,
                 0 0 30px #663300;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--dark-bg);
}

/* Header y Navegación */
.header {
    background-color: var(--secondary-color);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.1rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.underline {
  
  
    display: inline-block;
    position: relative;
  }
  
  .underline:after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 4px;
    bottom: 0;
    left: 0;
    background-color: #ffffff;
    transform-origin: bottom right;
    transition: transform 0.6s ease-out;
    color: #ffffff;
  }
  
  .underline:hover:after {
      color: #ffffff;
      
    transform: scaleX(1);
    transform-origin: bottom left;
    
  }
   .underline.active:after {
    transform: scaleX(1);
    color: #ffffff;
  }

.auth-buttons {
    display: flex;
    gap: 1rem;
}

/* Botones */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #ffffff;
    color: #000000;
    border: 1px solid #000000;
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: var(--text-color);
}

.btn-large {
    padding: 0.8rem 1rem;
    font-size: 1.1rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    opacity: 0.9;
}

/* Hero Section */
@keyframes breathing-vertical {
    0%, 100% {
      transform: translateY(0); /* Posición inicial */
    }
    50% {
      transform: translateY(-10px); /* Mueve el texto hacia arriba */
    }
  }
.hero {
    position: relative;
    height: 100vh;
    margin-top: 60px;
    overflow: hidden;
}
.hero-titles {
    display: flex;
    align-items: center; /* centra verticalmente los textos */
    gap: 1rem; /* espacio entre el h1 y h2 */
    flex-wrap: wrap; /* si no caben en una línea, pasan abajo */
  }

.hero-carousel {
    position: relative;
    height: 100%;
    width: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    filter: grayscale(100%); /*FILTRO GRIS*/
}

.hero-slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    color: var(--text-color);
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.carousel-control:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.indicator.active {
    background: white;
}

@media (max-width: 768px) {
    .carousel-control {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .carousel-control.prev {
        left: 10px;
    }

    .carousel-control.next {
        right: 10px;
    }

    .carousel-indicators {
        bottom: 15px;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }
}

.hero h1 {
    font-size: 3rem;
    -webkit-text-stroke: 1px rgb(0, 0, 0);
    color: #fffeea; /* hace el relleno invisible, dejando solo el trazo */
    margin-bottom: 1rem;
    text-shadow:
        2px 2px 6px rgba(0, 0, 0, 0.8),   /* sombra oscura como fallback */
        0 0 10px rgba(255, 255, 255, 0.637); /* brillo blanco tenue opcional */
        animation: breathing-vertical 3s ease-in-out infinite; /* Aplica la animación */
}
.hero h2 {
    font-size: 3rem;
    -webkit-text-stroke: 1px rgb(255, 255, 255);
    color: #ffffff00; /* hace el relleno invisible, dejando solo el trazo */
    margin-bottom: 1rem;
    text-shadow:
        2px 2px 6px rgba(0, 0, 0, 0.8),   /* sombra oscura como fallback */
        0 0 10px rgba(255, 255, 255, 0.342); /* brillo blanco tenue opcional */
        animation: breathing-vertical 3s ease-in-out infinite; /* Aplica la animación */
}


.hero h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    -webkit-text-stroke: 0.8px black;
    color: #ffffff;
    text-shadow:
        2px 2px 5px rgba(0, 0, 0, 0.8),
        0 0 8px rgba(255, 255, 255, 0.2);
        
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

/* planes Section */
.tachado {
    text-decoration: line-through;
    opacity: 0.6; /* opcional, para dar efecto de "no disponible" */
  }
.planes {
    padding: 5rem 1rem;
    background-color: var(--dark-bg);
}

.planes h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--text-color);
}

.planes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.planes-card {
    background: #fffeea;
    border: 1px solid #080b1a;
    padding: 1rem;
    border-radius: 10px;
    text-align: left;
    box-shadow: var(--shadow);
    transition: 
        transform 0.5s ease-in-out,
        box-shadow 0.5s ease-in-out,
        border 0.5s ease-in-out;
}

.planes-card:hover {
    transform: scale(1.05); /* Zoom suave */
    box-shadow: 0 0 20px 4px var(--primary-color); /* Brillo dorado */
    border: 1px solid var(--primary-color); /* Borde dorado */
}




.planes-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.planes-card h3 {
    font-family: 'Times New Roman', Times, serif;
    margin-bottom: 1rem;
    color: #000000;
    text-align: center; /* <-- Añade esta línea */
}


/* Estilo para beneficios con íconos */
.planes-card p {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #000000;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
}

.planes-card p i {
    color: #000000; /* Verde similar al ejemplo */
    flex-shrink: 0;
    margin-top: 3px;
    font-size: 1.1rem;
}
/* trainers Section */
.trainers {
    padding: 2rem 1rem;
    background-color: var(--dark-bg);
}

.trainers h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--text-color);
}

.trainers-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.trainers-card {
    max-width: 23rem;
    max-height: 29.5rem;
    background: #fffeea;
    border: 1px solid #080b1a;
    padding: 1rem;
    border-radius: 10px;
    text-align: center; /* Cambio importante si usas listas tipo beneficios */
    transition: transform 0.3s ease;
}

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

.trainers-card img {
    width: 100%;
    height: 80%;
    margin-bottom: 1rem;
}

.trainers-card h3 {
    color: #000000;
    text-align: center; /* <-- Añade esta línea */
}


/* Estilo para beneficios con íconos */
.trainers-card p {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #000000;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
}

.trainers-card p i {
    color: #00C965; /* Verde similar al ejemplo */
    flex-shrink: 0;
    margin-top: 3px;
    font-size: 1.1rem;
}
.nosotros-section {
    padding: 5rem 1rem;
    background-color: var(--dark-bg);
    color: var(--text-color);
    text-align: center;
}

.nosotros-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--text-color);
}

.nosotros-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .nosotros-grid {
        flex-direction: row;
    }
}

.nosotros-item {
    flex: 1;
    
    padding: 2rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.nosotros-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--primary-color);;
}

.nosotros-item h3 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.nosotros-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: #ffffff;
    text-align: justify;
}


/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 3rem 1rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section a {
    color: var(--text-color);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}


.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-bottom a{
color: #fff;
}

.social-links a {
    color: #ffffff;
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    color: var(--primary-color);
    text-shadow: var(--primary-color);
}

/* Estilos de Autenticación */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--gradient-secondary);
    margin-top: 60px;
}

.auth-box {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px;
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 5px;
    font-size: 1rem;
    background-color: #030815;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(255,255,255,0.1);
}

.btn-block {
    width: 100%;
    margin-top: 1rem;
}

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-color);
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        padding: 1rem;
    }

    .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        width: 100%;
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .auth-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .hero h1,
    .hero h2 {
    font-size: 2.2rem;
    }

    .planes-grid {
        grid-template-columns: 1fr;
    }
    .trainers-grid {
        grid-template-columns: 1fr;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        right: 1rem;
        top: 1rem;
        cursor: pointer;
    }

    .auth-container {
        padding: 1rem;
    }

    .auth-box {
        width: 100%;
        max-width: 100%;
        padding: 1.5rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group input {
        padding: 0.75rem;
    }

    .btn-primary {
        padding: 0.75rem;
    }

    .auth-links {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content, .planes-card {
    animation: fadeIn 1s ease-out;
}
.hero-content, .trainers-card {
    animation: fadeIn 1s ease-out;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    text-align: center;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Menú Hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav {
        position: relative;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--secondary-color);
        padding: 1rem;
        box-shadow: var(--shadow);
        display: none;
    }

    .nav-links.active {
        display: flex;
    }
}

/* Estilos para el botón de inicio de sesión */
.auth-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
}

.auth-icon svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .auth-text {
        display: none;
    }
    
    .auth-icon {
        padding: 0.5rem;
    }
    
    .auth-icon svg {
        width: 24px;
        height: 24px;
    }
} 

.grid-reportes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.grid-reportes > div {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    padding: 1rem;
    height: 300px;
}

.grid-reportes canvas {
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 768px) {
    .grid-reportes {
        grid-template-columns: 1fr;
    }
} 
/*APARTADO DE WHATSAPP*/


/* WhatsApp Button */
#whatsappButton {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
 
}

#whatsappButton i {
    font-size: 2rem;
    color: white;
}

#whatsappButton:hover {
    transform: scale(1.1);
}

/* WhatsApp Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.3s ease;
}

.whatsapp-widget.active {
    border-radius: 41px 41px 31px 31px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}


.whatsapp-header {
    border-radius: 30px 30px 0px 0px;
    background: var(--whatsapp-dark);
    padding: 15px;
    display: flex;
    align-items: center;
    color: white;
}

.whatsapp-profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.whatsapp-header-info h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.whatsapp-header-info p {
    margin: 0;
    font-size: 12px;
    opacity: 0.8;
}

.whatsapp-close {
    position: absolute;
    right: 15px;
    top: 15px;
    color: white;
    cursor: pointer;
    padding: 5px;
}

.whatsapp-messages {
    background-image: url('../img/fondowapp.jpg');
    background-size: cover;
    background-position: center;
    padding: 20px;
    height: 150px;
    overflow-y: auto;
    
}
.whatsapp-messages a {
    font-size:12px;
    color : black;
}
.whatsapp-messages a :not([href]):not([class]){
    font-size:12px;
    color : black;
}
.whatsapp-messages a:not([href]):not([class]):hover {
    color: black; /* Asegura que el color permanezca negro */
}

.whatsapp-message {
    background: white;
    padding: 10px 15px;
    border-radius: 7px;
    margin-bottom: 10px;
    max-width: 80%;
    position: relative;
}

.whatsapp-message.received {
    background: white;
    margin-right: auto;
}
.whatsapp-message.received a {
    font-family: 'Verdana', sans-serif;
    color: black;
    
}
.whatsapp-message.sent {
    background: var(--whatsapp-light);
    margin-left: auto;
}

.whatsapp-input {
    border-radius: 0px 0px 30px 30px;
    display: flex;
    align-items: center;
    background: white;
    padding: 10px;
    border-top: 1px solid #eee;
    overflow: hidden; /* Agregado */
}


.whatsapp-input textarea {
    flex: 1;
    border: none;
    padding: 8px 10px;
    border-radius: 20px;
    resize: none;
    height: 40px;
    line-height: 24px;
    font-size: 14px;
}

.whatsapp-input textarea:focus {
    outline: none;
}

.whatsapp-send {
    background: var(--whatsapp-green);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.whatsapp-send:hover {
    background: #128C7E;
}

/* WhatsApp Modal */


.whatsapp-chat {
    background-color: #ECE5DD;
    padding: 1rem;
    border-radius: 10px;
}

.message-box textarea {
    width: 100%;
    border: none;
    border-radius: 20px;
    padding: 10px 15px;
    resize: none;
    height: 100px;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    color: white;
}
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
