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

:root {
    /* Colores principales inspirados en Astro */
    --primary: #0bb7bf;
    --primary-dark: #089aa1;
    --secondary: #6366f1;
    --accent: #f59e0b;
    
    /* Colores de fondo oscuro */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --bg-card: #1e1e1e;
    
    /* Colores de texto */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    /* Bordes y sombras */
    --border: #2a2a2a;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    
    /* Espaciado */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    
    /* Tipografía */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Transiciones */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ===== ENLACES GLOBALES ===== */
a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ===== TIPOGRAFÍA ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding: var(--space-2xl) 0;
}

.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Centrar la última tarjeta del equipo cuando hay 10 elementos */
.team .grid-4 .team-card:last-child:nth-child(3n+1) {
    grid-column: 2 / -2;
    justify-self: center;
}

/* Centrar la última tarjeta del equipo de forma más robusta */
.team .grid-4 .team-card:last-child {
    justify-self: center;
    grid-column: span 1;
}

/* Asegurar que la última tarjeta se centre en diferentes layouts */
@media (min-width: 768px) {
    .team .grid-4 .team-card:last-child:nth-child(3n+1) {
        grid-column: 2 / -2;
        justify-self: center;
    }
}

/* ===== NAVEGACIÓN ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: var(--space-sm) 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    overflow: visible;
    z-index: 10;
}

.logo:hover {
    text-decoration: none;
}

.logo-img {
    height: 80px;
    width: auto;
    transition: var(--transition);
    transform: scale(1.2);
    margin: -10px;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

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

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

/* ===== NAVEGACIÓN SOCIAL ===== */
.nav-social {
    display: flex;
    gap: var(--space-sm);
    margin-left: var(--space-lg);
}

.nav-social-link {
    width: 36px;
    height: 36px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.875rem;
}

.nav-social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: url('../images/hero-bg.jpg') center/cover;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.6), rgba(17, 17, 17, 0.4));
    z-index: 0;
}

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

.hero-subtitle-large {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-lg);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.hero-logo {
    text-align: center;
    margin: var(--space-md) 0;
    overflow: visible;
    max-width: 375px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.hero-logo-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: contain;
    transform: scale(1.375);
    margin: -37px 0;
    position: relative;
    z-index: 1;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== BOTONES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-lg);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: var(--shadow);
}

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

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary);
}

.btn-group {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== TARJETAS ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: var(--space-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: var(--transition);
}

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

.card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    font-size: 1.5rem;
    color: white;
}

/* ===== SERVICIOS ===== */
.services {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/software-bg.jpg') center/cover;
    opacity: 0.2;
    z-index: 0;
}

.services::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.7), rgba(26, 26, 26, 0.6));
    z-index: 0;
}

.services .container {
    position: relative;
    z-index: 1;
}

.service-card {
    text-align: center;
    position: relative;
}

.service-card .card-icon {
    margin: 0 auto var(--space-md);
}

/* ===== EQUIPO ===== */
.team {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.team::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/software-bg.jpg') center/cover;
    opacity: 0.1;
    z-index: 0;
}

.team::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.8), rgba(26, 26, 26, 0.7));
    z-index: 0;
}

.team .container {
    position: relative;
    z-index: 1;
}

.team-card {
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: var(--space-xl);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: var(--transition);
}

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

.team-card:hover::before {
    transform: scaleX(1);
}

.team-signature {
    width: 100%;
    height: 120px;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--border);
    transition: var(--transition);
}

.signature-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: var(--transition);
    padding: var(--space-sm);
}

.team-card:hover .team-signature {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.team-card:hover .signature-img {
    transform: scale(1.05);
}

.team-role {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.team-skills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    justify-content: center;
}

.skill-tag {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.skill-tag:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.testimonial-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: var(--space-xl);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.3;
    font-family: serif;
}

.testimonial-content {
    margin-bottom: var(--space-lg);
    font-style: italic;
    color: var(--text-secondary);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.author-info h4 {
    color: var(--text-primary);
    margin-bottom: 0;
}

.author-info p {
    color: var(--text-muted);
    margin-bottom: 0;
    font-size: 0.875rem;
}

/* ===== ESTADÍSTICAS ===== */
.stats {
    background: var(--bg-primary);
    text-align: center;
}

.stat-item {
    padding: var(--space-lg);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-xs);
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: var(--space-2xl) 0 var(--space-lg);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-md);
}

.footer-logo-img {
    height: 50px;
    width: auto;
    transition: var(--transition);
    transform: scale(1.1);
    margin: -5px;
}

