﻿/*
Theme Name: Automatiza Tech
Description: Tema personalizado para Automatiza Tech - Conectamos tus ventas, web y CRM. Tema optimizado para SEO, responsive y de carga rápida.
Author: Automatiza Tech Team
Version: 1.0
Text Domain: automatiza-tech
Domain Path: /languages
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Paleta de colores:
- Azul eléctrico: #1e40af (tecnología y confianza)
- Blanco: #ffffff (claridad y simplicidad) 
- Verde lima: #06d6a0 (innovación y energía)
- Gris: #6b7280
*/

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

:root {
    --color-primary: #1e40af;
    --color-secondary: #06d6a0;
    --color-white: #ffffff;
    --color-gray: #6b7280;
    --color-dark: #1f2937;
    --color-light: #f9fafb;
    
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Open+Sans:wght@400;600&display=swap');

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.bg-primary { background-color: var(--color-primary); }
.bg-secondary { background-color: var(--color-secondary); }
.bg-light { background-color: var(--color-light); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
}

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

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.btn-secondary:hover {
    background-color: #65a30d;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* WhatsApp Button specific styling */
.btn-outline.whatsapp-btn {
    border-color: #25d366;
    color: #25d366;
}

.btn-outline.whatsapp-btn:hover {
    background-color: #25d366;
    color: var(--color-white);
}

/* Header Styles */
.site-header {
    background-color: var(--color-white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-dark);
}

.logo img {
    height: 50px;
    margin-right: 0.5rem;
}

.logo-text {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.5rem;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.main-navigation a {
    text-decoration: none;
    color: var(--color-dark);
    font-weight: 600;
    transition: var(--transition);
}

.main-navigation a:hover {
    color: var(--color-primary);
}

/* Main Content */
.main-content {
    margin-top: 80px; /* Compensar header fijo */
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1d4ed8 100%);
    color: var(--color-white);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::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"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-secondary);
    font-weight: 600;
}

.hero-tagline {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-cta .btn {
    min-width: 200px;
    font-size: 1rem;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
    border-radius: 50px;
    text-transform: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.hero-cta .btn i {
    font-size: 1.2em;
}

/* ── Hero con banner Gemini ───────────────────────────── */
.hero-with-banner {
    padding: 0;
    background: none;
    min-height: 340px;
    display: flex;
    align-items: stretch;
}

/* Ocultar el grid SVG en modo banner */
.hero-with-banner::before { display: none; }

/* Imagen de fondo que llena todo el section */
.hero-with-banner .hero-banner-img {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-with-banner .hero-banner-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    display: block;
}

/* Overlay: tapa el texto propio de la imagen en la zona derecha */
.hero-with-banner .hero-banner-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        transparent 18%,
        rgba(10,22,40,0.40) 38%,
        rgba(10,22,40,0.78) 55%,
        rgba(10,22,40,0.90) 72%,
        rgba(10,22,40,0.92) 100%
    );
}

/* Container en modo banner: flex alineado abajo */
.hero-with-banner > .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    width: 100%;
    padding-top: 3.5rem;
    padding-bottom: 1.5rem;
}

/* Contenido: un poco más a la derecha */
.hero-with-banner .hero-content {
    margin-left: 34%;
    width: 62%;
    text-align: left;
}

.hero-with-banner .hero-title {
    font-size: 3rem;
    text-shadow: 0 2px 16px rgba(0,0,0,0.7);
}

.hero-with-banner .hero-subtitle {
    text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}

.hero-with-banner .hero-tagline {
    text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}

.hero-with-banner .hero-cta {
    justify-content: flex-start;
}

/* Mobile: vuelve al layout centrado */
@media (max-width: 768px) {
    .hero-with-banner {
        min-height: unset;
    }
    .hero-with-banner .hero-banner-img img {
        object-position: 18% center;
    }
    .hero-with-banner .hero-banner-img::after {
        background: linear-gradient(
            to bottom,
            rgba(10,22,40,0.15) 0%,
            rgba(10,22,40,0.88) 38%,
            rgba(10,22,40,0.97) 100%
        );
    }
    .hero-with-banner > .container {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
    .hero-with-banner .hero-content {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
    .hero-with-banner .hero-cta {
        justify-content: center;
    }
    .hero-with-banner .hero-title {
        font-size: 2.2rem;
    }
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background-color: var(--color-light);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: var(--color-white);
}

/* Integrations Section */
.integrations-section {
    padding: 5rem 0;
    background-color: var(--color-white);
}

.integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.integration-item {
    text-align: center;
    padding: 2rem;
    border-radius: 1rem;
    border: 2px solid var(--color-light);
    transition: var(--transition);
}

.integration-item:hover {
    border-color: var(--color-primary);
    transform: translateY(-3px);
}

/* Section Spacer */
.section-spacer {
    height: 80px;
    background: transparent;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0 0 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, #1d4ed8 100%);
    color: var(--color-white);
    margin-bottom: 0;
    display: block;
}

.contact-section .container {
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-section > *:last-child,
.contact-section .container > *:last-child,
.contact-section .row,
.contact-section p:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 2rem;
    border-radius: 1rem;
    color: var(--color-dark);
    box-shadow: var(--shadow-lg);
}

/* Global smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Respect accessibility preferences */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* =============================
   Christmas decorations & UI
   ============================= */

/* Christmas Lights in Header */
.christmas-lights {
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 16px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.christmas-mode .christmas-lights {
    opacity: 1;
}

.christmas-lights .light {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
    animation: twinkle 1.5s ease-in-out infinite;
}

.christmas-lights .light::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 6px;
    background: #666;
}

.christmas-lights .light.red {
    background: #ef4444;
    color: #ef4444;
    animation-delay: 0s;
}

.christmas-lights .light.yellow {
    background: #fbbf24;
    color: #fbbf24;
    animation-delay: 0.3s;
}

.christmas-lights .light.green {
    background: #10b981;
    color: #10b981;
    animation-delay: 0.6s;
}

.christmas-lights .light.blue {
    background: #3b82f6;
    color: #3b82f6;
    animation-delay: 0.9s;
}

@keyframes twinkle {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.4;
        transform: scale(0.8);
    }
}

/* Christmas emojis in lights (reindeer and santa) */
.christmas-lights .christmas-emoji {
    font-size: 18px;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: bounce-emoji 2s ease-in-out infinite;
}

.christmas-mode .christmas-lights .christmas-emoji {
    opacity: 1;
}

.christmas-lights .christmas-emoji.reindeer {
    animation-delay: 0.2s;
}

.christmas-lights .christmas-emoji.santa {
    animation-delay: 0s;
    font-size: 20px;
}

@keyframes bounce-emoji {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* Corner stars (emoji) */
.christmas-star {
    position: fixed;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    opacity: 0.22;
    pointer-events: none;
    z-index: 998;
}

.christmas-star.star-tl { top: 0; left: 0; transform: rotate(-15deg); }
.christmas-star.star-tr { top: 0; right: 0; transform: rotate(15deg); }
.christmas-star.star-bl { bottom: 0; left: 0; transform: rotate(10deg); }
.christmas-star.star-br { bottom: 0; right: 0; transform: rotate(-10deg); }

/* =============================
   Modal Año Nuevo 2026
   ============================= */
.newyear-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 30, 60, 0.85);
    z-index: 1003;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    backdrop-filter: blur(4px);
}

.newyear-modal {
    position: relative;
    background: transparent;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    animation: modalPop 280ms cubic-bezier(.2,.8,.2,1) both;
    overflow: hidden;
}

.newyear-modal-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 200, 150, 0.3), 0 8px 22px rgba(0,0,0,0.3);
}

