/*
Theme Name: Cacayal de Oriente
Theme URI: https://cacayaldeoriente.com
Author: Axel & Julian (Dualmind AI Agency)
Description: Tema oficial para Cacayal de Oriente.
Version: 1.0.0
Text Domain: cacayaldeoriente
*/

:root {
    /* Paleta de Colores Principal (Extraída del Logo) */
    --color-primary: #576B1F;      /* Verde Oliva Intenso - Títulos y Textos fuertes */
    --color-secondary: #93A256;    /* Verde Claro - Secciones, acentos suaves */
    --color-tertiary: #E0DDC7;     /* Crema Verdoso - Fondo general */
    --color-accent: #F0BB78;       /* Dorado/Arena - Botones, llamadas a la acción (Aceite) */
    
    /* Colores Neutrales */
    --color-text-body: #2D340D;    /* Verde muy oscuro (casi negro) - Para mejor lectura */
    --color-white: #FFFFFF;        /* Tarjetas de producto */
    
    /* Tipografías */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Lato', sans-serif;
}

/* ==========================================
   RESET Y ESTILOS BASE
   ========================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-tertiary);
    color: var(--color-text-body);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-accent);
}

/* ==========================================
   TIPOGRAFÍA Y JERARQUÍA (H1 - H6)
   ========================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75em;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.5px;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.5em;
    font-weight: 300;
}

/* ==========================================
   BOTONES Y LLAMADOS A LA ACCIÓN
   ========================================== */
.btn,
button,
input[type="submit"] {
    display: inline-block;
    background-color: var(--color-accent);
    color: #fff; /* Texto blanco sobre el dorado */
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px 28px;
    border: none;
    border-radius: 4px; /* Bordes ligeramente suaves */
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover,
button:hover,
input[type="submit"]:hover {
    background-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(98, 111, 71, 0.2);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* ==========================================
   ESTRUCTURA BÁSICA (Layout)
   ========================================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

#site-header {
    background-color: transparent;
    padding: 0;
    position: relative;
    z-index: 1000;
    margin-top: 3px; /* Espacio mínimo de 3px respecto al borde superior */
}

#site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Conexión directa con la base del Hero */
}

.site-branding {
    background-color: var(--color-primary); /* Mismo verde oliva que el Hero */
    padding: 20px 30px;
    border-radius: 20px 20px 0 0; /* Efecto pestaña de carpeta */
    position: relative;
    bottom: -1px; /* Solapamiento milimétrico para evitar fugas de color */
    z-index: 10;
}

.site-logo {
    display: block;
    width: 80px;
    height: 80px;
    object-fit: contain; /* Mantiene la proporción de la imagen sin deformarla */
}

/* Eliminamos el efecto de escalado para que el logo se mantenga fijo */
.custom-logo-link:hover .site-logo {
    transform: none;
}

#site-navigation ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 45px;
    margin: 0;
    padding-bottom: 25px; /* Alinear el texto del menú con la pestaña a la izquierda */
}

#site-navigation a {
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    padding-bottom: 5px;
}

/* Efecto elegante al pasar el ratón en el menú */
#site-navigation a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

#site-navigation a:hover::after {
    width: 100%;
}

#site-navigation a:hover {
    color: var(--color-accent);
}

#main-content {
    padding: 60px 0;
    min-height: 60vh;
}

#site-footer {
    background-color: var(--color-primary);
    color: var(--color-tertiary);
    padding: 40px 0;
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.9rem;
}

/* ==========================================
   FRONT PAGE (PORTADA)
   ========================================== */
#main-content.front-page {
    padding-top: 0; /* Sin margen para que el Hero se fusione con la pestaña del Header */
}

/* Hero Section */
.hero-wrapper {
    background-color: var(--color-primary); /* Color de fondo por si la imagen tarda */
    background-size: cover;
    background-position: center;
    border-radius: 0 20px 20px 20px; /* Esquina superior izquierda recta para conectar perfectamente con la pestaña */
    padding: 120px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 550px;
    box-shadow: 0 20px 40px rgba(98, 111, 71, 0.15); /* Sombra elegante */
}

/* Capa oscura sobre la imagen para que el texto resalte */
.hero-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Gradiente sincronizado con el verde oliva (rgb de #576B1F es 87, 107, 31) */
    background: linear-gradient(to bottom, rgba(87, 107, 31, 0.4), rgba(45, 52, 13, 0.7));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    color: var(--color-white);
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.hero-content p {
    color: var(--color-tertiary);
    font-size: 1.25rem;
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.hero-buttons .btn-outline {
    border-color: var(--color-white);
    color: var(--color-white);
}

.hero-buttons .btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

/* Trust Banner (Marquee) */
.trust-banner {
    background-color: var(--color-primary);
    color: var(--color-tertiary);
    padding: 20px 0;
    margin-top: 60px;
    overflow: hidden;
    white-space: nowrap;
}

.marquee {
    display: flex;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    animation: scroll 20s linear infinite;
    gap: 40px;
    align-items: center;
}

.marquee-content span {
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.marquee-content .dot {
    color: var(--color-accent);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Product Grid */
.product-grid-section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.product-card {
    background-color: var(--color-white);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 10px 30px rgba(98, 111, 71, 0.05);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(98, 111, 71, 0.15);
}

.product-img-placeholder {
    background-color: var(--color-tertiary);
    height: 300px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
    font-weight: bold;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.product-card p {
    color: var(--color-text-body);
}

.btn-link {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    display: inline-block;
    margin-top: 15px;
    border-bottom: 2px solid transparent;
}

.btn-link:hover {
    border-bottom-color: var(--color-accent);
}

/* Split Section */
.split-section {
    padding: 100px 0;
    background-color: var(--color-white);
}

.split-wrapper {
    display: flex;
    align-items: center;
    gap: 80px;
}

.split-image-placeholder {
    flex: 1;
    background-color: var(--color-secondary);
    height: 500px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: bold;
    letter-spacing: 1px;
}

.split-content {
    flex: 1;
}

.split-content h2 {
    margin-bottom: 25px;
}

.split-content p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.8;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .split-wrapper {
        flex-direction: column;
    }
    .split-image-placeholder {
        width: 100%;
    }
}