.footer-logo-img:hover {
    transform: scale(1.15);
}

.footer-section h3 {
    color: var(--primary);
    margin-bottom: 0;
}

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

.footer-section ul li {
    margin-bottom: var(--space-xs);
}

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

.footer-section ul li a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: var(--space-lg);
    text-align: center;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

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

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

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

.float {
    animation: float 3s ease-in-out infinite;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    .nav-social {
        display: none;
    }
    
    .logo-img {
        height: 60px;
        transform: scale(1.15);
        margin: -8px;
    }
    
    .footer-logo-img {
        height: 40px;
        transform: scale(1.08);
        margin: -4px;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
        border-top: 1px solid var(--primary);
        flex-direction: column;
        padding: var(--space-md) var(--space-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(20px);
        z-index: 1000;
        display: flex;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        margin-bottom: var(--space-xs);
        transform: translateX(-20px);
        opacity: 0;
        animation: slideInLeft 0.6s ease forwards;
    }
    
    .nav-menu li:nth-child(1) { animation-delay: 0.1s; }
    .nav-menu li:nth-child(2) { animation-delay: 0.2s; }
    .nav-menu li:nth-child(3) { animation-delay: 0.3s; }
    .nav-menu li:nth-child(4) { animation-delay: 0.4s; }
    .nav-menu li:nth-child(5) { animation-delay: 0.5s; }
    .nav-menu li:nth-child(6) { animation-delay: 0.6s; }
    
    .nav-menu .nav-link {
        display: block;
        padding: var(--space-xs) var(--space-md);
        border-radius: 12px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        font-size: 1rem;
        font-weight: 600;
        position: relative;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(10px);
    }
    
    .nav-menu .nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        border-radius: 12px;
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: -1;
    }
    
    .nav-menu .nav-link:hover {
        color: white;
        transform: translateX(8px) scale(1.02);
        box-shadow: 0 10px 20px rgba(11, 183, 191, 0.3);
        border-color: var(--primary);
        background: rgba(11, 183, 191, 0.1);
        text-shadow: 0 0 10px rgba(11, 183, 191, 0.5);
    }
    
    .nav-menu .nav-link:hover::before {
        opacity: 1;
    }
    
    .nav-menu .nav-link:active {
        transform: translateX(4px) scale(0.98);
        box-shadow: 0 5px 15px rgba(11, 183, 191, 0.4);
    }
    
    .mobile-cta {
        margin-top: var(--space-sm);
        padding-top: var(--space-sm);
        border-top: 1px solid rgba(11, 183, 191, 0.2);
        animation-delay: 0.6s !important;
    }
    
    .mobile-cta-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: var(--space-sm);
        padding: var(--space-sm) var(--space-md);
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        color: white;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 12px;
        border: 1px solid transparent;
    }
    
    .mobile-cta-btn:hover {
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 10px 25px rgba(11, 183, 191, 0.4);
        background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    }
    
    .mobile-cta-btn:active {
        transform: translateY(0) scale(0.98);
        box-shadow: 0 5px 15px rgba(11, 183, 191, 0.3);
    }
        border-radius: 16px;
        font-size: 1rem;
        font-weight: 700;
        text-decoration: none;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 8px 25px rgba(11, 183, 191, 0.3);
        position: relative;
        overflow: hidden;
    }
    
    .mobile-cta-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }
    
    .mobile-cta-btn:hover {
        transform: translateY(-2px) scale(1.05);
        box-shadow: 0 12px 30px rgba(11, 183, 191, 0.4);
        color: white;
        text-decoration: none;
    }
    
    .mobile-cta-btn:hover::before {
        left: 100%;
    }
    
    .mobile-social {
        margin-top: var(--space-lg);
        padding-top: var(--space-lg);
        border-top: 1px solid var(--border);
    }
    
    .mobile-social-links {
        display: flex;
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .mobile-social-links a {
        display: flex;
        align-items: center;
        gap: var(--space-sm);
        color: var(--text-secondary);
        text-decoration: none;
        padding: var(--space-sm);
        border-radius: 8px;
        transition: var(--transition);
    }
    
    .mobile-social-links a:hover {
        background: var(--bg-tertiary);
        color: var(--primary);
        text-decoration: underline;
    }
    
    .btn-group {
        flex-direction: column;
        align-items: center;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: var(--space-xl) 0;
    }
    
    .section {
        padding: var(--space-xl) 0;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-logo {
        max-width: 250px;
    }
    
    .hero-subtitle-large {
        font-size: 2rem;
        margin-top: var(--space-lg);
        margin-bottom: var(--space-md);
    }
    
    .hero-logo-img {
        max-width: 375px;
        transform: scale(1.125);
        margin: -27px 0;
    }
    
    .team-signature {
        height: 100px;
    }
    
    .scroll-to-top {
        bottom: var(--space-md);
        right: var(--space-md);
    }
}

/* ===== FORMULARIOS ===== */
.form-group {
    margin-bottom: var(--space-md);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-sm);
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(11, 183, 191, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

/* ===== CONTACTO ===== */
.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
}

.contact-item h4 {
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.contact-item p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.contact-item p a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item p a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ===== SERVICIOS ===== */
.service-features {
    list-style: none;
    margin-top: var(--space-md);
}

.service-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xs);
    color: var(--text-secondary);
}

