/* ============================================================================
   TusAguacates.com - Sistema de Diseño
   Versión Reconstruida - Estructura Original
   ============================================================================ */

/* CSS Variables - Design Tokens */
:root {
    /* Colores */
    --color-brand-primary: #1A4B0A;
    --color-brand-primary-hover: #143A08;
    --color-brand-accent: #4CAF50;
    --color-brand-accent-light: #66BB6A;
    --color-cta-primary: #FFC107;
    --color-cta-primary-hover: #FFB300;
    --color-background-primary: #FFFFFF;
    --color-background-surface: #F5F5F5;
    --color-background-divider: #E5E5E5;
    --color-text-primary: #1A1A1A;
    --color-text-secondary: #525252;
    --color-text-tertiary: #A3A3A3;
    --color-overlay-hero: rgba(0, 0, 0, 0.6);

    /* Tipografía */
    --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-hero-title: 48px;
    --font-size-hero-title-mobile: 32px;
    --font-size-section-title: 36px;
    --font-size-section-title-mobile: 28px;
    --font-size-card-title: 20px;
    --font-size-body-large: 18px;
    --font-size-body: 16px;
    --font-size-small: 14px;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --line-height-tight: 1.2;
    --line-height-normal: 1.4;
    --line-height-body: 1.6;

    /* Espaciado */
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    /* Paleta de Colores Premium */
    --color-brand-secondary: #1a5c20;

    /* Gradientes Premium */
    --gradient-gold: linear-gradient(135deg, #FFD700 0%, #FDB931 50%, #9E7C0C 100%);
    --gradient-gold-hover: linear-gradient(135deg, #FFE55C 0%, #FFC107 50%, #B89214 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f9f9f9 100%);
    --gradient-dark: linear-gradient(145deg, #1a1a1a 0%, #2c2c2c 100%);

    --color-background: #F9F9F9;
    /* Nueva variable */

    /* Sombras Premium */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
    --shadow-gold: 0 8px 20px rgba(253, 185, 49, 0.3);

    --spacing-3xl: 64px;
    --spacing-4xl: 96px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-pill: 999px;

    /* Sombras */
    --shadow-card: var(--shadow-sm);
    --shadow-card-hover: var(--shadow-md);
    --shadow-header: 0 2px 4px rgba(0, 0, 0, 0.06);

    /* Animaciones */
    --timing-fast: 150ms;
    --timing-standard: 250ms;
    --timing-slow: 400ms;
    --easing-default: cubic-bezier(0.4, 0.0, 0.2, 1);

    /* Dimensiones */
    --header-height: 72px;
    --header-height-mobile: 64px;
    --hero-height-desktop: 85vh;
    --hero-height-mobile: 400px;
    --container-max-width: 1400px;
}

/* Reset y Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-body);
    line-height: var(--line-height-body);
    color: var(--color-text-primary);
    background-color: var(--color-background-primary);
    overflow-x: hidden;
    margin: 0;
    padding: 0;

    /* Optimización de rendimiento */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ============================================================================
   HEADER
   ============================================================================ */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--color-brand-primary);
    box-shadow: var(--shadow-header);
    z-index: 100;
}

.header-container {
    max-width: var(--container-max-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.header-logo a {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-img {
    height: 48px;
    width: auto;
    transition: transform var(--timing-standard) var(--easing-default);
}

.header-logo a:hover .logo-img {
    transform: scale(1.05);
}

/* .header-logo-text - ELIMINADO: Ya no se usa el texto duplicado en la cabecera */

.header-nav {
    display: flex;
    gap: var(--spacing-xl);
}

.nav-link {
    color: #FFFFFF;
    font-weight: var(--font-weight-medium);
    padding: var(--spacing-sm) 0;
    border-bottom: 2px solid transparent;
    transition: all var(--timing-standard) var(--easing-default);
}

.nav-link:hover,
.nav-link.active {
    border-bottom-color: var(--color-cta-primary);
    color: var(--color-cta-primary);
}

.header-cta {
    display: flex;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
}

.hamburger span {
    width: 24px;
    height: 2px;
    background-color: #FFFFFF;
    transition: all var(--timing-standard) var(--easing-default);
}

/* ============================================================================
   HERO SECTION - SOLO VIDEO
   ============================================================================ */
.hero {
    position: relative;
    width: 100%;
    height: var(--hero-height-desktop);
    overflow: hidden;
    background-color: var(--color-brand-primary);
    border-radius: var(--radius-lg);
    margin: 0;
    padding: 0;
    top: 0;
}

/* Fuerza eliminacion de espacios */
.hero::before,
.hero::after {
    margin: 0;
    padding: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-lg);
    margin: 0;
    padding: 0;
    display: block;
    background-color: transparent;
}

/* Máscara para ocultar marca de agua "Veo" */
/* Logo que reemplaza la marca de agua "Veo" */
.hero::after {
    content: '';
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 120px;
    height: 60px;
    background-image: url('../images/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.8;
    border-radius: var(--radius-sm);
    pointer-events: none;
    z-index: 1;
}

/* ============================================================================
   HERO TEXT SECTION
   ============================================================================ */
.hero-text {
    position: relative;
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, rgba(26, 75, 10, 0.05) 0%, rgba(76, 175, 80, 0.05) 100%);
    margin: 0;
}

.hero-text .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.hero-text-content {
    text-align: center;
}

.hero-title {
    font-size: var(--font-size-hero-title);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--color-brand-primary);
    margin-bottom: var(--spacing-lg);
}

.hero-subtitle {
    font-size: var(--font-size-body-large);
    color: var(--color-text-secondary);
    line-height: var(--line-height-normal);
    margin-bottom: var(--spacing-xl);
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
}

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

.hero-logo-img {
    max-width: 280px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1)) sepia(1) hue-rotate(60deg) saturate(4) brightness(0.3) contrast(1.5);
}

