/*
Theme Name: Divi Child - Plantanova
Theme URI: https://plantanova.com.mx/
Description: Tema hijo para PlantaNova México. Arquitectura visual basada en el Brand Book oficial (PlantaNova.pdf) con paleta Teal #287aa0, Verde Lima #95c11f y tipografías Ubuntu y Roboto.
Author: Gabriel (Ingeniero en Sistemas) & Antigravity AI
Template: Divi
Version: 1.3.0
*/

/* 
================================================================================
SECCIÓN 1: SISTEMA DE DISEÑO Y VARIABLES CSS (MANUAL DE IDENTIDAD OFICIAL)
================================================================================
Valores extraídos de tmp/PlantaNova.pdf (Páginas 11 y 15).
// EDITAR AQUÍ: Modifica las variables CSS globales para ajustar la paleta.
*/
:root {
    /* Paleta Primaria */
    --pn-teal:          #287aa0; /* RGB 40, 122, 160  - Primary Teal */
    --pn-green:         #95c11f; /* RGB 149, 193, 31  - Accent Lime Green */
    --pn-white:         #ffffff; /* Blanco de contraste y pulcritud */

    /* Paleta Secundaria / Acentos */
    --pn-navy:          #004c74; /* RGB 0, 76, 116    - Deep Navy Blue */
    --pn-dark-green:    #207532; /* RGB 32, 117, 15   - Forest Green */
    --pn-ice-blue:      #f0f5fb; /* RGB 240, 245, 251 - Ice Blue para fondos */
    --pn-light-green:   #eaf2dd; /* RGB 234, 242, 221 - Soft Green badges */
    
    /* Neutros y Texto */
    --pn-text-dark:     #1e293b; /* Slate 800 para lectura nítida */
    --pn-text-muted:    #64748b; /* Slate 500 para subtítulos */
    --pn-border-light:  #e2e8f0; /* Bordes suaves */

    /* Tipografías */
    --pn-font-heading:  'Ubuntu', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --pn-font-body:     'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

/* 
================================================================================
SECCIÓN 2: TIPOGRAFÍA BASE Y JERARQUÍA VISUAL
================================================================================
*/
body {
    font-family: var(--pn-font-body);
    color: var(--pn-text-dark);
    font-size: 16px;
    line-height: 1.65;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.et_pb_text h1, .et_pb_text h2, .et_pb_text h3, .et_pb_text h4 {
    font-family: var(--pn-font-heading);
    font-weight: 700;
    color: var(--pn-teal);
    letter-spacing: -0.02em;
}

/* 
================================================================================
SECCIÓN 3: CABECERA Y NAVEGACIÓN PRINCIPAL (#main-header)
================================================================================
*/
#main-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 76, 116, 0.06);
    border-bottom: 1px solid var(--pn-border-light);
    transition: all 0.3s ease;
}

#logo {
    max-height: 52px;
    width: auto;
    transition: transform 0.2s ease;
}

#logo:hover {
    transform: scale(1.02);
}

/* Enlaces del menú principal */
#top-menu li a {
    font-family: var(--pn-font-heading);
    font-size: 15px;
    font-weight: 500;
    color: var(--pn-navy);
    padding-bottom: 24px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

#top-menu li a:hover,
#top-menu li.current-menu-item > a {
    color: var(--pn-teal);
    border-bottom: 3px solid var(--pn-green);
}

/* 
================================================================================
SECCIÓN 4: COMPONENTES PERSONALIZADOS (HERO, BOTONES Y BADGES)
================================================================================
*/
/* Botón Primario de Alto Impacto (Verde Lima con texto oscuro) */
.pn-btn-primary .et_pb_button,
.et_pb_button.pn-btn-primary {
    background-color: var(--pn-green) !important;
    color: #041612 !important;
    font-family: var(--pn-font-heading) !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    padding: 14px 28px !important;
    border-radius: 6px !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(149, 193, 31, 0.35) !important;
    transition: all 0.25s ease !important;
}

.pn-btn-primary .et_pb_button:hover,
.et_pb_button.pn-btn-primary:hover {
    background-color: #a5d424 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(149, 193, 31, 0.5) !important;
}

/* Botón Secundario Ghost (Borde blanco en Hero) */
.pn-btn-ghost .et_pb_button,
.et_pb_button.pn-btn-ghost {
    background-color: transparent !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.7) !important;
    font-family: var(--pn-font-heading) !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    padding: 12px 26px !important;
    border-radius: 6px !important;
    transition: all 0.25s ease !important;
}

