/*
Theme Name: Eco Energy Solution
Theme URI: https://ecoenergysolution.cl
Author: Eco Energy Solution SpA
Author URI: https://ecoenergysolution.cl
Description: Tema personalizado para Eco Energy Solution - Tienda de repuestos para electrodomésticos con enfoque sustentable
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ecoenergy
Tags: e-commerce, woocommerce, custom-logo, custom-menu, featured-images, theme-options, translation-ready

Eco Energy Solution - Repuestos para electrodomésticos sustentables
*/

/* ===================================
   CSS VARIABLES - TEMA ECO ENERGY
   =================================== */
:root {
    /* Colores principales - Verde ecológico */
    --eco-primary: #2E7D32;
    --eco-primary-light: #4CAF50;
    --eco-primary-dark: #1B5E20;
    --eco-primary-gradient: linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%);
    
    /* Colores secundarios */
    --eco-secondary: #81C784;
    --eco-accent: #A5D6A7;
    --eco-highlight: #C8E6C9;
    
    /* Colores neutros */
    --eco-dark: #1a1a1a;
    --eco-gray-900: #212121;
    --eco-gray-800: #424242;
    --eco-gray-700: #616161;
    --eco-gray-600: #757575;
    --eco-gray-500: #9E9E9E;
    --eco-gray-400: #BDBDBD;
    --eco-gray-300: #E0E0E0;
    --eco-gray-200: #EEEEEE;
    --eco-gray-100: #F5F5F5;
    --eco-white: #FFFFFF;
    --eco-light-bg: #FAFAFA;
    
    /* Colores de estado */
    --eco-success: #4CAF50;
    --eco-warning: #FFC107;
    --eco-error: #F44336;
    --eco-info: #2196F3;
    
    /* Colores de UI */
    --eco-bg: #F5F5F5;
    --eco-border: #E0E0E0;
    --eco-text: #212121;
    --eco-text-light: #757575;
    --border-radius: 0.5rem;
    
    /* Tipografía */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-secondary: 'Poppins', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Tamaños de fuente */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    
    /* Espaciado */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    
    /* Border radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-green: 0 10px 40px rgba(46, 125, 50, 0.3);
    
    /* Transiciones */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    --transition-slower: 700ms ease;
    
    /* Z-index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    --z-loader: 9999;
    
    /* Contenedor */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1400px;
    
    /* Header */
    --header-height: 80px;
    --header-height-scrolled: 70px;
}

/* ===================================
   RESET Y BASE
   =================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--eco-gray-800);
    background-color: var(--eco-white);
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
}

/* Ocultar scrollbar durante transiciones */
body.page-transitioning {
    overflow: hidden;
}

/* ===================================
   LOADER PRINCIPAL
   =================================== */
.eco-page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--eco-white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-loader);
    opacity: 1;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.eco-page-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.eco-loader-content {
    text-align: center;
}

.eco-loader-logo {
    width: 120px;
    height: auto;
    margin-bottom: var(--space-6);
    animation: pulse 2s ease-in-out infinite;
}

.eco-loader-spinner {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto;
}

.eco-loader-spinner::before,
.eco-loader-spinner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}

.eco-loader-spinner::before {
    width: 100%;
    height: 100%;
    border: 3px solid var(--eco-gray-200);
}

.eco-loader-spinner::after {
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: var(--eco-primary);
    animation: spin 1s linear infinite;
}

/* Leaf spinner alternativo */
.eco-leaf-spinner {
    width: 50px;
    height: 50px;
    position: relative;
    margin: 0 auto;
}

.eco-leaf-spinner .leaf {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--eco-primary);
    border-radius: 0 50% 50% 50%;
    transform-origin: bottom right;
    animation: leafSpin 1.5s ease-in-out infinite;
}

.eco-leaf-spinner .leaf:nth-child(1) { animation-delay: 0s; }
.eco-leaf-spinner .leaf:nth-child(2) { animation-delay: 0.2s; }
.eco-leaf-spinner .leaf:nth-child(3) { animation-delay: 0.4s; }
.eco-leaf-spinner .leaf:nth-child(4) { animation-delay: 0.6s; }

