.productos-destacados {
    text-align: center;
}

.producto {
    margin: 20px 0;
}

.imagen-producto {
    max-width: 150px; /* Controla el ancho máximo */
    width: 100%;      /* Hace que la imagen se ajuste al contenedor */
    height: auto;     /* Mantiene la proporción de la imagen */
    display: block;
    margin: 0 auto;
}

.comprar-btn {
    background-color: #D72638;
    color: #A1A1A1;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.comprar-btn:hover {
    background-color: #D72638;
}

.charts-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    margin: 40px 0;
    background-color: #1C1C1C; /* Fondo neutro para resaltar los gráficos */
    padding: 20px;
    border-radius: 10px; /* Bordes redondeados */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Sombra suave */
}

.chart {
    width: 28%; /* Ajuste del tamaño para que los gráficos se vean proporcionados */
    max-width: 250px;
    margin: 15px;
    text-align: center;
}

h2 {
    text-align: center;
    color: #A1A1A1; /* Color más suave para el texto del título */
    margin-bottom: 20px;
    font-weight: 400; /* Texto más ligero */
}

.testimonials-section {
    text-align: center;
    padding: 40px 20px;
    background-color: #1C1C1C;
}

.testimonials-section h2 {
    font-size: 2em;
    color: #A1A1A1;
    margin-bottom: 20px;
}

