/* 
   Telesolin SAS - Design System
   Modern, Dark Mode, Premium Corporate
*/

:root {
    /* Telesolin Light Kinetic Palette */
    --primary: #dc2626; 
    --primary-hover: #b91c1c;
    --primary-glow: rgba(220, 38, 38, 0.15); 
    
    --bg-dark: #f8fafc; /* Fondo claro y limpio */
    --bg-panel: rgba(255, 255, 255, 0.7); /* Cristal claro */
    --bg-panel-solid: #ffffff;
    
    --accent: #0f172a; 
    --accent-glow: rgba(14, 165, 233, 0.1); 
    
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    
    --text-light: #0f172a; /* Texto oscuro para fondo claro */
    --text-muted: #64748b;
    
    --border: rgba(0, 0, 0, 0.06);
    
    --transition-expert: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    /* Spacing */
    --section-padding: 6rem;
    --container-width: 1200px;
    
    /* Animations */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, #ff4d4d 0%, #ff0000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Doble sombra: una para el brillo rojo y otra oscura para el contraste con el fondo */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)) 
            drop-shadow(0 0 15px rgba(255, 60, 60, 0.3));
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-padding) 0;
    position: relative;
    background: var(--bg-dark); /* Cambio a oscuro */
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-description {
    color: var(--text-muted);
    font-size: 1.125rem;
}

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.btn-dark {
    background: #1e293b; /* Gris oscuro / Slate */
    color: #ffffff;
    border: 1px solid #334155;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-dark:hover {
    background: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(14, 165, 233, 0.2);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Glassmorphism */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
}

/* Shine Sweep Effect */
.glass-panel::after, .service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: skewX(-25deg);
    pointer-events: none;
    transition: left 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 2;
}

.glass-panel:hover::after, .service-card:hover::after {
    left: 150%;
}

.glass-panel-dark {
    background: var(--bg-panel-solid);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 1rem 0;
    background: rgba(6, 9, 16, 0.9); /* Fondo negro cristalino */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
    padding: 0.8rem 0;
    background: rgba(6, 9, 16, 0.98); /* Un poco más sólido al bajar */
    border-bottom: 1px solid rgba(220, 38, 38, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-img {
    height: 60px;
    width: auto;
    transition: var(--transition);
    object-fit: contain;
}

.navbar.scrolled .logo-img {
    height: 50px;
}

.logo-subtitle {
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 4px;
    letter-spacing: 0.3px;
    transition: var(--transition);
}

.navbar.scrolled .logo-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    padding: 0.5rem 0;
    display: block;
}

.nav-links a:hover, .nav-links a.active {
    color: #ffffff;
}

/* Dropdown Styles */
.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    z-index: 1000;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-link {
    display: block;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    border-radius: 8px;
    white-space: nowrap;
}

.dropdown-link:hover {
    background: rgba(220, 38, 38, 0.1);
    color: var(--primary) !important;
    padding-left: 1.5rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #ffffff; /* Blanco por defecto */
    transition: var(--transition);
}

.navbar.scrolled .mobile-menu-btn span {
    background-color: #ffffff;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 15, 24, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.8rem;
    font-family: var(--font-heading);
    font-weight: 700;
    transition: var(--transition);
}

.mobile-link:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
    background-color: #ffffff;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)), /* Overlay blanco para aclarar */
        radial-gradient(circle at 70% 30%, rgba(220, 38, 38, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 20% 70%, rgba(14, 165, 233, 0.05) 0%, transparent 50%),
        url('assets/hero_imagen.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}

.three-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.8;
}

.hero-bg-glow {
    position: fixed; /* Cambiado a fixed para seguir el mouse en toda la sección */
    top: 0;
    left: 0;
    width: 800px;
    height: 800px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    transition: left 0.15s ease-out, top 0.15s ease-out;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: #1f1a1a;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    color: #1f1a1a;
}

.hero .hero-subtitle {
    font-size: 1.25rem;
    color: #1e293b; /* Azul oscuro corporativo */
    font-weight: 700;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: none; /* Eliminando sombra para un look más limpio sobre fondo claro */
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background-color: var(--text-muted);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 12px); opacity: 0; }
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 1fr; /* Todas las tarjetas de una fila tendrán la misma altura */
    gap: 1.5rem;
    perspective: 1000px;
}

.service-card {
    padding: 3rem 2rem;
    transition: var(--transition-expert);
    background: var(--bg-panel); /* Cristal claro */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    transform-style: preserve-3d;
    box-shadow: var(--glass-shadow);
    border-radius: 20px;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
    transform: translateY(-10px) rotateX(2deg);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
    transition: transform 0.2s ease-out;
    transform-style: preserve-3d;
}

