:root {
  /* Colores coherentes con el logo (Vacaciones La Merced) */
  --primary-color: #039BE5;     /* Azul cian/celeste principal del logo */
  --primary-dark:  #0277BD;     /* Azul más oscuro para hover/headers */
  --primary-light: #E1F5FE;     /* Azul muy suave para fondos de secciones */

  --secondary-color: #005E9C;   /* Amarillo brillante del logo (Identidad) */
  --accent-color:    #FF6D00;   /* Naranja vibrante para llamados a la acción (CTA) */

  /* Neutros */
  --dark-color:  #37474F;       /* Gris azulado oscuro para una lectura legible */
  --light-color: #FAFAFA;       /* Fondo claro limpio para la web */
  --white:       #FFFFFF;

  --gray:       #78909C;        /* Texto secundario o leyendas */
  --gray-light: #CFD8DC;        /* Bordes, líneas y separadores */

  /* Tipografía */
  --font-primary: 'Roboto', sans-serif;
  --font-heading: 'Montserrat', sans-serif;

  /* Espaciado */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;

  /* Sombras */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* ===== HEADER CON LOGO DE 120PX ===== */
.main-header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.2rem 0;
    border-bottom: 3px solid rgba(52, 152, 219, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== LOGO 120PX ===== */
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--dark-color);
    gap: 1.2rem;
    transition: transform 0.3s ease;
}

.logo a:hover {
    transform: scale(1.02);
}

.logo img {
    height: 120px;
    width: auto;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
}

.logo img:hover {
    transform: rotate(-3deg) scale(1.05);
    filter: drop-shadow(0 4px 16px rgba(52, 152, 219, 0.3));
}

.logo-text h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: #1E2B2B;
    margin-bottom: 0.25rem;
}

.logo-text h1 span {
    color: #3498db;
    font-weight: 800;
}

.logo-text p {
    font-size: 1.05rem;
    color: var(--gray);
    margin: 0;
    font-weight: 400;
}

/* Navegación */
.main-nav {
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    color: var(--primary-color);
}

/* Submenús */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 1000;
}

.dropdown:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    border-bottom: 1px solid var(--gray-light);
}

.submenu li:last-child {
    border-bottom: none;
}

.submenu a {
    display: block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: var(--dark-color);
    transition: all 0.3s;
}

.submenu a:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Menú móvil (oculto por defecto) */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
}

/* ===== HERO SLIDER - VERSIÓN CORREGIDA ===== */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
    width: 100%;
    background: #000;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    visibility: hidden;
    z-index: 1;
    background: transparent;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: transparent;
}

/* Contenido del slide - CORREGIDO con position: absolute */
.slide-content {
    position: absolute;
    bottom: 25%;
    left: 10%;
    max-width: 600px;
    color: white;
    z-index: 4;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.35);
    padding: 30px 40px;
    border-radius: 12px;
    backdrop-filter: blur(2px);
    border-left: 4px solid var(--secondary-color);
}

.slide-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: white;
    animation: slideUp 0.8s ease;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.95);
    animation: slideUp 0.8s ease 0.2s both;
}

.slide-content .btn-hero {
    animation: slideUp 0.8s ease 0.4s both;
}

/* Botón hero */
.btn-hero {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--secondary-color);
}

.btn-hero:hover {
    background: transparent;
    color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Animación de entrada */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Botones del slider */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 30px rgba(3, 155, 229, 0.4);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

/* Indicadores */
.slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(3, 155, 229, 0.4);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
}

/* ===== SECCIONES ===== */
.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-dark);
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: var(--spacing-xl);
    font-size: 1.1rem;
}

/* ===== SERVICIOS - CON FONDO ===== */
.services-section {
    padding: var(--spacing-xl) 0;
    background-image: url('../images/fondo-servicios.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
}

/* Overlay para mejor legibilidad para hacer mas claro */
.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    z-index: 0;
}

.services-section .container {
    position: relative;
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.service-card {
    background-color: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.service-icon {
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    background-color: transparent;
    border-radius: 0;
}

.service-icon img {
    max-width: 120px;
    max-height: 120px;
    width: auto;
    height: auto;
}

.service-icon i {
    font-size: 3rem;
    color: var(--primary-color);
}

.service-card h3 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    margin-bottom: 0;
    font-size: 1.4rem;
}

.service-content {
    flex-grow: 1;
    margin: 1rem 0;
}

.service-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.5rem 0;
    color: var(--dark-color);
    font-size: 1.1rem;
}