@keyframes leafSpin {
    0%, 100% { transform: rotate(0deg) scale(1); opacity: 1; }
    50% { transform: rotate(180deg) scale(0.8); opacity: 0.5; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

/* ===================================
   TRANSICIONES DE PÁGINA
   =================================== */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--eco-primary);
    z-index: calc(var(--z-loader) - 1);
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.86, 0, 0.07, 1);
}

.page-transition-overlay.active {
    transform: translateY(0);
}

.page-transition-overlay.exit {
    transform: translateY(-100%);
}

/* Contenido con fade */
.site-content {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

body.transitioning .site-content {
    opacity: 0;
    transform: translateY(20px);
}

/* ===================================
   TIPOGRAFÍA
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 600;
    line-height: 1.3;
    color: var(--eco-gray-900);
    margin-bottom: var(--space-4);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
    margin-bottom: var(--space-4);
    color: var(--eco-gray-700);
}

a {
    color: var(--eco-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--eco-primary-dark);
}

strong, b { font-weight: 600; }
em, i { font-style: italic; }

/* ===================================
   UTILIDADES
   =================================== */
.container {
    width: 100%;
    max-width: var(--container-2xl);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container-sm { max-width: var(--container-sm); }
.container-md { max-width: var(--container-md); }
.container-lg { max-width: var(--container-lg); }
.container-xl { max-width: var(--container-xl); }

.section {
    padding: var(--space-20) 0;
}

.section-sm { padding: var(--space-12) 0; }
.section-lg { padding: var(--space-24) 0; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--eco-primary); }
.text-white { color: var(--eco-white); }
.text-muted { color: var(--eco-gray-600); }

.bg-primary { background-color: var(--eco-primary); }
.bg-light { background-color: var(--eco-light-bg); }
.bg-dark { background-color: var(--eco-dark); }
.bg-white { background-color: var(--eco-white); }

/* Flexbox */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* Grid */
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ===================================
   HEADER
   =================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    height: var(--header-height);
    background: var(--eco-white);
    z-index: var(--z-fixed);
    transition: all var(--transition-base);
    border-bottom: 1px solid transparent;
    overflow: hidden;
}

.site-header.scrolled {
    height: var(--header-height-scrolled);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--eco-gray-200);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-2xl);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.site-logo img {
    height: 45px;
    width: auto;
    transition: transform var(--transition-base);
}

.site-logo:hover img {
    transform: scale(1.05);
}

.site-logo .logo-text {
    font-family: var(--font-secondary);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--eco-primary);
}

.site-logo .logo-text span {
    color: var(--eco-gray-800);
}

/* Navegación principal */
.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    list-style: none;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--eco-gray-800);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a {
    color: var(--eco-primary);
    background: var(--eco-highlight);
}

.nav-menu > li > a .nav-arrow {
    transition: transform var(--transition-fast);
}

.nav-menu > li:hover > a .nav-arrow {
    transform: rotate(180deg);
}

/* Submenu dropdown */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--eco-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--space-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-fast);
    list-style: none;
    z-index: var(--z-dropdown);
}

.nav-menu > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li a {
    display: block;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    color: var(--eco-gray-700);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.sub-menu li a:hover {
    background: var(--eco-highlight);
    color: var(--eco-primary);
    padding-left: var(--space-5);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.header-action-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    border-radius: var(--radius-full);
    color: var(--eco-gray-700);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.header-action-btn:hover {
    background: var(--eco-highlight);
    color: var(--eco-primary);
}

.header-action-btn svg {
    width: 22px;
    height: 22px;
}

.header-action-btn .badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--eco-primary);
    color: var(--eco-white);
    font-size: 10px;
    font-weight: 600;
    border-radius: var(--radius-full);
    padding: 0 4px;
    transition: transform 0.3s ease, background 0.3s ease;
}

/* Cart update animation */
.cart-toggle.cart-updated {
    animation: cartBounce 0.5s ease;
}

.cart-toggle.cart-updated .badge {
    animation: badgePop 0.5s ease;
    background: var(--eco-secondary);
}

@keyframes cartBounce {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(0.95); }
    75% { transform: scale(1.05); }
}

