/* 
 * Variables globales del sitio
 * ---------------------------
 * Colores principales, tamaños y espaciados que se usan en todo el sitio
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');
@import url('./colors.css');
@import url('./header.css');
@import url('./footer.css');
@import url('./responsive.css');

/* ============================================
   LAYOUT BASE - Sticky Footer
   ============================================ */
html { 
    height: 100%; 
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    padding-top: 64px; /* Espacio para el header fijo */
    background: var(--body-bg);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

main { 
    flex: 1 0 auto; 
    padding: 2rem 0; 
    background: var(--page-bg);
    width: 100%;
}

footer { 
    flex-shrink: 0;
    width: 100%;
}

/* ============================================
   VARIABLES Y FUENTES
   ============================================ */
:root {
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --spacing-md: 1rem;
    --max-ancho: var(--max-width);
}

/* ============================================
   RESET BÁSICO
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================
   ESTRUCTURA PRINCIPAL
   ============================================ */
.wrap { 
    max-width: var(--max-ancho); 
    margin: 0 auto; 
    width: 100%; 
    padding: 0 var(--spacing-md);
}
/* ============================================
   ESTRUCTURA PRINCIPAL
   ============================================ */
.wrap { 
    max-width: var(--max-ancho); 
    margin: 0 auto; 
    width: 100%; 
    padding: 0 var(--spacing-md);
}

/* ============================================
   TIPOGRAFÍA
   ============================================ */
h2 { 
    font-family: var(--font-heading); 
    font-size: 2rem; 
    color: var(--text-primary); 
    text-align: center; 
    margin: 0.5rem 0; 
}

h3 { 
    font-family: var(--font-heading); 
    font-size: 1.25rem; 
    color: var(--text-primary); 
    margin-top: 1rem; 
}

.page-title.centered {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

p { 
    margin-bottom: 1rem; 
    color: var(--text-primary); 
}

/* ============================================
   COMPONENTES REUTILIZABLES
   ============================================ */
.card {
    background: transparent;
    color: var(--text-primary);
    padding: var(--spacing-md);
    border-radius: 0;
    box-shadow: none;
    animation: fade-in 420ms ease both;
}

.services-list { 
    list-style: none; 
}

.services-list li { 
    padding: 0.5rem 0 0.5rem 1.5rem; 
    position: relative; 
    color: var(--text-primary); 
}

.services-list li::before { 
    content: "•"; 
    color: var(--accent); 
    position: absolute; 
    left: 0; 
}

.contact-info { 
    background: var(--brand-mid); 
    color: var(--text-primary); 
    padding: 1.5rem; 
    margin-top: 1.5rem; 
    border-radius: 6px; 
}

/* ============================================
   PÁGINA "QUÉ HACER" - DESTINOS Y ACTIVIDADES
   ============================================ */
.destination-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--brand-dark);
    border-radius: 12px;
}

.destination-section h2 {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    color: var(--accent);
}

.destination-section h2 .material-icons {
    font-size: 2rem;
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.activity-card {
    background: var(--page-bg);
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.activity-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.activity-card ul {
    list-style: none;
    padding: 0;
}

.activity-card li {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
    position: relative;
}

.activity-card li::before {
    content: "•";
    color: var(--accent);
    position: absolute;
    left: 0;
}

.info-box {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.info-box h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.info-box ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.tips-section {
    margin-top: 3rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tip-card {
    background: var(--brand-dark);
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-5px);
}

.tip-card h3 {
    color: var(--accent);
    margin-bottom: 1rem;
}

.tip-card ul {
    list-style: none;
    padding: 0;
}

.tip-card li {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
    position: relative;
}

.tip-card li::before {
    content: "•";
    color: var(--accent);
    position: absolute;
    left: 0;
}

@media (max-width: 768px) {
    .destination-section {
        padding: 1.5rem;
    }
    
    .activity-grid {
        grid-template-columns: 1fr;
    }
    
    .info-box ul {
        grid-template-columns: 1fr;
    }
}

/* service cards */
.services-grid { 
    display: flex; 
    gap: 1.5rem; 
    justify-content: center; 
    flex-wrap: wrap; 
    margin-top: 2rem; 
}

.service-card { 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 300px; 
    min-height: 300px;
    padding: 2rem 1.5rem; 
    background: var(--brand-dark);
    border-radius: 12px; 
    text-decoration: none; 
    color: var(--text-primary);
    transition: transform 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s cubic-bezier(.4,0,.2,1);
    text-align: center;
    opacity: 0;
    animation: fade-in 0.7s forwards;
}

.service-card .material-icons {
    font-size: 4rem;
    color: var(--accent);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.04);
    box-shadow: 0 16px 32px rgba(0,0,0,0.22);
}

.service-card:hover .material-icons {
    transform: scale(1.1);
}

.service-card h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    transition: transform 0.4s ease;
}

/* Card content hover effect */
.card-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: opacity 0.4s ease, max-height 0.4s ease;
    text-align: center;
}