.pn-btn-ghost .et_pb_button:hover,
.et_pb_button.pn-btn-ghost:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* Badge de Identidad Técnica */
.pn-pill-badge {
    display: inline-block;
    background-color: rgba(149, 193, 31, 0.18);
    color: var(--pn-green);
    font-family: var(--pn-font-heading);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid rgba(149, 193, 31, 0.3);
    margin-bottom: 16px;
}

/* 
================================================================================
SECCIÓN 5: TARJETAS DE CULTIVOS Y PILARES TÉCNICOS
================================================================================
*/
.pn-card-feature {
    background-color: #ffffff;
    border: 1px solid var(--pn-border-light);
    border-radius: 12px;
    padding: 32px 26px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
}

.pn-card-feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 24px -4px rgba(40, 122, 160, 0.12);
    border-color: rgba(40, 122, 160, 0.3);
}

.pn-card-feature .pn-icon {
    font-size: 36px;
    margin-bottom: 16px;
    display: inline-block;
}

/* 
================================================================================
SECCIÓN 6: GRID DE NOTICIAS (ENTRADAS DE BLOG DIVI)
================================================================================
*/
.et_pb_blog_grid .et_pb_post {
    border: 1px solid var(--pn-border-light);
    border-radius: 10px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
}

.et_pb_blog_grid .et_pb_post:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px -2px rgba(40, 122, 160, 0.1);
}

.et_pb_blog_grid .entry-title a {
    color: var(--pn-navy);
    font-family: var(--pn-font-heading);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.et_pb_blog_grid .entry-title a:hover {
    color: var(--pn-teal);
}

.et_pb_blog_grid .more-link {
    color: var(--pn-teal) !important;
    font-family: var(--pn-font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.05em;
}

/* Insignia de hoja en miniaturas de noticias */
.et_pb_blog_grid .entry-featured-image-url {
    position: relative;
    overflow: hidden;
}

.et_pb_blog_grid .entry-featured-image-url::before {
    content: "";
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background-image: url('/wp-content/uploads/planta-nova-isotipo.png');
    background-size: 70%;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 5;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* 
================================================================================
SECCIÓN 7: FORMULARIO DE CONTACTO TÉCNICO DIVI
================================================================================
*/
.et_pb_contact_form {
    background-color: var(--pn-ice-blue);
    padding: 36px;
    border-radius: 12px;
    border: 1px solid rgba(40, 122, 160, 0.15);
}

.et_pb_contact_form .et_pb_contact_field input,
.et_pb_contact_form .et_pb_contact_field textarea {
    background-color: #ffffff !important;
    border: 1px solid var(--pn-border-light) !important;
    border-radius: 6px !important;
    font-family: var(--pn-font-body) !important;
    color: var(--pn-text-dark) !important;
    padding: 12px 16px !important;
    font-size: 15px !important;
}

.et_pb_contact_form .et_pb_contact_field input:focus,
.et_pb_contact_form .et_pb_contact_field textarea:focus {
    border-color: var(--pn-teal) !important;
    box-shadow: 0 0 0 3px rgba(40, 122, 160, 0.15) !important;
}

.et_pb_contact_form .et_contact_bottom_container button.et_pb_contact_submit {
    background-color: var(--pn-green) !important;
    color: #041612 !important;
    font-family: var(--pn-font-heading) !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    padding: 14px 32px !important;
    border: none !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.et_pb_contact_form .et_contact_bottom_container button.et_pb_contact_submit:hover {
    background-color: #a5d424 !important;
    transform: translateY(-2px);
}

/* 
================================================================================
SECCIÓN 8: PIE DE PÁGINA CORPORATIVO (#main-footer)
================================================================================
*/
#main-footer {
    background-color: var(--pn-navy);
    color: #cbd5e1;
    border-top: 4px solid var(--pn-green);
}

#main-footer h4.title {
    color: #ffffff;
    font-family: var(--pn-font-heading);
    font-size: 16px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

#main-footer a {
    color: #e2e8f0;
    transition: color 0.2s ease;
}

#main-footer a:hover {
    color: var(--pn-green);
}

#footer-bottom {
    background-color: #003653;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    color: #94a3b8;
}

