/* ============================================
   RESET Y ESTILOS GENERALES LENYNY

============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Fondo temático montañoso para tours */
body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background-color: #f0f7ff;
    background-image:
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" preserveAspectRatio="none"><path d="M0,50 Q250,0 500,50 T1000,50 L1000,100 L0,100 Z" fill="rgba(59, 130, 246, 0.03)"/></svg>'),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" preserveAspectRatio="none"><path d="M0,70 Q250,20 500,70 T1000,70 L1000,100 L0,100 Z" fill="rgba(30, 64, 175, 0.02)"/></svg>');
    background-size: 100% auto, 100% auto;
    background-repeat: no-repeat;
    background-position: top center, top center;
    background-attachment: fixed;
    color: #333;
    line-height: 1.6;
    padding-top: 80px;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: transparent;
}

/* ============================================
   HEADER
============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(167, 197, 224, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.logo-img {
    height: 60px;
    width: auto;
    border-radius: 8px;
    object-fit: contain;
}

.logo-placeholder {
    height: 60px;
    width: 60px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
}

.logo-text h1 {
    font-size: 1.8rem;
    color: #1e293b;
    margin-bottom: 5px;
    font-weight: 700;
}

.logo-text p {
    color: #64748b;
    font-size: 0.9rem;
}

.whatsapp-header {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.whatsapp-header:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* ============================================
   PORTADA
============================================ */
.portada {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 0 0 12px 12px;
}

.portada-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.portada:hover .portada-img {
    transform: scale(1.05);
}

.portada-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
    pointer-events: none;
}

.portada-text {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 2;
    width: 90%;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.portada-text h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 800;
    line-height: 1.2;
}

.portada-text p {
    font-size: 1.3rem;
    opacity: 0.9;
    font-weight: 300;
}

.portada-fallback {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    padding: 20px;
}

/* ============================================
   ENCABEZADO DE PÁGINA
============================================ */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
    animation: fadeIn 0.8s ease-out;
}

.page-header h2 {
    font-size: 2.2rem;
    color: #1e293b;
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.page-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    border-radius: 2px;
}

.page-header-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    margin-top: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   FILTROS
============================================ */
.category-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.filter-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border: 2px solid rgba(226, 232, 240, 0.8);
    color: #64748b;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
}

.filter-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.filter-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

/* ============================================
   CONTADOR DE RESULTADOS
============================================ */
.results-info {
    text-align: center;
    color: #64748b;
    margin-bottom: 30px;
    font-size: 0.95rem;
    animation: fadeIn 0.8s ease-out 0.3s both;
}

/* ============================================
   GRID DE PRODUCTOS
============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* ============================================
   TARJETA DE PRODUCTO (MODIFICADA)
============================================ */
.product-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.6s ease-out;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(203, 213, 225, 0.8);
}

/* Imagen del producto - MÁS GRANDE */
.product-image {
    height: 280px;
    /* Aumentado de 220px */
    position: relative;
    overflow: hidden;
}

.image-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 280px;
    /* Aumentado para coincidir */
    object-fit: cover;
    transition: transform 0.8s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #3b82f6;
    backdrop-filter: blur(4px);
    z-index: 2;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Botón de galería */
.gallery-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 20px;
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #3b82f6;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    z-index: 3;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.gallery-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.25);
    color: #2563eb;
}

.image-fallback {
    width: 100%;
    height: 280px;
    /* Aumentado para coincidir */
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
}

/* Contenido de la tarjeta - MÁS COMPACTO */
.product-content {
    padding: 20px;
    /* Reducido de 24px */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    /* Reducido de 8px */
    margin-bottom: 10px;
    /* Reducido de 12px */
}

.product-category {
    background: rgba(241, 245, 249, 0.8);
    color: #475569;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    backdrop-filter: blur(5px);
}

.product-title {
    font-size: 1.4rem;
    /* Reducido ligeramente */
    color: #1e293b;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
    min-height: 60px;
    /* Altura fija para consistencia */
    display: flex;
    align-items: center;
}

/* ELIMINADO: product-summary con basic-info (se oculta) */
.product-summary {
    display: block;
}