.service-card:hover .card-content {
    opacity: 1;
    max-height: 200px;
}

.service-card:hover h3 {
    transform: translateY(-10px);
}

.card-content p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 280px;
}

@keyframes fade-in { from { opacity:0; transform: translateY(6px); } to { opacity:1; transform: none; } }

@media (max-width: 768px) {
    :root { --spacing-md: 1rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1rem; }
    .services-grid { flex-direction:column; align-items:center; }
    .service-card { width:100%; max-width:520px; }
}

/* Estilos del Hero */
.hero {
    position: relative;
    width: 100%;
    height: 75vh; /* Altura fija del 75% del viewport */
    min-height: 500px; /* Altura mínima para evitar que se comprima demasiado */
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: var(--brand-dark);
}

/* Logo overlay en la parte inferior */
.hero-logo {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 4;
}

.hero-logo .logo-overlay {
    width: auto;
    height: 22vh; /* Aumentado a más de 1/5 de la pantalla */
    min-height: 180px; /* altura mínima aumentada */
    max-height: 350px; /* altura máxima aumentada */
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.hero-logo .logo-overlay:hover {
    transform: scale(1.05);
}

/* Imagen de fondo */
.hero img#hero-image {
    position: absolute;
    inset: 0; /* Ocupa todo el espacio del contenedor */
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

/* Capa de overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(0, 0, 0, 0.4); /* Overlay más oscuro para mejor contraste */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contenido del hero */
.hero-content {
    position: relative;
    width: 90%;
    max-width: var(--max-width);
    text-align: center;
    padding: 2rem;
    z-index: 3;
}

.hero-content h1 { 
    font-family: var(--font-heading); 
    font-size: clamp(2.5rem, 6vw, 4rem); 
    margin: 0 0 0.5rem 0; 
    color: white; 
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); 
}

.hero-sub { 
    font-size: clamp(1.2rem, 2.5vw, 1.5rem); 
    margin: 0 0 3rem 0; 
    color: white; 
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    font-weight: 300;
    letter-spacing: 0.5px;
}

.hero-features {
    display: flex;
    gap: 3rem;
    justify-content: center;
    color: white;
    margin-top: 2rem;
}

.feature {
    text-align: center;
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature .material-icons {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.feature p {
    font-size: 1.1rem;
    margin: 0;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .hero-features {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center; /* centra el contenedor de features */
    }

    .feature {
        display: block; /* evita layout en fila */
        text-align: center; /* centra texto e icono */
    }

    .feature .material-icons {
        margin-bottom: 0.5rem; /* icono encima del texto */
    }
}/* Aseguramos que el botón CTA se vea bien */
.btn-cta {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 1rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.btn-cta { display: inline-block; background: var(--accent); color: #fff; padding: 0.75rem 1.25rem; border-radius: 6px; text-decoration: none; font-weight:600; box-shadow: 0 6px 18px rgba(0,0,0,0.12); transition: transform .18s ease; }
.btn-cta:hover { transform: translateY(-4px); }