/* =============================================
   VARIABLES GLOBALES Y ESTILOS BASE
   ============================================= */
:root {
    --gold-light: #E9CA73;
    --gold: #CE9F2C;
    --gold-dark: #A87D1F;
    --brown: #682F07;
    --brown-light: #8D4A1D;
    --onyx: #333333; /* Mejor contraste para accesibilidad */
    --onyx-light: #666666;
    --white: #FFFFFF;
    --light-bg: #F9F9F9;
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    background-color: var(--light-bg);
    color: var(--onyx);
    line-height: 1.6;
    overflow-x: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Mejoras de accesibilidad - Focus visible */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

/* Contenedor principal optimizado */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* =============================================
   ENCABEZADO Y NAVEGACIÓN OPTIMIZADOS
   ============================================= */
header {
    background: linear-gradient(135deg, #0d2b4e 0%, #1a3d6b 100%);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    will-change: transform; /* Optimización de rendimiento */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap; /* Cambiado a nowrap para evitar que se rompa en escritorio */
    gap: 60px; /* Más espacio entre logo y menú */
}

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-right: auto; /* Empuja el menú hacia la derecha */
    flex-shrink: 0; /* Evita que el logo se reduzca */
}

.logo-text {
    margin-top: 1px;
}

.logo-text span {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.logo img {
    height: 80px;
    width: auto;
    transition: var(--transition);
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

.logo img:hover {
    transform: scale(1.05) rotate(2deg);
}

/* Menú hamburguesa (oculto por defecto) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--white);
    border-radius: 5px;
    transition: var(--transition);
}

nav {
    flex-shrink: 0; /* Evita que el nav se reduzca */
    margin-left: auto; /* Empuja el menú completamente a la derecha */
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px; /* Reducir espacio entre items del menú */
    margin-left: auto; /* Asegura que el menú esté a la derecha */
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    padding: 8px 15px;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

nav ul li a::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: var(--transition-slow);
    pointer-events: none;
}

nav ul li a:hover::before {
    left: 100%;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Para pantallas grandes, ajustar el espaciado */
@media (min-width: 769px) {
    .header-content {
        gap: 80px; /* Más espacio entre logo y menú */
    }
    
    nav ul {
        gap: 25px;
    }
}

/* =============================================
   SECCIÓN HERO (PRINCIPAL) OPTIMIZADA
   ============================================= */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
    perspective: 100px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transform: translateZ(-10px) scale(2);
    will-change: transform; /* Optimización de rendimiento */
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 10s ease;
}

.hero:hover .hero-bg img {
    transform: scale(1.1);
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(104, 47, 7, 0.7) 0%, rgba(206, 159, 44, 0.6) 100%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    font-weight: 700;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    font-weight: 500;
}

/* =============================================
   BOTONES Y ELEMENTOS INTERACTIVOS OPTIMIZADOS
   ============================================= */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--white);
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(206, 159, 44, 0.4);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
    will-change: transform; /* Optimización de rendimiento */
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--brown) 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(206, 159, 44, 0.6);
}

.btn:hover::before {
    opacity: 1;
}

.btn:focus {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

/* =============================================
   SECCIÓN DE SERVICIOS MEJORADA
   ============================================= */
.services-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin: 0 0 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.8rem;
    color: var(--brown);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    font-weight: 700;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--gold-light), var(--gold));
    border-radius: 2px;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--onyx-light);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 500;
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(206, 159, 44, 0.1);
    will-change: transform; /* Optimización de rendimiento */
}

.service-card:hover {
    transform: translateY(-15px) rotate(1deg);
    box-shadow: var(--box-shadow-hover);
}

.service-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.service-card:hover .service-image img {
    transform: scale(1.15);
}

.service-icon {
    position: absolute;
    top: 150px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--white);
    border: 5px solid var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    z-index: 2;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: translateX(-50%) scale(1.1) rotate(10deg);
}

.service-content {
    padding: 50px 25px 25px;
    text-align: center;
}

.service-content h3 {
    color: var(--brown);
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 600;
}

.service-content p {
    color: var(--onyx-light);
    margin-bottom: 15px;
    font-weight: 500;
}

/* Nuevos estilos para características de servicios */
.service-features {
    margin-top: 15px;
    text-align: left;
    list-style: none;
}

.service-features li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
    font-size: 0.9rem;
    color: var(--onyx-light);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: bold;
}

/* =============================================
   SECCIÓN DE OFERTAS OPTIMIZADA
   ============================================= */
.offers-section {
    position: relative;
    overflow: hidden;
    padding: 60px 0;
}

