/* Variables para colores y tamaños */
:root {
    --primary-color: #f04;
    --hover-color: #d03;
    --background-color: #000;
    --white-color: #fff;
    --gray-color: #888;
    --font-family: 'Arial', sans-serif;
    --transition-duration: 0.3s;
    --box-shadow: 0px 4px 2px -2px var(--gray-color);
    --header-height: 120px;
}

/* Estilos globales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--white-color);
}

/* Estilos del encabezado */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.8);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--box-shadow);
}

#home {
    margin-top: var(--header-height);
}

.header-left {
    display: flex;
    align-items: center;
}

.logo {
    width: 200px; /* Tamaño por defecto */
    max-width: 100%;
    height: auto;
}

@media (min-width: 768px) {
    .logo {
        width: 300px; /* Tamaño aumentado para pantallas más grandes */
    }
}

.social-icons {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.social-icon {
    color: var(--white-color);
    font-size: 24px;
    margin-left: 15px;
    transition: color var(--transition-duration) ease;
}

.social-icon:hover {
    color: var(--primary-color);
}

nav {
    display: flex;
    align-items: center;
    margin-left: auto;
}

nav a {
    color: var(--white-color);
    margin-left: 20px;
    font-weight: bold;
    text-decoration: none;
    transition: color var(--transition-duration) ease;
}

nav a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 2000;
}

.hamburger div {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transition: transform 0.3s, opacity 0.3s;
}

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

.hamburger.active div:nth-child(2) {
    opacity: 0;
}

.hamburger.active div:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

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

    .header-container nav {
        display: none;
        flex-direction: column;
        align-items: center;
        background: rgba(0, 0, 0, 0.6);
        padding: 50px 20px;
        width: 100vw;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        justify-content: center;
        transition: transform 0.4s ease-in-out;
        transform: translateY(-100%);
        backdrop-filter: blur(8px);
        z-index: 999;
    }

    .header-container nav.active {
        display: flex;
        transform: translateY(0);
    }

    .header-container nav a {
        color: white;
        font-size: 1.8rem;
        padding: 15px 30px;
        text-align: center;
        display: block;
        transition: background 0.3s;
    }

    .header-container nav a:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }
}

.hero {
    background-size: cover;
    background-position: center;
    color: var(--white-color);
    text-align: center;
    padding: 100px 20px;
}

section {
    padding: 50px 20px;
    text-align: center;
}

section.fade-in {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

section.fade-in.visible {
    opacity: 1;
}

form {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(16, 97, 9, 0.1);
}

label {
    color: black;
    font-weight: bold;
    margin-bottom: 5px;
}

input, button {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    cursor: pointer;
    transition: background-color var(--transition-duration) ease;
}

button:hover {
    background-color: var(--hover-color);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modal-overlay[style*="flex"], .modal-overlay.show {
    display: flex !important;
    opacity: 1;
}

.modal {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    padding: 35px;
    border-radius: 20px;
    max-width: 600px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 8px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1001;
    transform: scale(0.8) translateY(30px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Mejoras específicas para pantallas grandes */
@media (min-width: 768px) {
    .modal {
        width: 600px;
        max-width: 90vw;
        padding: 40px;
    }
}

@media (min-width: 1024px) {
    .modal {
        width: 650px;
        max-width: 80vw;
        padding: 45px;
    }
}

.modal-overlay.show .modal {
    transform: scale(1) translateY(0);
}

.modal::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), #ff6b9d, var(--primary-color));
    border-radius: 22px;
    z-index: -1;
    opacity: 0.1;
}

.modal h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
    font-size: 1.8rem;
    font-weight: 600;
    background: linear-gradient(45deg, var(--primary-color), #ff6b9d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    font-size: 24px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #666;
}

.close-modal:hover {
    background: rgba(255, 0, 68, 0.1);
    color: var(--primary-color);
    transform: rotate(90deg);
}

.modal form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 10px;
}

.modal input,
.modal select {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fafafa;
    font-family: inherit;
}

.modal input:focus,
.modal select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 0, 68, 0.1);
    transform: translateY(-1px);
}

.modal label {
    color: #555;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal button[type="submit"] {
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary-color), #ff6b9d);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 15px rgba(255, 0, 68, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

.modal button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 68, 0.4);
}

.modal button[type="submit"]:active {
    transform: translateY(0);
}

/* Responsive para el formulario */
@media (min-width: 768px) {
    .modal form {
        gap: 25px;
    }
    
    .modal input,
    .modal select {
        padding: 18px;
        font-size: 17px;
    }
}

.staff-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    padding: 40px 20px;
}

.staff-member {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    max-width: 280px;
    flex: 1;
    min-width: 250px;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.staff-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 68, 0.1), transparent);
    transition: left 0.6s ease;
}

.staff-member:hover::before {
    left: 100%;
}

.staff-member:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 0, 68, 0.2);
    border-color: rgba(255, 0, 68, 0.3);
}

.staff-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: block;
    object-fit: cover;
    border: 3px solid rgba(255, 0, 68, 0.3);
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.staff-member:hover .staff-photo {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(255, 0, 68, 0.4);
}