/* Información básica expandida (solo se ve al expandir) */
.basic-info-expanded {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.basic-info-expanded p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #475569;
    font-size: 0.9rem;
    margin: 0;
}

.basic-info-expanded i {
    color: #3b82f6;
    min-width: 20px;
    font-size: 1rem;
}

/* Información expandida */
.expanded-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.product-card.expanded .expanded-content {
    max-height: 1200px;
    margin-top: 20px;
    overflow-y: auto;
}

.product-details {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    padding-top: 20px;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    max-height: 800px;
    overflow-y: auto;
}

.product-highlights {
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(5px);
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 5px solid #3b82f6;
}

.product-highlights p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-highlights p:last-child {
    margin-bottom: 0;
}

.product-highlights i {
    color: #3b82f6;
    min-width: 20px;
}

/* Botón "Más información" - MÁS COMPACTO */
.more-info-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border: none;
    color: white;
    padding: 12px;
    /* Reducido de 14px */
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    /* Reducido de 1rem */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* Reducido de 10px */
    margin: 12px 0 15px 0;
    /* Reducido márgenes */
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.more-info-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.more-info-btn:hover::before {
    left: 100%;
}

.more-info-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.product-card.expanded .more-info-btn {
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
}

.more-info-icon {
    transition: transform 0.4s ease;
}

.product-card.expanded .more-info-icon {
    transform: rotate(180deg);
}

/* Precio - MÁS COMPACTO */
.product-price {
    margin-bottom: 20px;
    /* Reducido de 25px */
    padding: 12px;
    /* Reducido de 15px */
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    border: 2px solid rgba(226, 232, 240, 0.8);
}

