/*
Theme Name: Colmenas Huerto La Semilla - Child Theme
Description: Tema hijo optimizado para SEO local, CRO y Performance
Template: grocery-and-organic-store
Version: 1.0.0
*/

/* ========================================
   VARIABLES CSS - DESIGN TOKENS
   ======================================== */
:root {
    /* Colores de Marca */
    --color-honey: #f4a622;
    --color-honey-dark: #e08c00;
    --color-earth: #2d1810;
    --color-earth-light: #5c3d2e;
    --color-cream: #fef9f3;
    --color-sage: #8b9a7b;

    /* Tipografía */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;

    /* Bordes y Sombras */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 50px rgba(0, 0, 0, 0.15);
}

/* ========================================
   HERO SECTION - SEO LOCAL GRAND RAPIDS
   ======================================== */
.hero-colmenas {
    position: relative;
    width: 100%;
    min-height: 80vh;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-earth) 0%, var(--color-earth-light) 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.hero-bg img.loaded {
    opacity: 0.85;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: var(--spacing-md);
    text-align: center;
    color: #fff;
}

.hero-location-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    margin-bottom: var(--spacing-sm);
    background: rgba(244, 166, 34, 0.2);
    border: 1px solid var(--color-honey);
    border-radius: 50px;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero-highlight {
    display: block;
    color: var(--color-honey);
    font-size: 0.5em;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    max-width: 600px;
    margin-bottom: var(--spacing-md);
    opacity: 0.95;
}

/* CTAs Primarios */
.hero-cta-group {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    justify-content: center;
}

/* ========================================
   BOTONES - SISTEMA UNIFICADO
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-honey) 0%, var(--color-honey-dark) 100%);
    color: var(--color-earth);
    box-shadow: 0 8px 25px rgba(244, 166, 34, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 12px 35px rgba(244, 166, 34, 0.5);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
}

.btn-whatsapp:hover {
    background: #1ebe5d;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ========================================
   BLOQUE DE AUTORIDAD DEL AUTOR (E-E-A-T)
   ======================================== */
.author-authority-block {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    margin: var(--spacing-lg) 0;
    background: linear-gradient(135deg, var(--color-cream) 0%, #f5efe6 100%);
    border-left: 4px solid var(--color-honey);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.author-photo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--color-honey);
    object-fit: cover;
}

.author-info h4 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--color-earth);
}

.author-title {
    color: var(--color-earth-light);
    font-style: italic;
    margin: 0.25rem 0 var(--spacing-sm);
}

.author-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: var(--spacing-sm);
}

.credential {
    background: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-lg);
    font-size: 0.85rem;
    border: 1px solid #e0d5c5;
}

/* ========================================
   LEAD MAGNET - FORMULARIO CON SEGMENTACIÓN
   ======================================== */
.lead-magnet-container {
    max-width: 500px;
    margin: var(--spacing-md) auto;
    padding: var(--spacing-md);
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.lead-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.lead-magnet-content h3 {
    margin: 0 0 0.5rem;
    color: var(--color-earth);
}

.form-group {
    margin-bottom: var(--spacing-sm);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-earth);
}

.form-group input[type="email"] {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid #e0d5c5;
    border-radius: var(--radius-sm);
    transition: border-color 0.2s;
}

.form-group input[type="email"]:focus {
    outline: none;
    border-color: var(--color-honey);
}

/* Selector de Intereses */
.interest-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.interest-option input {
    display: none;
}

.interest-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-sm);
    border: 2px solid #e0d5c5;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    text-align: center;
}

.interest-card span.icon {
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
}

.interest-option input:checked+.interest-card {
    border-color: var(--color-honey);
    background: var(--color-cream);
    transform: scale(1.05);
}

.privacy-note {
    margin-top: var(--spacing-sm);
    font-size: 0.85rem;
    color: #666;
    text-align: center;
}

/* ========================================
   BOTÓN FLOTANTE WHATSAPP
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: #25D366;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
    color: #fff;
}

.whatsapp-float svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Tooltip en desktop */
.whatsapp-float .tooltip {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.3s;
}

.whatsapp-float:hover .tooltip {
    max-width: 200px;
}

/* Mobile: Solo icono, más grande */
@media (max-width: 768px) {
    .whatsapp-float {
        padding: 1rem;
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-float .tooltip {
        display: none;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }

    .interest-selector {
        grid-template-columns: 1fr;
    }

    .author-authority-block {
        flex-direction: column;
        text-align: center;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
}

/* ========================================
   ENLACE B2B PARA RESTAURANTES
   ======================================== */
.b2b-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    margin: var(--spacing-sm) 0;
    background: var(--color-cream);
    color: var(--color-earth);
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: var(--radius-sm);
    border: 1px solid #e0d5c5;
    transition: all 0.2s;
}

.b2b-link:hover {
    background: var(--color-honey);
    border-color: var(--color-honey);
    color: var(--color-earth);
}

/* Footer B2B Section */
.footer-b2b {
    padding: var(--spacing-md);
    background: var(--color-earth);
    text-align: center;
}

.footer-b2b h4 {
    color: var(--color-honey);
    margin-bottom: 0.5rem;
}

.footer-b2b p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-sm);
}