/* ======================================= */
/* --- Estilos Generales y del Header --- */
/* ======================================= */

/* Variables de color de "BúscaloTú" */
:root {
    --color-principal: #D0A189;
    --color-secundario: #A38772;
    --color-fondo-claro: #FEF4EA;
    --color-caja-fondo: #C2BFB0;
    --color-confirm: #4CAF50;
    --color-confirm-hover: #45a049;
    --color-cancel: #F44336;
    --color-cancel-hover: #e53935;
}




/* Reseteo básico y estilos del body */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    line-height: 1.6;
    background: linear-gradient(to bottom, var(--color-fondo-claro), var(--color-caja-fondo));
    min-height: 100vh;
    color: #333;
    display: flex;
    flex-direction: column;
}

/* Estilos del encabezado principal */
.main-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    box-sizing: border-box;
    background-color: #28303F;
    box-shadow: 0 5px 15px -5px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    gap: 1rem;


}

.page-title {
    display: flex;
    align-items: flex-end;
    color: white;
    font-size: 48px;
    font-weight: normal;
    margin: 0;
}

.logo {
    height: 95.04px;
    width: auto;
    margin-bottom: 5px;
    margin-left: 5px;
}

.title-main {
    font-family: 'Abril Fatface', serif;
}

.title-accent {
    font-family: 'Playfair Display', serif;
    font-size: 1.2em;
    font-weight: 700;
}

.user-greeting {
    color: white;
    font-size: 28px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Contenedor principal de la página */
.content-wrapper {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    flex: 1;
}

/* --- Estilos de Pestañas y Contenido de "BúscaloTú" --- */

.tabs-container {
    display: flex;
    border-bottom: 2px solid var(--color-principal);
    margin-bottom: 20px;
}

.tab-button {
    background-color: transparent;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-secundario);
    cursor: pointer;
    transition: color 0.3s ease;
    outline: none;
}

.tab-button:hover {
    color: var(--color-principal);
}

.tab-button.active {
    color: white;
    background-color: var(--color-principal);
    border-radius: 8px 8px 0 0;
}

.tab-content {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 30px;
    border-radius: 0 12px 12px 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    display: none;
}

.tab-content h2 {
    color: var(--color-secundario);
    margin-bottom: 20px;
    text-align: center;
    font-size: 24px;
}

/* Estilos de la Pestaña de Publicación */
.publish-layout {
    display: flex;
    gap: 30px;
}

.calendar-section {
    flex: 1;
}

.form-section {
    flex: 2;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group select {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%23A38772" d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.hours-container {
    display: flex;
    gap: 15px;
}

.hours-container select {
    flex: 1;
}

.submit-button, .login-button {
    background-color: var(--color-principal);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.submit-button:hover, .login-button:hover {
    background-color: var(--color-secundario);
    transform: translateY(-2px);
}

/* Estilos para el calendario interactivo */
.calendar {
    width: 100%;
    max-width: 300px;
    margin: 20px auto;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--color-secundario);
}

.calendar-select-container {
    display: flex;
    gap: 10px;
}

.calendar-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    color: #888;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    gap: 5px;
}

.day-cell {
    padding: 10px 5px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-weight: 500;
}

.day-cell.inactive {
    color: #ccc;
    cursor: default;
}

.day-cell.active:hover {
    background-color: rgba(208, 161, 137, 0.3);
}

.day-cell.selected {
    background-color: var(--color-principal);
    color: white;
    font-weight: bold;
}

/* Contenedor de la cuadrícula para las tarjetas de servicios */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
}

/* Estilos para cada tarjeta de servicio */
.service-card {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--color-principal);
    animation: fadeIn 0.5s ease-in-out;
    width: calc(25% - 11.25px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card h3 {
    margin-top: 0;
    color: var(--color-secundario);
    font-size: 1.1em;
}

.service-card p {
    margin: 5px 0;
    color: #666;
}

.booking-card hr {
    border: 0;
    border-top: 1px solid #ddd;
    margin: 10px 0;
}

.service-card-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.edit-btn, .delete-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex: 1;
}

.edit-btn {
    background-color: var(--color-principal);
    color: white;
}

.edit-btn:hover {
    background-color: var(--color-secundario);
}

.delete-btn {
    background-color: #e57373;
    color: white;
}

