/* Enhanced Netnautica CSS - Optimized for Performance */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Optimize font rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeSpeed;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}

:root {
    --primary-color: #4ECDC4;
    --secondary-color: #44A08D;
    --accent-color: #5BC0BE;
    --dark-bg: #0a0f0f;
    --card-bg: #1a2e2e;
    --text-light: #ffffff;
    --text-gray: #a0a0a0;
    --text-accent: #c0c0c0;
    --gradient-primary: linear-gradient(135deg, #4ECDC4, #44A08D);
    --gradient-accent: linear-gradient(135deg, #5BC0BE, #6FDBDF);
    --gradient-dark: linear-gradient(135deg, #0a0f0f 0%, #152020 100%);
    --shadow-glow: 0 0 30px rgba(78, 205, 196, 0.3);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.3);
    --border-glow: 1px solid rgba(78, 205, 196, 0.3);
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 400;
    
    
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
}

/* Enhanced Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(78, 205, 196, 0.1);
    transition: var(--transition-smooth);
}

/* Ensure mobile menu is hidden by default */
@media (max-width: 768px) {
    .nav-menu:not(.active) {
        transform: translateY(-100%) !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 0;
        background: rgba(10, 15, 15, 0.98);
    }
}

.navbar.scrolled {
    background: rgba(10, 15, 15, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 12px;
    }
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 35px;
    width: auto;
    transition: var(--transition-smooth);
}

@media (max-width: 768px) {
    .logo-img {
        height: 30px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 28px;
    }
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 15, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        text-align: center;
        padding: 2rem 0;
        transform: translateY(-100%);
        transition: transform 0.3s ease, visibility 0.3s ease, opacity 0.3s ease;
        z-index: 1000;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        gap: 0;
        visibility: hidden;
        opacity: 0;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        visibility: visible;
        opacity: 1;
    }
    
    .nav-menu li {
        margin: 0.8rem 0;
    }
    
    .nav-menu a {
        font-size: 18px;
        padding: 1.2rem 2rem;
        display: flex;
        border-radius: 8px;
        transition: all 0.3s ease;
        margin: 0 1rem;
        min-height: 48px;
        align-items: center;
        justify-content: center;
    }
    
    .nav-menu a:hover {
        background: rgba(78, 205, 196, 0.1);
        color: var(--primary-color);
    }
}

@media (max-width: 480px) {
    .nav-menu {
        padding: 1.5rem 0;
    }
    
    .nav-menu a {
        font-size: 16px;
        padding: 1rem 1.5rem;
        margin: 0 0.5rem;
        min-height: 48px;
    }
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition-smooth);
    position: relative;
    padding: 0.8rem 0;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 8px;
    border-radius: 4px;
    transition: var(--transition-smooth);
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-toggle:hover {
        background: rgba(78, 205, 196, 0.1);
    }
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    transition: 0.3s;
    border-radius: 2px;
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Enhanced Hero Section */
/* Reemplaza o modifica los estilos existentes del hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 8rem 0 4rem;
}

@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        padding: 10rem 0 3rem;
        align-items: flex-start;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 95vh;
        padding: 8rem 0 2rem;
    }
}

/* Optimized hero image for LCP */
.hero-bg-image-element {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -3;
    opacity: 0.9;
    will-change: auto;
    transform: translateZ(0);
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: rgba(10, 15, 15, 0.3);
}

.hero-bg-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom right,
        rgba(10, 15, 15, 0.8) 0%,
        rgba(78, 205, 196, 0.2) 100%
    );
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2; /* Delante de la imagen pero detrás del contenido */
    background: rgba(10, 15, 15, 0.5); /* Overlay oscuro para mejorar legibilidad */
}

.wave {
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(78, 205, 196, 0.08) 0%, transparent 50%);
    border-radius: 50%;
    animation: wave 25s infinite linear;
}

.wave1 {
    top: -50%;
    left: -50%;
    animation-duration: 30s;
}