.service-icon svg {
    width: 32px;
    height: 32px;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-text {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.service-features {
    list-style: none;
}

.service-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* Partners */
.partners {
    padding: 4rem 0;
    background: var(--bg-panel-solid);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.partners-title {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 500;
}

.partners-carousel {
    position: relative;
    width: 100%;
}

.partners-track {
    display: flex;
    gap: 3rem;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.partner-badge {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0.6;
    transition: var(--transition);
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.partner-badge:hover {
    opacity: 1;
    color: var(--primary);
    background: rgba(220, 38, 38, 0.05);
    border-color: var(--primary);
    transform: translateY(-5px);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 1.5rem)); }
}


/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.about-image {
    position: relative;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(18, 25, 38, 0.8) 100%);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.abstract-grid {
    position: absolute;
    inset: 0;
    opacity: 0.5;
}

.abstract-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    left: 50%;
    transform: translateX(-50%);
}

.abstract-circle {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 1px solid var(--primary);
    opacity: 0.3;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-info {
    padding: 2.5rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-list svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-light);
    font-family: var(--font-primary);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

/* Footer */
.footer {
    background: #06090e;
    padding: 3rem 0;
    border-top: 1px solid var(--border);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

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

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

/* Animations & Utilities */
.fade-in-up {
    opacity: 0; /* Asegura que inicien invisibles */
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Responsive */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* Cuadrícula de 2 columnas como pediste */
        gap: 0.75rem; /* Espacio más estrecho para que quepan bien */
        grid-auto-rows: 1fr; /* Fuerza a que todas las de la misma fila midan lo mismo */
    }
    
    .service-card {
        padding: 1.25rem 0.75rem; /* Padding más ajustado para 2 columnas */
    }

    .service-title {
        font-size: 1.1rem; /* Títulos un poco más pequeños para evitar saltos de línea raros */
    }
}

@media (max-width: 992px) {
    .about-container, .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-cta {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        margin-right: 10px;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        padding: 0 10px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 15px;
    }

    .section-title {
        font-size: 2.2rem;
    }
    
    .service-card {
        padding: 1.5rem 1.25rem; /* Padding mucho más compacto */
        animation: none; 
    }

    .service-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 1rem;
    }

    .service-title {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .service-text {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .service-features {
        display: none; /* Ocultamos la lista detallada en móvil para ahorrar espacio vertical */
    }

    .nav-container {
        padding: 0 1rem;
    }

    .logo-img {
        height: 50px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .whatsapp-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    .whatsapp-btn svg {
        width: 25px;
        height: 25px;
    }
}

/* Internal Pages */
.hero-internal {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.6) 100%), 
        url('assets/hero.png');
    background-size: cover;
    background-position: center;
}

.hero-internal-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    margin-bottom: 1.5rem;
    color: var(--accent);
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
    text-align: center;
}

.hero-content-wrapper {
    width: 100%;
    padding: 10rem 0 6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-cloud .hero-subtitle, .hero-outsourcing .hero-subtitle,
.hero-cloud .trust-badge, .hero-outsourcing .trust-badge {
    color: rgba(255, 255, 255, 0.8);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #10b981;
    border-radius: 50%;
    animation: dot-pulse 2s infinite;
}

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

.hero-ciberseguridad, .hero-cloud, .hero-infraestructura {
    background: radial-gradient(circle at 70% 50%, rgba(220, 38, 38, 0.05), transparent), 
                linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.hero-outsourcing {
    background-image: linear-gradient(to right, rgba(10, 15, 24, 0.7) 0%, rgba(10, 15, 24, 0.3) 100%), url('assets/hero_outsourcing.png');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.hero-outsourcing .hero-internal-title, .hero-cloud .hero-internal-title {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-ciberseguridad::before, .hero-cloud::before, .hero-infraestructura::before, .hero-outsourcing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

.internal-content {
    padding: 4rem 0;
    background: var(--bg-dark);
}

.content-block {
    margin-bottom: 3rem;
    background: var(--bg-panel); /* Cambiado a cristal transparente */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 3.5rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--glass-shadow);
}

.content-block h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.content-block h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.content-block p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content-block ul {
    list-style: none;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
}

.content-block li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
    color: var(--text-muted);
}

.content-block li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: pulse 2s infinite;
}

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

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
/* Internal Pages Specifics */
.hero-cloud {
    background-image: linear-gradient(to right, rgba(10, 15, 24, 0.8) 0%, rgba(10, 15, 24, 0.5) 100%), url('assets/hero_cloud.png');
}

.content-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: flex-start;
}

.internal-image-container {
    position: sticky;
    top: 120px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.internal-image {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.internal-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(14, 165, 233, 0.15);
}

@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .internal-image-container {
        position: static;
        order: -1; /* Image first on mobile */
    }
}

/* Newsletter Section */
.newsletter {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05) 0%, rgba(10, 15, 24, 0.02) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.newsletter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.newsletter-inputs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.newsletter-inputs .form-control {
    flex: 1;
}

.newsletter-disclaimer {
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 992px) {
    .newsletter-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .newsletter-content h2 {
        text-align: center !important;
    }
}

@media (max-width: 768px) {
    .newsletter-inputs {
        flex-direction: column;
    }
}

/* Floating Shapes & Parallax */
.floating-shape {
    position: absolute;
    background: linear-gradient(45deg, var(--primary-glow), transparent);
    filter: blur(40px);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.3;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.parallax-item {
    position: absolute;
    opacity: 0.15;
    filter: blur(80px);
    border-radius: 50%;
}

.p-1 { width: 400px; height: 400px; top: 10%; left: -10%; background: var(--primary-glow); }
.p-2 { width: 300px; height: 300px; top: 60%; right: -5%; background: var(--accent-glow); }
.p-3 { width: 200px; height: 200px; top: 40%; left: 60%; background: var(--primary-glow); }

.dot-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--border) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.15;
    z-index: -1;
}