.offers-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100" opacity="0.03"><path d="M10,10 L90,10 L90,90 L10,90 Z" stroke="%23682F07" fill="none" stroke-width="5" /></svg>');
    z-index: -1;
}

.offers-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    background: var(--white);
    border: 2px solid var(--gold-light);
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    color: var(--brown);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    font-size: 0.9rem;
}

.filter-btn.active, .filter-btn:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    color: var(--white);
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(206, 159, 44, 0.3);
}

.filter-btn:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 35px;
}

.offer-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(206, 159, 44, 0.1);
    will-change: transform; /* Optimización de rendimiento */
}

.offer-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.offer-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.offer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.offer-card:hover .offer-image img {
    transform: scale(1.1);
}

.offer-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.offer-content {
    padding: 25px;
}

.offer-content h3 {
    color: var(--brown);
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 600;
}

.offer-price {
    color: var(--gold);
    font-size: 1.7rem;
    font-weight: 800;
    margin-bottom: 15px;
    display: block;
}

.offer-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--onyx-light);
    flex-wrap: wrap;
    gap: 10px;
}

.offer-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.offer-days {
    background: #f5f5f5;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.offer-days.warning {
    background: #fff2e0;
    color: #e67e00;
}

.offer-days.danger {
    background: #ffe0e0;
    color: #e60000;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* =============================================
   CARRUSEL DE IMÁGENES OPTIMIZADO
   ============================================= */
.image-carousel {
    position: relative;
    height: 220px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 1;
}

.carousel-item.active {
    opacity: 1;
    z-index: 2;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 15px;
    z-index: 10;
}

.carousel-controls button {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-size: 1rem;
}

.carousel-controls button:hover {
    background: var(--gold);
    color: var(--white);
    transform: scale(1.1);
}

.carousel-controls button:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.carousel-indicators .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicators .indicator.active {
    background: var(--gold);
    transform: scale(1.2);
}

.carousel-indicators .indicator:hover {
    background: var(--gold-light);
    transform: scale(1.2);
}

.carousel-indicators .indicator:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* =============================================
   SECCIÓN NOSOTROS (ABOUT) OPTIMIZADA
   ============================================= */
.about {
    background: var(--white);
    padding: 60px 0;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
    height: 60px;
    background: var(--white);
    transform: skewY(-2deg);
    z-index: -1;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition);
    will-change: transform; /* Optimización de rendimiento */
}

.about-image:hover {
    transform: perspective(1000px) rotateY(0);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition-slow);
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text h2 {
    color: var(--brown);
    margin-bottom: 25px;
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 15px;
    font-weight: 700;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--gold-light), var(--gold));
    border-radius: 2px;
}

.about-text p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.8;
    font-weight: 500;
}

/* =============================================
   SECCIÓN MISIÓN Y VISIÓN OPTIMIZADA
   ============================================= */
.mission-vision {
    background: linear-gradient(to bottom, var(--light-bg) 0%, #f1f1f1 100%);
    padding: 60px 0;
    position: relative;
}

.mission-vision::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 0;
    width: 100%;
    height: 60px;
    background: #f1f1f1;
    transform: skewY(2deg);
    z-index: -1;
}

.mission-vision-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.mission, .vision {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border-top: 5px solid var(--gold);
    will-change: transform; /* Optimización de rendimiento */
}

.mission:hover, .vision:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.mission::before, .vision::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(233, 202, 115, 0.05) 0%, rgba(206, 159, 44, 0.1) 100%);
    z-index: -1;
}

.mission h3, .vision h3 {
    color: var(--brown);
    margin-bottom: 20px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    font-weight: 600;
}

.mission h3::before {
    content: '\f201';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 15px;
    color: var(--gold);
}

.vision h3::before {
    content: '\f06e';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 15px;
    color: var(--gold);
}

.mission p, .vision p {
    line-height: 1.8;
    font-weight: 500;
}

/* =============================================
   SECCIÓN DE CONTACTO OPTIMIZADA
   ============================================= */
.contact {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    padding: 60px 0;
    color: var(--white);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    transform: skewY(-2deg);
    z-index: -1;
}

.contact .section-title h2 {
    color: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--box-shadow-hover);
    height: 100%;
}

.map-container {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--box-shadow-hover);
    height: 100%;
}

.map-container h3 {
    color: var(--brown);
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
}

.location-info {
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 1.2rem;
    color: var(--gold);
    margin-right: 15px;
    margin-top: 5px;
    min-width: 20px;
}

.info-item h4 {
    color: var(--brown);
    margin-bottom: 5px;
    font-size: 1.1rem;
    font-weight: 600;
}