/* ============================================================================
   NUESTRA PROMESA SECTION
   ============================================================================ */
.nuestra-promesa {
    padding: var(--spacing-4xl) 0;
    background-color: var(--color-background-primary);
}

.promesa-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.promesa-text {
    text-align: center;
}

.promesa-text h2 {
    font-size: var(--font-size-section-title);
    font-weight: var(--font-weight-bold);
    color: var(--color-brand-primary);
    margin-bottom: var(--spacing-xl);
    line-height: var(--line-height-tight);
    text-align: center;
}

.promesa-text p {
    font-size: var(--font-size-body);
    color: var(--color-text-secondary);
    line-height: var(--line-height-body);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.promesa-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--timing-slow) var(--easing-default);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ============================================================================
   AGUACATE SECTION CON CARRUSEL
   ============================================================================ */
.aguacate-section {
    padding: var(--spacing-4xl) 0;
    background-color: var(--color-background-surface);
}

.section-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto var(--spacing-3xl);
}

.section-title {
    font-size: var(--font-size-section-title);
    font-weight: var(--font-weight-bold);
    color: var(--color-brand-primary);
    margin-bottom: var(--spacing-md);
    line-height: var(--line-height-tight);
}

.section-subtitle {
    font-size: 24px;
    font-weight: var(--font-weight-semibold);
    color: var(--color-brand-accent);
    margin-bottom: var(--spacing-md);
}

.section-description {
    font-size: var(--font-size-body);
    color: var(--color-text-secondary);
    line-height: var(--line-height-body);
}

/* Carrusel de Aguacates */
.aguacate-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.carousel-container {
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.carousel-track {
    display: flex;
    transition: transform var(--timing-slow) var(--easing-default);
}

.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--color-brand-primary);
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all var(--timing-standard) var(--easing-default);
    box-shadow: var(--shadow-card);
}

.carousel-btn:hover {
    background-color: var(--color-brand-accent);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-50%) scale(1.1);
}

.testimonio-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.testimonio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-gold);
}

.testimonio-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--color-background-divider);
    border: none;
    cursor: pointer;
    transition: all var(--timing-standard) var(--easing-default);
}

.indicator.active {
    background-color: var(--color-brand-primary);
    width: 32px;
    border-radius: var(--radius-pill);
}

/* ============================================================================
   PRODUCT CARDS
   ============================================================================ */
.product-card {
    background-color: #FFFFFF;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(26, 75, 10, 0.12);
    transition: all var(--timing-standard) var(--easing-default);
    border: 2px solid rgba(76, 175, 80, 0.15);
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}

.product-card:hover {
    box-shadow: 0 12px 35px rgba(26, 75, 10, 0.15);
    transform: translateY(-8px);
    border-color: rgba(76, 175, 80, 0.2);
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-sm);
    transition: transform var(--timing-slow) var(--easing-default);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-content {
    padding: var(--spacing-xl);
    text-align: center;
    background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
}

