/* Base general */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Raleway', sans-serif;
    color: #666;
    background-color: #1C1C1C;
    line-height: 1.6;
}
h1, h2 {
    text-align: center;
}

/* Header y Footer */
header{
    background-color: #1C1C1C;
    color: #ccc;
}
.header-container, .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}
nav ul li a {
    color: #d4d4d4;
    transition: color 0.3s;
}
nav ul li a:hover {
    color: #ffffff;
}

/* Botones */
button, .small-btn, .checkout-button, .close-btn {
    padding: 10px;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}
button:hover, .small-btn:hover, .checkout-button:hover, .close-btn:hover {
    background-color: #0056b3;
}
.close-btn {
    background-color: #666;
}

/* Hero Section */
.hero-section {
    background: url('hero-image.jpg') no-repeat center center/cover;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
}
.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;
}

/* Containers y secciones principales */
.container {
    width: 300px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 8px;
    background-color: #1C1C1C;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Formularios */
label {
    font-weight: bold;
    margin-top: 10px;
}
input, select, .search-bar {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Productos */
.products, .product-list, .services {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 40px 20px;
}
.product-item, .service-item, .cart-item {
    background-color: #1C1C1C;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    text-align: center;
}
.product-item:hover, .service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Calendario */
.calendar-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #1C1C1C;
}
.calendar-header button {
    padding: 8px 12px;
    background-color: #007bff;
    color: white;
}
th, td {
    width: 14.28%;
    padding: 10px;
    border: 1px solid #ddd;
}

/* Popup y modal */
.modal, .popup {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-content, .auth-container, .cart-container {
    background-color: #1C1C1C;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


/* Ajustes para el formulario de Rutinas Personalizadas */
#user-form {
    max-width: 400px; /* Aumenta el ancho del formulario */
    margin: 40px auto; /* Centra el formulario */
    padding: 30px;
    border-radius: 8px;
    background-color: #1C1C1C;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center; /* Alinea el texto en el centro */
}

#user-form h2 {
    font-size: 24px; /* Tamaño de fuente más grande para el título */
    margin-bottom: 20px;
}

#user-form label {
    font-weight: bold;
    margin-top: 10px;
    display: block; /* Para que cada etiqueta esté en una línea separada */
}

#user-form input, #user-form select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 16px; /* Tamaño de fuente para una mejor lectura */
}

#user-form button {
    width: 48%; /* Divide el ancho entre los dos botones */
    margin: 10px 1%;
    padding: 12px;
    font-size: 16px;
    background-color: #1C1C1C;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

#user-form button:hover {
    background-color: #D72638;
}

/* Ajustes adicionales para el contenido de la rutina */
#routine-output {
    max-width: 600px; /* Ampliamos el área de salida de la rutina */
    margin: 20px auto;
    padding: 20px;
    border-radius: 8px;
    background-color: #1C1C1C;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.routine-message {
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
}

#videos-output {
    margin-top: 30px;
    margin-bottom: 50px; /* Espacio adicional para separar del footer */
    text-align: center;
}

.videos-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* Espacio entre los videos */
}

.video-item {
    width: 300px;
    height: 200px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.video-item iframe {
    width: 100%;
    height: 100%;
}