.info-item p {
    color: var(--onyx-light);
    margin-bottom: 3px;
    line-height: 1.5;
    font-weight: 500;
}

.google-map {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    color: var(--onyx);
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    background: #f9f9f9;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(206, 159, 44, 0.2);
    background: var(--white);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Estilos para el campo de interés "otro" */
#other-interest-group {
    transition: all 0.3s ease;
    overflow: hidden;
}

#other-interest-group.slide-in {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 100px;
    }
}

/* =============================================
   MEJORAS PARA ACCESIBILIDAD Y RENDIMIENTO
   ============================================= */

/* Contenedor de alertas optimizado */
#alert-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    max-width: 400px;
}

#alert-container .alert {
    margin-bottom: 15px;
    padding: 16px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 350px;
    word-wrap: break-word;
    opacity: 0.95;
    transition: opacity 0.3s ease;
    border: 2px solid transparent;
}

#alert-container .alert-success {
    background-color: #4CAF50;
    color: white;
    border-color: #388E3C;
}

#alert-container .alert-error {
    background-color: #f44336;
    color: white;
    border-color: #D32F2F;
}

/* Mejora de contraste para mensajes de error */
.error-message {
    color: #d32f2f !important;
    font-size: 0.85rem !important;
    margin-top: 5px !important;
    font-weight: 600 !important;
    background-color: rgba(244, 67, 54, 0.1);
    padding: 5px 10px;
    border-radius: 4px;
    border-left: 3px solid #f44336;
}

/* Optimización para imágenes lazy loading */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-load.loaded {
    opacity: 1;
}

/* =============================================
   PIE DE PÁGINA (FOOTER) OPTIMIZADO
   ============================================= */
footer {
    background: var(--onyx);
    color: var(--white);
    padding: 60px 0 20px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
    height: 60px;
    background: var(--onyx);
    transform: skewY(-2deg);
    z-index: -1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 20px;
    filter: none;
}

.footer-links h3,
.footer-legal h3,
.footer-contact h3 {
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
    font-weight: 600;
}

.footer-links h3::after,
.footer-legal h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
}

.footer-links ul,
.footer-legal ul {
    list-style: none;
}

.footer-links ul li,
.footer-legal ul li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 15px;
}

.footer-links ul li::before,
.footer-legal ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--gold-light);
}

.footer-links ul li a,
.footer-legal ul li a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    font-weight: 500;
}

.footer-links ul li a:hover,
.footer-legal ul li a:hover {
    color: var(--gold-light);
    transform: translateX(5px);
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.footer-contact i {
    margin-right: 15px;
    color: var(--gold);
    font-size: 1.2rem;
    width: 20px;
}

.social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--gold);
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-links a i {
    margin: 0;
    display: block;
    text-align: center;
    width: 100%;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #aaa;
    font-weight: 500;
}

/* =============================================
   FOOTER DE DESARROLLADOR OPTIMIZADO
   ============================================= */
.dev-footer {
    background-color: var(--onyx);
    color: var(--white);
    padding: 20px 0;
    text-align: center;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.dev-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.dev-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #aaa;
    font-weight: 500;
}

.dev-logo {
    height: 30px;
    transition: var(--transition);
    filter: brightness(0.8);
}

.dev-logo:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

/* =============================================
   ELEMENTOS DE UTILERÍA OPTIMIZADOS
   ============================================= */
.no-offers {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--box-shadow);
}

.no-offers p {
    font-size: 1.2rem;
    color: var(--onyx-light);
    font-weight: 500;
}

/* Previsualización de imágenes en admin */
.image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.preview-item {
    position: relative;
    width: 150px;
    height: 150px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(231, 76, 60, 0.8);
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    border: none;
}

.remove-image:hover {
    background: rgba(231, 76, 60, 1);
    transform: scale(1.1);
}

/* Animación para inputs con error */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* =============================================
   ESTILOS PARA MODAL DE OFERTAS MEJORADO
   ============================================= */
.offer-modal-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 20px 0;
}

.offer-modal-features {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 10px;
}

.offer-modal-features h4 {
    color: var(--brown);
    margin-bottom: 15px;
    font-weight: 600;
}

.offer-modal-features ul {
    list-style: none;
}

.offer-modal-features li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    font-weight: 500;
}

.offer-modal-features li::before {
    content: '•';
    position: absolute;
    left: 10px;
    color: var(--gold);
    font-weight: bold;
}

.offer-modal-description h4 {
    color: var(--brown);
    margin-bottom: 15px;
    font-weight: 600;
}