.newyear-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: #111827;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 10;
}

.newyear-modal-close:hover { 
    background: #fff; 
    transform: scale(1.1);
}

/* Responsive para móviles */
@media (max-width: 640px) {
    .newyear-modal-overlay {
        padding: 16px;
    }
    .newyear-modal {
        max-width: 95%;
    }
    .newyear-modal-close {
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
    }
}

/* Christmas modal (replaces banner) - LEGACY */
.christmas-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(22, 163, 74, 0.26); /* green tint */
    z-index: 1003;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.christmas-modal {
    position: relative;
    background: #ffffff;
    color: #111827;
    border-radius: 12px;
    max-width: 520px;
    width: 100%;
    padding: 20px 56px 20px 20px;
    box-shadow: 0 24px 60px rgba(22,163,74,0.22), 0 8px 22px rgba(0,0,0,0.18);
    border: 2px solid #16a34a; /* green accent */
    font-weight: 600;
    animation: modalPop 280ms cubic-bezier(.2,.8,.2,1) both;
}

.christmas-modal-content { font-size: 1rem; line-height: 1.4; }

.christmas-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: #e5e7eb;
    color: #111827;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.christmas-modal-close:hover { background: #d1d5db; }

/* Header and actions */
.christmas-modal-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; background: linear-gradient(135deg, #16a34a, #dc2626); color: #fff; padding: 12px 56px 12px 14px; margin-top: -20px; margin-left: -20px; margin-right: -56px; border-radius: 10px 10px 0 0; }
.christmas-modal-header h3 { margin: 0; font-size: 1.1rem; color: #fff; }
.christmas-badge { font-size: 28px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.2)); animation: wobbleX 2500ms ease-in-out infinite; }
.christmas-modal-content p { margin: 0 0 12px 0; font-weight: 500; color: #111827; }
.h-modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; align-items: center; }
.bot-invite { display: inline-flex; align-items: center; gap: 6px; margin-right: 6px; }
.bot-invite .bot { font-size: 22px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.15)); }
.bot-invite .bot-wave { animation: botWave 2.2s ease-in-out infinite; transform-origin: 60% 60%; }
.bot-invite .bot-bounce { animation: botBounce 2.4s ease-in-out infinite; }
.bot-invite .bot-arrow { font-size: 20px; animation: pointRight 1.6s ease-in-out infinite; }
.christmas-modal .btn-primary { background: linear-gradient(135deg, #16a34a, #dc2626); color: #fff; padding: 10px 14px; border-radius: 8px; border: none; text-decoration: none; font-weight: 700; box-shadow: 0 8px 18px rgba(34,197,94,.35); transition: transform .12s ease, box-shadow .2s ease, filter .2s ease; }
.christmas-modal .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(34,197,94,.45); filter: brightness(1.03); }
.christmas-modal .btn-primary.cta-pulse-xmas { animation: ctaPulseXmas var(--pulseDur, 6.8s) ease-in-out infinite; }
.christmas-modal .btn-ghost { background: transparent; border: 1px solid #facc15; color: #111827; padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.christmas-modal .btn-ghost:hover { background: #f3f4f6; }

@keyframes modalPop { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes wobbleX { 0% { transform: rotate(0deg) translateY(0); } 50% { transform: rotate(8deg) translateY(-2px); } 100% { transform: rotate(0deg) translateY(0); } }
@keyframes botWave { 0%{ transform: rotate(0deg);} 40%{ transform: rotate(16deg);} 80%{ transform: rotate(-8deg);} 100%{ transform: rotate(0deg);} }
@keyframes botBounce { 0%{ transform: translateY(0);} 50%{ transform: translateY(-5px);} 100%{ transform: translateY(0);} }
@keyframes pointRight { 0%{ transform: translateX(0);} 50%{ transform: translateX(6px);} 100%{ transform: translateX(0);} }
@keyframes ctaPulseXmas { 0%{ transform: scale(1); box-shadow: 0 8px 18px rgba(34,197,94,.35);} 8%{ transform: scale(1.045); box-shadow: 0 10px 26px rgba(34,197,94,.5);} 16%{ transform: scale(1); box-shadow: 0 8px 18px rgba(34,197,94,.35);} 100%{ transform: scale(1); box-shadow: 0 8px 18px rgba(34,197,94,.35);} }

/* Toggle button */
.christmas-toggle {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: #16a34a;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(34,197,94,0.4);
    z-index: 1002;
    cursor: pointer;
}

.christmas-toggle:hover { filter: brightness(1.1); }
.christmas-toggle:active { transform: translateY(1px); }

/* Respect reduced motion: remove decorations */
@media (prefers-reduced-motion: reduce) {
    .christmas-star, .christmas-toggle { display: none !important; }
}

/* Reduced-motion for modal */
@media (prefers-reduced-motion: reduce) {
    .christmas-modal { animation: none; }
    .christmas-badge { animation: none; }
    .bot-invite .bot-wave,
    .bot-invite .bot-bounce,
    .bot-invite .bot-arrow { animation: none; }
    .christmas-modal .btn-primary.cta-pulse-xmas { animation: none; }
}

/* =============================
   Christmas animations (global)
   ============================= */
body.christmas-mode .btn,
body.christmas-mode .btn-plan,
body.christmas-mode .btn-special,
body.christmas-mode .btn-special-compact,
body.christmas-mode a.button,
body.christmas-mode button {
    animation: christmasGlow 2.2s ease-in-out infinite alternate;
}

@keyframes christmasGlow {
    0% { box-shadow: 0 0 0 rgba(34, 197, 94, 0.0); }
    100% { box-shadow: 0 0 18px rgba(34, 197, 94, 0.6), 0 0 36px rgba(220, 38, 38, 0.3); }
}

/* Floating layer for emojis (lightweight, accessible) */
.christmas-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;
}

.christmas-item {
    position: absolute;
    will-change: transform, opacity;
    opacity: 0.9;
    filter: drop-shadow(0 3px 4px rgba(0,0,0,0.25));
}

/* Simple float animations */
@keyframes floatDrift {
    0% { transform: translate3d(var(--x,0), var(--y,0), 0) rotate(0deg); }
    50% { transform: translate3d(calc(var(--x,0) + 10px), calc(var(--y,0) - 20px), 0) rotate(2deg); }
    100% { transform: translate3d(var(--x,0), var(--y,0), 0) rotate(0deg); }
}

.christmas-item.flake { font-size: 26px; animation: floatDrift 6s ease-in-out infinite; }
.christmas-item.tree  { font-size: 30px; animation: floatDrift 5.2s ease-in-out infinite; }
.christmas-item.gift  { font-size: 28px; animation: floatDrift 5.6s ease-in-out infinite; }
.christmas-item.star  { font-size: 24px; animation: floatDrift 6.4s ease-in-out infinite; }
.christmas-item.santa { font-size: 32px; animation: bobWiggle 5s ease-in-out infinite; }
.christmas-item.robot { font-size: 34px; animation: bobWiggle 6s ease-in-out infinite; }
.christmas-item.sleigh { font-size: 36px; animation: santaSleigh 18s linear infinite; }
.christmas-item.sleigh-convoy { 
    font-size: 40px; 
    letter-spacing: -8px;
    animation: santaSleighConvoy 20s linear infinite; 
}

@keyframes bobWiggle {
    0% { transform: translateY(0) rotate(0deg); }
    20% { transform: translateY(-8px) rotate(2deg); }
    40% { transform: translateY(0) rotate(0deg); }
    60% { transform: translateY(-6px) rotate(-2deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

@keyframes santaSleigh {
    0% { 
        transform: translateX(-10vw) translateY(var(--startY, 15vh)) scale(0.8); 
        opacity: 0; 
    }
    5% { opacity: 1; }
    25% { 
        transform: translateX(30vw) translateY(calc(var(--startY, 15vh) - 5vh)) scale(1);
    }
    50% { 
        transform: translateX(60vw) translateY(calc(var(--startY, 15vh) + 2vh)) scale(0.95);
    }
    75% { 
        transform: translateX(90vw) translateY(calc(var(--startY, 15vh) - 8vh)) scale(0.9);
    }
    95% { opacity: 1; }
    100% { 
        transform: translateX(115vw) translateY(calc(var(--startY, 15vh) - 12vh)) scale(0.7);
        opacity: 0;
    }
}

@keyframes santaSleighConvoy {
    0% { 
        transform: translateX(-15vw) translateY(0) scale(0.9) rotate(-2deg); 
        opacity: 0;
        filter: drop-shadow(0 5px 10px rgba(0,0,0,0.3));
    }
    3% { opacity: 1; }
    15% { 
        transform: translateX(20vw) translateY(-8vh) scale(1.1) rotate(1deg);
        filter: drop-shadow(0 8px 15px rgba(0,0,0,0.35));
    }
    35% { 
        transform: translateX(50vw) translateY(-4vh) scale(1) rotate(-1deg);
        filter: drop-shadow(0 6px 12px rgba(0,0,0,0.3));
    }
    55% { 
        transform: translateX(75vw) translateY(-10vh) scale(0.95) rotate(2deg);
        filter: drop-shadow(0 7px 13px rgba(0,0,0,0.32));
    }
    75% { 
        transform: translateX(95vw) translateY(-6vh) scale(0.85) rotate(-1deg);
        filter: drop-shadow(0 5px 10px rgba(0,0,0,0.28));
    }
    97% { opacity: 1; }
    100% { 
        transform: translateX(120vw) translateY(-15vh) scale(0.7) rotate(3deg);
        opacity: 0;
        filter: drop-shadow(0 3px 8px rgba(0,0,0,0.2));
    }
}

/* Christmas notification animations */
@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.christmas-notification {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 500;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .christmas-notification {
        top: 10px !important;
        right: 10px !important;
        left: 10px !important;
        max-width: calc(100% - 20px) !important;
        font-size: 13px !important;
        padding: 12px 16px !important;
    }
}

/* Reduce/disable on accessibility preference */
@media (prefers-reduced-motion: reduce) {
    body.christmas-mode .btn,
    body.christmas-mode .btn-plan,
    body.christmas-mode .btn-special,
    body.christmas-mode .btn-special-compact,
    body.christmas-mode a.button,
    body.christmas-mode button { animation: none; }
    .christmas-layer { display: none; }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1e3a8a !important;
    text-shadow: none;
}

/* Específico para la sección de contacto */
.contact-section .form-group label,
#contact .form-group label,
.contact-form label {
    color: #1e3a8a !important;
    display: block !important;
    font-weight: 600 !important;
    text-shadow: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 1rem !important;
    margin-bottom: 0.5rem !important;
}

/* Inputs específicos para la sección de contacto */
.contact-section input,
.contact-section textarea,
#contact input,
#contact textarea,
.contact-form input,
.contact-form textarea {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    border: 2px solid #1e3a8a !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #1e3a8a !important;
    font-size: 1rem !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-shadow: 0 2px 4px rgba(30, 58, 138, 0.1) !important;
    margin-top: 0.25rem !important;
}

.contact-section input:focus,
.contact-section textarea:focus,
#contact input:focus,
#contact textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #1e3a8a !important;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.2) !important;
    outline: none !important;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100% !important;
    padding: 0.75rem !important;
    border: 2px solid #1e3a8a !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #1e3a8a !important;
    font-size: 1rem !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-shadow: 0 2px 4px rgba(30, 58, 138, 0.1) !important;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-family: var(--font-secondary);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* Footer */
.site-footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 0 0 1rem;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 1rem 0 2rem 0;
}

.footer-section h3 {
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--color-white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--color-secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: var(--color-gray);
}

/* Logo centrado entre contenido y barra inferior */
.footer-mid-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0 1.25rem;
}

.footer-mid-logo-img {
    height: 125px;
    width: auto;
    max-width: 100%;
    display: block;
}

@media (max-width: 768px) {
    .footer-mid-logo-img {
        height: 120px;
    }
}

/* Footer brand logo */
.footer-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 2rem;
}

.footer-brand .footer-logo {
    height: 48px;
    width: auto;
    max-width: 25%;
    display: block;
}

@media (max-width: 768px) {
    .footer-brand .footer-logo {
        height: 30px;
    }
}

/* Keep centered on all viewports */

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .main-navigation {
        display: none;
    }
    
    .header-content {
        justify-content: center;
    }
    
    .features-grid,
    .integrations-grid {
        grid-template-columns: 1fr;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading optimizations */
img {
    max-width: 100%;
    height: auto;
}

/* WhatsApp Container with Robot Animation */
.whatsapp-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

/* WhatsApp Container with Robot Peek Animation */
.whatsapp-container {
    position: fixed;
    bottom: 60px;
    right: 60px;
    z-index: 1000;
}

/* Robot Peek Animation */
.robot-peek {
    position: absolute;
    bottom: 70px;
    right: -30px;
    opacity: 0;
    transform: translateY(50px) scale(0.8);
    animation: robotPeek 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1001;
}

@keyframes robotPeek {
    0%, 15% {
        opacity: 0;
        transform: translateY(50px) scale(0.8);
    }
    20%, 80% {
        opacity: 1;
        transform: translateY(0px) scale(1);
    }
    85%, 100% {
        opacity: 0;
        transform: translateY(50px) scale(0.8);
    }
}

/* Robot Bot */
.robot-bot {
    font-size: 1.8rem;
    margin-bottom: 8px;
    text-align: center;
    animation: robotWave 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

@keyframes robotWave {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

/* Chat Bubble */
.chat-bubble {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 16px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    min-width: 120px;
    text-align: center;
    animation: bubbleFloat 3s ease-in-out infinite;
}

@keyframes bubbleFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-3px);
    }
}

.chat-text {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    display: block;
}

.bubble-tail {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #667eea;
}

/* Enhanced WhatsApp Button */
.whatsapp-float {
    position: relative;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: whatsappPulse 3s ease-in-out infinite;
}

@keyframes whatsappPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
    }
}