.staff-member h3 {
    color: var(--white-color);
    margin: 15px 0 10px 0;
    font-size: 1.4em;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.staff-member p {
    color: rgba(255, 255, 255, 0.8);
    margin: 15px 0;
    line-height: 1.6;
    font-size: 0.95em;
    position: relative;
    z-index: 2;
}

.btn-reserva {
    background: linear-gradient(135deg, var(--primary-color), #ff6b9d);
    color: var(--white-color);
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 15px rgba(255, 0, 68, 0.3);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.btn-reserva::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff6b9d, var(--primary-color));
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-reserva:hover::before {
    left: 0;
}

.btn-reserva:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 68, 0.4);
}

.slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    opacity: 0;
    z-index: 1;
    transition: opacity 1.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
}

.slide.active {
    opacity: 1 !important;
    z-index: 10 !important;
    visibility: visible !important;
}

/* Fallback para asegurar que las imágenes se vean */
.slide:nth-child(1) {
    background: url('https://i.imgur.com/k4ixGbg.jpg') center/cover no-repeat;
}

.slide:nth-child(2) {
    background: url('https://i.imgur.com/Aj6EjDt.jpg') center/cover no-repeat;
}

.slide:nth-child(3) {
    background: url('https://i.imgur.com/cr9tbdg.jpg') center/cover no-repeat;
}

/* Asegurar que las imágenes se cargan correctamente */
.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

/* Indicadores del slider */
.slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.indicator.active {
    background: var(--primary-color);
    border-color: white;
    transform: scale(1.3);
}

/* Controles de navegación */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-nav:hover {
    background: rgba(255, 0, 68, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

/* Responsive para controles */
@media (max-width: 768px) {
    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .slider-nav.prev {
        left: 10px;
    }
    
    .slider-nav.next {
        right: 10px;
    }
    
    .slider-indicators {
        bottom: 20px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}

.text-content {
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--white-color);
    padding: 20px;
    border-radius: 8px;
    max-width: 80%;
    margin: 0 auto;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    position: relative;
    z-index: 2;
}

.text-content h1, .text-content p {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.text-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.text-content p {
    font-size: 1.2rem;
    line-height: 1.5;
}

footer {
    background-color: transparent;
    color: var(--white-color);
    text-align: center;
    padding: 20px;
    position: relative;
}

footer .footer-logo {
    width: 50px;
    height: auto;
    margin-bottom: 10px;
}

footer p {
    margin: 0;
    font-size: 14px;
}

#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    font-size: 18px;
    transition: opacity 0.3s, visibility 0.3s;
    opacity: 0;
    visibility: hidden;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#servicios {
    padding: 50px 20px;
    background-color: var(--background-color);
    color: var(--white-color);
}

#servicios h2 {
    margin-bottom: 30px;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    color: var(--white-color);
    padding: 30px 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 0, 68, 0.2);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 0, 68, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.03);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(255, 0, 68, 0.2);
}

.service-card-content {
    position: relative;
    z-index: 2;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--white-color);
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: #ff6b9d;
}

.service-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    transition: color 0.3s ease;
}

.service-card:hover p {
    color: rgba(255, 255, 255, 0.95);
}

#loading-spinner {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

#loading-spinner img {
    width: 50px;
    height: 50px;
}

/* Estilo para el título de cada sección */
.section-title {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #f04;
    display: inline-block;
    padding: 10px;
    border-radius: 50px;
    background: 333;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.section-title .icon {
    font-size: 1.5rem;
    color: #e74c3c;
    margin: 0 10px;
    transition: transform 0.3s ease;
}

.section-title h2:hover .icon {
    transform: scale(1.2);
}

.section-title h2 span.icon {
    transform: rotate(20deg);
}

/* Estilos para el Modal de Notificaciones */
.notification-modal {
    z-index: 2000;
}

.notification-content {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    padding: 0;
    border-radius: 20px;
    max-width: 450px;
    width: 95%;
    overflow: hidden;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.4),
        0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2001;
    transform: scale(0.8) translateY(30px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.notification-modal.show .notification-content {
    transform: scale(1) translateY(0);
}

.notification-header {
    display: flex;
    align-items: center;
    padding: 25px 30px 20px;
    background: linear-gradient(135deg, var(--primary-color), #ff6b9d);
    color: white;
    position: relative;
}

.notification-header i {
    font-size: 2rem;
    margin-right: 15px;
    opacity: 0.9;
}

.notification-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    flex: 1;
}

.notification-header .close-modal {
    position: static;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.notification-header .close-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.notification-body {
    padding: 25px 30px;
    color: #333;
    text-align: center;
}

.notification-body p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.5;
    color: #444;
}

.notification-footer {
    padding: 20px 30px 30px;
    text-align: center;
}

.notification-footer .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #ff6b9d);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 0, 68, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 120px;
}

.notification-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 68, 0.4);
}

/* Iconos de estado */
.notification-success #notificationIcon {
    color: #28a745;
}

.notification-error #notificationIcon {
    color: #dc3545;
}

.notification-warning #notificationIcon {
    color: #ffc107;
}

.notification-info #notificationIcon {
    color: #17a2b8;
}

/* Animaciones de entrada */
@keyframes notificationSlideIn {
    0% {
        transform: scale(0.8) translateY(30px);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.notification-modal[style*="flex"] .notification-content {
    animation: notificationSlideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}