/* Las fuentes de Google se cargan vía <link rel="preconnect"> + stylesheet en
   views/layout/header.php (mejor LCP que un @import bloqueante aquí). */

:root {
    --primary-color: #e67e22; /* Trayen Orange */
    --primary-dark: #d35400;
    --secondary-color: #2c3e50;
    --accent-color: #25D366; /* WhatsApp Green */
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --soft-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Escala tipográfica base: 16px por defecto → 15px (~94%).
   Afecta de forma uniforme todo lo que usa rem (incluye títulos Bootstrap).
   Ajustar este valor para subir/bajar la tipografía global. */
html {
    font-size: 15px;
    /* Anclas (#contacto, #cabanas, …): que no queden bajo el navbar fijo. */
    scroll-padding-top: 90px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    /* Compensa el navbar fixed-top (~90px) para que el contenido de las
       páginas internas no quede oculto debajo. El hero lo revierte con un
       margin-top negativo para mantenerse a sangre completa. */
    padding-top: 90px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* Navbar Customization */
.navbar {
    transition: var(--transition);
    padding: 0.8rem 0;
    background-color: var(--white);
    box-shadow: var(--soft-shadow);
}

.navbar.scrolled {
    padding: 0.5rem 0;
}

.navbar-brand img {
    height: 65px;
    transition: var(--transition);
}

.footer-logo {
    max-height: 45px;
    width: auto;
}

.nav-link {
    font-weight: 500;
    color: var(--secondary-color) !important;
    margin: 0 10px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    /* Revierte el padding-top del body para ocupar la pantalla completa,
       quedando el navbar fijo (translúcido/blanco) por encima. */
    margin-top: -90px;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

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

/* Cards & Sections */
.section-padding {
    padding: 80px 0;
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: var(--soft-shadow);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
}

.card-title {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: scale(1.05);
}

.btn-whatsapp {
    background-color: var(--accent-color);
    color: white;
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: 600;
}

.btn-whatsapp:hover {
    color: white;
    background-color: #128C7E;
}

/* Slider "Nuestro Entorno" (home) */
.entorno-slide {
    min-height: 460px;
    background-size: cover;
    background-position: center;
}

/* Utilities */
.text-primary-custom { color: var(--primary-color); }
.bg-light-custom { background-color: var(--light-bg); }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .navbar-brand img {
        height: 50px; /* Logo más pequeño en móvil */
    }
    
    .hero-section {
        height: auto;
        min-height: 80vh;
        padding: 100px 0 50px 0;
    }
    
    .hero-content h1 {
        font-size: 1.8rem; /* Título más pequeño */
        line-height: 1.2;
    }
    
    .hero-content .fs-4 {
        font-size: 1.1rem !important; /* Subtítulo más pequeño */
    }
    
    .section-padding {
        padding: 50px 0;
    }

    .display-5 {
        font-size: 2rem;
    }

    .hero-content .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}