/* Mejorar el contenedor de descripción en el modal */
.offer-modal-description {
    margin-bottom: 30px;
    line-height: 1.8;
    color: var(--onyx);
    max-height: 400px; /* Aumentar altura máxima */
    overflow-y: auto;
    padding: 20px;
    background: var(--light-bg);
    border-radius: 8px;
    border-left: 4px solid var(--gold);
}

.offer-modal-description h4 {
    color: var(--brown);
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.offer-modal-description p {
    line-height: 1.6;
    color: var(--onyx);
    white-space: pre-line;
    word-wrap: break-word;
    font-size: 1rem;
}

/* Scroll personalizado mejorado */
.offer-modal-description::-webkit-scrollbar {
    width: 8px;
}

.offer-modal-description::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.offer-modal-description::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 4px;
}

.offer-modal-description::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

/* =============================================
   ESTILOS RESPONSIVOS OPTIMIZADOS
   ============================================= */

/* Tabletas y pantallas medianas (hasta 968px) */
@media (max-width: 968px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        order: 2;
    }
    
    .contact-form {
        order: 1;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .location-info {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .carousel-controls button {
        width: 25px;
        height: 25px;
    }
    
    .carousel-indicators .indicator {
        width: 8px;
        height: 8px;
    }
    
    .offer-modal-details {
        grid-template-columns: 1fr;
    }
}

/* Dispositivos móviles (hasta 768px) */
@media (max-width: 768px) {
    .header-content {
        justify-content: space-between;
        flex-wrap: wrap; /* Permitir wrap en móviles */
        gap: 20px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .logo-section {
        align-items: center;
        text-align: center;
        margin-right: 0;
    }
    
    .logo-text span {
        font-size: 0.8rem;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
        transition: var(--transition-slow);
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        padding: 80px 20px 20px;
        flex-basis: 100%;
        order: 3;
        margin-left: 0;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        margin-top: 20px;
        gap: 0;
        margin-left: 0;
    }
    
    nav ul li {
        margin: 15px 0;
    }
    
    nav ul li a {
        display: block;
        padding: 12px;
        border-radius: 5px;
        font-size: 1.1rem;
    }
    
    /* Animación para el icono de hamburguesa */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero {
        height: 500px;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.3rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .about-content,
    .mission-vision-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links h3::after,
    .footer-legal h3::after,
    .footer-contact h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-contact p {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .section-title h2 {
        font-size: 2.3rem;
    }
    
    /* Ajustes de espaciado para móviles */
    .services-section,
    .offers-section,
    .about,
    .mission-vision,
    .contact {
        padding: 40px 0;
    }
    
    .services {
        gap: 30px;
    }
    
    .mission-vision-content {
        gap: 30px;
    }
    
    .location-info {
        grid-template-columns: 1fr;
    }
    
    html {
        scroll-padding-top: 120px; /* Más espacio para el header en móviles */
    }
    
    .offer-modal-content {
        padding: 20px;
    }
    
    .offer-modal-title {
        font-size: 1.5rem;
    }
    
    .offer-modal-price {
        font-size: 1.5rem;
    }
}

/* Dispositivos móviles pequeños (hasta 480px) */
@media (max-width: 480px) {
    .hero {
        height: 450px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .logo-text {
        display: none; /* Ocultar en móviles muy pequeños para ahorrar espacio */
    }

    .offers-grid {
        grid-template-columns: 1fr;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 12px 25px;
    }
    
    .contact-form,
    .map-container {
        padding: 25px;
    }
    
    /* Ajustes de espaciado para móviles pequeños */
    .services-section,
    .offers-section,
    .about,
    .mission-vision,
    .contact {
        padding: 30px 0;
    }
    
    .section-title {
        margin: 0 0 40px;
    }
    
    .mission, .vision {
        padding: 30px 20px;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
    }
    
    .info-item i {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .image-carousel {
        height: 200px;
    }
    
    .offers-filter {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        margin: 5px 0;
        width: 200px;
    }
}

/* Optimización para reducir movimiento (accesibilidad) */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Optimización para alto contraste (accesibilidad) */
@media (prefers-contrast: high) {
    :root {
        --onyx: #000000;
        --onyx-light: #333333;
        --gold: #B8860B;
        --brown: #5D2906;
    }
    
    .btn {
        border: 2px solid #000;
    }
    
    .service-card,
    .offer-card,
    .mission,
    .vision,
    .contact-form,
    .map-container {
        border: 1px solid #000;
    }
}

/* Optimización para modo oscuro (futura implementación) */
@media (prefers-color-scheme: dark) {
    /* Se pueden agregar estilos para modo oscuro aquí cuando sea necesario */
}