/**
 * ECBC Consultores - Modern Corporate Website
 * Tema Oscuro con Animaciones Futuristas
 */

/* ========================================
   VARIABLES CSS
======================================== */
:root {
    /* Colores Principales */
    --primary-color: #00D9FF;
    --secondary-color: #64FFDA;
    --accent-color: #0A192F;
    --dark-bg: #0A192F;
    --darker-bg: #020C1B;
    --light-navy: #112240;
    --lighter-navy: #1C2E4A;
    --text-color: #8892B0;
    --text-light: #CCD6F6;
    --text-white: #E6F1FF;

    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #1c3d5a 0%, #3e8ea3 100%);
    --gradient-secondary: linear-gradient(135deg, #64FFDA 0%, #00D9FF 100%);
    --gradient-dark: linear-gradient(135deg, #0A192F 0%, #112240 50%, #0A192F 100%);

    /* Sombras */
    --shadow-sm: 0 2px 10px rgba(0, 217, 255, 0.1);
    --shadow-md: 0 5px 20px rgba(0, 217, 255, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 217, 255, 0.2);
    --shadow-xl: 0 20px 60px rgba(0, 217, 255, 0.3);

    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Tipografía */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Poppins', sans-serif;

    /* Z-index */
    --z-loader: 9999;
    --z-navbar: 1000;
    --z-whatsapp: 999;
    --z-modal: 1500;
}

/* ========================================
   RESET Y BASE
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-primary);
    background: var(--darker-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   TIPOGRAFÍA
======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-white);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

/* ========================================
   UTILIDADES
======================================== */
section {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto;
}

.highlight {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    display: inline-block;
    animation: highlightGlow 3s ease-in-out infinite;
}

@keyframes highlightGlow {
    0%, 100% {
        filter: brightness(1) drop-shadow(0 0 0px rgba(0, 217, 255, 0));
    }
    50% {
        filter: brightness(1.2) drop-shadow(0 0 8px rgba(0, 217, 255, 0.5));
    }
}

/* ========================================
   LOADER
======================================== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-loader);
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    position: relative;
    display: inline-block;
}

.loader-logo {
    width: 200px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.3));
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateY(-10px) scale(1.05);
        opacity: 0.9;
    }
}

.spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 240px;
    height: 240px;
    margin-top: -120px;
    margin-left: -120px;
    border: 2px solid rgba(0, 217, 255, 0.05);
    border-top-color: rgba(0, 217, 255, 0.3);
    border-radius: 50%;
    animation: spin 2s linear infinite;
    pointer-events: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-text {
    font-size: 2rem;
    color: var(--primary-color);
    letter-spacing: 8px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ========================================
   NAVBAR
======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    z-index: var(--z-navbar);
    transition: all var(--transition-normal);
    border-bottom: 1px solid rgba(0, 217, 255, 0.1);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
    background: rgba(10, 25, 47, 0.98);
}

.nav-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    font-family: var(--font-heading);
    font-weight: 800;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 800;
    text-decoration: none;
}

.brand-text {
    font-size: 1.8rem;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover .brand-text {
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.8rem;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.logo-subtitle {
    font-size: 0.7rem;
    color: var(--text-color);
    letter-spacing: 3px;
    margin-top: -5px;
}

.logo-img {
    height: 45px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Logo responsive */
@media (max-width: 768px) {
    .logo-img {
        height: 38px;
        max-width: 160px;
    }

    .brand-text {
        font-size: 1.5rem;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.875rem;
    position: relative;
    padding: 4px 0;
    transition: var(--transition-normal);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-secondary);
    transition: width var(--transition-normal);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.admin-link {
    background: rgba(0, 217, 255, 0.1);
    padding: 6px 16px;
    border-radius: 5px;
    border: 1px solid var(--primary-color);
}

.nav-link.admin-link:hover {
    background: rgba(0, 217, 255, 0.2);
}

/* Hamburger Menu - Oculto permanentemente */
.hamburger {
    display: none !important;
}

/* ========================================
   STOCK TICKER BANNER
======================================== */
.stock-ticker-banner {
    position: fixed;
    top: 54px; /* Debajo del navbar */
    left: 0;
    width: 100%;
    max-width: 100vw;
    height: 38px;
    background: rgba(17, 34, 64, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 217, 255, 0.2);
    border-bottom: 1px solid rgba(0, 217, 255, 0.2);
    z-index: 998;
    overflow: hidden;
    overflow-x: hidden;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.1);
}

.ticker-container {
    width: 100%;
    max-width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    overflow-x: hidden;
}

.ticker-track {
    display: flex;
    gap: 40px;
    align-items: center;
    height: 100%;
    padding: 0 15px;
    white-space: nowrap;
    animation: scroll-ticker 60s linear infinite;
}

.ticker-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    background: rgba(10, 25, 47, 0.5);
    border-radius: 6px;
    border: 1px solid rgba(0, 217, 255, 0.15);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.ticker-item:hover {
    background: rgba(10, 25, 47, 0.8);
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.3);
}

.ticker-item.loading {
    border: none;
    background: transparent;
    cursor: default;
}

.ticker-item.loading:hover {
    transform: none;
    box-shadow: none;
}

.ticker-symbol {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.ticker-name {
    font-size: 0.7rem;
    color: var(--text-color);
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticker-price {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-left: 4px;
}

.ticker-change {
    font-weight: 600;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.ticker-change.positive {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
}

.ticker-change.negative {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
}

.ticker-change i {
    font-size: 0.7rem;
}

.ticker-time {
    font-size: 0.65rem;
    color: var(--text-color);
    opacity: 0.7;
    margin-left: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .stock-ticker-banner {
        top: 52px;
        height: 36px;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .ticker-track {
        gap: 25px;
        padding: 0 10px;
    }

    .ticker-item {
        gap: 6px;
        padding: 4px 10px;
        font-size: 0.85rem;
    }

    .ticker-symbol {
        font-size: 0.75rem;
    }

    .ticker-name {
        display: none; /* Ocultar nombre en móvil */
    }

    .ticker-price {
        font-size: 0.8rem;
    }

    .ticker-change {
        font-size: 0.7rem;
        padding: 2px 5px;
    }

    .ticker-time {
        display: none; /* Ocultar hora en móvil */
    }
}

@media (max-width: 480px) {
    .stock-ticker-banner {
        top: 44px; /* Ajustado para navbar más delgado */
        height: 32px;
        display: block !important;
        visibility: visible !important;
    }

    .ticker-track {
        gap: 20px;
        padding: 0 8px;
    }

    .ticker-item {
        gap: 5px;
        padding: 3px 8px;
    }

    .ticker-symbol {
        font-size: 0.68rem;
    }

    .ticker-price {
        font-size: 0.72rem;
    }

    .ticker-change {
        font-size: 0.62rem;
        padding: 2px 4px;
    }
}

/* ========================================
   HERO SECTION
======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 100px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.gradient-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-dark);
    opacity: 0.8;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-logo {
    margin-bottom: 40px;
}

.hero-logo-img {
    width: 300px;
    height: auto;
    max-width: 90%;
    transition: transform 0.3s ease;
}

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

.hero-title {
    font-size: clamp(2.5rem, 7vw, 4rem);
    font-weight: 900;
    margin-bottom: 30px;
    line-height: 1.1;
}

.title-line {
    display: block;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(10deg); }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--text-color);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn span,
.btn i {
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(0, 217, 255, 0.1);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: rgba(0, 217, 255, 0.2);
    transform: translateY(-3px);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    font-size: 0.9rem;
    animation: bounce 2s infinite;
}

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

/* ========================================
   SERVICES SECTION
======================================== */
.services {
    padding: 120px 0;
    background: var(--dark-bg);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(17, 34, 64, 0.5);
    padding: 40px 30px;
    border-radius: 15px;
    border: 1px solid rgba(0, 217, 255, 0.1);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 0;
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    transition: var(--transition-normal);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--secondary-color);
}

.service-title {
    font-size: 1.4rem;
    color: var(--text-white);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.service-description {
    color: var(--text-color);
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.service-arrow {
    margin-top: 20px;
    color: var(--primary-color);
    font-size: 1.5rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: all var(--transition-normal);
    position: relative;
    z-index: 1;
}

.service-card:hover .service-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ========================================
   ABOUT SECTION
======================================== */
.about {
    padding: 120px 0;
    background: var(--darker-bg);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.about-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform var(--transition-slow);
}

.about-img.active {
    opacity: 1;
    position: relative;
}

.image-container:hover .about-img.active {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.2), rgba(100, 255, 218, 0.2));
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 2;
}

.image-container:hover .image-overlay {
    opacity: 1;
}

.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(0, 217, 255, 0.5);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.indicator.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.8);
}

.indicator:hover {
    background: rgba(0, 217, 255, 0.7);
    transform: scale(1.2);
}

.stats-card {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: rgba(17, 34, 64, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px 40px;
    border-radius: 15px;
    border: 1px solid var(--primary-color);
    display: flex;
    gap: 40px;
    box-shadow: var(--shadow-lg);
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 800;
}

.stat-label {
    color: var(--text-color);
    font-size: 0.9rem;
    margin-top: 5px;
}

.about-content {
    padding-left: 20px;
}

.about-text {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-text strong {
    color: var(--text-white);
}

.about-features {
    margin: 40px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 1rem;
}

.feature-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

/* ========================================
   CLIENTS SECTION
======================================== */
.clients {
    padding: 120px 0;
    background: var(--dark-bg);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.client-card {
    background: rgba(17, 34, 64, 0.4);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(0, 217, 255, 0.1);
    transition: all var(--transition-normal);
}

.client-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.client-testimonial {
    position: relative;
    padding: 20px 0;
}

.quote-icon {
    color: var(--primary-color);
    font-size: 2rem;
    opacity: 0.3;
    margin-bottom: 10px;
}

.client-testimonial p {
    color: var(--text-color);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 20px;
}

.client-testimonial footer {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.avatar-initials {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.client-testimonial strong {
    color: var(--text-white);
    font-size: 1.1rem;
}

.client-testimonial span {
    color: var(--text-color);
    font-size: 0.9rem;
}

.testimonial-rating {
    display: flex;
    gap: 5px;
}

.testimonial-rating i {
    color: #FFD700;
    font-size: 1rem;
}

/* ========================================
   CONTACT SECTION
======================================== */
.contact {
    padding: 120px 0;
    background: var(--darker-bg);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    margin-top: 60px;
}

.contact-info {
    background: rgba(17, 34, 64, 0.5);
    padding: 50px 40px;
    border-radius: 20px;
    border: 1px solid rgba(0, 217, 255, 0.2);
    height: fit-content;
}

.contact-info-inner {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.contact-person-image {
    flex-shrink: 0;
}

.contact-person-image .person-img {
    width: 180px;
    height: auto;
    border-radius: 15px;
    border: 2px solid rgba(0, 217, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.2);
    transition: all var(--transition-normal);
}

.contact-person-image .person-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 217, 255, 0.3);
    border-color: var(--primary-color);
}

.contact-details {
    flex: 1;
}

.contact-details h3 {
    font-size: 1.8rem;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
    min-width: 30px;
}

.info-item h4 {
    color: var(--text-white);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.info-item p {
    color: var(--text-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: all var(--transition-normal);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* Contact Form */
.contact-form {
    background: rgba(17, 34, 64, 0.5);
    padding: 50px 40px;
    border-radius: 20px;
    border: 1px solid rgba(0, 217, 255, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 8px;
    color: var(--text-white);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: all var(--transition-normal);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
}

.form-group label {
    position: absolute;
    top: -10px;
    left: 15px;
    background: var(--darker-bg);
    padding: 0 10px;
    color: var(--text-white);
    font-size: 0.85rem;
    pointer-events: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.form-message.success {
    background: rgba(52, 199, 89, 0.1);
    border: 1px solid rgba(52, 199, 89, 0.3);
    color: #51cf66;
    display: block;
}

.form-message.error {
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: #ff6b6b;
    display: block;
}

/* ========================================
   FOOTER
======================================== */
.footer {
    background: var(--accent-color);
    padding: 80px 0 30px;
    border-top: 1px solid rgba(0, 217, 255, 0.2);
}

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

.footer-col h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-col p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 10px;
}

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

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-color);
    transition: var(--transition-normal);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: start;
    gap: 10px;
}

.footer-contact i {
    color: var(--primary-color);
    margin-top: 3px;
}

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

.footer-bottom p {
    margin: 5px 0;
}

.footer-bottom i {
    color: #ff6b6b;
    animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25%, 75% { transform: scale(1.1); }
    50% { transform: scale(1.2); }
}

/* ========================================
   WHATSAPP FLOAT BUTTON
======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: var(--z-whatsapp);
    transition: all var(--transition-normal);
    animation: pulse-whatsapp 2s infinite;
}

@keyframes pulse-whatsapp {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

/* ========================================
   SCROLL TO TOP BUTTON
======================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 999;
}

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

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 1024px) {
    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .stats-card {
        position: static;
        margin-top: 20px;
        justify-content: center;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-info-inner {
        flex-direction: column;
        align-items: center;
    }

    .contact-person-image .person-img {
        width: 200px;
    }

    .contact-details {
        text-align: center;
    }

    .info-item {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        gap: 20px;
        flex-wrap: nowrap;
        justify-content: center;
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .nav-link.admin-link {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    /* Ocultar texto de Login en móviles, solo mostrar icono */
    .admin-text {
        display: none;
    }

    .hero {
        padding-top: 110px; /* Ajuste para ticker en móvil */
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

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

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

    .form-row {
        grid-template-columns: 1fr;
    }

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

    .stats-card {
        flex-direction: column;
        gap: 20px;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .scroll-top {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
    }

    .contact-person-image .person-img {
        width: 160px;
    }
}

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

    .nav-menu {
        gap: 12px;
    }

    .nav-link {
        font-size: 0.7rem;
        padding: 3px 0;
    }

    .hero {
        padding-top: 100px; /* Reducido porque navbar es más delgado */
    }

    .navbar {
        padding: 10px 0; /* Navbar más delgado en móvil */
    }

    .section-header {
        margin-bottom: 50px;
    }

    .services,
    .about,
    .clients,
    .contact {
        padding: 80px 0;
    }

    .service-card,
    .client-card,
    .contact-info,
    .contact-form {
        padding: 30px 20px;
    }

    .contact-person-image .person-img {
        width: 140px;
    }
}

/* ========================================
   ANIMACIONES ADICIONALES
======================================== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 217, 255, 0.3); }
    50% { box-shadow: 0 0 40px rgba(0, 217, 255, 0.6); }
}

/* Pantallas extra pequeñas */
@media (max-width: 360px) {
    .nav-link {
        font-size: 0.65rem;
        padding: 2px 0;
    }

    .nav-menu {
        gap: 10px;
    }

    .navbar {
        padding: 8px 0;
    }

    .stock-ticker-banner {
        top: 42px;
        height: 30px;
    }

    .ticker-symbol {
        font-size: 0.65rem;
    }

    .ticker-price {
        font-size: 0.7rem;
    }

    .hero {
        padding-top: 95px;
    }
}

/* Efectos de desplazamiento suave */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