/* 
================================================================================
SECCIÓN 9: CONTRASTE GARANTIZADO PARA HERO Y SECCIONES
================================================================================
Reglas explícitas para garantizar que el Hero y módulos tengan el fondo
oscuro con contraste perfecto sobre texto blanco y acentos verde lima.
*/
.pn-hero-section {
    background-color: #004c74 !important;
    background-image: linear-gradient(135deg, rgba(0, 76, 116, 0.94) 0%, rgba(40, 122, 160, 0.88) 100%), url('/wp-content/uploads/plantanova-dron.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    padding: 85px 0 95px 0 !important;
    position: relative !important;
}

.pn-hero-section h1,
.pn-hero-section h1 span,
.pn-hero-section .et_pb_text h1 {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.pn-hero-section p,
.pn-hero-section .et_pb_text p {
    color: #f0f5fb !important;
}

.pn-hero-card {
    background: rgba(0, 54, 83, 0.78) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 12px !important;
    padding: 34px 26px !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3) !important;
}

.pn-hero-card h3 {
    color: #95c11f !important;
}

.pn-hero-card .pn-kpi-val {
    font-size: 34px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1 !important;
}

.pn-hero-card .pn-kpi-lbl {
    font-size: 14px !important;
    color: #cbd5e1 !important;
    margin-top: 4px !important;
}

.pn-trust-bar {
    background-color: #f0f5fb !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 30px 0 !important;
}

.pn-crop-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 28px 22px !important;
    height: 100% !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.pn-crop-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 16px 24px -4px rgba(40, 122, 160, 0.14) !important;
    border-color: rgba(40, 122, 160, 0.35) !important;
}

.pn-crop-card h3 {
    color: #287aa0 !important;
    margin-top: 0 !important;
    margin-bottom: 8px !important;
}

.pn-crop-card p {
    color: #64748b !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

.pn-cta-section {
    background-color: #004c74 !important;
    padding: 65px 0 !important;
}

.pn-cta-section h2 {
    color: #ffffff !important;
}

.pn-cta-section p {
    color: #cbd5e1 !important;
}

/* 
================================================================================
SECCIÓN 10: HOMOGENEIZACIÓN DE RETRATOS DEL CONSEJO ASESOR INTERNACIONAL
================================================================================
Propósito Técnico y Pedagógico:
Homogeneiza las fotografías de la junta asesora internacional (Richard van de Waart,
Pieter Mol y Sjaak Bakker). Debido a que la fotografía oficial de Pieter Mol
(proveniente de Ludvig Svensson / Plant Empowerment) fue diseñada originalmente
con recorte circular sobre transparencia, la geometría más pulcra, simétrica
y profesional para el estándar corporativo global es el formato circular uniforme
(border-radius: 50%) con dimensiones idénticas, encuadre facial proporcional
(object-fit: cover) y sombra perimetral de elevación.

// EDITAR AQUÍ:
// 1. Si se prefiere formato cuadrado con esquinas redondeadas en lugar de circular,
//    cambiar 'border-radius: 50% !important;' por 'border-radius: 12px !important;'.
// 2. Modifica 'width' y 'height' (por ejemplo 160px o 200px) para cambiar el diámetro.
*/
.pn-advisor-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 35px 25px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
    text-align: center !important;
}

.pn-advisor-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 16px 24px -4px rgba(40, 122, 160, 0.12) !important;
    border-color: rgba(40, 122, 160, 0.3) !important;
}

.pn-advisor-avatar {
    margin-bottom: 20px !important;
    text-align: center !important;
}

.pn-advisor-avatar .et_pb_image_wrap,
.pn-advisor-avatar img {
    width: 170px !important;
    height: 170px !important;
    max-width: 170px !important;
    max-height: 170px !important;
    border-radius: 50% !important; /* EDITAR AQUÍ: Cambia a 12px si prefieres cuadradas */
    object-fit: cover !important;
    object-position: center top !important;
    margin: 0 auto !important;
    display: block !important;
    border: 4px solid #ffffff !important;
    box-shadow: 0 10px 25px -5px rgba(0, 76, 116, 0.18) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.pn-advisor-card:hover .pn-advisor-avatar img,
.pn-advisor-avatar:hover img {
    transform: scale(1.05);
    box-shadow: 0 14px 30px -4px rgba(40, 122, 160, 0.28) !important;
}