.testimonials-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.testimonial-card {
    background-color: #1C1C1C;
    border: 1px solid #A1A1A1;
    border-radius: 10px;
    padding: 20px;
    width: 30%; /* Asegura que haya tres tarjetas de tamaño uniforme */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.testimonial-text {
    font-size: 1em;
    color: #A1A1A1;
    margin-bottom: 10px;
    font-style: italic;
}

.testimonial-name {
    font-size: 1.1em;
    font-weight: bold;
    color: #A1A1A1;
}

.add-testimonial {
    margin-top: 20px;
    text-align: center;
}

.add-testimonial h3 {
    font-size: 1.5em;
    color: #A1A1A1;
    margin-bottom: 10px;
}

.add-testimonial input,
.add-testimonial textarea {
    width: 80%;
    max-width: 500px;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #A1A1A1;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box; /* Asegura que el ancho incluya el padding */
}

.add-testimonial button {
    padding: 10px 20px;
    font-size: 1em;
    color: #fff;
    background-color: #1C1C1C;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-testimonial button:hover {
    background-color: #555;
}

/*********************************************************************INICIO*****************************************
/* Estilo bases */
/* Estilos base */
body {
    font-family: 'Raleway', sans-serif;
    background-color: #1C1C1C;
    color: #A1A1A1;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Header y Footer */
header, footer {
    background-color: #1C1C1C;
    color: #A1A1A1;
}

/* Header */
header {
    background-color: #1C1C1C;
    padding: 20px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Distribuye los elementos en tres zonas: izquierda, centro, derecha */
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo a la izquierda */
.logo {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 1.8em;
}

/* Logo color fix */
.logo-image {
    filter: none !important;
}

.logo img {
    height: 75px;
    margin-right: 75px;
}

/* Menú centrado */
nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    padding: 0;
    margin: 0;
}

nav ul li a {
    color: #d4d4d4;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ffffff;
}

/* Botón CTA a la derecha */
.cta {
    background-color: #D72638;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
}

.cta:hover {
    background-color: #ff4c4c;
    transform: translateY(-3px);
}

.nav-option {
    transition: color 0.3s; 
}

.nav-option :hover {
    color: #ff6b6b;
}

/* Hero Section */
.hero-section {
    background: url('hero-image.jpg') no-repeat center center/cover;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    text-align: center;
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    z-index: 1;
}

/* CTA Banner */
.cta-banner {
    background-color: #28a745;
    padding: 25px;
    text-align: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    margin: 40px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Servicios */
.services {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 40px 20px;
    background-color: #1C1C1C;
}

.service-item {
    width: 200px;
    padding: 20px;
    background-color: #1C1C1C;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-item img {
    width: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Testimonios */
.testimonials {
    background: #1C1C1C;
    padding: 50px 20px;
    text-align: center;
}

.testimonials h2 {
    font-size: 28px;
    margin-bottom: 30px;
}

.testimonial-item {
    max-width: 600px;
    margin: 0 auto 20px;
    padding: 20px;
    background-color: #1C1C1C;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-style: italic;
}

/* Productos Destacados */
.products {
    padding: 50px 20px;
    background-color: #1C1C1C;
    text-align: center;
}

.products h2 {
    font-size: 32px;
    margin-bottom: 30px;
}

.products-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.product-item {
    background-color:#1C1C1C;
    width: 220px;
    margin: 20px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.product-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    background-color: #1C1C1C;
    color:#A1A1A1;
    text-align: center;
    padding: 30px 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content p {
    margin: 0;
    font-size: 14px;
}

.social-media {
    margin-top: 15px;
}

.social-media a {
    color: #A1A1A1;
    margin: 0 15px;
    font-size: 1.8em;
    transition: color 0.3s;
}

.social-media a:hover {
    color: #ff6b6b;
}

/*********************************************************************INICIO*****************************************

/*********************************************************************AGENDA*****************************************
/* Basic reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Calendar container styling */
.calendar-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #1C1C1C;
    text-align: center;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header button {
    padding: 8px 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

.calendar-header button:hover {
    background-color: #0056b3;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Raleway', sans-serif;
}

th, td {
    width: 14.28%;
    padding: 10px;
    border: 1px solid #ddd;
    vertical-align: top;
    position: relative;
    font-size: 0.9em;
}

th {
    background-color: #1C1C1C;
}

td:hover {
    background-color: #1C1C1C;
    cursor: pointer;
}

.event {
    background-color: #1C1C1C;
    padding: 3px;
    margin-top: 5px;
    border-radius: 3px;
    font-size: 0.85em;
}

/* Popup styling */
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    padding: 15px;
    background: #1C1C1C;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 10;
}

.popup input, .popup button {
    margin-top: 10px;
    width: 100%;
}

.popup input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.popup button {
    background-color: #28a745;
    color: white;
    padding: 8px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.popup button:hover {
    background-color: #218838;
}

.has-event {
    position: relative;
}

/* Corrección del color del logo */
.logo-image {
    filter: none !important;
}

/* Estilos del mensaje de confirmación */
/* Confirmación */
/* Confirmación */
.confirmation-message {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1em;
    display: flex;
    align-items: center;
    opacity: 0;
    animation: fadeInOut 3s forwards;
    z-index: 20;
}

.confirmation-message i {
    margin-right: 8px;
}


/* Animación de entrada y salida */
@keyframes fadeInOut {
    0% { opacity: 0; transform: scale(0.8); }
    20% { opacity: 1; transform: scale(1.2); }
    50% { transform: scale(1); }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

/* Estilos del calendario */
.calendar-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #1C1C1C;
    text-align: center;
}

/* Resaltar días con eventos */
.has-event {
    position: relative;
}

.has-event::after {
    content: "";
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background-color: #007bff;
    border-radius: 50%;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.hero-section p {
    font-size: 1.2rem;
}
/*********************************************************************AGENDA*****************************************

/*********************************************************************PRODUCTO*****************************************
/* Product Section */
.content {
    padding: 40px 20px;
    max-width: 1200px;
    margin: auto;
}
h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 20px;
}

.product-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.product-item h2 {
    font-size: 1.5rem;
    margin: 0 0 10px;
}
.product-item p {
    font-size: 1rem;
    color: #A1A1A1;
    margin-bottom: 15px;
}
.product-item button {
    background-color: #1C1C1C;
    color: #A1A1A1;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}
.product-item button:hover {
    background-color: #D72638;
}

/* Hero Section */
.hero-section {
    background-image: url('imagenes/gym-image.jpg'); 
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 20px;
}


/* Productos */
.product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.product-item {
    border: 1px solid #ddd;
    padding: 15px;
    width: 200px;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

/* Contenedor de la imagen */
.product-image-wrapper {
    width: 100%;
    height: 180px; /* Altura fija para consistencia */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 10px;
}

/* Imagen del producto */
.product-image-wrapper img {
    width: auto;
    height: 100%;
    object-fit: contain; /* Evita cortes en la imagen */
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #1C1C1C;
    padding: 20px;
    width: 500px;
    border-radius: 8px;
    position: relative;
    display: flex;
    gap: 15px;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5em;
    cursor: pointer;
}

.modal-body {
    display: flex;
    gap: 20px;
}

.modal-image img {
    width: 200px;
    border-radius: 5px;
}

.modal-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Estilo del campo de búsqueda */
.search-bar {
    display: block;
    margin: 20px auto;
    padding: 10px;
    width: 80%;
    max-width: 400px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

/* Opciones de color en el modal */
.product-colors label {
    font-weight: bold;
    margin-right: 10px;
}

.product-colors button {
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    margin-right: 5px;
    cursor: pointer;
    outline: none;
    transition: transform 0.2s;
}

.product-colors button:hover {
    transform: scale(1.1);
}

.profile-popup {
    display: none;
    position: absolute;
    right: 20px;
    top: 60px;
    background: #1C1C1C;
    border: 1px solid #ccc;
    padding: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    z-index: 100;
}
.profile-popup.active {
    display: block;
}


/* Contenedor individual de cada producto */
.product-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 180px; /* Ajusta según el tamaño deseado */
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}
/*********************************************************************PERFIL*****************************************
/* Estilo para el popup de perfil */
.profile-popup {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 20px;
    width: 250px;
    text-align: center;
    position: absolute;
    right: 10px;
    top: 60px;
    z-index: 100;
}

.profile-popup p {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

/* Botones del popup de perfil */
.profile-popup .logout-button,
.profile-popup .close-btn {
    display: block;
    width: 100%;
    padding: 10px 15px;
    margin: 10px 0;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

/* Estilo específico para el botón de cerrar sesión */
.profile-popup .logout-button {
    background-color: #dc3545; /* Color rojo */
}

.profile-popup .logout-button:hover {
    background-color: #c82333;
    transform: translateY(-2px);
}

/* Estilo específico para el botón de cerrar popup */
.profile-popup .close-btn {
    background-color: #6c757d; /* Color gris */
}

.profile-popup .close-btn:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}
/* Estilos de la imagen de perfil */
.profile-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

/* Botón de subir imagen */
.upload-image-button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 10px;
    font-weight: bold;
}

.upload-image-button:hover {
    background-color: #0056b3;
}

/* Estilos de la imagen de perfil en el encabezado */
.profile-icon img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
}
