:root {
    --primary: #007bff;
    --accent: #28a745;
    --dark: #1a1a1a;
    --light: #f8f9fa;
}

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    margin: 0; 
    color: var(--dark); 
    scroll-behavior: smooth; 
    line-height: 1.6;
}

/* MENÚ SIEMPRE VISIBLE */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 15px 5%; 
}

.logo { 
    font-size: 1.5rem; 
    font-weight: 800; 
    color: var(--primary); 
}

nav ul { 
    display: flex; 
    list-style: none; 
    margin: 0;
}

nav ul li { margin-left: 25px; }

nav ul li a { 
    text-decoration: none; 
    color: var(--dark); 
    font-weight: 600; 
    transition: 0.3s;
}

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

/* SECCIÓN HERO - IMAGEN MEJORADA */
.hero {
    height: 60vh; /* Aumentado para que la imagen se luzca */
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
                url('/imagenes/aires/reudelosaires.jpg'); 
    background-size: cover; /* Cubre todo el espacio sin deformarse */
    background-position: center 60%; /* Ajusta el foco de la imagen */
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 0 5%;
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 { font-size: 3rem; margin-bottom: 10px; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }

.btn-cta { 
    background: var(--accent); 
    color: white; 
    padding: 18px 35px; 
    text-decoration: none; 
    border-radius: 50px; 
    font-weight: bold; 
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
    transition: 0.3s;
}

.btn-cta:hover { transform: scale(1.05); background: #218838; }

/* SERVICIOS Y TABLA */
.section-title { text-align: center; margin-top: 50px; font-size: 2rem; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; padding: 40px 5%; }

.card { 
    background: white; 
    padding: 40px 20px; 
    border-radius: 15px; 
    text-align: center; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s ease;
}

.card i { font-size: 2.5rem; color: var(--primary); margin-bottom: 15px; }

.card:hover { transform: translateY(-10px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }

.table-container { padding: 40px 5%; }

table { width: 100%; border-collapse: collapse; background: white; border-radius: 10px; overflow: hidden; }

th, td { padding: 15px; border-bottom: 1px solid #eee; text-align: left; }

th { background-color: var(--primary); color: white; }

.disclaimer { font-size: 0.85rem; color: #666; font-style: italic; }

footer { background: var(--dark); color: white; text-align: center; padding: 20px 0; margin-top: 50px; }

.services-info {
    max-width: 80%;
    margin: 0 auto 40px auto;
    padding: 0 20px;
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--dark);
    text-align: center;
}

/* Estilos del Slider */
.image-slider {
    position: relative;
    max-width: auto;
    margin: auto;
    overflow: hidden;
    background: transparent;
}

.slider-container {
    position: relative;
    height: 80vh; /* Ajusta la altura según prefieras */
}

.slide {
    display: none;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Mantiene la proporción de la imagen */

    /* MODIFICACIÓN DE BORDES */
   /* border: 4px solid var(--primary);  Usa el azul de tu logo */
    border-radius: 10px;
}


/* Botones Prev y Next */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.3);
    z-index: 10;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: var(--primary);
}

/* Efecto de desvanecimiento (Fade) */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

/* Puntos indicadores */
.dots-container {
    text-align: center;
    padding: 10px;
    background: white;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: var(--primary);
}


/* --- DISEÑO RESPONSIVO (MÓVILES Y TABLETS) --- */

/* Para tablets y celulares (Pantallas menores a 768px) */
@media (max-width: 768px) {
    
    /* 1. Menú de navegación */
    nav {
        flex-direction: column; /* Pone el logo arriba y los links abajo */
        padding: 10px;
    }

    .logo {
        font-size: 1.1rem; /* Reduce el tamaño del texto largo del logo */
        text-align: center;
        margin-bottom: 10px;
    }

    nav ul {
        padding: 0;
        justify-content: center;
        width: 100%;
    }

    nav ul li {
        margin: 0 10px; /* Reduce espacio entre botones del menú */
    }

    nav ul li a {
        font-size: 0.9rem;
    }

    /* 2. Slider (Ajuste de altura para celulares) */
    .slider-container {
        height: 40vh; /* Más bajito en celular para que no tape todo */
    }

    .prev, .next {
        padding: 10px;
        font-size: 18px; /* Flechas más pequeñas */
    }

    /* 3. Hero y Títulos */
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    /* 4. Tabla de Precios (Scroll lateral para que no se rompa) */
    .table-container {
        padding: 10px;
        overflow-x: auto; /* Permite deslizar la tabla con el dedo */
    }

    table {
        min-width: 500px; /* Asegura que la info no se amontone */
        font-size: 0.85rem;
    }
}

/* Para celulares muy pequeños (Pantallas menores a 480px) */
@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr; /* Una sola columna de servicios */
        padding: 20px;
    }

    .btn-cta {
        width: 90%;
        padding: 12px;
        font-size: 1rem;
    }
}