@keyframes badgePop {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--eco-gray-800);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Top bar */
.top-bar {
    background: var(--eco-primary);
    color: var(--eco-white);
    padding: var(--space-2) 0;
    font-size: var(--text-sm);
}

.top-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-2xl);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.top-bar-message {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.top-bar-message svg {
    width: 16px;
    height: 16px;
}

.top-bar-links {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.top-bar-links a {
    color: var(--eco-white);
    opacity: 0.9;
    transition: opacity var(--transition-fast);
}

.top-bar-links a:hover {
    opacity: 1;
}

/* ===================================
   BOTONES
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.3);
}

.btn-primary {
    background: var(--eco-primary);
    color: var(--eco-white);
    border-color: var(--eco-primary);
}

.btn-primary:hover {
    background: var(--eco-primary-dark);
    border-color: var(--eco-primary-dark);
    color: var(--eco-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-green);
}

.btn-secondary {
    background: transparent;
    color: var(--eco-primary);
    border-color: var(--eco-primary);
}

.btn-secondary:hover {
    background: var(--eco-primary);
    color: var(--eco-white);
}

.btn-outline {
    background: transparent;
    color: var(--eco-gray-800);
    border-color: var(--eco-gray-300);
}

.btn-outline:hover {
    border-color: var(--eco-primary);
    color: var(--eco-primary);
}

.btn-white {
    background: var(--eco-white);
    color: var(--eco-primary);
    border-color: var(--eco-white);
}

.btn-white:hover {
    background: var(--eco-highlight);
    color: var(--eco-primary-dark);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
}

.btn-full {
    width: 100%;
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--radius-full);
}

/* ===================================
   CARDS
   =================================== */
.card {
    background: var(--eco-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-base);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-body {
    padding: var(--space-6);
}

.card-title {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.card-text {
    color: var(--eco-gray-600);
    font-size: var(--text-sm);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 0;
    margin-top: calc(-1 * var(--header-height, 80px));
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
    background: linear-gradient(135deg, var(--eco-light-bg) 0%, var(--eco-white) 100%);
}

.hero-section.has-bg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

/* Overlay verde cuando hay imagen de fondo */
.hero-section.has-bg-image .hero-background {
    background: linear-gradient(135deg, rgba(46, 125, 50, var(--hero-overlay-opacity, 0.7)) 0%, rgba(27, 94, 32, var(--hero-overlay-opacity, 0.8)) 100%);
}

/* Círculos decorativos cuando NO hay imagen de fondo */
.hero-section:not(.has-bg-media) .hero-background::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: var(--eco-primary-gradient);
    opacity: 0.05;
    border-radius: 50%;
    animation: heroFloat 20s ease-in-out infinite;
}

.hero-section:not(.has-bg-media) .hero-background::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 50%;
    height: 100%;
    background: var(--eco-primary);
    opacity: 0.03;
    border-radius: 50%;
    animation: heroFloat 15s ease-in-out infinite reverse;
}

@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30px, -30px) rotate(5deg); }
}

/* Hero Video Background */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Overlay for video */
.hero-section.has-bg-video .hero-background {
    background: linear-gradient(135deg, 
        rgba(46, 125, 50, var(--hero-overlay-opacity, 0.7)) 0%, 
        rgba(27, 94, 32, var(--hero-overlay-opacity, 0.8)) 100%
    );
    z-index: 1;
}

/* Mobile: show poster image instead of video */
@media (max-width: 768px) {
    .hero-video-container {
        display: none;
    }
    
    .hero-section.has-bg-video {
        background-size: cover;
        background-position: center;
    }
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
    max-width: var(--container-2xl);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--eco-highlight);
    color: var(--eco-primary-dark);
    font-size: var(--text-sm);
    font-weight: 500;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-6);
}

.hero-badge svg {
    width: 16px;
    height: 16px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-6);
    color: var(--eco-gray-900);
}

.hero-title .highlight {
    color: var(--eco-primary);
    position: relative;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--eco-secondary);
    opacity: 0.4;
    z-index: -1;
    border-radius: 4px;
}

.hero-description {
    font-size: var(--text-lg);
    color: var(--eco-gray-600);
    margin-bottom: var(--space-8);
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-10);
    width: 100%;
}

