/* --- VARIABLES Y TOKENS DE DISEÑO 2026 --- */
:root {
    /* Paleta de Colores: Cálidos, Panadería Artesanal */
    --color-bg: #fdfbf7; /* Crema muy suave */
    --color-bg-light: #f5f0e6;
    --color-dark: #451a03; /* Marrón profundo oscuro */
    --color-dark-accent: #291002; 
    --color-primary: #d97706; /* Naranja cálido dorado / Pan tostado */
    --color-primary-hover: #b45309; 
    --color-text: #573b2a;
    --color-text-light: #785a46;
    --color-white: #ffffff;
    
    /* Efectos Modernos */
    --glass-bg: rgba(253, 251, 247, 0.85);
    --glass-border: 1px solid rgba(217, 119, 6, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(69, 26, 3, 0.05);
    --glass-blur: blur(12px);
    
    /* Tipografía */
    --font-heading: 'Lora', serif; /* Toque artesanal y tradicional pero elegante */
    --font-main: 'Outfit', sans-serif; /* Moderno y legible para el texto */
    
    /* Espaciados */
    --sp-xs: 0.5rem;
    --sp-sm: 1rem;
    --sp-md: 2rem;
    --sp-lg: 4rem;
    --sp-xl: 6rem;
    
    /* Bordes y Transiciones */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- RESET Y GLOBALES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-dark);
    font-weight: 700;
    line-height: 1.2;
}

p {
    color: var(--color-text-light);
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: var(--transition-smooth);
}

/* --- UTILIDADES --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--sp-md);
}

.section-padding { padding: var(--sp-xl) 0; }
.bg-light { background-color: var(--color-bg-light); }
.bg-dark { background-color: var(--color-dark); }
.text-white h2, .text-white p, .text-white h3, .text-white h4, .text-white i {
    color: var(--color-bg);
}

.text-center { text-align: center; }
.mt-lg { margin-top: var(--sp-lg); }
.mt-xl { margin-top: var(--sp-xl); }

/* --- EFECTOS --- */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: var(--glass-border);
}

.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(217, 119, 6, 0.15);
    box-shadow: 0 10px 30px -10px rgba(69, 26, 3, 0.08);
    border-radius: var(--radius-lg);
}

/* Animaciones al Scrollear */
.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}
.fade-in.visible { opacity: 1; }

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- BOTONES --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    font-family: var(--font-main);
    font-size: 1rem;
}

.btn-sm { padding: 8px 20px; font-size: 0.9rem; }
.btn-lg { padding: 18px 40px; font-size: 1.1rem; }

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 14px 0 rgba(217, 119, 6, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-dark);
    border-color: rgba(69, 26, 3, 0.2);
}

.btn-outline:hover {
    border-color: var(--color-dark);
    background-color: var(--color-dark);
    color: var(--color-bg);
}

/* --- NAVEGACIÓN --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-dark);
}
.logo span { color: var(--color-primary); }

.nav-links {
    display: flex;
    gap: var(--sp-md);
    align-items: center;
}

.nav-links a:not(.btn) {
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.95rem;
}
.nav-links a:not(.btn):hover { color: var(--color-primary); }

/* --- HERO SECTION --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px; 
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Patrón sutil o gradiente que evoque calidez */
    background: radial-gradient(circle at 80% 20%, rgba(217, 119, 6, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 20% 80%, rgba(69, 26, 3, 0.05) 0%, transparent 40%);
    z-index: -1;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hero-text {
    max-width: 650px;
    padding: var(--sp-lg);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    margin-bottom: var(--sp-sm);
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: var(--sp-md);
}

.cta-group {
    display: flex;
    gap: var(--sp-sm);
    flex-wrap: wrap;
}

/* --- SECTION TITLES --- */
.section-title {
    text-align: center;
    margin-bottom: var(--sp-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: var(--sp-xs);
}

/* --- GRID LAYOUTS --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--sp-md);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--sp-md);
}

/* --- PRODUCTOS / SERVICIOS CARDS --- */
.card {
    background: var(--color-white);
    padding: var(--sp-md);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px -10px rgba(69, 26, 3, 0.05);
    border: 1px solid rgba(217, 119, 6, 0.05);
    transition: var(--transition-smooth);
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(217, 119, 6, 0.15);
}

.card .icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: var(--sp-sm);
    display: inline-block;
    padding: 15px;
    background: rgba(217, 119, 6, 0.1);
    border-radius: 50%;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: var(--sp-xs);
}

/* --- BENEFICIOS --- */
.benefit-item {
    text-align: center;
    padding: var(--sp-md);
}

.benefit-icon {
    font-size: 2rem;
    color: var(--color-dark);
    margin-bottom: var(--sp-sm);
    width: 70px;
    height: 70px;
    background: var(--color-white);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--sp-sm) auto;
    box-shadow: 0 10px 25px -5px rgba(69, 26, 3, 0.08);
}