.wave2 {
    top: -80%;
    right: -50%;
    animation-duration: 35s;
    animation-direction: reverse;
    background: radial-gradient(circle, rgba(68, 160, 141, 0.06) 0%, transparent 50%);
}

.wave3 {
    bottom: -50%;
    left: -30%;
    animation-duration: 40s;
    background: radial-gradient(circle, rgba(91, 192, 190, 0.05) 0%, transparent 50%);
}

/* Use compositor-only properties for animations */
@keyframes wave {
    0% { transform: translate3d(0, 0, 0) rotate(0deg); }
    100% { transform: translate3d(0, 0, 0) rotate(360deg); }
}

/* Disable on mobile for performance */
@media (max-width: 768px) {
    .wave {
        animation: none !important;
        transform: translate3d(0, 0, 0);
    }
    
    .center-node {
        animation: none !important;
        opacity: 0.6;
    }
    
    .orbit {
        animation: none !important;
    }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 0 15px;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 0 12px;
        gap: 1.5rem;
    }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
        line-height: 1.2;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(1.8rem, 7vw, 2.8rem);
        line-height: 1.3;
    }
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-accent);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 500px;
}

@media (max-width: 768px) {
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 2rem;
        max-width: 100%;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 1.5rem;
    }
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        max-width: 280px;
    }
}

.btn {
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 48px;
    min-width: 48px;
}

@media (max-width: 768px) {
    .btn {
        padding: 1.2rem 2rem;
        font-size: 16px;
        min-height: 48px;
        min-width: 48px;
    }
    
    .btn-full {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 1rem 1.8rem;
        font-size: 16px;
        min-height: 48px;
    }
}

.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;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(78, 205, 196, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.3);
}

.btn-full {
    width: 100%;
}

/* Enhanced Tech Circle Animation */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-circle {
    position: relative;
    width: 400px;
    height: 400px;
}

@media (max-width: 768px) {
    .tech-circle {
        width: 280px;
        height: 280px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .tech-circle {
        width: 240px;
        height: 240px;
    }
}

.orbit {
    position: absolute;
    border: 2px solid rgba(78, 205, 196, 0.2);
    border-radius: 50%;
    animation: rotate 20s infinite linear;
}

.orbit::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--primary-color);
}

.orbit1 {
    width: 120px;
    height: 120px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-color: var(--primary-color);
    border-width: 3px;
}

.orbit2 {
    width: 220px;
    height: 220px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 30s;
    animation-direction: reverse;
}

.orbit3 {
    width: 320px;
    height: 320px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 40s;
}

.center-node {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: var(--shadow-glow);
    animation: pulse 2s infinite;
}

@keyframes rotate {
    0% { transform: translate3d(-50%, -50%, 0) rotate(0deg); }
    100% { transform: translate3d(-50%, -50%, 0) rotate(360deg); }
}

/* Disable animations on mobile */
@media (max-width: 768px) {
    .orbit {
        animation: none !important;
        transform: translate3d(-50%, -50%, 0);
    }
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: rotate(45deg) translateY(0); }
    40% { transform: rotate(45deg) translateY(-10px); }
    60% { transform: rotate(45deg) translateY(-5px); }
}

/* Enhanced Services Section */
.services {
    padding: 8rem 0;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: 
        linear-gradient(45deg, transparent 48%, rgba(39, 238, 225, 0.04) 50%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(42, 219, 184, 0.03) 50%, transparent 52%),
        radial-gradient(circle at 20% 30%, rgba(37, 214, 203, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(32, 227, 188, 0.04) 0%, transparent 50%);
    background-size: 200px 200px, 300px 300px, 600px 600px, 800px 800px;
    animation: background-flow 25s linear infinite;
}

.services::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 400'%3E%3Cpath d='M0,200 Q200,100 400,200 T800,150' stroke='rgba(78,205,196,0.08)' stroke-width='2' fill='none'/%3E%3Cpath d='M0,250 Q300,150 600,250 T800,200' stroke='rgba(68,160,141,0.06)' stroke-width='1.5' fill='none'/%3E%3Cpath d='M0,150 Q150,300 350,150 T800,250' stroke='rgba(78,205,196,0.04)' stroke-width='1' fill='none'/%3E%3C/svg%3E");
    background-size: 800px 400px;
    background-position: 0% 50%;
    background-repeat: repeat-x;
    animation: curve-flow 30s ease-in-out infinite;
}

