/* Variables CSS inspiradas en Veganful Beauty - Esquema Rosa y Negro */
:root {
    --primary-color: #000000;        /* Negro base */
    --secondary-color: #1a1a1a;      /* Negro más claro */
    --accent-color: #d8a7ca;         /* Rosa medio */
    --warm-color: #f4c2c2;           /* Rosa claro */
    --light-bg: #000000;             /* Fondo negro */
    --card-bg: #1a1a1a;             /* Fondo de tarjetas */
    --text-dark: #ffffff;            /* Texto blanco sobre negro */
    --text-light: #cccccc;           /* Texto gris claro */
    --white: #ffffff;
    --pink-primary: #d8a7ca;         /* Rosa principal */
    --pink-light: #f4c2c2;           /* Rosa claro */
    --pink-dark: #b8829e;            /* Rosa oscuro */
    --error: #ff6b6b;
    --success: #51cf66;
    --warning: #ffd43b;
    
    --border-radius: 8px;
    --shadow-light: 0 2px 4px rgba(216,167,202,0.1);
    --shadow-medium: 0 4px 8px rgba(216,167,202,0.15);
    --transition: all 0.3s ease;
}

/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
    font-size: 16px;
}

/* Contenedor principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--pink-primary) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 0.5rem 0;
    box-shadow: var(--shadow-medium);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--white);
    display: flex;
    align-items: center;
}

.logo:hover {
    color: var(--accent-color);
    transition: var(--transition);
}

.nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav a {
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-size: 1.1rem;
    font-weight: 500;
}

.nav a:hover,
.nav a.active {
    background: rgba(216, 167, 202, 0.2);
    color: var(--pink-light);
}

.user-menu {
    position: relative;
    display: inline-block;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.user-profile:hover {
    background: rgba(216, 167, 202, 0.1);
}

.user-icon {
    background: var(--pink-primary);
    color: var(--primary-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.4rem;
    transition: var(--transition);
}

.user-name {
    color: var(--white);
    font-weight: 500;
    font-size: 1.1rem;
}

.user-icon:hover {
    transform: scale(1.05);
    background: var(--pink-light);
}

.dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--primary-color);
    border: 2px solid var(--pink-primary);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    z-index: 1001;
    display: none;
    overflow: hidden;
}

.dropdown.show {
    display: block;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown a {
    display: block;
    padding: 0.875rem 1.25rem;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 1px solid rgba(216, 167, 202, 0.2);
}

.dropdown a:last-child {
    border-bottom: none;
}

.dropdown a:hover {
    background: rgba(216, 167, 202, 0.2);
    color: var(--pink-light);
    transform: translateX(5px);
}

/* Ocultar navegación móvil en desktop */
.mobile-nav {
    display: none;
}

/* Ocultar filtros móvil en desktop */
.mobile-filters {
    display: none;
}

/* Navegación móvil */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Main content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, var(--pink-primary) 0%, var(--primary-color) 100%);
    color: var(--white);
    text-align: center;
    padding: 4rem 0;
    margin-bottom: 3rem;
    border-radius: var(--border-radius);
    border: 2px solid var(--pink-dark);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Action buttons */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 700px;
    margin: 3rem auto 0;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: var(--card-bg);
    border: 3px solid var(--pink-primary);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
    box-shadow: var(--shadow-medium);
    min-height: 200px;
    overflow: hidden;
}

.action-btn:hover {
    transform: translateY(-5px);
    border-color: var(--pink-light);
    box-shadow: 0 8px 16px rgba(216, 167, 202, 0.3);
}

.action-btn-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.action-btn:hover .action-btn-image {
    transform: scale(1.05);
}

/* Responsive para pantallas verticales pequeñas */
@media (max-width: 600px) {
    .action-buttons {
        grid-template-columns: 1fr;
        max-width: 350px;
        gap: 1.5rem;
    }
    
    .action-btn {
        padding: 0;
        min-height: 160px;
    }
    
    .action-btn-image {
        height: 100%;
        width: 100%;
    }
}

/* Para tablets en orientación portrait */
@media (max-width: 768px) and (orientation: portrait) {
    .action-buttons {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .action-btn {
        min-height: 180px;
    }
}

/* Servicios grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.service-card {
    background: linear-gradient(135deg, #fbe9f8 0%, #f0d7ea 40%, #e6c5dd 100%); /* Degradado más marcado con mayor contraste */
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--pink-primary);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    background: linear-gradient(135deg, #f8e6f4 0%, #edd3e6 40%, #e2c0d8 100%); /* Degradado hover más intenso y visible */
}

.service-image {
    width: 100%;
    height: 200px;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
}

.service-content {
    padding: 1.5rem;
}

.service-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.service-description {
    color: #2c2c2c; /* Texto más oscuro para mejor contraste en fondo rosa */
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 3; /* Estándar para compatibilidad */
}

.service-price {
    color: var(--warm-color);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Formularios */
.form-container {
    max-width: 500px;
    margin: 0 auto;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

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

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

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(143, 188, 143, 0.1);
}

.form-input.error {
    border-color: var(--error);
}

.error-message {
    color: var(--error);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    min-width: 120px;
}

.btn-primary {
    background: var(--pink-primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--pink-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--pink-light);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--pink-primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--pink-primary);
    border: 2px solid var(--pink-primary);
}

.btn-outline:hover {
    background: var(--pink-primary);
    color: var(--white);
}

.btn-danger {
    background: var(--error);
    color: var(--white);
}

.btn-danger:hover {
    background: #a94442;
}

.btn-block {
    width: 100%;
    display: block;
}

/* Alertas */
.alert {
    padding: 1rem;
    margin: 1rem 0;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
}