.whatsapp-float:hover {
    transform: scale(1.15);
    color: white;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    animation: none;
}

.whatsapp-float:hover ~ .robot-peek {
    opacity: 1 !important;
    transform: translateY(0px) scale(1) !important;
    animation: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .whatsapp-container {
        bottom: 40px;
        right: 40px;
    }
    
    .robot-peek {
        bottom: 60px;
        right: -25px;
    }
    
    .robot-bot {
        font-size: 1.5rem;
        margin-bottom: 6px;
    }
    
    .chat-bubble {
        padding: 8px 12px;
        border-radius: 16px;
        min-width: 100px;
    }
    
    .chat-text {
        font-size: 0.8rem;
    }
    
    .bubble-tail {
        border-top: 6px solid #667eea;
        bottom: -6px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .whatsapp-container {
        bottom: 30px;
        right: 30px;
    }
    
    .robot-peek {
        bottom: 55px;
        right: -20px;
    }
    
    .robot-bot {
        font-size: 1.3rem;
        margin-bottom: 5px;
    }
    
    .chat-bubble {
        padding: 6px 10px;
        border-radius: 14px;
        min-width: 90px;
    }
    
    .chat-text {
        font-size: 0.75rem;
    }
    
    .whatsapp-float {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

/* Performance optimizations */
.hero-section,
.features-section,
.integrations-section,
.contact-section {
    will-change: transform;
}

/* Hero Buttons with Robot Animation */
.btn-robot-container {
    position: relative;
    display: inline-block;
    margin: 0 10px;
}

.robot-peek-btn {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    pointer-events: none;
    z-index: 10;
}

/* Demo Robot Animation — spring bounce */
.demo-robot {
    animation: demoPeek 11s cubic-bezier(0.34,1.56,0.64,1) infinite;
}

@keyframes demoPeek {
    0%, 18%  { opacity:0; transform:translateX(-50%) translateY(40px) scale(0.65); filter:blur(2px); }
    24%      { opacity:1; transform:translateX(-50%) translateY(-8px) scale(1.10); filter:blur(0); }
    28%      { opacity:1; transform:translateX(-50%) translateY(3px) scale(0.96); }
    32%, 40% { opacity:1; transform:translateX(-50%) translateY(0) scale(1); }
    47%, 100%{ opacity:0; transform:translateX(-50%) translateY(40px) scale(0.65); filter:blur(2px); }
}

/* WhatsApp Robot Animation (offset timing) — spring bounce */
.whatsapp-robot {
    animation: whatsappPeek 11s cubic-bezier(0.34,1.56,0.64,1) infinite;
    animation-delay: 5.5s;
}

@keyframes whatsappPeek {
    0%, 18%  { opacity:0; transform:translateX(-50%) translateY(40px) scale(0.65); filter:blur(2px); }
    24%      { opacity:1; transform:translateX(-50%) translateY(-8px) scale(1.10); filter:blur(0); }
    28%      { opacity:1; transform:translateX(-50%) translateY(3px) scale(0.96); }
    32%, 40% { opacity:1; transform:translateX(-50%) translateY(0) scale(1); }
    47%, 100%{ opacity:0; transform:translateX(-50%) translateY(40px) scale(0.65); filter:blur(2px); }
}

/* Robot styling for hero buttons */
.robot-peek-btn .robot-bot {
    font-size: 1.6rem;
    margin-bottom: 6px;
    text-align: center;
    animation: heroRobotWave 2.2s cubic-bezier(0.445,0.05,0.55,0.95) infinite;
    filter: drop-shadow(0 4px 10px rgba(6,214,160,0.5));
    transform-origin: bottom center;
}

@keyframes heroRobotWave {
    0%, 100% { transform: rotate(0deg) translateY(0); }
    20%      { transform: rotate(-14deg) translateY(-2px); }
    40%      { transform: rotate(10deg) translateY(-1px); }
    60%      { transform: rotate(-6deg) translateY(0); }
    80%      { transform: rotate(4deg) translateY(0); }
}

/* Chat bubble para botones del hero — gradiente teal */
.robot-peek-btn .chat-bubble {
    background: linear-gradient(135deg, #06d6a0 0%, #17b7b1 60%, #0ea5e9 100%);
    color: #0a1628;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 20px;
    position: relative;
    box-shadow:
        0 6px 20px rgba(6,214,160,0.45),
        0 2px 8px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.3);
    min-width: 120px;
    text-align: center;
    animation: heroBubbleFloat 2.4s ease-in-out infinite;
    backdrop-filter: blur(4px);
}

@keyframes heroBubbleFloat {
    0%, 100% { transform: translateY(0px) scale(1); box-shadow: 0 6px 20px rgba(6,214,160,0.45), 0 2px 8px rgba(0,0,0,0.2); }
    50%      { transform: translateY(-5px) scale(1.02); box-shadow: 0 10px 28px rgba(6,214,160,0.6), 0 4px 12px rgba(0,0,0,0.15); }
}

.robot-peek-btn .chat-text {
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    display: block;
    letter-spacing: 0.2px;
}

.robot-peek-btn .bubble-tail {
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid #06d6a0;
    filter: drop-shadow(0 2px 3px rgba(6,214,160,0.4));
}

/* Hover — aparece al instante con micro-bounce */
.btn-robot-container:hover .robot-peek-btn {
    opacity: 1 !important;
    animation: heroBtnHoverPop 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards !important;
}

@keyframes heroBtnHoverPop {
    0%   { opacity:0; transform:translateX(-50%) translateY(20px) scale(0.8); }
    60%  { opacity:1; transform:translateX(-50%) translateY(-4px) scale(1.06); }
    100% { opacity:1; transform:translateX(-50%) translateY(0) scale(1); }
}

.btn-robot-container:hover .robot-peek-btn .chat-bubble {
    animation-duration: 1.2s;
}

.btn-robot-container:hover .robot-peek-btn .robot-bot {
    animation-duration: 1.6s;
}

/* Responsive adjustments for hero robots */
@media (max-width: 768px) {
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn-robot-container {
        margin: 10px 0;
        width: 100%;
        max-width: 300px;
    }
    
    .robot-peek-btn {
        bottom: 50px;
    }
    
    .robot-peek-btn .robot-bot {
        font-size: 1.3rem;
        margin-bottom: 6px;
    }
    
    .robot-peek-btn .chat-bubble {
        padding: 6px 12px;
        border-radius: 16px;
        min-width: 100px;
    }
    
    .robot-peek-btn .chat-text {
        font-size: 0.8rem;
    }
    
    .robot-peek-btn .bubble-tail {
        border-top: 5px solid #ff6b6b;
        bottom: -5px;
    }
}

@media (max-width: 480px) {
    .robot-peek-btn {
        bottom: 45px;
    }
    
    .robot-peek-btn .robot-bot {
        font-size: 1.2rem;
        margin-bottom: 5px;
    }
    
    .robot-peek-btn .chat-bubble {
        padding: 5px 10px;
        border-radius: 14px;
        min-width: 90px;
    }
    
    .robot-peek-btn .chat-text {
        font-size: 0.75rem;
    }
}

/* Services Section */
.services-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.service-card {
    background: var(--color-white);
    border-radius: 1rem;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(30, 64, 175, 0.1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(30, 64, 175, 0.15);
}

.service-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, #3b82f6 100%);
    position: relative;
    overflow: hidden;
}

.service-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

.service-icon {
    opacity: 0.9;
}

.service-description {
    font-size: 1.1rem;
    color: var(--color-gray);
    line-height: 1.7;
}

.features-list h5 {
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.features-list ul li {
    padding: 0.3rem 0;
    font-size: 0.95rem;
}

.pricing-card {
    border: 2px solid var(--color-secondary);
    border-radius: 0.75rem;
    position: relative;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.pricing-card.pricing-card-special {
    margin-top: 60px !important;
}

/* Asegurar espacio para el badge en el contenedor */
.pricing-section .col-md-4,
.pricing-section .col-md-3 {
    position: relative;
    padding-top: 20px;
}

/* Badge naranja visible encima de la tarjeta */
.special-offer-badge {
    position: absolute !important;
    top: -30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: #ff5722 !important;
    background: linear-gradient(135deg, #ff5722 0%, #ff9800 100%) !important;
    color: #ffffff !important;
    padding: 0.7rem 1.8rem !important;
    border-radius: 30px !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.6) !important;
    animation: pulse-badge 2s ease-in-out infinite !important;
    z-index: 999 !important;
    white-space: nowrap !important;
    border: 2px solid #ff3d00 !important;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        box-shadow: 0 6px 20px rgba(255, 87, 34, 0.6);
    }
    50% {
        transform: translateX(-50%) scale(1.08);
        box-shadow: 0 8px 30px rgba(255, 87, 34, 0.9);
    }
}

.pricing-card.pricing-card-special::before {
    content: none;
}

.price-display {
    font-weight: bold;
}

.price-display .currency {
    font-size: 1.2rem;
    vertical-align: top;
    color: var(--color-primary);
}

.price-display .amount {
    font-size: 2.5rem;
    color: var(--color-primary);
}

.price-display .period {
    font-size: 1rem;
    color: var(--color-gray);
}

.cta-button {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #059669 100%);
    border: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 214, 160, 0.3);
    background: linear-gradient(135deg, #059669 0%, var(--color-secondary) 100%);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-3px);
    }
    60% {
        transform: translateX(-50%) translateY(-2px);
    }
}

/* Responsive adjustments for services */
@media (max-width: 768px) {
    .service-header {
        text-align: center;
    }
    
    .service-header .col-md-4 {
        margin-top: 1rem;
    }
    
    .pricing-card {
        margin-top: 2rem;
    }
    
    .price-display .amount {
        font-size: 2rem;
    }
    
    .features-list .row {
        margin-top: 1rem;
    }
}