.hero-features {
    display: flex;
    gap: var(--space-8);
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.hero-feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--eco-highlight);
    color: var(--eco-primary);
    border-radius: var(--radius-full);
}

.hero-feature-icon svg {
    width: 20px;
    height: 20px;
}

.hero-feature-text {
    font-size: var(--text-sm);
    color: var(--eco-gray-700);
}

.hero-feature-text strong {
    display: block;
    color: var(--eco-gray-900);
}

.hero-image {
    position: relative;
}

.hero-image-main {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}

.hero-image-main img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-floating-card {
    position: absolute;
    background: var(--eco-white);
    border-radius: var(--radius-xl);
    padding: var(--space-4);
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

.hero-floating-card.card-1 {
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.hero-floating-card.card-2 {
    bottom: 15%;
    right: -5%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Hero con imagen/video de fondo - Colores claros */
.hero-section.has-bg-media .hero-badge {
    background: rgba(255, 255, 255, 0.2);
    color: var(--eco-white);
    backdrop-filter: blur(10px);
}

.hero-section.has-bg-media .hero-title {
    color: var(--eco-white);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-section.has-bg-media .hero-title .highlight {
    color: var(--eco-highlight);
}

.hero-section.has-bg-media .hero-title .highlight::after {
    background: rgba(255, 255, 255, 0.3);
}

.hero-section.has-bg-media .hero-description {
    color: rgba(255, 255, 255, 0.9);
}

.hero-section.has-bg-media .hero-feature-icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--eco-white);
    backdrop-filter: blur(10px);
}

.hero-section.has-bg-media .hero-feature-text {
    color: rgba(255, 255, 255, 0.85);
}

.hero-section.has-bg-media .hero-feature-text strong {
    color: var(--eco-white);
}

.hero-section.has-bg-media .btn-primary {
    background: var(--eco-white);
    color: var(--eco-primary);
    border-color: var(--eco-white);
}

.hero-section.has-bg-media .btn-primary:hover {
    background: var(--eco-highlight);
    border-color: var(--eco-highlight);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-section.has-bg-media .btn-secondary {
    background: transparent;
    color: var(--eco-white);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-section.has-bg-media .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--eco-white);
}

.hero-section.has-bg-media .hero-floating-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* ===================================
   SECCIONES DE CONTENIDO
   =================================== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-12);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--eco-highlight);
    color: var(--eco-primary-dark);
    font-size: var(--text-sm);
    font-weight: 500;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
}

.section-title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
}

.section-description {
    font-size: var(--text-lg);
    color: var(--eco-gray-600);
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-6);
}

.category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-8) var(--space-6);
    background: var(--eco-white);
    border-radius: var(--radius-xl);
    border: 2px solid var(--eco-gray-200);
    text-align: center;
    transition: all var(--transition-base);
}

.category-card:hover {
    border-color: var(--eco-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--eco-highlight);
    color: var(--eco-primary);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-4);
    transition: all var(--transition-base);
}

.category-card:hover .category-icon {
    background: var(--eco-primary);
    color: var(--eco-white);
    transform: scale(1.1);
}

.category-icon svg {
    width: 32px;
    height: 32px;
}

.category-name {
    font-weight: 600;
    color: var(--eco-gray-900);
    margin-bottom: var(--space-1);
}

.category-count {
    font-size: var(--text-sm);
    color: var(--eco-gray-500);
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-8);
}

.feature-card {
    padding: var(--space-8);
    background: var(--eco-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--eco-primary-gradient);
    color: var(--eco-white);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-5);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-title {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-3);
}

.feature-description {
    color: var(--eco-gray-600);
    font-size: var(--text-sm);
    line-height: 1.7;
}