.service-features li i {
    color: var(--primary);
    font-size: 0.875rem;
}

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

.loader {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--space-md);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== SCROLL TO TOP ===== */
.scroll-to-top {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

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

.scroll-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ===== MOBILE MENU ===== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--bg-tertiary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 10px;
    width: 44px;
    height: 44px;
    transition: var(--transition);
    z-index: 1001;
}

.mobile-menu-toggle:hover {
    background: var(--primary);
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    margin: 2px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.mobile-menu-toggle:hover span {
    background: white;
}

.mobile-menu-toggle.active {
    background: var(--primary);
}

.mobile-menu-toggle.active span {
    background: white;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-4px, 4px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-4px, -4px);
}

/* ===== UTILIDADES ===== */
.text-center {
    text-align: center;
}

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

.text-secondary {
    color: var(--text-secondary);
}

.text-highlight {
    color: var(--primary);
    font-weight: 600;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mt-5 { margin-top: var(--space-xl); }

/* ===== SEO MARQUEE SECTION ===== */
.seo-marquee-section {
    width: 100%;
    padding: var(--space-lg) 0;
    background: linear-gradient(90deg, var(--bg-secondary), var(--bg-tertiary), var(--bg-secondary));
    overflow: hidden;
    position: relative;
    z-index: 10;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 11;
}

.marquee-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
    position: relative;
    z-index: 12;
    gap: var(--space-lg);
}

.marquee-item {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: var(--space-sm) var(--space-md);
    background: rgba(11, 183, 191, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(11, 183, 191, 0.2);
    transition: var(--transition);
    text-shadow: 0 0 10px rgba(11, 183, 191, 0.3);
}

.marquee-item:hover {
    background: rgba(11, 183, 191, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 183, 191, 0.3);
}

.marquee-separator {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 1.5rem;
    font-weight: bold;
}

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

/* Pausar animación en hover */
.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

/* Responsive para la marquesina */
@media (max-width: 768px) {
    .marquee-item {
        font-size: 0.9rem;
        padding: var(--space-xs) var(--space-sm);
    }
    
    .marquee-content {
        gap: var(--space-md);
    }
}

@media (max-width: 480px) {
    .marquee-item {
        font-size: 0.8rem;
        padding: var(--space-xs);
    }
    
    .marquee-content {
        gap: var(--space-sm);
    }
}

/* ===== WEEOT SECTION ===== */
.weeot-section {
    width: 100%;
    padding: var(--space-2xl) 0;
    position: relative;
    overflow: hidden;
}

.weeot-background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.weeot-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.85), rgba(15, 15, 15, 0.8), rgba(20, 20, 20, 0.85));
    z-index: 1;
}

.weeot-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.weeot-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
}

.weeot-header {
    margin-bottom: var(--space-xl);
}

.weeot-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.weeot-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.weeot-logo-img {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(11, 183, 191, 0.3));
}

.weeot-description {
    max-width: 800px;
    margin: 0 auto var(--space-xl);
    font-size: 1.1rem;
    line-height: 1.6;
}

.weeot-description p {
    margin-bottom: var(--space-md);
    color: white;
}

.weeot-value-prop {
    margin-bottom: var(--space-2xl);
}

.weeot-value-prop h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.4;
    max-width: 900px;
    margin: 0 auto;
}

.weeot-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.weeot-feature {
    text-align: center;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(11, 183, 191, 0.2);
    transition: var(--transition);
}

.weeot-feature:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(11, 183, 191, 0.2);
}

.weeot-feature-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto var(--space-sm);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    box-shadow: 0 4px 15px rgba(11, 183, 191, 0.3);
}