@keyframes background-flow {
    0% {
        background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    }
    25% {
        background-position: 50px 50px, -75px 75px, 100px 100px, -150px 150px;
    }
    50% {
        background-position: 100px 100px, -150px 150px, 200px 200px, -300px 300px;
    }
    75% {
        background-position: 150px 50px, -225px 75px, 300px 100px, -450px 150px;
    }
    100% {
        background-position: 200px 0%, -300px 0%, 400px 0%, -600px 0%;
    }
}

@keyframes curve-flow {
    0% {
        background-position: 0% 50%;
        opacity: 0.8;
    }
    25% {
        background-position: 25% 40%;
        opacity: 1;
    }
    50% {
        background-position: 50% 60%;
        opacity: 0.6;
    }
    75% {
        background-position: 75% 45%;
        opacity: 0.9;
    }
    100% {
        background-position: 100% 50%;
        opacity: 0.8;
    }
}

/* Partículas adicionales que flotan */
.services {
    background-image: 
        radial-gradient(4px 4px at 20% 30%, rgba(78, 205, 196, 0.4), transparent),
        radial-gradient(4px 4px at 40% 70%, rgba(78, 205, 196, 0.3), transparent),
        radial-gradient(2px 2px at 80% 10%, rgba(68, 160, 141, 0.4), transparent),
        radial-gradient(2px 2px at 90% 40%, rgba(78, 205, 196, 0.3), transparent),
        radial-gradient(4px 4px at 10% 80%, rgba(68, 160, 141, 0.3), transparent);
    background-size: 400px 400px, 500px 500px, 300px 300px, 450px 450px, 350px 350px;
    animation: particles-drift 40s ease-in-out infinite;
}

@keyframes particles-drift {
    0%, 100% {
        background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    }
    20% {
        background-position: 10% 15%, 15% 25%, 5% 35%, 20% 15%, 10% 45%;
    }
    40% {
        background-position: 25% 30%, 35% 50%, 15% 70%, 45% 30%, 25% 90%;
    }
    60% {
        background-position: 40% 15%, 55% 25%, 25% 35%, 70% 15%, 40% 45%;
    }
    80% {
        background-position: 55% 30%, 75% 50%, 35% 70%, 95% 30%, 55% 90%;
    }
}


.section-header {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
    z-index: 1;
}

.section-header h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 1rem;
        line-height: 1.2;
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: clamp(1.6rem, 5vw, 2rem);
        margin-bottom: 0.8rem;
    }
}

.accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 18px;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .section-header p {
        font-size: 16px;
        max-width: 100%;
        margin: 0 auto 2rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .section-header p {
        font-size: 16px;
        margin-bottom: 1.5rem;
    }
}