.alert-success {
    color: #3c763d;
    background-color: #dff0d8;
    border-color: #d6e9c6;
}

.alert-danger {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
}

.alert-warning {
    color: #8a6d3b;
    background-color: #fcf8e3;
    border-color: #faebcc;
}

.alert-info {
    color: #31708f;
    background-color: #d9edf7;
    border-color: #bce8f1;
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--pink-dark);
}

.card-header {
    border-bottom: 1px solid var(--pink-dark);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.card-title {
    color: var(--pink-primary);
    font-size: 1.3rem;
    font-weight: bold;
}

/* Calendario de citas */
.appointment-calendar {
    display: grid;
    gap: 1rem;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.5rem;
    margin: 1rem 0;
}

.time-slot {
    padding: 0.5rem;
    border: 2px solid var(--accent-color);
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--white);
}

.time-slot:hover {
    background: var(--accent-color);
    color: var(--white);
}

.time-slot.selected {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.time-slot.disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    border-color: #ddd;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 1rem;
}

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

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header {
        padding: 0.5rem 0;
    }
    
    .header-content {
        justify-content: space-between;
    }
    
    .logo img {
        height: 50px !important;
    }
    
    .nav {
        display: none;
    }
    
    /* Mostrar navegación móvil */
    .mobile-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
        background: linear-gradient(135deg, var(--pink-primary) 0%, var(--primary-color) 100%);
        padding: 0.4rem 0;
        margin-top: 0.25rem;
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .mobile-nav a {
        color: var(--white);
        text-decoration: none;
        font-weight: 500;
        font-size: 0.85rem;
        padding: 0.35rem 0.5rem;
        border-radius: 4px;
        transition: all 0.3s ease;
        flex: 1;
        text-align: center;
        line-height: 1.2;
    }
    
    .mobile-nav a:hover,
    .mobile-nav a.active {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }
    
    /* Ocultar el botón de menú móvil ya que no lo necesitamos */
    .mobile-menu-btn {
        display: none;
    }
    
    /* Filtros de servicios en móvil */
    .desktop-filters {
        display: none;
    }
    
    .mobile-filters {
        display: flex;
        justify-content: space-around;
        align-items: center;
        background: linear-gradient(135deg, var(--pink-primary) 0%, var(--primary-color) 100%);
        padding: 0.4rem 0;
        margin-bottom: 1rem;
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .filter-btn {
        color: var(--white);
        background: transparent;
        border: none;
        text-decoration: none;
        font-weight: 500;
        font-size: 0.85rem;
        padding: 0.35rem 0.5rem;
        border-radius: 4px;
        transition: all 0.3s ease;
        flex: 1;
        text-align: center;
        line-height: 1.2;
        cursor: pointer;
    }
    
    .filter-btn:hover,
    .filter-btn.btn-primary {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-container {
        padding: 1rem;
    }
    
    .time-slots {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }
    
    .dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        min-width: auto;
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .service-card {
        margin-bottom: 1rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Utilidades */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==========================================
   Estilos para calendario semanal mejorado
   ========================================== */

.appointment-booking {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.week-calendar {
    margin-bottom: 2rem;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.week-days {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.day-column {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: transform 0.2s ease;
}

.day-column:hover {
    transform: translateY(-2px);
}

.day-header {
    background: var(--pink-primary);
    color: var(--primary-color);
    padding: 1rem;
    text-align: center;
    font-weight: bold;
    font-size: 0.9rem;
    border-bottom: 3px solid var(--primary-color);
}

.time-slots-container {
    padding: 1rem;
    min-height: 200px;
}

/* Override para time-slot en el nuevo calendario */
.week-calendar .time-slot {
    background: var(--light-bg);
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
    color: var(--primary-color);
}

.week-calendar .time-slot:hover {
    background: var(--pink-light);
    border-color: var(--pink-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(227, 135, 173, 0.3);
}

.week-calendar .time-slot.selected {
    background: var(--pink-primary);
    color: var(--primary-color);
    border-color: var(--pink-primary);
    box-shadow: 0 6px 20px rgba(227, 135, 173, 0.4);
    font-weight: bold;
}

.loading, .no-slots, .error {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    padding: 1rem;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-slots {
    color: var(--error);
    background: rgba(231, 76, 60, 0.05);
    border-radius: 8px;
}

.error {
    color: var(--error);
    background: rgba(231, 76, 60, 0.1);
    border-radius: 8px;
}

.service-summary {
    border-left: 4px solid var(--pink-primary);
}

.booking-info {
    background: linear-gradient(135deg, var(--light-bg) 0%, rgba(227, 135, 173, 0.05) 100%);
    border: 1px solid rgba(227, 135, 173, 0.2);
}


/* Inicio CSS de la administracion del calendario */
.calendar-header {
    margin-bottom: 0;
    border-bottom: none;
}

.calendar-body {
    margin-top: 0;
    border-top: none;
}

.day-header, .time-column, .time-slot {
    border-bottom: 1px solid var(--pink-primary);
}

/* Eliminar cualquier espacio entre cabecera y tabla */
.calendar-header, .calendar-body {
    padding-bottom: 0;
    padding-top: 0;
}
/* Reducir tamaño de letra de la leyenda de la tabla de citas*/
.calendar-grid .legend-item + span {
    font-size: 0.8rem;
}
/* Fin CSS de la administracion del calendario */

@media (max-width: 768px) {
    .appointment-booking {
        padding: 1rem;
    }
    
    .week-days {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .calendar-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .calendar-header h3 {
        order: -1;
    }
    
    .service-summary > div {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 1rem !important;
    }
}