.benefit-item h4 { margin-bottom: var(--sp-xs); font-size: 1.2rem; }

/* --- HOW IT WORKS --- */
.steps-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 0 var(--sp-sm);
    z-index: 2;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    margin: 0 auto var(--sp-sm) auto;
    box-shadow: 0 0 0 10px rgba(217, 119, 6, 0.15);
}

.step-line {
    flex: 1;
    height: 2px;
    background: rgba(217, 119, 6, 0.2);
    margin-top: 25px;
    z-index: 1;
}

.step h4 { margin-bottom: var(--sp-xs); }

/* --- TRUST SECTION --- */
.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-sm);
}
.trust-item i { font-size: 3rem; color: var(--color-primary); }

/* --- LOCATION --- */
.location-content {
    display: flex;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(69, 26, 3, 0.08);
}

.location-text {
    flex: 1;
    padding: var(--sp-lg);
}

.location-text h2 { margin-bottom: var(--sp-sm); }
.location-text > p { margin-bottom: var(--sp-md); }

.info-group {
    display: flex;
    gap: var(--sp-sm);
    margin-bottom: var(--sp-sm);
    align-items: flex-start;
}

.info-group i {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-top: 2px;
}

.info-group h4 { font-size: 1.1rem; margin-bottom: 4px; }

.location-map {
    flex: 1;
    background: var(--color-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    border-left: 1px solid rgba(0,0,0,0.05);
}

.map-placeholder {
    text-align: center;
    color: var(--color-text-light);
}
.map-placeholder i { font-size: 3rem; margin-bottom: var(--sp-sm); opacity: 0.5; }

/* --- FOOTER --- */
.footer {
    background: var(--color-dark-accent);
    color: var(--color-bg);
    padding: var(--sp-xl) 0 var(--sp-md) 0;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: var(--sp-lg);
    margin-bottom: var(--sp-md);
    flex-wrap: wrap;
    gap: var(--sp-md);
}

.footer-brand h3 {
    color: var(--color-white);
    font-size: 1.8rem;
    margin-bottom: var(--sp-xs);
    font-family: var(--font-heading);
}
.footer-brand span { color: var(--color-primary); }
.footer-brand p { color: rgba(253, 251, 247, 0.6); max-width: 300px; }

.footer-links h4 { color: var(--color-white); margin-bottom: var(--sp-sm); }
.footer-links a {
    display: block;
    color: rgba(253, 251, 247, 0.6);
    margin-bottom: 8px;
}
.footer-links a:hover { color: var(--color-white); }

.footer-bottom {
    text-align: center;
    color: rgba(253, 251, 247, 0.4);
    font-size: 0.9rem;
}

/* --- COOKIE BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.98);
    padding: var(--sp-md);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(69, 26, 3, 0.15);
    border: 1px solid rgba(217, 119, 6, 0.1);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-md);
    transition: bottom 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.show { bottom: var(--sp-md); }
.cookie-content h4 { margin-bottom: 4px; font-size: 1.1rem; }
.cookie-content p { font-size: 0.85rem; margin: 0; }
.cookie-buttons { display: flex; gap: 8px; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .nav-links { display: none; } 
    .hero-text { padding: var(--sp-md); text-align: center; }
    .hero-content { justify-content: center; }
    .cta-group { justify-content: center; }
    .steps-container { flex-direction: column; align-items: center; }
    .step-line { width: 2px; height: 30px; margin: 10px 0; }
    .location-content { flex-direction: column; }
    .cookie-banner { flex-direction: column; text-align: center; }
}