.services-carousel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 1024px) {
    .services-carousel {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .services-carousel {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .services-carousel {
        gap: 1rem;
        max-width: 100%;
    }
}

.service-card {
    background: rgba(26, 46, 46, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: var(--border-glow);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    will-change: transform;
    transform: translateZ(0);
}

@media (max-width: 768px) {
    .service-card {
        padding: 2rem 1.5rem;
        min-height: 350px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .service-card {
        padding: 1.5rem 1rem;
        min-height: 320px;
        border-radius: 15px;
    }
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    border-radius: 20px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(78, 205, 196, 0.2);
    border-color: var(--primary-color);
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(78, 205, 196, 0.1);
    border-radius: 50%;
    position: relative;
    transition: var(--transition-smooth);
}

@media (max-width: 768px) {
    .service-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .service-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }
}

.service-card:hover .service-icon {
    background: rgba(78, 205, 196, 0.2);
    transform: scale(1.1);
}

.service-icon svg {
    width: 80px;
    height: 80px;
    fill: var(--primary-color);
    transition: var(--transition-smooth);
}

@media (max-width: 768px) {
    .service-icon svg {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .service-icon svg {
        width: 50px;
        height: 50px;
    }
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .service-card h3 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    .service-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
}

.preview-text {
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 16px;
}

@media (max-width: 768px) {
    .preview-text {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .preview-text {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
}

.full-content {
    display: none;  /* ← Cambiar de position absolute a display none */
}
.service-card.modal-active .preview-text {
    display: none;
}

.service-card.modal-active .full-content {
    display: block;
    position: static;
    opacity: 1;
    padding: 0;
    margin-top: 0;
    background: transparent;
}

.service-features {
    list-style: none;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.service-features li {
    padding: 0.4rem 0;
    color: var(--text-light);
    position: relative;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features li::before {
    content: '·';
    position: absolute;
    left: -1.3rem;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.service-features li:hover {
    color: var(--primary-color);
    padding-left: 1rem;
}

/* .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 15, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
} */

.btn-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.btn-close:hover {
    background: rgba(78, 205, 196, 0.1);
    transform: scale(1.1);
}

/* Enhanced Technology Section */
.technology {
    padding: 8rem 0;
    background: var(--dark-bg);
    position: relative;
    overflow: hidden;
    will-change: auto;
}

@media (max-width: 768px) {
    .technology {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .technology {
        padding: 3rem 0;
    }
}

.technology {
    background-image: 
        radial-gradient(4px 4px at 15% 20%, rgba(255, 255, 255, 0.15), transparent),
        radial-gradient(3px 3px at 85% 30%, rgba(255, 255, 255, 0.12), transparent),
        radial-gradient(4px 4px at 25% 80%, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(2px 2px at 70% 70%, rgba(255, 255, 255, 0.18), transparent),
        radial-gradient(3px 3px at 90% 15%, rgba(255, 255, 255, 0.08), transparent),
        radial-gradient(2px 2px at 35% 40%, rgba(255, 255, 255, 0.2), transparent);
    background-size: 300px 300px, 250px 250px, 400px 400px, 200px 200px, 350px 350px, 150px 150px;
    animation: tech-particles-drift 35s ease-in-out infinite;
    transform: translateZ(0);
}

.technology::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.03) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 40%, rgba(255, 255, 255, 0.025) 60%, transparent 80%);
    background-size: 400px 400px, 600px 600px;
    animation: tech-waves-flow 25s ease-in-out infinite;
    pointer-events: none;
}

.tech-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 768px) {
    .tech-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .tech-content {
        gap: 1.5rem;
    }
}

.tech-info h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 2rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .tech-info h2 {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .tech-info h2 {
        margin-bottom: 1rem;
    }
}

.tech-description {
    font-size: 18px;
    color: var(--text-accent);
    margin-bottom: 3rem;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .tech-description {
        font-size: 16px;
        margin-bottom: 2rem;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .tech-description {
        font-size: 16px;
        margin-bottom: 1.5rem;
    }
}

.tech-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: rgb(254, 254, 254);
    border-radius: 15px;
    border: 1px solid rgba(191, 244, 241, 0.1);
    transition: var(--transition-smooth);
}

.stat:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    color: var(--text-gray);
    font-size: 1rem;
    font-weight: 500;
}

/* Partners Grid Styles */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1.5rem;
    }
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 15px;
    border: 1px solid rgba(191, 244, 241, 0.2);
    transition: var(--transition-smooth);
    min-height: 120px;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

@media (max-width: 768px) {
    .partner-logo {
        padding: 1.5rem 1rem;
        min-height: 100px;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .partner-logo {
        padding: 1rem 0.8rem;
        min-height: 80px;
        border-radius: 10px;
    }
}

.partner-logo:nth-child(1) { animation-delay: 0.1s; }
.partner-logo:nth-child(2) { animation-delay: 0.2s; }
.partner-logo:nth-child(3) { animation-delay: 0.3s; }
.partner-logo:nth-child(4) { animation-delay: 0.4s; }
.partner-logo:nth-child(5) { animation-delay: 0.5s; }
.partner-logo:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes tech-particles-drift {
    0%, 100% {
        background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    }
    20% {
        background-position: 8% 12%, 12% 18%, 6% 25%, 15% 10%, 9% 30%, 5% 15%;
    }
    40% {
        background-position: 18% 25%, 25% 35%, 12% 50%, 30% 20%, 20% 60%, 12% 35%;
    }
    60% {
        background-position: 28% 15%, 35% 20%, 20% 30%, 45% 35%, 32% 40%, 18% 55%;
    }
    80% {
        background-position: 38% 30%, 45% 40%, 28% 60%, 60% 25%, 42% 70%, 25% 75%;
    }
}

@keyframes tech-waves-flow {
    0% {
        background-position: 0% 0%, 0% 0%;
        opacity: 0.6;
    }
    25% {
        background-position: 25% 25%, -25% 25%;
        opacity: 0.8;
    }
    50% {
        background-position: 50% 50%, -50% 50%;
        opacity: 0.4;
    }
    75% {
        background-position: 75% 25%, -75% 75%;
        opacity: 0.7;
    }
    100% {
        background-position: 100% 0%, -100% 100%;
        opacity: 0.6;
    }
}

@keyframes blog-particles-drift {
    0%, 100% {
        background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    }
    25% {
        background-position: 12% 15%, 18% 10%, 8% 30%, 20% 25%, 15% 40%;
    }
    50% {
        background-position: 25% 30%, 35% 20%, 15% 60%, 40% 50%, 30% 80%;
    }
    75% {
        background-position: 38% 20%, 50% 35%, 25% 40%, 60% 30%, 45% 60%;
    }
}

@keyframes blog-waves-flow {
    0% {
        background-position: 0% 0%, 0% 0%;
        opacity: 0.5;
    }
    33% {
        background-position: 33% 33%, -33% 33%;
        opacity: 0.7;
    }
    66% {
        background-position: 66% 66%, -66% 66%;
        opacity: 0.3;
    }
    100% {
        background-position: 100% 0%, -100% 100%;
        opacity: 0.5;
    }
}

.partner-logo:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(78, 205, 196, 0.15);
    background: rgba(255, 255, 255, 1);
}

.partner-logo img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(0.3) opacity(0.8);
    transition: var(--transition-smooth);
}

@media (max-width: 768px) {
    .partner-logo img {
        max-height: 60px;
    }
}

@media (max-width: 480px) {
    .partner-logo img {
        max-height: 50px;
    }
}

.partner-logo:hover img {
    filter: grayscale(0) opacity(1);
    transform: scale(1.05);
}

/* Blog Carousel & Contact Sections */
.blog-carousel, .contact {
    padding: 8rem 0;
    background: var(--gradient-dark);
}

@media (max-width: 768px) {
    .blog-carousel, .contact {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .blog-carousel, .contact {
        padding: 3rem 0;
    }
}

.blog-carousel {
    position: relative;
    overflow: hidden;
    background-image: 
        radial-gradient(3px 3px at 20% 25%, rgba(255, 255, 255, 0.12), transparent),
        radial-gradient(4px 4px at 80% 35%, rgba(255, 255, 255, 0.08), transparent),
        radial-gradient(2px 2px at 10% 75%, rgba(255, 255, 255, 0.15), transparent),
        radial-gradient(3px 3px at 75% 15%, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(4px 4px at 45% 60%, rgba(255, 255, 255, 0.06), transparent);
    background-size: 280px 280px, 320px 320px, 180px 180px, 240px 240px, 360px 360px;
    animation: blog-particles-drift 40s ease-in-out infinite;
    transform: translateZ(0);
    will-change: auto;
}

.blog-carousel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(30deg, transparent 45%, rgba(255, 255, 255, 0.02) 55%, transparent 65%),
        linear-gradient(-60deg, transparent 35%, rgba(255, 255, 255, 0.025) 50%, transparent 75%);
    background-size: 500px 500px, 450px 450px;
    animation: blog-waves-flow 30s ease-in-out infinite;
    pointer-events: none;
}

/* Blog Carousel Styles */
.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .carousel-container {
        margin: 0 1rem;
        max-width: calc(100% - 2rem);
    }
}

@media (max-width: 480px) {
    .carousel-container {
        margin: 0 0.5rem;
        max-width: calc(100% - 1rem);
    }
}

.carousel-wrapper {
    overflow: hidden;
    border-radius: 20px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    width: 200%; /* 100% * 2 slides */
    will-change: transform;
    transform: translateZ(0);
}

.carousel-slide {
    width: 50%; /* 100% / 2 slides */
    flex-shrink: 0;
    padding: 0 1rem;
    box-sizing: border-box;
}

.blog-card {
    background: rgba(26, 46, 46, 0.6);
    backdrop-filter: blur(15px);
    border: var(--border-glow);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
    height: 450px;
    display: flex;
    flex-direction: column;
    margin: 0 0.5rem;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(78, 205, 196, 0.2);
    border-color: var(--primary-color);
}

.blog-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.1);
}

.blog-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    line-height: 1.3;
    color: var(--text-light);
}

.blog-card p {
    color: var(--text-gray);
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
    font-size: 0.95rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--text-gray);
    font-size: 0.8rem;
}