.delete-btn:hover {
    background-color: #c62828;
}

.confirm-btn, .cancel-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex: 1;
}

.confirm-btn {
    background-color: var(--color-confirm);
    color: white;
}

.confirm-btn:hover {
    background-color: var(--color-confirm-hover);
}

.cancel-btn {
    background-color: var(--color-cancel);
    color: white;
}

.cancel-btn:hover {
    background-color: var(--color-cancel-hover);
}

.filters-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
    gap: 10px;
    align-items: center;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: white;
    cursor: pointer;
    font-size: 14px;
}

.filter-button {
    background-color: var(--color-principal);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.filter-button:hover {
    background-color: var(--color-secundario);
}

/* ======================================= */
/* --- Estilos Adicionales del Archivo anterior --- */
/* ======================================= */

/* Estos estilos no estaban en nuestro código */

/* Contenedor principal para centrar el contenido (con nombre cambiado a .main-content) */
.main-content {
    width: 80%;
    max-width: 1100px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Encabezado y navegación de la versión anterior (mantenidos por si los necesitas) */
header h1 {
    color: #0056b3;
    text-align: center;
    margin-bottom: 15px;
}

nav {
    text-align: center;
    background-color: #333;
    padding: 10px;
    border-radius: 5px;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
}

.card-container {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.card {
    width: 48%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

footer {
    text-align: center;
    margin-top: 30px;
    color: #777;
}

/* Efectos y animaciones adicionales */
.gradient-bg {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #8b5cf6 100%);
    position: relative;
    overflow: hidden;
}

.gradient-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}
.gradient-bg > * {
    position: relative;
    z-index: 1;
}

.hover-scale {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(229, 231, 235, 0.8);
    backdrop-filter: blur(10px);
}

.hover-scale:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

.btn-contact {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.btn-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}
.btn-contact:hover::before {
    left: 100%;
}
.btn-contact:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.star-yellow {
    color: #fbbf24;
    filter: drop-shadow(0 1px 2px rgba(251, 191, 36, 0.3));
}

.service-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.verified-badge {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.premium-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.floating-element {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.text-gradient {
    background: linear-gradient(135deg, #1e40af, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Estilos para PWA */
.pwa-install-prompt {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    z-index: 1000;
    display: none;
    animation: slideInUp 0.5s ease-out;
}

.pwa-install-prompt.show {
    display: block;
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.offline-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ef4444;
    color: white;
    text-align: center;
    padding: 8px;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 1001;
}

.offline-indicator.show {
    transform: translateY(0);
}

/* Optimización para móviles */
@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        align-items: center;
        padding: 15px 20px;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .user-greeting {
        font-size: 24px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: 10px;
    }

    .page-title {
        font-size: 36px;
    }

    .logo {
        height: 70px;
        margin: 0;
    }

    .hover-scale:hover {
        transform: none;
    }
    
    .btn-contact:hover {
        transform: none;
    }
}

/* Optimización para Tablets (769px a 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .main-header {
        flex-direction: column; /* Apila los elementos verticalmente */
        align-items: center;
        padding: 15px 20px;
        gap: 1rem;
    }

    .user-greeting {
        font-size: 22px; /* Ajusta el tamaño de fuente para tablets */
        margin-top: 10px;
    }

    .page-title {
        font-size: 40px;
    }

    .logo {
        height: 80px;
    }
}

/* Estilos para el Modal de Contacto */
.hidden {
    display: none;
}

/* Nuevo estilo para el botón de cerrar sesión más grande */
.logout-btn-small {
    padding: 7px 12px;
    font-size: 1rem;
}

/* Estilos para las estrellas interactivas en el formulario de reseñas */
#rating-stars:hover i {
    color: #fbbd23 !important;
}

#rating-stars i:hover ~ i {
    color: #d1d5db !important;
}

.truncate-3-lines {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

#map {
    height: 300px;
}




.logout-btn {
    background-color: #6A8198;
    color: white;
    border: none;
    outline: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.logout-btn:hover {
    background-color: #5d7085;
    transform: translateY(-2px);
}



/* Bloqueo forzado del outline para el boton de cerrar sesion */
.logout-btn:focus,
.logout-btn:active {
    outline: none !important;
    box-shadow: none !important;
}