/* Stats Section */
.stats-section {
    background: var(--eco-primary-gradient);
    color: var(--eco-white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
    text-align: center;
}

.stat-item {
    padding: var(--space-6);
}

.stat-number {
    font-size: var(--text-5xl);
    font-weight: 700;
    margin-bottom: var(--space-2);
    font-family: var(--font-secondary);
}

.stat-label {
    font-size: var(--text-base);
    opacity: 0.9;
}

/* CTA Section */
.cta-section {
    position: relative;
    padding: var(--space-20) 0;
    background: var(--eco-gray-900);
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: var(--eco-primary-gradient);
    opacity: 0.1;
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
}

.cta-content {
    position: relative;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    color: var(--eco-white);
}

.cta-title {
    color: var(--eco-white);
    margin-bottom: var(--space-4);
}

.cta-description {
    color: var(--eco-gray-400);
    font-size: var(--text-lg);
    margin-bottom: var(--space-8);
}

/* ===================================
   FOOTER
   =================================== */
.site-footer {
    background: var(--eco-gray-900);
    color: var(--eco-gray-400);
    padding-top: var(--space-16);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-12);
    padding-bottom: var(--space-12);
    border-bottom: 1px solid var(--eco-gray-800);
}

.footer-brand .footer-logo {
    margin-bottom: var(--space-6);
}

.footer-brand .footer-logo img {
    height: 50px;
    width: auto;
}

.footer-brand .footer-description {
    font-size: var(--text-sm);
    line-height: 1.8;
    margin-bottom: var(--space-6);
}

.footer-social {
    display: flex;
    gap: var(--space-3);
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--eco-gray-800);
    color: var(--eco-gray-400);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--eco-primary);
    color: var(--eco-white);
    transform: translateY(-3px);
}

.footer-column h4 {
    color: var(--eco-white);
    font-size: var(--text-base);
    margin-bottom: var(--space-6);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-3);
}

.footer-links a {
    color: var(--eco-gray-400);
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--eco-primary-light);
    padding-left: var(--space-2);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
}

.footer-contact-item svg {
    width: 18px;
    height: 18px;
    color: var(--eco-primary-light);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-6) 0;
}

.footer-copyright {
    font-size: var(--text-sm);
}

.footer-copyright p {
    margin-bottom: var(--space-2);
}

.footer-developer {
    font-size: var(--text-xs);
    color: var(--eco-gray-400);
}