.price-label {
    display: block;
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-amount {
    font-size: 1.8rem;
    /* Reducido de 2rem */
    color: #059669;
    font-weight: 800;
    display: flex;
    align-items: baseline;
}

.price-currency {
    font-size: 1.2rem;
    margin-right: 4px;
    font-weight: 600;
}

/* ============================================
   FORMULARIO DE RESERVA
============================================ */
.reservation-form {
    background: rgba(248, 250, 252, 0.95);
    backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: 12px;
    margin-top: 15px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: none;
    animation: slideIn 0.4s ease-out;
}

.reservation-form.active {
    display: block;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-title {
    font-size: 1.2rem;
    color: #1e293b;
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(226, 232, 240, 0.8);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px;
    border: 2px solid rgba(226, 232, 240, 0.8);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.5;
}

/* Mensaje de pago importante */
.payment-notice {
    background: #f0f9ff;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #0ea5e9;
    font-size: 0.9em;
    color: #0369a1;
}

.payment-notice i {
    margin-right: 10px;
    color: #0ea5e9;
}

/* ============================================
   BOTONES GENERALES - MÁS COMPACTOS
============================================ */
.reservation-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    /* Reducido de 12px */
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 14px;
    /* Reducido de 16px */
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    /* Reducido de 1.05rem */
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.reservation-btn::after {
    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 ease;
}

.reservation-btn:hover::after {
    left: 100%;
}

.reservation-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.submit-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.submit-btn:hover {
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

.close-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.close-btn:hover {
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
}

/* ============================================
   GALERÍA MODAL (MEJORADA)
============================================ */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    will-change: opacity;
}

.gallery-modal.active {
    display: flex;
    opacity: 1;
}

.gallery-modal-content {
    background: #0f172a;
    border-radius: 16px;
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.gallery-header h3 {
    font-size: 1.5rem;
    color: white;
    margin: 0;
    font-weight: 600;
}

.close-gallery-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.close-gallery-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    transform: rotate(90deg);
}

.gallery-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 40px;
    position: relative;
    min-height: 400px;
    max-height: 500px;
}

.gallery-main-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main-image img {
    max-width: 100%;
    max-height: 450px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: zoomIn 0.5s ease-out;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.image-counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-controls {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-prev,
.gallery-next {
    background: rgba(59, 130, 246, 0.2);
    color: white;
    border: 2px solid rgba(59, 130, 246, 0.3);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.gallery-prev:hover,
.gallery-next:hover {
    background: rgba(59, 130, 246, 0.4);
    border-color: rgba(59, 130, 246, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

/* ============================================
   MINIATURAS DE GALERÍA MEJORADAS
============================================ */
.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    padding: 24px;
    max-height: 200px;
    overflow-y: auto;
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    scrollbar-width: thin;
    scrollbar-color: #3b82f6 #1e293b;
}

.gallery-thumbnails::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: #1e293b;
    border-radius: 4px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 4px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}

.gallery-thumbnail {
    min-width: auto;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    position: relative;
    flex-shrink: 0;
}

.gallery-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

.gallery-thumbnail:hover {
    opacity: 0.8;
    transform: translateY(-3px);
}

.gallery-thumbnail:hover::after {
    background: rgba(0, 0, 0, 0.1);
}

.gallery-thumbnail.active {
    opacity: 1;
    border-color: #3b82f6;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.gallery-thumbnail.active::after {
    background: transparent;
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-thumbnail:hover img {
    transform: scale(1.1);
}

/* Mensaje cuando no hay imágenes */
.no-images-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #94a3b8;
    font-size: 1.1rem;
}

.no-images-message i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.3;
}

/* ============================================
   SECCIÓN DE CONTACTO
============================================ */
.contact-info {
    text-align: center;
    padding: 50px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border-radius: 20px;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.contact-info::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 1000 100"><path fill="rgba(255,255,255,0.05)" d="M0,50 Q250,0 500,50 T1000,50 V100 H0 Z"/></svg>') no-repeat bottom;
    background-size: 100% auto;
}

.contact-info h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.contact-info p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.contact-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: white;
    color: #25D366;
    padding: 18px 35px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-whatsapp:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    color: #128C7E;
}

/* ============================================
   FOOTER
============================================ */
.footer {
    text-align: center;
    padding: 40px 0;
    color: #64748b;
    font-size: 0.95rem;
    margin-top: 60px;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    line-height: 1.8;
}

.footer p {
    margin-bottom: 10px;
}

.footer p:last-child {
    margin-bottom: 0;
    color: #3b82f6;
    font-weight: 600;
}

/* ============================================
   ANIMACIONES
============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.6s ease-out;
}

/* ============================================
   RESPONSIVE DESIGN (MODIFICADO)
============================================ */
@media (max-width: 1200px) {
    .container {
        padding: 20px;
    }

    .header-content {
        padding: 0 20px;
    }
}

@media (max-width: 992px) {
    .portada {
        height: 350px;
    }

    .portada-text h1 {
        font-size: 2.2rem;
    }

    .portada-text p {
        font-size: 1.1rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }

    .gallery-thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 10px;
        padding: 20px;
    }

    .gallery-thumbnail {
        height: 85px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 120px;
    }

    .header {
        padding: 10px 0;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .logo {
        flex-direction: column;
        gap: 10px;
    }

    .whatsapp-header {
        width: 100%;
        justify-content: center;
        max-width: 300px;
    }

    .portada {
        height: 300px;
    }

    .portada-text {
        bottom: 40px;
    }

    .portada-text h1 {
        font-size: 1.8rem;
    }

    .portada-text p {
        font-size: 1rem;
    }

    .page-header h2 {
        font-size: 1.8rem;
    }

    .category-filters {
        gap: 8px;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        min-width: 110px;
    }

    /* Ajustes para tarjetas en tablet */
    .product-image {
        height: 250px;
    }

    .product-image img {
        height: 250px;
    }

    .image-fallback {
        height: 250px;
        font-size: 1.2rem;
    }

    .product-title {
        font-size: 1.2rem;
        min-height: 50px;
    }

    .basic-info-expanded {
        grid-template-columns: 1fr;
        /* Una columna en móvil/tablet */
    }

    .gallery-main {
        padding: 20px;
        min-height: 350px;
        max-height: 400px;
    }

    .gallery-main-image img {
        max-height: 350px;
    }

    .gallery-header {
        padding: 20px;
    }

    .gallery-thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
        padding: 15px;
        max-height: 150px;
    }

    .gallery-thumbnail {
        height: 75px;
    }

    .gallery-controls {
        padding: 15px;
    }

    .gallery-prev,
    .gallery-next {
        width: 50px;
        height: 50px;
    }

    .contact-info {
        padding: 40px 20px;
    }

    .contact-info h2 {
        font-size: 1.8rem;
    }

    .contact-info p {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 140px;
    }

    .portada {
        height: 250px;
    }

    .portada-fallback {
        height: 250px;
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Ajustes para tarjetas en móvil */
    .product-image {
        height: 220px;
    }

    .product-image img {
        height: 220px;
    }

    .image-fallback {
        height: 220px;
        font-size: 1.1rem;
    }

    .product-title {
        font-size: 1.1rem;
        min-height: 45px;
    }

    .price-amount {
        font-size: 1.6rem;
    }

    .basic-info-expanded {
        grid-template-columns: 1fr;
    }

    .gallery-modal-content {
        max-height: 85vh;
    }

    .gallery-main {
        min-height: 300px;
        max-height: 350px;
        padding: 15px;
    }

    .gallery-main-image img {
        max-height: 300px;
    }

    .gallery-thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 6px;
        padding: 12px;
        max-height: 120px;
    }

    .gallery-thumbnail {
        height: 60px;
    }

    .contact-info {
        padding: 30px 15px;
        margin-top: 40px;
    }

    .contact-info h2 {
        font-size: 1.6rem;
    }

    .contact-whatsapp {
        padding: 15px 25px;
        font-size: 1.1rem;
    }
}

@media (max-width: 400px) {
    .filter-btn {
        min-width: 100px;
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .product-image {
        height: 200px;
    }

    .product-image img {
        height: 200px;
    }

    .gallery-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }

    .category-badge {
        font-size: 0.75rem;
        padding: 5px 12px;
    }

    .gallery-thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    }

    .gallery-thumbnail {
        height: 55px;
    }
}