.weeot-feature p {
    color: white;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.weeot-cta {
    text-align: center;
}

.weeot-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: var(--space-md) var(--space-xl);
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.2rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.weeot-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(11, 183, 191, 0.4);
    text-decoration: none;
    color: white;
}

.weeot-btn i {
    font-size: 1.1rem;
}

/* Responsive para la sección Weeot */
@media (max-width: 768px) {
    .weeot-title {
        font-size: 2rem;
    }
    
    .weeot-logo-img {
        max-width: 250px;
    }
    
    .weeot-value-prop h3 {
        font-size: 1.2rem;
    }
    
    .weeot-features {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    .weeot-btn {
        padding: var(--space-sm) var(--space-lg);
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .weeot-title {
        font-size: 1.5rem;
    }
    
    .weeot-logo-img {
        max-width: 200px;
    }
    
    .weeot-description {
        font-size: 1rem;
    }
    
    .weeot-value-prop h3 {
        font-size: 1rem;
    }
    
    .weeot-features {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
    
    .weeot-btn {
        padding: var(--space-xs) var(--space-md);
        font-size: 0.9rem;
    }
}

/* ===== WEEOT MODAL ===== */
.weeot-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.weeot-modal.show {
    display: flex;
}

.weeot-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.weeot-modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    height: 90vh;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    gap: var(--space-md);
}

.weeot-modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    z-index: 10001;
}

.weeot-modal-close:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.weeot-modal-text {
    text-align: center;
    max-width: 700px;
    padding: var(--space-sm) 0;
}

.weeot-modal-text p {
    font-size: 1rem;
    line-height: 1.5;
    color: white;
    font-weight: 500;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.weeot-modal-text p {
    font-size: 1rem;
    line-height: 1.5;
    color: white;
    font-weight: 500;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.weeot-modal-text p:nth-child(2) {
    color: var(--primary) !important;
    font-weight: 700 !important;
    font-size: 1.1em !important;
    text-shadow: 0 0 10px rgba(11, 183, 191, 0.5) !important;
}

.weeot-modal-cta {
    text-align: center;
    padding: var(--space-sm) 0;
}

.weeot-modal-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: var(--space-sm) var(--space-lg);
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(11, 183, 191, 0.3);
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.weeot-modal-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(11, 183, 191, 0.4);
    text-decoration: none;
    color: white;
}

.weeot-modal-btn i {
    font-size: 1rem;
}

.weeot-modal-video {
    width: 100%;
    max-width: 300px;
    height: 30vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weeot-modal-video video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 15px;
}

/* Responsive para el modal */
@media (max-width: 768px) {
    .weeot-modal-content {
        width: 95%;
        height: 95vh;
        padding: var(--space-md);
        gap: var(--space-sm);
    }
    
    .weeot-modal-text p {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    .weeot-modal-btn {
        padding: var(--space-xs) var(--space-md);
        font-size: 0.95rem;
    }
    
    .weeot-modal-video {
        max-width: 220px;
        height: 25vh;
    }
}

@media (max-width: 480px) {
    .weeot-modal-content {
        width: 90%;
        height: 85vh;
        padding: var(--space-sm);
        gap: var(--space-xs);
    }
    
    .weeot-modal-text p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .weeot-modal-btn {
        padding: var(--space-xs) var(--space-sm);
        font-size: 0.8rem;
    }
    
    .weeot-modal-video {
        max-width: 180px;
        height: 22vh;
    }
}

/* Estilos específicos para dispositivos móviles reales */
@media screen and (max-width: 480px) and (max-height: 900px) {
    .weeot-modal-content {
        width: 85%;
        height: 80vh;
        padding: var(--space-xs);
        gap: var(--space-xs);
    }
    
    .weeot-modal-text p {
        font-size: 0.75rem;
        line-height: 1.2;
    }
    
    .weeot-modal-btn {
        padding: var(--space-xs);
        font-size: 0.75rem;
    }
    
    .weeot-modal-video {
        max-width: 150px;
        height: 18vh;
    }
}

/* Estilos específicos para iPhone y dispositivos con notch */
@media screen and (max-width: 430px) {
    .weeot-modal-content {
        width: 80%;
        height: 75vh;
        padding: 8px;
        gap: 8px;
    }
    
    .weeot-modal-text p {
        font-size: 0.7rem;
        line-height: 1.2;
    }
    
    .weeot-modal-btn {
        padding: 6px 12px;
        font-size: 0.7rem;
    }
    
    .weeot-modal-video {
        max-width: 120px;
        height: 15vh;
    }
}