.footer-developer a {
    color: var(--eco-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-developer a:hover {
    color: var(--eco-primary-dark);
    text-decoration: underline;
}

.footer-payments {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.footer-payments img {
    height: 30px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all var(--transition-fast);
}

.footer-payments img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Newsletter */
.footer-newsletter {
    background: var(--eco-gray-800);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    margin-bottom: var(--space-12);
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
}

.newsletter-text h3 {
    color: var(--eco-white);
    font-size: var(--text-2xl);
    margin-bottom: var(--space-2);
}

.newsletter-text p {
    color: var(--eco-gray-400);
    margin: 0;
}

.newsletter-form {
    display: flex;
    gap: var(--space-3);
    flex: 1;
    max-width: 450px;
}

.newsletter-form input {
    flex: 1;
    padding: var(--space-4) var(--space-5);
    background: var(--eco-gray-900);
    border: 1px solid var(--eco-gray-700);
    border-radius: var(--radius-md);
    color: var(--eco-white);
    font-size: var(--text-sm);
    outline: none;
    transition: all var(--transition-fast);
}

.newsletter-form input:focus {
    border-color: var(--eco-primary);
}

.newsletter-form input::placeholder {
    color: var(--eco-gray-500);
}

/* ===================================
   WHATSAPP BUTTON
   =================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: var(--z-fixed);
}

.whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--eco-white);
    border-radius: var(--radius-full);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all var(--transition-base);
    animation: whatsappPulse 2s infinite;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
    color: var(--eco-white);
}

.whatsapp-button svg {
    width: 32px;
    height: 32px;
}

@keyframes whatsappPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--eco-gray-900);
    color: var(--eco-white);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

/* ===================================
   SCROLL TO TOP
   =================================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 100px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--eco-primary);
    color: var(--eco-white);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: var(--z-fixed);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--eco-primary-dark);
    transform: translateY(-3px);
}

.scroll-to-top svg {
    width: 20px;
    height: 20px;
}

/* ===================================
   ANIMACIONES EN SCROLL
   =================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }

/* Fade variations */
.animate-fade-up { transform: translateY(40px); }
.animate-fade-down { transform: translateY(-40px); }
.animate-fade-left { transform: translateX(40px); }
.animate-fade-right { transform: translateX(-40px); }
.animate-scale { transform: scale(0.9); }
.animate-rotate { transform: rotate(-5deg); opacity: 0; }

.animate-fade-up.animated { transform: translateY(0); }
.animate-fade-down.animated { transform: translateY(0); }
.animate-fade-left.animated { transform: translateX(0); }
.animate-fade-right.animated { transform: translateX(0); }
.animate-scale.animated { transform: scale(1); }
.animate-rotate.animated { transform: rotate(0); }

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1200px) {
    .footer-main {
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        margin-bottom: var(--space-8);
    }
    
    .hero-container {
        gap: var(--space-10);
    }
}

@media (max-width: 992px) {
    :root {
        --header-height: 70px;
    }
    
    .hero-section {
        margin-top: 0;
        padding-top: var(--header-height);
        width: 100%;
        max-width: 100vw;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 0 var(--space-4);
        width: 100%;
        max-width: 100%;
    }
    
    .hero-content {
        max-width: 100%;
        width: 100%;
    }
    
    .hero-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .hero-features {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-image {
        max-width: 500px;
        margin: 0 auto;
    }
    
    /* Ocultar elementos flotantes en tablets para evitar overflow */
    .hero-floating-card {
        display: none;
    }
    
    .main-navigation {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-form {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .section {
        padding: var(--space-12) 0;
    }
    
    .header-container {
        padding: 0 var(--space-4);
    }
    
    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
    
    .top-bar-content {
        justify-content: center;
    }
    
    .top-bar-links {
        display: none;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-button {
        width: 55px;
        height: 55px;
    }
    
    .scroll-to-top {
        right: 85px;
        bottom: 20px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 var(--space-4);
    }
    
    h1 { font-size: var(--text-3xl); }
    h2 { font-size: var(--text-2xl); }
    h3 { font-size: var(--text-xl); }
    
    .section-title {
        font-size: var(--text-2xl);
    }
    
    .hero-section {
        min-height: auto;
        padding-top: calc(var(--header-height) + var(--space-8));
        padding-bottom: var(--space-12);
        width: 100%;
        max-width: 100vw;
    }
    
    .hero-container {
        padding: 0 var(--space-4);
        width: 100%;
        max-width: 100%;
    }
    
    .hero-content {
        width: 100%;
        max-width: 100%;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .hero-features {
        flex-direction: column;
        gap: var(--space-4);
    }
    
    /* Ocultar elementos flotantes que causan overflow */
    .hero-floating-card {
        display: none;
    }
    
    .hero-image {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

/* =============================================
   PAGE TEMPLATES
============================================= */

/* Page Hero */
.page-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--eco-primary) 0%, var(--eco-primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    background-size: 30px 30px;
    opacity: 0.3;
}

.page-hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-hero .section-badge {
    background: rgba(255, 255, 255, 0.2);
    color: var(--eco-white);
    margin: 0 auto var(--space-4);
}

.page-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--eco-white);
    margin-bottom: var(--space-4);
}

.page-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* About Page */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: var(--space-6);
    color: var(--eco-text);
}

.about-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--eco-text-light);
    margin-bottom: var(--space-4);
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

/* Mission & Vision */
.mv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
}

.mv-card {
    background: var(--eco-white);
    padding: var(--space-8);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.mv-icon {
    width: 80px;
    height: 80px;
    background: var(--eco-highlight);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-6);
    color: var(--eco-primary);
}

.mv-card h3 {
    font-size: 1.75rem;
    margin-bottom: var(--space-4);
    color: var(--eco-text);
}

.mv-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--eco-text-light);
}

/* Values Section */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-10);
}

.value-item {
    text-align: center;
    padding: var(--space-6);
    background: var(--eco-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.value-icon {
    width: 60px;
    height: 60px;
    background: var(--eco-highlight);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
    color: var(--eco-primary);
}

.value-item h4 {
    font-size: 1.25rem;
    margin-bottom: var(--space-3);
    color: var(--eco-text);
}

.value-item p {
    font-size: 0.95rem;
    color: var(--eco-text-light);
    line-height: 1.6;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
}

.contact-info h2,
.contact-form-wrapper h2 {
    font-size: 2rem;
    margin-bottom: var(--space-6);
    color: var(--eco-text);
}

.contact-info > p {
    font-size: 1.125rem;
    color: var(--eco-text-light);
    margin-bottom: var(--space-8);
    line-height: 1.7;
}

/* Contact Items */
.contact-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.contact-item {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--eco-bg);
    border-radius: var(--border-radius);
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    background: var(--eco-highlight);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--eco-primary);
    flex-shrink: 0;
}