/* ============================================
   ESTILOS ADICIONALES PARA MEJOR EXPERIENCIA
============================================ */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #3b82f6;
    animation: spin 1s ease-in-out infinite;
    margin: 20px auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Transiciones suaves para imágenes */
img {
    transition: opacity 0.3s ease;
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Estilos para navegadores WebKit (Chrome, Safari) */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Mejoras para impresión */
@media print {

    .header,
    .gallery-btn,
    .reservation-btn,
    .contact-info,
    .filter-btn,
    .gallery-modal {
        display: none !important;
    }

    body {
        padding-top: 0;
        background: white;
    }

    .product-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* EN TU ARCHIVO STYLES.CSS, REEMPLAZA LA SECCIÓN DE NEWSLETTER CON ESTO: */

/* ============================================
   NEWSLETTER SECTION - FIXED 
============================================ */
.newsletter {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: white;
    text-align: center;
    padding: 40px 20px;
    border-radius: 15px;
    margin: 40px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.newsletter h2 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.newsletter p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 25px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.newsletter form {
    max-width: 450px;
    margin: 0 auto;
}

.newsletter input {
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    margin-bottom: 12px;
    box-sizing: border-box;
}

.newsletter input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.newsletter button {
    width: 100%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.newsletter .small {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 15px;
    padding: 0 10px;
}

/* Desktop-only: show in row */
@media (min-width: 769px) {
    .newsletter {
        padding: 50px 30px;
        border-radius: 20px;
        margin: 60px 0;
    }

    .newsletter h2 {
        font-size: 1.8rem;
    }

    .newsletter p {
        font-size: 1.1rem;
    }

    .newsletter form {
        display: flex;
        gap: 10px;
    }

    .newsletter input {
        margin-bottom: 0;
        flex: 1;
    }

    .newsletter button {
        width: auto;
        padding: 16px 30px;
    }
}

/* Small mobile fix */
@media (max-width: 380px) {
    .newsletter {
        padding: 30px 15px;
    }

    .newsletter h2 {
        font-size: 1.3rem;
    }

    .newsletter input,
    .newsletter button {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
}

/* ============================================
   CONTACT DETAILS STYLES
============================================ */
.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.contact-details p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-details strong {
    color: white;
}

/* ============================================
   LEGAL LINKS STYLES
============================================ */
.legal-links a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: #3b82f6 !important;
    text-decoration: underline;
}

/* ============================================
   SOCIAL LINKS STYLES
============================================ */
.social-links a {
    transition: all 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}