.service-feature i {
    color: var(--secondary-color);
    width: 20px;
    font-size: 1.2rem;
}

.service-card p {
    color: var(--gray);
    margin-bottom: 0;
    line-height: 1.5;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 1.1rem;
}

.service-link:hover {
    color: var(--primary-dark);
}

/* ===== NOTICIAS ===== */
.news-section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-md);
}

.news-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-date {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
}

.news-content {
    padding: var(--spacing-md);
}

.news-content h3 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.news-content p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.news-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== ESTADÍSTICAS ===== */
.stats-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(rgba(38,54,54,0.9), rgba(38,54,54,0.9));
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    text-align: center;
    margin-top: var(--spacing-lg);
}

.stat-item {
    padding: var(--spacing-md);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ===== FOOTER ===== */
.main-footer {
    background-color: var(--dark-color);
    color: var(--white);
}

.footer-top {
    padding: var(--spacing-xl) 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.footer-col h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-logo {
    max-width: 200px;
    margin-bottom: 1rem;
}

.footer-col p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary-light);
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.7);
}

.contact-info i {
    color: var(--primary-light);
    margin-top: 0.25rem;
}

.footer-bottom {
    background-color: rgba(0,0,0,0.2);
    padding: 1.5rem 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-light);
}

/* ===== BOTÓN SCROLL TOP ===== */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background-color: var(--primary-dark);
}

/* ===== RESPONSIVE ===== */

/* Header responsive */
@media (max-width: 1024px) {
    .header-container {
        padding: 0.75rem 0;
    }
    
    .logo img {
        height: 50px;
    }
    
    .logo-text h1 {
        font-size: 1.3rem;
    }
}

@media (max-width: 992px) {
    .logo img {
        height: 75px;
    }
    
    .logo-text h1 {
        font-size: 1.8rem;
    }
    
    .logo-text p {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 100px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-md);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: transform 0.3s ease-out;
        z-index: 999;
    }
    
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .nav-menu > li > a {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--gray-light);
    }
    
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin-left: 1rem;
        display: none;
    }
    
    .submenu.active {
        display: block;
    }
    
    .header-container {
        padding: 0 15px;
    }
    
    .logo a {
        gap: 0.8rem;
    }
    
    .logo img {
        height: 80px;
    }
    
    .logo-text h1 {
        font-size: 1.5rem;
    }
    
    .logo-text p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 50px;
    }
    
    .logo a {
        gap: 0.5rem;
    }
    
    .logo-text h1 {
        font-size: 1.2rem;
    }
    
    .logo-text p {
        font-size: 0.7rem;
        display: none;
    }
    
    .nav-menu {
        top: 90px;
    }
}

/* Carrusel responsive */
@media (max-width: 1024px) {
    .hero-slider {
        height: 500px;
    }
    
    .slide-content h2 {
        font-size: 2.8rem;
    }
    
    .slide-content {
        left: 8%;
        max-width: 500px;
        padding: 25px 30px;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 450px;
    }
    
    .slide-content {
        left: 5%;
        right: 5%;
        max-width: 90%;
        bottom: 15%;
        padding: 20px 25px;
    }
    
    .slide-content h2 {
        font-size: 2.2rem;
    }
    
    .slide-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .slider-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .slider-btn.prev {
        left: 10px;
    }
    
    .slider-btn.next {
        right: 10px;
    }
    
    .indicator {
        width: 12px;
        height: 12px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 380px;
    }
    
    .slide-content {
        padding: 15px 20px;
        background: rgba(0, 0, 0, 0.5);
    }
    
    .slide-content h2 {
        font-size: 1.6rem;
    }
    
    .slide-content p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .btn-hero {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
    
    .slider-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    .slider-btn.prev {
        left: 5px;
    }
    
    .slider-btn.next {
        right: 5px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
    
    .slider-indicators {
        gap: 8px;
        bottom: 15px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 1.5rem 1rem;
    }
    
    .service-icon img {
        max-width: 100px;
        max-height: 100px;
    }
    
    .scroll-top-btn {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

/* ===== FIX PARA EL CARRUSEL - ELIMINA FONDOS GRISES ===== */
.slide {
    background: transparent !important;
}

.slide img {
    background: transparent !important;
}

.slider-container {
    background: transparent !important;
}

.slide:not(.active) {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.slide.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}