.blog-date, .blog-read-time {
    font-weight: 500;
}

/* Placeholder card styles */
.blog-card-placeholder {
    background: rgba(26, 46, 46, 0.3);
    border-style: dashed;
    border-color: rgba(78, 205, 196, 0.3);
}

.placeholder-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 4rem;
    opacity: 0.5;
}

.blog-card-placeholder h3 {
    color: var(--text-gray);
}

.blog-card-placeholder p {
    color: var(--text-gray);
    opacity: 0.8;
}

/* Carousel Controls */
.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 2;
}

.carousel-btn {
    background: rgba(26, 46, 46, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    pointer-events: all;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.carousel-prev {
    margin-left: -25px;
}

.carousel-next {
    margin-right: -25px;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(78, 205, 196, 0.3);
    background: transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.indicator.active,
.indicator:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Blog CTA */
.blog-cta {
    text-align: center;
    margin-top: 3rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .contact-content {
        gap: 1.5rem;
    }
}

.contact-details {
    margin-top: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(26, 46, 46, 0.3);
    border-radius: 15px;
    transition: var(--transition-smooth);
}

.contact-item:hover {
    background: rgba(26, 46, 46, 0.5);
    transform: translateX(10px);
}

.contact-form {
    background: rgba(26, 46, 46, 0.4);
    padding: 3rem;
    border-radius: 20px;
    border: var(--border-glow);
}

@media (max-width: 768px) {
    .contact-form {
        padding: 2rem;
        border-radius: 15px;
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .contact-form {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
}

.form-group {
    margin-bottom: 2rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(78, 205, 196, 0.2);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 1rem;
    transition: var(--transition-smooth);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

@media (max-width: 768px) {
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 1rem;
        font-size: 16px;
        border-radius: 8px;
        min-height: 48px;
    }
}

@media (max-width: 480px) {
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 1rem;
        font-size: 16px;
        min-height: 48px;
    }
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

/* Enhanced Footer */
.footer {
    background: #050808;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(78, 205, 196, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 40px;
    width: auto;
    opacity: 0.9;
    transition: var(--transition-smooth);
}

.footer-logo:hover {
    opacity: 1;
}

.footer-location {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.footer-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav li a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.footer-nav li a:hover {
    color: var(--primary-color);
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
}

.service-card.modal-active {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.05);
    z-index: 1100;
    max-width: 600px;
    width: 85%;
    height: auto;
    max-height: 85vh;
    overflow: visible;
    box-shadow: 0 0 60px rgba(78, 205, 196, 0.4);
    background: var(--card-bg);
    border-radius: 20px;
}

/* Responsive modal para móviles */
@media (max-width: 768px) {
    .service-card.modal-active {
        width: 92%;
        max-height: 80vh;
        transform: translate(-50%, -50%) scale(1);
    }
    
    .service-hero-image {
        height: 80px;
        margin: -1rem -1.5rem 1rem -1.5rem;
        width: calc(100% + 3rem);
    }
    
    .service-features li {
        padding: 0.3rem 0;
        font-size: 0.85rem;
    }
}

/* CSS PROFESIONAL PARA IMAGEN DEL MODAL */

/* Imagen hero principal con overlay elegante */
.service-hero-image {
    position: relative;
    width: calc(100% + 5rem); /* Extender más allá de los padding */
    height: 100px;
    margin: -1.5rem -2.5rem 1.5rem -2.5rem; /* Margen superior reducido para mostrar título */
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%); /* Fallback gradient */
}

.service-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Mantiene proporción sin distorsión */
    object-position: center center; /* Centra la imagen */
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    filter: brightness(0.9) contrast(1.1); /* Mejora el contraste */
}

/* Efecto hover suave */
.service-card.modal-active .service-hero-image img {
    transform: scale(1);
    filter: brightness(1) contrast(1.2);
}

/* Overlay con gradiente elegante */
.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        to top,
        rgba(10, 15, 15, 0.80) 0%,
        rgba(10, 15, 15, 0.7) 40%,
        rgba(10, 15, 15, 0.3) 70%,
        transparent 100%
    );
    padding: 2.5rem 2rem 2rem 2rem;
    color: white;
    backdrop-filter: blur(0.8px);
}

.image-overlay h4 {
    color: var(--primary-color) !important;
    margin: 0 0 0.5rem 0 !important;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.02em;
}

.image-overlay p {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.95;
    color: var(--text-accent);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
}

/* Efecto shine opcional */
.service-hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: left 0.8s ease;
    z-index: 1;
}