.product-content h3 {
    color: var(--color-brand-primary);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
}

.product-content p {
    color: var(--color-text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.product-title {
    font-size: var(--font-size-card-title);
    font-weight: var(--font-weight-bold);
    color: var(--color-brand-primary);
    margin-bottom: var(--spacing-sm);
}

.product-description {
    font-size: var(--font-size-body);
    color: var(--color-text-secondary);
    line-height: var(--line-height-body);
}

/* ============================================================================
   PRODUCTOS SECTION
   ============================================================================ */
.productos-section {
    padding: var(--spacing-4xl) 0;
    background-color: var(--color-background-primary);
}

.product-grid {
    display: grid;
    gap: var(--spacing-xl);
    justify-content: center;
    justify-items: center;
}

.product-grid-3 {
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
    align-items: start;
}

/* ============================================================================
   CLIENTES SECTION
   ============================================================================ */
.clientes-section {
    padding: var(--spacing-4xl) 0;
    background-color: var(--color-brand-primary);
}

.clientes-section .section-title {
    color: #FFD700 !important;
    /* Amarillo Dorado Fuerte */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.clientes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
}

.cliente-card {
    background-color: #FFFFFF;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: all var(--timing-standard) var(--easing-default);
}

.cliente-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-10px);
}

.cliente-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f9f0 0%, #e0f2e0 100%);
    border-radius: 50%;
    color: var(--color-brand-primary);
    transition: all 0.3s ease;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
}

.cliente-card:hover .cliente-icon {
    background: var(--gradient-gold);
    color: var(--color-brand-primary);
    transform: scale(1.1) rotate(5deg);
}

.cliente-title {
    font-size: var(--font-size-card-title);
    font-weight: var(--font-weight-bold);
    color: var(--color-brand-primary);
    margin-bottom: var(--spacing-sm);
}

.cliente-text {
    font-size: var(--font-size-body);
    color: var(--color-text-secondary);
    line-height: var(--line-height-body);
}

/* ============================================================================
   CONTACTO SECTION
   ============================================================================ */
.contacto-section {
    padding: var(--spacing-4xl) 0;
    background-color: var(--color-background-primary);
}

.contacto-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-3xl);
    margin-top: var(--spacing-3xl);
}

.contacto-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.info-item {
    display: flex;
    gap: var(--spacing-md);
}

.info-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(26, 75, 10, 0.1);
    border-radius: 50%;
    color: var(--color-brand-primary);
}

.info-content h4 {
    font-size: var(--font-size-body-large);
    font-weight: var(--font-weight-bold);
    color: var(--color-brand-primary);
    margin-bottom: var(--spacing-xs);
}

.info-content p,
.info-content a {
    font-size: var(--font-size-body);
    color: var(--color-text-secondary);
    line-height: var(--line-height-body);
}

.info-content a:hover {
    color: var(--color-brand-accent);
}

/* Form */
.contacto-form {
    background-color: var(--color-brand-primary);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.contacto-form label,
.contacto-form .checkbox-label {
    color: var(--color-white) !important;
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    font-weight: var(--font-weight-medium);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-xs);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: var(--font-size-body);
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-brand-accent);
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.3);
}

.form-group select option {
    background-color: var(--color-brand-primary);
    color: white;
}

/* Checkbox personalizado */
.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    font-weight: var(--font-weight-medium);
    color: var(--color-text-primary);
    margin-bottom: 0 !important;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
}

.checkbox-label .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-background-divider);
    border-radius: var(--radius-sm);
    margin-right: var(--spacing-xs);
    position: relative;
    transition: all var(--timing-standard) var(--easing-default);
}

.checkbox-label input[type="checkbox"]:checked+.checkmark {
    background-color: var(--color-brand-primary);
    border-color: var(--color-brand-primary);
}

.checkbox-label input[type="checkbox"]:checked+.checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/* ============================================================================
   FOOTER
   ============================================================================ */
.footer {
    background-color: var(--color-brand-primary);
    color: #FFFFFF;
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--spacing-3xl);
    margin-bottom: var(--spacing-xl);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.footer-logo {
    max-width: 120px;
    margin-bottom: var(--spacing-sm);
}