.contact-item-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--eco-text-light);
    margin-bottom: var(--space-2);
}

.contact-item-content a {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--eco-primary);
    text-decoration: none;
}

.contact-item-content a:hover {
    text-decoration: underline;
}

.contact-item-content span {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--eco-text);
}

.contact-item-content .text-muted {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--eco-text-light);
    margin-top: var(--space-2);
}

/* Contact WhatsApp */
.contact-whatsapp {
    background: var(--eco-highlight);
    padding: var(--space-6);
    border-radius: var(--border-radius);
    text-align: center;
}

.contact-whatsapp h4 {
    font-size: 1.25rem;
    margin-bottom: var(--space-3);
    color: var(--eco-text);
}

.contact-whatsapp p {
    font-size: 1rem;
    color: var(--eco-text-light);
    margin-bottom: var(--space-5);
}

.contact-whatsapp .btn-full {
    width: 100%;
}

/* Contact Form */
.contact-form {
    background: var(--eco-bg);
    padding: var(--space-8);
    border-radius: var(--border-radius);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
    margin-bottom: var(--space-5);
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
}

.contact-form .form-group.full-width {
    grid-column: 1 / -1;
}

.contact-form label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--eco-text);
    margin-bottom: var(--space-2);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--eco-border);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--eco-primary);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

/* Order Section */
.order-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
    align-items: center;
}

.order-text .section-title {
    font-size: 2.5rem;
}

.order-features {
    list-style: none;
    padding: 0;
    margin: var(--space-6) 0;
}

.order-features li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    font-size: 1.125rem;
    color: var(--eco-text);
}

.order-features svg {
    color: var(--eco-primary);
    flex-shrink: 0;
}

.order-image {
    text-align: center;
}

.order-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
}

/* Responsive - Page Templates */
@media (max-width: 992px) {
    .about-grid,
    .contact-grid,
    .order-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .mv-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .page-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 80px 0 60px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-description {
        font-size: 1rem;
    }
    
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   LEGAL PAGES (Policies)
============================================= */

.legal-page .policy-content {
    padding: var(--space-10) 0;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--eco-white);
    padding: var(--space-10);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.legal-intro {
    background: var(--eco-highlight);
    padding: var(--space-6);
    border-radius: var(--border-radius);
    margin-bottom: var(--space-8);
    border-left: 4px solid var(--eco-primary);
}

.legal-intro p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--eco-text);
    margin: 0;
}

.legal-section {
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--eco-border);
}

.legal-section:last-of-type {
    border-bottom: none;
}

.legal-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--eco-primary);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.legal-section h2::before {
    content: '';
    width: 5px;
    height: 28px;
    background: var(--eco-primary);
    border-radius: 3px;
}

.legal-section p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--eco-text-light);
    margin-bottom: var(--space-4);
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section strong {
    color: var(--eco-text);
    font-weight: 600;
}

.legal-section a {
    color: var(--eco-primary);
    text-decoration: none;
    font-weight: 600;
}

.legal-section a:hover {
    text-decoration: underline;
}

.legal-section ul,
.legal-section ol {
    margin: var(--space-4) 0;
    padding-left: var(--space-8);
}

.legal-section li {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--eco-text-light);
    margin-bottom: var(--space-3);
}

.legal-section li::marker {
    color: var(--eco-primary);
}

.legal-footer {
    margin-top: var(--space-8);
    padding: var(--space-6);
    background: var(--eco-bg);
    border-radius: var(--border-radius);
    text-align: center;
}

.legal-footer p {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: var(--space-3);
}

.legal-footer .text-muted {
    font-size: 0.95rem;
    color: var(--eco-text-light);
    font-style: italic;
}

.legal-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    margin-top: var(--space-8);
    padding-top: var(--space-8);
    border-top: 2px solid var(--eco-border);
}

.legal-actions .btn {
    min-width: 200px;
}