.service-card:hover .service-hero-image::before {
    left: 100%;
}

/* Para imágenes con diferentes aspectos */
.service-hero-image.aspect-wide {
    height: 200px; /* Más bajo para imágenes panorámicas */
}

.service-hero-image.aspect-tall {
    height: 300px; /* Más alto para imágenes verticales */
}

/* Ajustes responsive */
@media (max-width: 768px) {
    .service-hero-image {
        width: calc(100% + 3rem);
        height: 180px;
        margin: -3rem -1.5rem 2rem -1.5rem;
    }
    
    .image-overlay {
        padding: 1.5rem 1rem 1rem 1rem;
    }
    
    .image-overlay h4 {
        font-size: 1.3rem;
    }
    
    .image-overlay p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .service-hero-image {
        height: 150px;
    }
    
    .image-overlay h4 {
        font-size: 1.2rem;
    }
    
    .image-overlay p {
        font-size: 0.95rem;
    }
}

/* Estilos adicionales para cuando la imagen no carga */
.service-hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(78, 205, 196, 0.8) 0%, 
        rgba(68, 160, 141, 0.8) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.service-hero-image img[src=""],
.service-hero-image img:not([src]) {
    opacity: 0;
}

.service-hero-image img[src=""]:after,
.service-hero-image img:not([src]):after {
    opacity: 1;
}