.footer-brand h3 {
    font-size: 24px;
    font-weight: var(--font-weight-bold);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    line-height: var(--line-height-body);
}

.footer-links h4 {
    font-size: var(--font-size-body-large);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-md);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--timing-standard) var(--easing-default);
}

.footer-links a:hover {
    color: var(--color-cta-primary);
}

.footer-social {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all var(--timing-standard) var(--easing-default);
}

.footer-social a:hover {
    background-color: var(--color-cta-primary);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-small);
}

/* ============================================================================
   BUTTONS
   ============================================================================ */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-md);
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-semibold);
    text-align: center;
    cursor: pointer;
    transition: all var(--timing-standard) var(--easing-default);
    border: none;
}

.btn-primary {
    background-color: var(--color-cta-primary);
    color: var(--color-text-primary);
}

.btn-primary:hover {
    background-color: var(--color-cta-primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

.btn-secondary:hover {
    background-color: #FFFFFF;
    color: var(--color-brand-primary);
}

.btn-small {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-small);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

/* ============================================================================
   FLOATING BUTTONS
   ============================================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 90;
    transition: all var(--timing-standard) var(--easing-default);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.scroll-top {
    position: fixed;
    bottom: 96px;
    right: 24px;
    width: 48px;
    height: 48px;
    background-color: var(--color-brand-primary);
    color: #FFFFFF;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-card);
    opacity: 0;
    visibility: hidden;
    transition: all var(--timing-standard) var(--easing-default);
    z-index: 90;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--color-brand-accent);
    transform: translateY(-4px);
}

/* ============================================================================
   RESPONSIVE - TABLET
   ============================================================================ */
@media (max-width: 1024px) {
    .hero-text .container {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .hero-text-logo {
        order: -1;
    }

    .hero-logo-img {
        max-width: 200px;
    }

    .promesa-content {
        grid-template-columns: 1fr;
    }

    .clientes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contacto-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================================
   RESPONSIVE - MOBILE
   ============================================================================ */
@media (max-width: 768px) {

    /* Hero */
    .hero {
        height: var(--hero-height-mobile);
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
        margin: 0;
        padding: 0;
        background-color: var(--color-brand-primary);
    }

    .hero-video {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
        margin: 0;
        padding: 0;
        background-color: transparent;
    }

    /* Logo más pequeño en móvil */
    .hero::after {
        width: 80px;
        height: 40px;
        bottom: 12px;
        right: 12px;
        opacity: 0.7;
    }

    /* Header Mobile */
    .header {
        height: var(--header-height-mobile);
    }

    .header-nav {
        position: fixed;
        top: var(--header-height-mobile);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height-mobile));
        background-color: var(--color-brand-primary);
        flex-direction: column;
        padding: var(--spacing-xl);
        transition: left var(--timing-standard) var(--easing-default);
    }

    .header-nav.open {
        left: 0;
    }

    .header-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    /* Typography Mobile */
    .hero-title {
        font-size: var(--font-size-hero-title-mobile);
    }

    .section-title {
        font-size: var(--font-size-section-title-mobile);
    }

    /* Sections Padding */
    .hero-text {
        padding: var(--spacing-xl) 0;
    }

    .nuestra-promesa,
    .aguacate-section,
    .productos-section,
    .clientes-section,
    .contacto-section {
        padding: var(--spacing-2xl) 0;
    }

    /* Carrusel Mobile */
    .aguacate-carousel {
        padding: 0 16px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    /* Grids Mobile */
    .product-grid-3 {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: var(--spacing-lg);
    }

    .product-card {
        max-width: 350px;
        width: 100%;
    }

    .clientes-grid {
        grid-template-columns: 1fr;
    }

    .promesa-gallery {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    /* Floating Buttons Mobile */
    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
    }

    .scroll-top {
        width: 44px;
        height: 44px;
        bottom: 88px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    /* Hero - Quitar máscara en móviles muy pequeños */
    .hero::after {
        display: none;
    }

    .aguacate-carousel {
        padding: 0 12px;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
    }
}


/* ============================================================================
   ANIMACIONES DE ENTRADA PARA TARJETAS
   ============================================================================ */

/* Keyframe para aparición suave desde el centro */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Estados iniciales de las animaciones - APARICIÓN DESDE EL CENTRO */
.product-card,
.carousel-slide {
    opacity: 0;
    transform: scale(0.85);
    animation: fadeInScale 0.8s ease-out forwards;

    /* Optimización de rendimiento para animaciones */
    will-change: transform, opacity;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Estados animados visibles - APARICIÓN DESDE EL CENTRO */
.product-card.animate-in,
.carousel-slide.animate-in {
    opacity: 1;
    transform: scale(1);
}

/* Animaciones de salida para scroll */
.product-card.animate-out,
.carousel-slide.animate-out {
    opacity: 0;
    transform: scale(0.95);
}

/* Variaciones de animación por posición - APARICIÓN DESDE EL CENTRO */
.product-card:nth-child(odd).animate-in,
.carousel-slide:nth-child(odd).animate-in {
    transform: scale(0.9);
}

.product-card:nth-child(even).animate-in,
.carousel-slide:nth-child(even).animate-in {
    transform: scale(0.9);
}

/* Cada tercer elemento con efecto de escala adicional */
.product-card:nth-child(3n).animate-in,
.carousel-slide:nth-child(3n).animate-in {
    transform: scale(0.85);
}

/* Duraciones escalonadas para mejor efecto */
.product-card:nth-child(1).animate-in {
    transition-delay: 0.1s;
}

.product-card:nth-child(2).animate-in {
    transition-delay: 0.2s;
}

.product-card:nth-child(3).animate-in {
    transition-delay: 0.3s;
}

.product-card:nth-child(4).animate-in {
    transition-delay: 0.4s;
}

.product-card:nth-child(5).animate-in {
    transition-delay: 0.5s;
}

.product-card:nth-child(6).animate-in {
    transition-delay: 0.6s;
}

/* Carousel slides delay */
.carousel-slide:nth-child(1).animate-in {
    transition-delay: 0.1s;
}

.carousel-slide:nth-child(2).animate-in {
    transition-delay: 0.3s;
}

.carousel-slide:nth-child(3).animate-in {
    transition-delay: 0.5s;
}

.carousel-slide:nth-child(4).animate-in {
    transition-delay: 0.7s;
}

/* Animaciones responsivas para tablets - APARICIÓN DESDE EL CENTRO */
@media (max-width: 1024px) {

    .product-card:nth-child(odd).animate-in,
    .carousel-slide:nth-child(odd).animate-in {
        transform: scale(0.92);
    }

    .product-card:nth-child(even).animate-in,
    .carousel-slide:nth-child(even).animate-in {
        transform: scale(0.92);
    }

    .product-card:nth-child(3n).animate-in,
    .carousel-slide:nth-child(3n).animate-in {
        transform: scale(0.88);
    }
}

/* Animaciones responsivas para móviles - APARICIÓN DESDE EL CENTRO */
@media (max-width: 768px) {

    .product-card,
    .carousel-slide {
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .product-card:nth-child(odd).animate-in,
    .carousel-slide:nth-child(odd).animate-in {
        transform: scale(0.94);
    }

    .product-card:nth-child(even).animate-in,
    .carousel-slide:nth-child(even).animate-in {
        transform: scale(0.94);
    }

    .product-card:nth-child(3n).animate-in,
    .carousel-slide:nth-child(3n).animate-in {
        transform: scale(0.90);
    }

    /* Reducir delays en móvil para mejor UX */
    .product-card:nth-child(1).animate-in {
        transition-delay: 0.05s;
    }

    .product-card:nth-child(2).animate-in {
        transition-delay: 0.1s;
    }

    .product-card:nth-child(3).animate-in {
        transition-delay: 0.15s;
    }

    .product-card:nth-child(4).animate-in {
        transition-delay: 0.2s;
    }

    .product-card:nth-child(5).animate-in {
        transition-delay: 0.25s;
    }

    .product-card:nth-child(6).animate-in {
        transition-delay: 0.3s;
    }

    .carousel-slide:nth-child(1).animate-in {
        transition-delay: 0.05s;
    }

    .carousel-slide:nth-child(2).animate-in {
        transition-delay: 0.1s;
    }

    .carousel-slide:nth-child(3).animate-in {
        transition-delay: 0.15s;
    }

    .carousel-slide:nth-child(4).animate-in {
        transition-delay: 0.2s;
    }
}

/* Animaciones para otras secciones y bloques */
.section-header,
.cliente-card,
.footer-section,
.promesa-section,
.clients-section,
.productos-section {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-header.animate-in,
.cliente-card.animate-in,
.footer-section.animate-in,
.promesa-section.animate-in,
.clients-section.animate-in,
.productos-section.animate-in {
    opacity: 1;
    transform: scale(1);
}

/* Variaciones para secciones - APARICIÓN DESDE EL CENTRO */
.promesa-section.animate-in,
.productos-section.animate-in {
    transform: scale(0.95);
}

.clients-section.animate-in {
    transform: scale(0.95);
}

/* Delays escalonados para elementos de sección */
.section-header.animate-in {
    transition-delay: 0.1s;
}

.promesa-section.animate-in {
    transition-delay: 0.15s;
}

.productos-section.animate-in {
    transition-delay: 0.2s;
}

.clients-section.animate-in {
    transition-delay: 0.25s;
}

.cliente-card:nth-child(1).animate-in {
    transition-delay: 0.3s;
}

.cliente-card:nth-child(2).animate-in {
    transition-delay: 0.4s;
}

.cliente-card:nth-child(3).animate-in {
    transition-delay: 0.5s;
}

.cliente-card:nth-child(4).animate-in {
    transition-delay: 0.6s;
}

.footer-section.animate-in {
    transition-delay: 0.7s;
}

/* Estilos para reducción de movimiento */
@media (prefers-reduced-motion: reduce) {

    .product-card,
    .carousel-slide,
    .section-header,
    .cliente-card,
    .footer-section {
        transition: none;
        transform: none;
        opacity: 1;
    }
}

/* ============================================================================
   TOAST NOTIFICATIONS
   ============================================================================ */
.toast-notification {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: var(--color-brand-primary);
    color: #FFFFFF;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform var(--timing-standard) var(--easing-default);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: var(--font-weight-medium);
    min-width: 300px;
    justify-content: center;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
}

/* ============================================================================
   QUICK REPLIES (FORMULARIO)
   ============================================================================ */
.quick-replies {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.reply-chip {
    background: white;
    border: 1px solid #e0e0e0;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.reply-chip:hover {
    background: #f0f0f0;
    border-color: #d0d0d0;
    transform: translateY(-1px);
}

.reply-chip.active {
    background: var(--color-brand-accent);
    color: var(--color-brand-primary);
    border-color: var(--color-brand-accent);
    font-weight: 600;
}

/* ============================================================================
   ASISTENTE WHATSAPP PREMIUM
   ============================================================================ */
.whatsapp-assistant {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.wa-bubble {
    background: white;
    padding: 15px 20px;
    border-radius: 15px 15px 0 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    max-width: 250px;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    position: relative;
}

.wa-bubble.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.wa-bubble p {
    margin: 0;
    font-size: 0.95em;
    color: #333;
    line-height: 1.4;
}

.wa-close {
    position: absolute;
    top: 5px;
    right: 8px;
    font-size: 12px;
    color: #999;
    cursor: pointer;
    padding: 2px;
}

.wa-button {
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.wa-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.wa-notification-dot {
    position: absolute;
    top: 0;
    right: 0;
    width: 15px;
    height: 15px;
    background: red;
    border-radius: 50%;
    border: 2px solid white;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.toast-notification svg {
    flex-shrink: 0;
}

/* ============================================================================
   TRIG.JS ANIMATIONS (PREMIUM)
   ============================================================================ */

/* Estado Base Oculto */
.trig-hidden {
    opacity: 0;
    pointer-events: none;
}

.trig-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(0) !important;
    pointer-events: auto;
}

/* Fade Up */
.trig-fade-up.trig-hidden {
    transform: translateY(40px);
}

/* Fade Down */
.trig-fade-down.trig-hidden {
    transform: translateY(-40px);
}

/* Fade Left */
.trig-fade-left.trig-hidden {
    transform: translateX(40px);
}

/* Fade Right */
.trig-fade-right.trig-hidden {
    transform: translateX(-40px);
}

/* Zoom In */
.trig-zoom-in.trig-hidden {
    transform: scale(0.9);
}

/* Zoom Out */
.trig-zoom-out.trig-hidden {
    transform: scale(1.1);
}

/* Flip Up */
.trig-flip-up.trig-hidden {
    transform: perspective(1000px) rotateX(20deg) translateY(20px);
    transform-origin: center bottom;
}