/* Responsive - Legal Pages */
@media (max-width: 768px) {
    .legal-content {
        padding: var(--space-6);
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .legal-section p,
    .legal-section li {
        font-size: 1rem;
    }
    
    .legal-actions {
        flex-direction: column;
    }
    
    .legal-actions .btn {
        width: 100%;
    }
}

/* Print styles */
@media print {
    .site-header,
    .site-footer,
    .whatsapp-float,
    .scroll-to-top,
    .eco-page-loader {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
    }
}

/* Prevenir overflow horizontal en todos los dispositivos */
* {
    max-width: 100%;
}

html, body {
    overflow-x: hidden !important;
    width: 100%;
}

/* Asegurar que ningún elemento cause overflow horizontal en móviles */
@media (max-width: 768px) {
    *, *::before, *::after {
        max-width: 100vw;
    }
    
    img, video, iframe {
        max-width: 100%;
        height: auto;
    }
}
/* =========================
HERO SERVICIO TECNICO
========================= */

.hero{
background:linear-gradient(135deg,#2E7D32,#1B5E20);
color:white;
text-align:center;
padding:120px 20px;
}

.hero h1{
font-size:48px;
font-weight:700;
margin-bottom:15px;
color:white;
}

.hero p{
font-size:20px;
opacity:0.9;
max-width:700px;
margin:auto;
line-height:1.6;
}


/* =========================
CONTENEDOR GENERAL
========================= */

.container{
max-width:1100px;
margin:auto;
padding:40px 20px;
}


/* =========================
CAJA BLANCA
========================= */

.section{
background:white;
margin-top:50px;
padding:50px;
border-radius:16px;
box-shadow:0 10px 30px rgba(0,0,0,0.08);
}


/* =========================
GRID SERVICIO TECNICO
========================= */

.grid{
display:grid;
grid-template-columns:1fr 1fr;
gap:70px;
align-items:center;
}


/* =========================
IMAGEN
========================= */

.grid img{
width:100%;
border-radius:14px;
box-shadow:0 15px 40px rgba(0,0,0,0.18);
}


/* =========================
LISTA DE SERVICIOS
========================= */

.section ul{
list-style:none;
padding:0;
margin-top:15px;
margin-bottom:20px;
}

.section ul li{
padding-left:26px;
position:relative;
margin-bottom:10px;
font-size:16px;
}

.section ul li::before{
content:"✓";
position:absolute;
left:0;
color:#2E7D32;
font-weight:bold;
}


/* =========================
TITULOS
========================= */

.section h2{
font-size:32px;
margin-bottom:20px;
}

.section h3{
font-size:22px;
margin-top:25px;
margin-bottom:10px;
}


/* =========================
BOTON WHATSAPP
========================= */

.cta-btn{
display:inline-block;
background:#2E7D32;
color:white;
padding:16px 30px;
border-radius:8px;
font-size:18px;
margin-top:25px;
text-decoration:none;
font-weight:600;
transition:0.2s;
}

.cta-btn:hover{
background:#1B5E20;
}


/* =========================
FORMULARIO
========================= */

.form{
margin-top:20px;
display:flex;
flex-direction:column;
gap:15px;
}

.row{
display:grid;
grid-template-columns:1fr 1fr;
gap:15px;
}

input,textarea{
padding:12px;
border:1px solid #ccc;
border-radius:6px;
font-size:15px;
width:100%;
}

textarea{
min-height:120px;
resize:vertical;
}


/* =========================
RESPONSIVE
========================= */

@media(max-width:900px){

.hero h1{
font-size:36px;
}

.hero{
padding:90px 20px;
}

.grid{
grid-template-columns:1fr;
gap:40px;
}

.section{
padding:35px;
}

.row{
grid-template-columns:1fr;
}

}
.brands{
text-align:center;
}

.brands-grid{
display:grid;
grid-template-columns:repeat(6,1fr);
gap:30px;
margin-top:40px;
align-items:center;
}

.brands-grid img{
width:100%;
max-height:60px;
object-fit:contain;
filter:grayscale(100%);
opacity:0.8;
transition:0.3s;
}

.brands-grid img:hover{
filter:none;
opacity:1;
}