/* Loading placeholder */
.service-hero-image.loading {
    background: linear-gradient(
        90deg,
        rgba(78, 205, 196, 0.1) 25%,
        rgba(78, 205, 196, 0.2) 50%,
        rgba(78, 205, 196, 0.1) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Mejora del contraste y legibilidad */
.service-hero-image .image-overlay * {
    position: relative;
    z-index: 2;
}

/* Border sutil para mejor definición */
.service-hero-image {
    border: 1px solid rgba(78, 205, 196, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* CSS para el icono de ciberseguridad limpio */
.service-icon svg {
    width: 120%;
    height: 120%;
    color: var(--text-color);
    transition: all 0.3s ease;
    overflow: visible;
}

/* Efecto hover coherente con el icono de internet */
.service-card:hover .service-icon svg {
    color: var(--primary-color);
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px rgba(78, 205, 196, 0.3));
}

/* Acelerar animaciones en hover (igual que internet) */
.service-card:hover .service-icon svg circle,
.service-card:hover .service-icon svg ellipse,
.service-card:hover .service-icon svg path,
.service-card:hover .service-icon svg rect {
    animation-duration: 1s !important;
}

/* Satellite Map Container Styles */
.satellite-map-container {
    margin-top: 2rem;
}

.satellite-map-container h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    text-align: center;
}

.satellite-map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .satellite-map-container {
        margin-top: 2rem;
        order: 3;
    }
    
    .satellite-map-container iframe {
        height: 300px;
        border-radius: 8px;
    }
    
    .satellite-map-container h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .satellite-map-container iframe {
        height: 250px;
        border-radius: 6px;
    }
    
    .satellite-map-container h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
}

/* Mantener el mismo estilo visual que el icono de internet */
.service-icon svg path,
.service-icon svg ellipse,
.service-icon svg circle {
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Asegurar que todos los iconos tengan el mismo comportamiento */


/* Performance optimizations for mobile devices */
* {
    -webkit-tap-highlight-color: transparent;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

/* Optimized animations for mobile performance */
@media (max-width: 768px) {
    /* Disable heavy animations on mobile completely */
    .wave,
    .orbit,
    .center-node,
    .services::before,
    .services::after,
    .technology::before,
    .blog-carousel::before,
    .contact::before,
    .contact::after {
        animation: none !important;
        opacity: 0.2;
        display: none;
    }
    
    /* Simplify transitions */
    *, *::before, *::after {
        transition-duration: 0.15s !important;
        animation-duration: 0.15s !important;
    }
    
    /* Optimize transforms for compositor */
    .service-card,
    .blog-card,
    .partner-logo,
    .btn {
        transform: translate3d(0, 0, 0);
        will-change: transform;
    }
    
    /* Disable background images on mobile for performance */
    .services {
        background-image: none !important;
        background: var(--gradient-dark);
    }
    
    .technology {
        background-image: none !important;
        background: var(--dark-bg);
    }
    
    .blog-carousel {
        background-image: none !important;
        background: var(--gradient-dark);
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .wave, .orbit, .services::before, .services::after, .technology::before, .blog-carousel::before {
        animation: none !important;
        display: none;
    }
}

/* Ensure smooth scrolling on all devices */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* GPU acceleration for better mobile performance */
.service-card,
.blog-card,
.partner-logo,
.btn,
.nav-menu {
    transform: translateZ(0);
    will-change: transform;
}

/* Additional mobile performance optimizations */
@media (max-width: 768px) {
    /* Force hardware acceleration for smoother scrolling */
    body {
        transform: translateZ(0);
        -webkit-overflow-scrolling: touch;
    }
    
    /* Reduce repaints */
    .navbar {
        transform: translateZ(0);
    }
    
    /* Optimize images */
    img {
        transform: translateZ(0);
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .hero {
        min-height: 85vh;
        padding: 5rem 0 2rem;
    }
    
    .hero h1 {
        font-size: clamp(1.8rem, 7vw, 2.8rem);
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .service-card {
        padding: 1.5rem 1rem;
        min-height: 300px;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
    }
    
    .preview-text {
        font-size: 0.9rem;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .partner-logo {
        padding: 1rem;
        min-height: 80px;
    }
    
    .partner-logo img {
        max-height: 50px;
    }
    
    .blog-card {
        min-height: 400px;
    }
    
    .blog-card h3 {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    .blog-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .nav-menu a {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }
    
    .footer-logo {
        height: 35px;
    }
    
    .footer-location {
        font-size: 0.8rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .service-card,
    .blog-card,
    .partner-logo,
    .btn {
        transition: transform 0.2s ease;
    }
    
    .service-card:active {
        transform: scale(0.98);
    }
    
    .btn:active {
        transform: scale(0.95);
    }
    
    .nav-menu a {
        padding: 1.2rem 2rem;
        margin: 0.5rem 0;
    }
}