/* FAQ Section for AI SEO */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.faq-item {
    background: var(--bg-panel);
    backdrop-filter: blur(8px);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
}

.faq-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.faq-item p {
    font-size: 0.95rem !important;
    margin-bottom: 0 !important;
}

/* Hero Large Icons */
.hero-large-icon {
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    filter: drop-shadow(0 0 30px var(--primary-glow));
    margin: 0 auto;
}

.hero-large-icon svg {
    width: 100%;
    height: 100%;
    animation: iconFloat 4s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@media (max-width: 992px) {
    .hero-large-icon {
        width: 200px;
        height: 200px;
        margin-bottom: 2rem;
    }
}

/* Premium Comparison Components */
.comparison-container {
    margin: 3rem 0;
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-panel-solid);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.comparison-table th {
    background: #0f172a;
    color: #ffffff;
    padding: 1.5rem;
    text-align: left;
    font-family: var(--font-heading);
    font-weight: 700;
}

.comparison-table th.highlight {
    background: var(--primary);
}

.comparison-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover td {
    background: rgba(14, 165, 233, 0.02);
}

.comparison-table .feature-name {
    font-weight: 600;
    color: var(--text-light);
    width: 30%;
}

.check-icon {
    color: var(--primary);
    font-weight: bold;
}

/* Risk & Value Prop Cards */
.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.risk-card {
    background: #fff5f5;
    border: 1px solid rgba(220, 38, 38, 0.1);
    padding: 2.5rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.05);
}

.risk-card h4 {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.value-card {
    background: #f1f5f9;
    color: var(--text-light);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.value-card h4 {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.value-card p {
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .content-block {
        padding: 1.5rem;
    }
    
    .comparison-table th, .comparison-table td {
        padding: 1rem;
        font-size: 0.85rem;
    }
}

/* --- Quotation Tool Styles --- */

.tool-page {
    background-color: #f1f5f9;
}

.quotation-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    align-items: start;
}

.config-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.config-header h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    color: var(--accent);
}

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

.item-entry-form {
    background: rgba(0, 0, 0, 0.02);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px dashed var(--border);
}

.item-grid-entry {
    display: grid;
    grid-template-columns: 2fr 0.5fr 1fr auto;
    gap: 1rem;
    align-items: flex-end;
}

.add-btn {
    height: 48px;
    width: 48px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.preview-header h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
}

.quote-number {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-glow);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.table-container {
    margin-bottom: 2rem;
    overflow-x: auto;
}

.quote-table {
    width: 100%;
    border-collapse: collapse;
}

.quote-table th {
    text-align: left;
    padding: 1rem;
    border-bottom: 2px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.quote-table td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.empty-row td {
    text-align: center;
    color: var(--text-muted);
    padding: 3rem;
}

.remove-btn {
    background: transparent;
    color: #ef4444;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.6;
}

.remove-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.quote-summary {
    background: var(--bg-dark);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.summary-line.total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border);
    color: var(--accent);
    font-weight: 800;
    font-size: 1.5rem;
}

.summary-line.total span:last-child {
    color: var(--primary);
}

.actions {
    display: flex;
    gap: 1rem;
}

@media (max-width: 1024px) {
    .quotation-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .form-row, .item-grid-entry {
        grid-template-columns: 1fr;
    }
    
    .item-grid-entry .grid-qty, .item-grid-entry .grid-price {
        display: inline-block;
        width: 48%;
    }
    
    .add-btn {
        width: 100%;
    }
}

/* Print Styles */
@media print {
    .navbar, .footer, .quotation-config, .actions, .remove-btn, #add-item-btn {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .quotation-preview {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
    
    .section {
        padding: 0 !important;
    }
}
