/* Importar Fuente de Google */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;600;700&display=swap');

/* Variables de Color y Estilos Globales */
:root {
    --primary-color: #00aaff;
    --secondary-color: #00ffff;
    --accent-color: #0088cc;
    --background-color: #0a0a1a;
    --card-bg-color: #1a1a2e;
    --text-color: #e0e0e0;
    --header-bg-color: rgba(10, 10, 26, 0.95);
    --glow-color: rgba(0, 170, 255, 0.3);
    --hover-glow: rgba(0, 255, 255, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Exo 2', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Efectos de fondo animados */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 170, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(0, 136, 204, 0.1) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

h1, h2, h3, h4 {
    color: white;
    font-weight: 600;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 10px var(--secondary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Sección común mejorada */
.section {
    padding: 5rem 0;
    position: relative;
}

/* Header y Navegación Mejorada */
header {
    background: var(--header-bg-color);
    backdrop-filter: blur(15px);
    border-bottom: 2px solid var(--primary-color);
    padding: 0.7rem 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 170, 255, 0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    z-index: 1001;
    text-shadow: 0 0 20px var(--primary-color);
    transition: all 0.3s ease;
    text-decoration: none;
}

.logo-image {
    height: 56px !important;
    width: auto !important;
    max-width: 200px !important;
    max-height: 56px !important;
    object-fit: contain !important;
    display: block !important;
    transition: all 0.3s ease;
}

/* Asegurar que no hay estilos conflictivos */
.logo .logo-image {
    height: 56px !important;
    width: auto !important;
    max-width: 200px !important;
}

/* Responsive del logo */
@media (max-width: 768px) {
    .logo-image {
        height: 40px !important;
        max-width: 150px !important;
        max-height: 40px !important;
    }
    
    .logo .logo-image {
        height: 40px !important;
        max-width: 150px !important;
    }
}

.logo:hover {
    transform: scale(1.05);
    color: white;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.nav-links li {
    margin: 0;
    position: relative;
}

.nav-links a {
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 8px;
    display: block;
    position: relative;
    transition: all 0.3s ease;
    color: var(--text-color);
    text-decoration: none;
    white-space: nowrap;
    z-index: 2;
}

.nav-links a:hover {
    color: var(--secondary-color);
    background: rgba(0, 170, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.3);
    transform: translateY(-2px);
}

.nav-links a.active {
    color: var(--secondary-color);
    background: rgba(0, 170, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.4);
}

/* Botón de Hamburguesa Mejorado */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-toggle:hover {
    background: rgba(0, 170, 255, 0.1);
    box-shadow: 0 0 10px var(--glow-color);
}

.hamburger {
    display: block;
    position: relative;
    width: 25px;
    height: 2px;
    background: white;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 0 5px var(--primary-color);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 2px;
    background: white;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 0 5px var(--primary-color);
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(8px);
}

/* Hero Section Mejorada */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    background: linear-gradient(135deg, rgba(10, 10, 26, 0.8), rgba(26, 26, 46, 0.9)), 
                url('https://images.unsplash.com/photo-1518770660439-4636190af475?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwzNTc5fDB8MXxzZWFyY2h8N3x8dGVjaG5vbG9neXxlbnwwfHx8fDE2Mzc2NDI0Nzc&ixlib=rb-1.2.1&q=80&w=1080') no-repeat center center/cover;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, var(--glow-color) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, var(--hover-glow) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: heroFadeIn 1.5s ease-out;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, white, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShine 3s ease-in-out infinite;
}

@keyframes textShine {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

.hero-content p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.btn {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 170, 255, 0.3);
    animation: fadeInUp 1s ease-out 0.8s both;
}

.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:hover {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 255, 255, 0.4);
}

/* Títulos de sección mejorados */
.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    position: relative;
    background: linear-gradient(45deg, white, var(--primary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.8s ease-out;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    animation: expandLine 1s ease-out 0.5s both;
}

@keyframes expandLine {
    from { width: 0; }
    to { width: 100px; }
}

/* Cards mejoradas */
.about-intro {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    text-align: center;
}

.about-intro-card {
    background: var(--card-bg-color);
    padding: 2.5rem;
    border-radius: 15px;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    transition: all 0.4s ease;
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.about-intro-card:nth-child(1) { animation-delay: 0.2s; }
.about-intro-card:nth-child(2) { animation-delay: 0.4s; }
.about-intro-card:nth-child(3) { animation-delay: 0.6s; }

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 170, 255, 0.3);
    animation: float 3s ease-in-out infinite;
}

.about-intro-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.about-intro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-intro-card:hover::before {
    opacity: 1;
}

.about-intro-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 170, 255, 0.3);
}

.about-intro-card:hover .card-icon {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 255, 255, 0.5);
}

/* Grid de servicios mejorado */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--card-bg-color);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

.service-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, var(--glow-color), transparent);
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.service-card:hover::before {
    width: 100%;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-15px) rotateY(5deg);
    border-color: var(--secondary-color);
    box-shadow: 0 25px 50px rgba(0, 255, 255, 0.3);
}

.service-card .icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

@keyframes homeFloat {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0.6;
    }
    33% { 
        transform: translateY(-8px) translateX(3px) scale(1.02);
        opacity: 0.8;
    }
    66% { 
        transform: translateY(5px) translateX(-2px) scale(0.98);
        opacity: 0.7;
    }
}

.service-card:hover .icon {
    color: var(--secondary-color);
    transform: scale(1.1) rotateY(15deg);
    text-shadow: 0 0 20px var(--secondary-color);
}

/* Service card badges y enlaces */
.service-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 255, 255, 0.3);
}

.service-header {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    margin-top: auto;
}

.service-link:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
    transform: translateX(5px);
}

.service-card.featured {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, var(--card-bg-color), rgba(0, 170, 255, 0.05));
}

.service-card.featured .service-link {
    color: var(--secondary-color);
}

/* Filtros de portafolio mejorados */
#portfolio-filters {
    text-align: center;
    margin-bottom: 3rem;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 25px;
    margin: 0 8px 10px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: left 0.3s ease;
    z-index: -1;
}

.filter-btn:hover::before,
.filter-btn.active::before {
    left: 0;
}

.filter-btn:hover,
.filter-btn.active {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 170, 255, 0.4);
}

/* Grid de portafolio mejorado */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    transition: all 0.5s ease;
}

.portfolio-item {
    background: var(--card-bg-color);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: all 0.5s ease;
    display: block;
    border: 2px solid transparent;
    animation: fadeInUp 0.8s ease-out;
    opacity: 1;
    transform: scale(1);
}

.portfolio-item.hide {
    opacity: 0;
    transform: scale(0.8);
    height: 0;
    margin: 0;
    padding: 0;
    border: none;
    overflow: hidden;
}

.portfolio-item.show {
    opacity: 1;
    transform: scale(1);
    height: auto;
    margin: initial;
    padding: initial;
}

/* Animación de filtrado mejorada */
.portfolio-item.filtering-out {
    animation: filterOut 0.4s ease-in forwards;
}

.portfolio-item.filtering-in {
    animation: filterIn 0.4s ease-out forwards;
}

@keyframes filterOut {
    0% {
        opacity: 1;
        transform: scale(1) rotateY(0deg);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.9) rotateY(90deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.8) rotateY(180deg);
        height: 0;
        margin: 0;
        padding: 0;
    }
}

@keyframes filterIn {
    0% {
        opacity: 0;
        transform: scale(0.8) rotateY(-180deg);
        height: auto;
        margin: initial;
        padding: initial;
    }
    50% {
        opacity: 0.5;
        transform: scale(0.9) rotateY(-90deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateY(0deg);
    }
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.5s ease;
    filter: grayscale(30%);
}

.portfolio-item:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--secondary-color);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.3);
}

.portfolio-item:hover img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(10, 10, 26, 0.95));
    padding: 2rem;
    transform: translateY(100%);
    transition: all 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

/* About story mejorada */
.about-story {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
    animation: fadeInUp 0.8s ease-out;
}

.about-story img {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
    transition: all 0.4s ease;
    box-shadow: 0 15px 30px rgba(0, 170, 255, 0.2);
}

.about-story img:hover {
    transform: scale(1.05) rotateY(5deg);
    box-shadow: 0 25px 50px rgba(0, 170, 255, 0.4);
}

/* Team grid mejorado */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    text-align: center;
}

.team-member {
    background: var(--card-bg-color);
    padding: 2.5rem;
    border-radius: 20px;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.team-member:nth-child(1) { animation-delay: 0.2s; }
.team-member:nth-child(2) { animation-delay: 0.4s; }
.team-member:nth-child(3) { animation-delay: 0.6s; }

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.team-member:hover::before {
    opacity: 0.1;
}

.team-member:hover {
    transform: translateY(-15px) scale(1.05);
    border-color: var(--secondary-color);
    box-shadow: 0 25px 50px rgba(0, 255, 255, 0.3);
}

.team-member img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(0, 170, 255, 0.3);
}

.team-member:hover img {
    border-color: var(--secondary-color);
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(0, 255, 255, 0.5);
}

/* Values grid mejorado */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    text-align: center;
}

.value-card {
    background: rgba(26, 26, 46, 0.5);
    padding: 3rem;
    border-radius: 20px;
    border: 2px solid var(--primary-color);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.value-card:nth-child(1) { animation-delay: 0.2s; }
.value-card:nth-child(2) { animation-delay: 0.4s; }
.value-card:nth-child(3) { animation-delay: 0.6s; }

.value-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, var(--hover-glow), transparent);
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.value-card:hover::before {
    width: 120%;
    height: 120%;
}

.value-card:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: var(--secondary-color);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.3);
}

.value-card .icon {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.value-card:hover .icon {
    transform: scale(1.2) rotateY(360deg);
    text-shadow: 0 0 25px var(--secondary-color);
}

/* Contact wrapper mejorado */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: var(--card-bg-color);
    padding: 4rem;
    border-radius: 25px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 170, 255, 0.2);
    animation: fadeInUp 0.8s ease-out;
}

.contact-form .form-group {
    margin-bottom: 2rem;
    position: relative;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(10, 10, 26, 0.8);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Footer mejorado */
.site-footer {
    background: linear-gradient(135deg, var(--card-bg-color), rgba(10, 10, 26, 0.95));
    padding: 5rem 0 2rem 0;
    margin-top: 5rem;
    border-top: 3px solid var(--primary-color);
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, var(--glow-color) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, var(--hover-glow) 0%, transparent 50%);
    opacity: 0.3;
    z-index: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.footer-col h4 {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.footer-logo-col .logo {
    font-size: 2.2rem;
    display: inline-block;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 15px var(--primary-color);
}

.footer-links-col li a {
    color: var(--text-color);
    padding: 8px 0;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links-col li a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.footer-links-col li a:hover::before {
    width: 100%;
}

.footer-links-col li a:hover {
    color: var(--secondary-color);
    transform: translateX(10px);
    text-shadow: 0 0 10px var(--secondary-color);
}

.social-links {
    margin-top: 2rem;
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.8rem;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 50%;
    background: rgba(0, 170, 255, 0.1);
}

.social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-5px) scale(1.2);
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 10px 20px rgba(0, 255, 255, 0.3);
}

/* Client Carousel Infinito */
.client-carousel-wrapper {
    overflow: hidden;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding: 2rem 0;
}

.client-carousel-track {
    display: flex;
    align-items: center;
    animation: infiniteScroll 30s linear infinite;
    width: fit-content;
}


@keyframes infiniteScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-63.6%);
    }
}

.client-logo-slide {
    flex: 0 0 auto;
    margin: 0 2rem;
    opacity: 0.7;
    transition: all 0.3s ease;
    min-width: 140px;
}

.client-logo-slide img {
    width: 140px;
    height: 80px;
    object-fit: contain;
    filter: grayscale(0.5) brightness(0.8);
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 8px;
}

.client-logo-slide:hover {
    opacity: 1;
    transform: scale(1.1);
}

.client-logo-slide:hover img {
    filter: grayscale(0) brightness(1);
    box-shadow: 0 8px 25px rgba(0, 170, 255, 0.3);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 0.7;
        transform: translateX(0);
    }
}

/* --- ESTILOS RESPONSIVOS MEJORADOS --- */
@media (max-width: 768px) {
    /* Ajustes generales */
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
    .section { padding: 4rem 0; }
    .container { padding: 0 1.5rem; }

    /* Hero responsive */
    .hero {
        height: 90vh;
        padding: 0 1rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 1.1rem;
        margin: 0 auto 1.5rem auto;
    }

    /* Menú de Hamburguesa visible */
    .nav-toggle {
        display: block;
    }

    /* Transformación del botón a 'X' cuando está activo */
    .nav-toggle.active .hamburger {
        background: transparent;
    }
    .nav-toggle.active .hamburger::before {
        transform: rotate(45deg);
    }
    .nav-toggle.active .hamburger::after {
        transform: rotate(-45deg);
    }

    /* Comportamiento del menú de navegación en móvil */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: linear-gradient(135deg, var(--card-bg-color), var(--background-color));
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        gap: 1rem;
        border-left: 2px solid var(--primary-color);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        padding: 2rem;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 0;
        width: 100%;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 15px 20px;
        border-radius: 10px;
        width: 100%;
        text-align: center;
        display: block;
        background: rgba(0, 170, 255, 0.05);
        border: 1px solid rgba(0, 170, 255, 0.2);
        margin-bottom: 0.5rem;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(0, 170, 255, 0.2);
        border-color: var(--secondary-color);
        transform: scale(1.02);
    }

    /* Títulos responsive */
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }

    /* Grids responsive */
    .about-story,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-story img {
        order: -1;
    }

    .contact-wrapper {
        padding: 2.5rem;
    }

    /* Services grid responsive */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 100%;
    }

    .service-card {
        padding: 2rem;
        min-height: auto;
    }

    .service-header .icon {
        font-size: 3rem;
    }

    .service-badge {
        font-size: 0.65rem;
        padding: 3px 6px;
    }

    /* Portfolio responsive */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    #portfolio-filters {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .filter-btn {
        margin: 0.25rem;
        padding: 10px 20px;
        font-size: 0.9rem;
        min-width: auto;
        flex: 0 1 auto;
    }

    .portfolio-item {
        margin: 0;
        border-radius: 15px;
    }

    .portfolio-item.hide {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .portfolio-overlay {
        padding: 1.5rem;
    }

    .project-features {
        gap: 0.5rem;
    }

    .feature-item {
        min-width: auto;
        flex: 1;
    }

    .project-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn-project {
        width: 100%;
        text-align: center;
    }

    /* Team grid responsive */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Values grid responsive */
    .values-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Footer responsive */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    /* Client carousel responsive */
    .client-carousel-wrapper {
        max-width: 95%;
        padding: 1rem 0;
    }
    
    .client-logo-slide {
        margin: 0 1rem;
        min-width: 100px;
    }

    .client-logo-slide img {
        width: 100px;
        height: 60px;
    }
}

/* Sección Proyecto Realidad - Innovadora */
.project-reality-section {
    position: relative;
    margin: 6rem 0 4rem;
    padding: 0;
    overflow: hidden;
}

.reality-container {
    position: relative;
    background: linear-gradient(135deg, 
        var(--background-color) 0%, 
        var(--card-bg-color) 50%, 
        var(--background-color) 100%);
    border-radius: 30px;
    padding: 4rem 2rem;
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: 
        0 20px 60px rgba(0, 170, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    max-width: 1200px;
    margin: 0 auto;
}

.reality-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    z-index: -1;
    border-radius: 30px;
    opacity: 0.1;
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.1; transform: scale(1); }
    50% { opacity: 0.2; transform: scale(1.02); }
}

/* Elementos flotantes */
.reality-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    opacity: 0.3;
    animation: floatRandom 8s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(0, 170, 255, 0.3);
}

.floating-icon:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-icon:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: 1s;
}

.floating-icon:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 2s;
}

.floating-icon:nth-child(4) {
    top: 60%;
    right: 25%;
    animation-delay: 0.5s;
}

.floating-icon:nth-child(5) {
    bottom: 15%;
    right: 10%;
    animation-delay: 1.5s;
}

.floating-icon:nth-child(6) {
    top: 40%;
    left: 5%;
    animation-delay: 2.5s;
}

@keyframes floatRandom {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg); 
        opacity: 0.3;
    }
    25% { 
        transform: translate(20px, -15px) rotate(90deg); 
        opacity: 0.5;
    }
    50% { 
        transform: translate(-10px, -25px) rotate(180deg); 
        opacity: 0.4;
    }
    75% { 
        transform: translate(-20px, 10px) rotate(270deg); 
        opacity: 0.6;
    }
}

/* Contenido principal */
.reality-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.reality-header {
    margin-bottom: 2rem;
}

.reality-badge {
    display: inline-block;
    position: relative;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    padding: 8px 24px;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.4);
    animation: badgeBounce 2s ease-in-out infinite;
}

@keyframes badgeBounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.badge-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    border-radius: 25px;
    z-index: -1;
    opacity: 0.6;
    filter: blur(8px);
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Título principal */
.reality-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 2rem 0;
    color: white;
}

.title-line {
    display: block;
    color: var(--text-color);
    font-size: 2.5rem;
}

.title-highlight {
    display: block;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 4rem;
    font-weight: 900;
    margin: 0.5rem 0;
    animation: titleGlow 3s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
}

@keyframes titleGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

.reality-description {
    font-size: 1.3rem;
    color: var(--text-color);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* Features */
.reality-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 3rem 0;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(0, 170, 255, 0.2);
    transition: all 0.3s ease;
    min-width: 140px;
}

.feature-item:hover {
    transform: translateY(-5px);
    background: rgba(0, 170, 255, 0.1);
    border-color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 170, 255, 0.4);
}

.feature-item span {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
    text-align: center;
}

/* Botones CTA */
.reality-cta {
    margin-top: 3rem;
}

.cta-wrapper {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.reality-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 18px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.4s ease;
    overflow: hidden;
    min-width: 200px;
    justify-content: center;
}

.reality-btn.primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 8px 30px rgba(0, 170, 255, 0.4);
    border: none;
}

.reality-btn.primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 255, 255, 0.6);
    color: white;
}

.reality-btn.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.reality-btn.secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 170, 255, 0.4);
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.btn-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.reality-btn.primary:hover .btn-particles {
    transform: translateX(100%);
}

/* Indicadores de confianza */
.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 170, 255, 0.2);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    opacity: 0.8;
    font-size: 0.9rem;
}

.trust-item i {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .reality-container {
        padding: 3rem 1.5rem;
        margin: 0 1rem;
    }
    
    .reality-title {
        font-size: 2.5rem;
    }
    
    .title-line {
        font-size: 2rem;
    }
    
    .title-highlight {
        font-size: 3rem;
    }
    
    .reality-description {
        font-size: 1.1rem;
    }
    
    .reality-features {
        gap: 1rem;
    }
    
    .feature-item {
        min-width: 120px;
        padding: 0.8rem;
    }
    
    .cta-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .reality-btn {
        width: 100%;
        max-width: 280px;
    }
    
    .trust-indicators {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
    
    .floating-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .floating-elements {
        display: block;
        position: static;
        text-align: center;
        margin: 1rem 0;
    }
    
    .floating-icon {
        position: static;
        display: inline-block;
        margin: 0.3rem;
        animation: none;
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}
}

@media (max-width: 480px) {
    /* Ajustes para pantallas muy pequeñas */
    .technologies {
        padding: 2rem 0;
    }
    
    .technologies .section-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .technologies p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .floating-elements {
        display: block;
        position: static;
        text-align: center;
        margin: 1rem 0;
    }
    
    .floating-icon {
        position: static;
        display: inline-block;
        margin: 0.2rem;
        animation: none;
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    .hero-content h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .service-card,
    .about-intro-card,
    .value-card {
        padding: 2rem;
    }

    .contact-wrapper {
        padding: 2rem;
    }

    .nav-links {
        width: 90%;
    }
    
    /* Reality section mobile */
    .reality-container {
        padding: 2rem 1rem;
        border-radius: 20px;
    }
    
    .reality-title {
        font-size: 2rem;
    }
    
    .title-highlight {
        font-size: 2.5rem;
    }
    
    .title-line {
        font-size: 1.5rem;
    }
}
/* Nubes Flotantes de Tecnologías */
.tech-clouds-container {
    position: relative;
    min-height: 500px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    overflow: hidden;
}

.tech-cloud {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, 
        rgba(0, 170, 255, 0.1), 
        rgba(0, 255, 255, 0.05), 
        rgba(0, 170, 255, 0.15));
    border-radius: 50%;
    border: 2px solid rgba(0, 170, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 170, 255, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    cursor: pointer;
    animation: cloudFloat 6s ease-in-out infinite;
    margin: 1rem;
}

.tech-cloud:nth-child(odd) {
    animation-delay: 0s;
    animation-direction: normal;
}

.tech-cloud:nth-child(even) {
    animation-delay: 2s;
    animation-direction: reverse;
}

.tech-cloud:nth-child(3n) {
    animation-delay: 1s;
    animation-duration: 8s;
}

.tech-cloud:nth-child(4n) {
    animation-delay: 3s;
    animation-duration: 7s;
}

@keyframes cloudFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(2deg);
    }
    50% {
        transform: translateY(-25px) rotate(0deg);
    }
    75% {
        transform: translateY(-10px) rotate(-2deg);
    }
}

.tech-cloud:hover {
    transform: translateY(-15px) scale(1.1);
    background: linear-gradient(135deg, 
        rgba(0, 170, 255, 0.2), 
        rgba(0, 255, 255, 0.15), 
        rgba(0, 170, 255, 0.25));
    border-color: var(--secondary-color);
    box-shadow: 
        0 15px 40px rgba(0, 255, 255, 0.4),
        inset 0 2px 8px rgba(255, 255, 255, 0.2);
    animation-play-state: paused;
}

.tech-cloud[data-category="frontend"]:hover {
    border-color: #ff6b35;
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.4);
}

.tech-cloud[data-category="backend"]:hover {
    border-color: #4ecdc4;
    box-shadow: 0 15px 40px rgba(78, 205, 196, 0.4);
}

.tech-cloud[data-category="database"]:hover {
    border-color: #45b7d1;
    box-shadow: 0 15px 40px rgba(69, 183, 209, 0.4);
}

.tech-cloud[data-category="devops"]:hover {
    border-color: #f9ca24;
    box-shadow: 0 15px 40px rgba(249, 202, 36, 0.4);
}

.cloud-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 170, 255, 0.3);
    transition: all 0.3s ease;
}

.tech-cloud:hover .cloud-icon {
    transform: scale(1.1) rotateY(180deg);
    box-shadow: 0 6px 20px rgba(0, 255, 255, 0.5);
}

.cloud-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
    transition: all 0.3s ease;
}

.tech-cloud:hover .cloud-label {
    color: var(--secondary-color);
    text-shadow: 0 0 10px var(--secondary-color);
}

/* Animación de aparición escalonada */
.tech-cloud {
    opacity: 0;
    animation: cloudAppear 0.8s ease-out forwards, cloudFloat 6s ease-in-out infinite;
}

@keyframes cloudAppear {
    from {
        opacity: 0;
        transform: scale(0) translateY(50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Responsive para nubes */
@media (max-width: 768px) {
    .tech-clouds-container {
        min-height: 400px;
        gap: 0.8rem;
        padding: 1rem;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        justify-items: center;
        align-items: center;
    }
    
    .tech-cloud {
        width: 90px;
        height: 90px;
        margin: 0.3rem;
    }
    
    .cloud-icon {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }
    
    .cloud-label {
        font-size: 0.8rem;
        margin-top: 0.3rem;
    }
}

@media (max-width: 480px) {
    .tech-clouds-container {
        min-height: 350px;
        gap: 0.6rem;
        padding: 0.8rem;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        justify-items: center;
        align-items: center;
    }
    
    .tech-cloud {
        width: 80px;
        height: 80px;
        margin: 0.2rem;
    }
    
    .cloud-icon {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .cloud-label {
        font-size: 0.7rem;
        margin-top: 0.2rem;
    }
}

@media (max-width: 320px) {
    .tech-clouds-container {
        min-height: 300px;
        gap: 0.4rem;
        padding: 0.5rem;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        justify-items: center;
        align-items: center;
    }
    
    .tech-cloud {
        width: 70px;
        height: 70px;
        margin: 0.1rem;
    }
    
    .cloud-icon {
        width: 25px;
        height: 25px;
        font-size: 0.9rem;
    }
    
    .cloud-label {
        font-size: 0.6rem;
        margin-top: 0.1rem;
    }
    
    .technologies .section-title {
        font-size: 1.5rem;
    }
    
    .technologies p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
}
/* Proceso de Trabajo Rediseñado */
.process-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.process-timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, 
        var(--primary-color), 
        var(--secondary-color), 
        var(--primary-color));
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.5);
    animation: lineGlow 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes lineGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 170, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 255, 255, 0.8);
    }
}

.process-step-card {
    position: relative;
    margin: 4rem 0;
    display: flex;
    align-items: center;
    z-index: 2;
}

.process-step-card[data-step="1"],
.process-step-card[data-step="3"] {
    justify-content: flex-end;
    padding-right: calc(50% + 3rem);
}

.process-step-card[data-step="2"],
.process-step-card[data-step="4"] {
    justify-content: flex-start;
    padding-left: calc(50% + 3rem);
}

.step-number-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 10px 30px rgba(0, 170, 255, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
    z-index: 3;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
    }
}

.step-number {
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.badge-pulse {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 3px solid var(--secondary-color);
    border-radius: 50%;
    animation: pulseBorder 2s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes pulseBorder {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.2;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.step-card-content {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(0, 170, 255, 0.3);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 400px;
    box-shadow: 0 15px 35px rgba(0, 170, 255, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.step-card-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 255, 255, 0.1), 
        transparent);
    transition: left 0.6s ease;
}

.process-step-card:hover .step-card-content::before {
    left: 100%;
}

.process-step-card:hover .step-card-content {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--secondary-color);
    box-shadow: 0 25px 50px rgba(0, 255, 255, 0.3);
}

.step-icon-container {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 170, 255, 0.4);
    transition: all 0.3s ease;
}

.process-step-card:hover .step-icon-container {
    transform: rotateY(360deg) scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 255, 255, 0.6);
}

.step-card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: white;
    position: relative;
}

.step-card-content p {
    color: var(--text-color);
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.step-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    background: rgba(0, 170, 255, 0.2);
    color: var(--secondary-color);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(0, 170, 255, 0.4);
    transition: all 0.3s ease;
}

.process-step-card:hover .feature-tag {
    background: rgba(0, 255, 255, 0.3);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Conectores animados */
.process-step-card::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 1px;
    animation: connectorPulse 2s ease-in-out infinite;
    z-index: 2;
}

.process-step-card[data-step="1"]::before,
.process-step-card[data-step="3"]::before {
    right: calc(50% - 40px);
}

.process-step-card[data-step="2"]::before,
.process-step-card[data-step="4"]::before {
    left: calc(50% - 40px);
}

@keyframes connectorPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scaleX(1);
    }
    50% {
        opacity: 1;
        transform: scaleX(1.2);
    }
}

/* Responsive para proceso */
@media (max-width: 768px) {
    .process-timeline-line {
        left: 2rem;
    }
    
    .process-step-card {
        justify-content: flex-start !important;
        padding: 0 0 0 4rem !important;
        margin: 3rem 0;
    }
    
    .step-number-badge {
        left: 2rem;
        width: 60px;
        height: 60px;
    }
    
    .step-number {
        font-size: 1.2rem;
    }
    
    .step-card-content {
        padding: 2rem;
        max-width: none;
    }
    
    .process-step-card::before {
        display: none;
    }
    
    .step-icon-container {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
}

/* Efectos adicionales para las nubes */
.tech-clouds-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 170, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Animaciones para cuando las secciones entran en viewport */
.technologies.visible .tech-cloud {
    animation-play-state: running;
}

.work-process.visible .process-timeline-line {
    animation-play-state: running;
}

/* Estados de hover para mejor UX */
.tech-cloud:hover {
    z-index: 10;
}

.process-step-card:hover {
    z-index: 10;
}

/* Animaciones adicionales */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotateY(-90deg);
    }
    to {
        opacity: 1;
        transform: rotateY(0);
    }
}

/* Efectos de scroll suave */
html {
    scroll-behavior: smooth;
}

/* Efectos de selección personalizados */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--background-color);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--secondary-color), var(--primary-color));
}

/* Botones flotantes */
.back-to-top,
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.back-to-top {
    bottom: 20px;
    right: 20px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 170, 255, 0.4);
}

.whatsapp-float {
    bottom: 90px;
    right: 20px;
    background: #25D366;
    color: white;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background: #128C7E;
    color: white;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    animation: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Estilos para notificaciones */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 350px;
    word-wrap: break-word;
}

.notification.error {
    background: linear-gradient(45deg, #dc3545, #fd7e14);
}

.notification .close-notification {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: auto;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mejoras para formularios */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group.focused input,
.form-group.focused textarea,
.form-group.focused select {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(0, 255, 255, 0.2);
}

.form-group.success input,
.form-group.success textarea,
.form-group.success select {
    border-color: #28a745;
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: #dc3545;
}

.form-error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
    min-height: 1.2em;
}

/* Estilos adicionales para el hero */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow-color), transparent);
    animation: homeFloat 8s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 2.7s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 60%;
    animation-delay: 5.3s;
}

/* Fix para z-index y posicionamiento */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-toggle {
    z-index: 1002;
    position: relative;
}

.nav-links {
    z-index: 1001;
}

@media (max-width: 768px) {
    .nav-links {
        z-index: 1001;
    }
    
    .back-to-top,
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .back-to-top {
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-float {
        bottom: 75px;
        right: 15px;
    }
}
/* ===== TEMA CLARO - VARIABLES Y ESTILOS ===== */

/* Variables para tema claro */
[data-theme="light"] {
    --primary-color: #0066cc;
    --secondary-color: #00aaff;
    --accent-color: #004499;
    --background-color: #ffffff;
    --card-bg-color: #f8f9ff;
    --text-color: #2c3e50;
    --header-bg-color: rgba(248, 249, 255, 0.95);
    --glow-color: rgba(0, 102, 204, 0.2);
    --hover-glow: rgba(0, 170, 255, 0.3);
}

/* Ajustes específicos para tema claro */
[data-theme="light"] body {
    color: var(--text-color);
}

[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4 {
    color: #1a2332;
}

[data-theme="light"] .section-title {
    background: linear-gradient(45deg, #1a2332, var(--primary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .hero-content h1 {
    background: linear-gradient(45deg, #1a2332, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .title-highlight {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Ajustes para cards en tema claro */
[data-theme="light"] .service-card,
[data-theme="light"] .about-intro-card,
[data-theme="light"] .value-card,
[data-theme="light"] .team-member,
[data-theme="light"] .portfolio-item,
[data-theme="light"] .step-card-content,
[data-theme="light"] .testimonial-content,
[data-theme="light"] .certification-item,
[data-theme="light"] .stat-card {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0, 102, 204, 0.2);
    box-shadow: 0 8px 32px rgba(0, 102, 204, 0.1);
}

[data-theme="light"] .service-card:hover,
[data-theme="light"] .about-intro-card:hover,
[data-theme="light"] .value-card:hover,
[data-theme="light"] .team-member:hover {
    box-shadow: 0 15px 40px rgba(0, 170, 255, 0.2);
}

/* Ajustes para navegación en tema claro */
[data-theme="light"] header {
    background: var(--header-bg-color);
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 102, 204, 0.1);
}

[data-theme="light"] .nav-links a {
    color: var(--text-color);
}

[data-theme="light"] .nav-links a:hover,
[data-theme="light"] .nav-links a.active {
    color: var(--primary-color);
    background: rgba(0, 102, 204, 0.1);
}

/* Footer en tema claro */
[data-theme="light"] .site-footer {
    background: linear-gradient(135deg, #f0f4f8, #e1e8ed);
    color: var(--text-color);
}

/* Scrollbar en tema claro */
[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
}

/* Tech clouds en tema claro */
[data-theme="light"] .tech-cloud {
    background: linear-gradient(135deg, 
        rgba(0, 102, 204, 0.05), 
        rgba(0, 170, 255, 0.02), 
        rgba(0, 102, 204, 0.08));
    border: 2px solid rgba(0, 102, 204, 0.2);
}

/* Reality section en tema claro */
[data-theme="light"] .reality-container {
    background: linear-gradient(135deg, 
        var(--background-color) 0%, 
        var(--card-bg-color) 50%, 
        var(--background-color) 100%);
}

/* Formularios en tema claro */
[data-theme="light"] .contact-form input,
[data-theme="light"] .contact-form textarea {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0, 102, 204, 0.3);
    color: var(--text-color);
}

[data-theme="light"] .contact-form input:focus,
[data-theme="light"] .contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 102, 204, 0.2);
}

/* Botones en tema claro */
[data-theme="light"] .filter-btn {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

[data-theme="light"] .filter-btn.active,
[data-theme="light"] .filter-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* ===== BOTÓN TOGGLE DE TEMA ===== */

.theme-toggle {
    position: fixed;
    top: 50%;
    right: 20px;
    width: 60px;
    height: 30px;
    background: var(--card-bg-color);
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    padding: 2px;
    transform: translateY(-50%);
    box-shadow: 0 4px 15px rgba(0, 170, 255, 0.3);
}

.theme-toggle:hover {
    box-shadow: 0 6px 20px rgba(0, 170, 255, 0.5);
    transform: translateY(-50%) scale(1.05);
}

.theme-toggle-slider {
    width: 24px;
    height: 24px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: white;
    position: relative;
    transform: translateX(0);
}

[data-theme="light"] .theme-toggle-slider {
    transform: translateX(28px);
}

.theme-toggle-icon {
    transition: all 0.3s ease;
}

/* Responsive para el toggle */
@media (max-width: 768px) {
    .theme-toggle {
        right: 15px;
        width: 50px;
        height: 25px;
    }
    
    .theme-toggle-slider {
        width: 20px;
        height: 20px;
        font-size: 0.6rem;
    }
    
    [data-theme="light"] .theme-toggle-slider {
        transform: translateX(23px);
    }
}
/* ===== TEMA CLARO CON TONOS AZUL-VERDOSOS ===== */

/* Variables mejoradas para tema claro cyan/turquesa */
[data-theme="light"] {
    --primary-color: #00bcd4;          /* Cyan principal */
    --secondary-color: #26c6da;        /* Cyan claro */
    --accent-color: #0097a7;           /* Cyan oscuro */
    --background-color: #ffffff;
    --card-bg-color: #f0fdff;          /* Azul muy claro verdoso */
    --text-color: #263238;             /* Azul gris oscuro */
    --header-bg-color: rgba(240, 253, 255, 0.95);
    --glow-color: rgba(0, 188, 212, 0.15);
    --hover-glow: rgba(38, 198, 218, 0.25);
    
    /* Variables específicas cyan */
    --shadow-light: rgba(0, 188, 212, 0.08);
    --shadow-medium: rgba(0, 188, 212, 0.12);
    --shadow-strong: rgba(0, 188, 212, 0.18);
    --border-light: rgba(0, 188, 212, 0.15);
    --border-medium: rgba(0, 188, 212, 0.25);
    --overlay-light: rgba(255, 255, 255, 0.9);
    --gradient-bg: linear-gradient(135deg, #ffffff 0%, #f0fdff 50%, #ffffff 100%);
    --success-color: #00e676;          /* Verde cyan */
    --warning-color: #ffab00;          /* Amarillo que combina */
    --error-color: #ff5722;            /* Rojo que combina */
}

/* ===== ELEMENTOS GLOBALES ===== */

[data-theme="light"] body {
    color: var(--text-color);
    background: var(--gradient-bg);
}

[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6 {
    color: #1a2e35;
    text-shadow: none;
}

/* ===== HEADER Y NAVEGACIÓN ===== */

[data-theme="light"] header {
    background: var(--header-bg-color);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 2px 20px var(--shadow-light);
}

[data-theme="light"] .logo {
    color: var(--primary-color);
    text-shadow: none;
}

[data-theme="light"] .logo span {
    color: var(--secondary-color);
}

[data-theme="light"] .nav-links a {
    color: var(--text-color);
}

[data-theme="light"] .nav-links a:hover,
[data-theme="light"] .nav-links a.active {
    color: var(--primary-color);
    background: rgba(0, 188, 212, 0.08);
    box-shadow: 0 2px 10px var(--shadow-light);
}

/* Menú móvil */
[data-theme="light"] .nav-links {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 253, 255, 0.95));
    backdrop-filter: blur(20px);
    border-left: 2px solid var(--primary-color);
    box-shadow: -15px 0 40px var(--shadow-medium);
}

[data-theme="light"] .nav-toggle .hamburger,
[data-theme="light"] .nav-toggle .hamburger::before,
[data-theme="light"] .nav-toggle .hamburger::after {
    background: var(--primary-color);
    box-shadow: none;
}

/* ===== HERO SECTION ===== */

[data-theme="light"] .hero {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9), 
        rgba(240, 253, 255, 0.95)), 
        url('https://images.unsplash.com/photo-1518770660439-4636190af475?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwzNTc5fDB8MXxzZWFyY2h8N3x8dGVjaG5vbG9neXxlbnwwfHx8fDE2Mzc2NDI0Nzc&ixlib=rb-1.2.1&q=80&w=1080') no-repeat center center/cover;
}

[data-theme="light"] .hero::before {
    background: 
        radial-gradient(circle at 30% 70%, rgba(0, 188, 212, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(38, 198, 218, 0.08) 0%, transparent 50%);
}

[data-theme="light"] .hero-content h1 {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), #1a2e35);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== SECCIONES Y TÍTULOS ===== */

[data-theme="light"] .section-title {
    background: linear-gradient(45deg, #1a2e35, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .title-highlight {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== CARDS Y CONTENEDORES ===== */

[data-theme="light"] .service-card,
[data-theme="light"] .about-intro-card,
[data-theme="light"] .value-card,
[data-theme="light"] .team-member,
[data-theme="light"] .portfolio-item,
[data-theme="light"] .step-card-content,
[data-theme="light"] .testimonial-content,
[data-theme="light"] .certification-item,
[data-theme="light"] .stat-card,
[data-theme="light"] .faq-item {
    background: var(--overlay-light);
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 20px var(--shadow-light);
    backdrop-filter: blur(10px);
}

[data-theme="light"] .service-card:hover,
[data-theme="light"] .about-intro-card:hover,
[data-theme="light"] .value-card:hover,
[data-theme="light"] .team-member:hover,
[data-theme="light"] .portfolio-item:hover,
[data-theme="light"] .stat-card:hover {
    border-color: var(--border-medium);
    box-shadow: 0 8px 30px var(--shadow-medium);
    transform: translateY(-8px) scale(1.02);
}

/* Cards featured */
[data-theme="light"] .service-card.featured {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(0, 188, 212, 0.03));
    box-shadow: 0 6px 25px var(--shadow-medium);
}

/* ===== ICONOS CON GRADIENTE CYAN ===== */

[data-theme="light"] .card-icon,
[data-theme="light"] .service-card .icon,
[data-theme="light"] .value-card .icon,
[data-theme="light"] .step-icon-container,
[data-theme="light"] .stat-icon,
[data-theme="light"] .cert-icon,
[data-theme="light"] .feature-icon {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 4px 15px var(--shadow-medium);
}

[data-theme="light"] .service-card:hover .icon,
[data-theme="light"] .about-intro-card:hover .card-icon,
[data-theme="light"] .value-card:hover .icon {
    box-shadow: 0 8px 25px var(--shadow-strong);
    transform: scale(1.1) rotateY(15deg);
}

/* ===== BOTONES CYAN ===== */

[data-theme="light"] .btn {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    box-shadow: 0 4px 15px var(--shadow-medium);
}

[data-theme="light"] .btn:hover {
    background: linear-gradient(45deg, var(--secondary-color), #4dd0e1);
    box-shadow: 0 8px 25px var(--shadow-strong);
    transform: translateY(-2px) scale(1.05);
}

[data-theme="light"] .filter-btn {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background: transparent;
}

[data-theme="light"] .filter-btn.active,
[data-theme="light"] .filter-btn:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px var(--shadow-medium);
}

/* ===== FORMULARIOS CYAN ===== */

[data-theme="light"] .contact-form input,
[data-theme="light"] .contact-form textarea,
[data-theme="light"] .contact-form select,
[data-theme="light"] .newsletter-form input {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--border-light);
    color: var(--text-color);
    box-shadow: 0 2px 10px var(--shadow-light);
}

[data-theme="light"] .contact-form input:focus,
[data-theme="light"] .contact-form textarea:focus,
[data-theme="light"] .newsletter-form input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px var(--shadow-medium);
    background: white;
}

[data-theme="light"] .form-group.focused input,
[data-theme="light"] .form-group.focused textarea {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(38, 198, 218, 0.1);
}

[data-theme="light"] .form-group.success input,
[data-theme="light"] .form-group.success textarea {
    border-color: var(--success-color);
    box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.1);
}

[data-theme="light"] .form-group.error input,
[data-theme="light"] .form-group.error textarea {
    border-color: var(--error-color);
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.1);
}

/* ===== FOOTER CYAN ===== */

[data-theme="light"] .site-footer {
    background: linear-gradient(135deg, #f0fdff, #ffffff);
    color: var(--text-color);
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -4px 20px var(--shadow-light);
}

[data-theme="light"] .site-footer::before {
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 188, 212, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(38, 198, 218, 0.03) 0%, transparent 50%);
}

[data-theme="light"] .footer-col h4 {
    color: var(--primary-color);
}

[data-theme="light"] .footer-links-col li a {
    color: var(--text-color);
}

[data-theme="light"] .footer-links-col li a:hover {
    color: var(--primary-color);
    text-shadow: none;
}

[data-theme="light"] .social-links a {
    background: rgba(0, 188, 212, 0.08);
    color: var(--primary-color);
    border: 1px solid var(--border-light);
}

[data-theme="light"] .social-links a:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px var(--shadow-medium);
}

/* ===== TECH CLOUDS CYAN ===== */

[data-theme="light"] .tech-cloud {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9), 
        rgba(0, 188, 212, 0.02), 
        rgba(255, 255, 255, 0.95));
    border: 2px solid var(--border-light);
    box-shadow: 0 4px 15px var(--shadow-light);
    backdrop-filter: blur(10px);
}

[data-theme="light"] .tech-cloud:hover {
    border-color: var(--border-medium);
    box-shadow: 0 8px 25px var(--shadow-medium);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95), 
        rgba(0, 188, 212, 0.05), 
        rgba(255, 255, 255, 0.98));
}

/* ===== REALITY SECTION CYAN ===== */

[data-theme="light"] .reality-container {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(240, 253, 255, 0.98) 50%, 
        rgba(255, 255, 255, 0.95) 100%);
    border: 2px solid var(--border-light);
    box-shadow: 0 10px 40px var(--shadow-medium);
    backdrop-filter: blur(15px);
}

[data-theme="light"] .reality-container::before {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0.03;
}

[data-theme="light"] .reality-badge {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 4px 20px var(--shadow-medium);
}

[data-theme="light"] .feature-item {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 10px var(--shadow-light);
}

[data-theme="light"] .feature-item:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--border-medium);
    box-shadow: 0 4px 20px var(--shadow-medium);
}

/* ===== PROCESS TIMELINE CYAN ===== */

[data-theme="light"] .process-timeline-line {
    background: linear-gradient(to bottom, 
        var(--primary-color), 
        var(--secondary-color), 
        var(--primary-color));
    box-shadow: 0 0 15px var(--shadow-medium);
}

[data-theme="light"] .step-number-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 6px 20px var(--shadow-medium);
}

[data-theme="light"] .badge-pulse {
    border-color: var(--secondary-color);
}

/* ===== FAQ ACCORDION STYLES ===== */

.faq-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--card-bg-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion-header:hover {
    background: rgba(0, 170, 255, 0.1);
}

.accordion-header h3 {
    color: var(--text-color);
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    flex: 1;
}

.accordion-icon {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accordion-item.active .accordion-header {
    background: var(--primary-color);
    color: white;
}

.accordion-item.active .accordion-header h3 {
    color: white;
}

.accordion-item.active .accordion-icon {
    color: white;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: rgba(255, 255, 255, 0.02);
}

.accordion-body {
    padding: 1.5rem;
}

.accordion-body p {
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

/* ===== FAQ LIGHT THEME STYLES ===== */

[data-theme="light"] .accordion-item {
    background: var(--overlay-light);
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 20px var(--shadow-light);
    backdrop-filter: blur(10px);
}

[data-theme="light"] .accordion-header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--border-light);
}

[data-theme="light"] .accordion-header:hover {
    background: rgba(0, 188, 212, 0.05);
}

[data-theme="light"] .accordion-header h3 {
    color: var(--text-color);
}

[data-theme="light"] .accordion-icon {
    color: var(--primary-color);
}

[data-theme="light"] .accordion-item.active .accordion-header {
    background: var(--primary-color);
    color: white;
}

[data-theme="light"] .accordion-item.active .accordion-header h3 {
    color: white;
}

[data-theme="light"] .accordion-item.active .accordion-icon {
    color: white;
}

[data-theme="light"] .accordion-content {
    background: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .accordion-body p {
    color: var(--text-color);
}

/* ===== PORTFOLIO CYAN ===== */

[data-theme="light"] .portfolio-item img {
    filter: grayscale(20%) brightness(1.1) hue-rotate(10deg);
}

[data-theme="light"] .portfolio-item:hover img {
    filter: grayscale(0%) brightness(1) hue-rotate(0deg);
}

[data-theme="light"] .portfolio-overlay {
    background: linear-gradient(transparent, rgba(240, 253, 255, 0.98));
    backdrop-filter: blur(10px);
}

/* ===== SCROLLBAR CYAN ===== */

[data-theme="light"] ::-webkit-scrollbar-track {
    background: #f0fdff;
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border: 2px solid #f0fdff;
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--secondary-color), #4dd0e1);
}

/* ===== THEME TOGGLE CYAN ===== */

[data-theme="light"] .theme-toggle {
    background: white;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px var(--shadow-medium);
}

[data-theme="light"] .theme-toggle:hover {
    box-shadow: 0 6px 20px var(--shadow-strong);
}

/* ===== BOTONES FLOTANTES CYAN ===== */

[data-theme="light"] .back-to-top {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 4px 15px var(--shadow-medium);
}

[data-theme="light"] .back-to-top:hover {
    box-shadow: 0 8px 25px var(--shadow-strong);
}

/* ===== EFECTOS ESPECIALES CYAN ===== */

[data-theme="light"] .glow-text:hover {
    text-shadow: 0 0 15px var(--primary-color), 0 0 25px var(--secondary-color);
}

/* ===== NOTIFICACIONES CYAN ===== */

[data-theme="light"] .notification {
    background: white;
    border: 1px solid var(--border-light);
    box-shadow: 0 8px 30px var(--shadow-medium);
    color: var(--text-color);
    backdrop-filter: blur(15px);
}

[data-theme="light"] .notification.success {
    border-left: 4px solid var(--success-color);
    background: linear-gradient(45deg, rgba(0, 230, 118, 0.05), white);
}

[data-theme="light"] .notification.error {
    border-left: 4px solid var(--error-color);
    background: linear-gradient(45deg, rgba(255, 87, 34, 0.05), white);
}

/* ===== ANIMACIONES CYAN ===== */

[data-theme="light"] .service-card::before,
[data-theme="light"] .about-intro-card::before,
[data-theme="light"] .value-card::before {
    background: radial-gradient(circle, rgba(0, 188, 212, 0.08), transparent);
}

[data-theme="light"] .tech-cloud::before {
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 188, 212, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(38, 198, 218, 0.02) 0%, transparent 50%);
}

/* ===== RESPONSIVE CYAN ===== */

@media (max-width: 768px) {
    [data-theme="light"] .nav-links {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 253, 255, 0.95));
        border-left: 2px solid var(--primary-color);
        box-shadow: -10px 0 30px var(--shadow-medium);
    }
    
    [data-theme="light"] .reality-container {
        margin: 0 1rem;
        padding: 2rem 1rem;
    }
    
    [data-theme="light"] .service-card,
    [data-theme="light"] .about-intro-card {
        box-shadow: 0 2px 15px var(--shadow-light);
    }
}

/* ===== ESTILOS ESPECIALES AGUA/CYAN ===== */

[data-theme="light"] .service-link:hover,
[data-theme="light"] .btn-project:hover,
[data-theme="light"] .reality-btn:hover {
    background: linear-gradient(45deg, var(--secondary-color), #4dd0e1);
    color: white;
    text-shadow: none;
    box-shadow: 0 6px 20px var(--shadow-strong);
}

[data-theme="light"] .stat-number {
    color: var(--primary-color);
    text-shadow: 0 0 20px var(--secondary-color);
}

[data-theme="light"] .badge-glow {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    filter: blur(8px);
}

/* Efecto agua en hover */
[data-theme="light"] .card-icon:hover,
[data-theme="light"] .service-card .icon:hover {
    background: linear-gradient(45deg, var(--secondary-color), #4dd0e1, var(--primary-color));
    animation: waterFlow 2s ease-in-out infinite;
}

@keyframes waterFlow {
    0%, 100% { 
        background-position: 0% 50%; 
    }
    50% { 
        background-position: 100% 50%; 
    }
}
/* ===== VALORES CON RELIEVE SUTIL EN TEMA CLARO ===== */

[data-theme="light"] .value-card {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0, 188, 212, 0.1);
    box-shadow: 
        0 4px 20px rgba(0, 188, 212, 0.08),
        0 1px 3px rgba(255, 255, 255, 0.8) inset;
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        transparent 50%, 
        rgba(0, 188, 212, 0.03) 100%);
    pointer-events: none;
    z-index: 0;
}

[data-theme="light"] .value-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 8px 30px rgba(0, 188, 212, 0.15),
        0 2px 6px rgba(255, 255, 255, 0.9) inset;
    border-color: rgba(0, 188, 212, 0.2);
    background: rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .value-card:hover::before {
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.3) 0%, 
        transparent 50%, 
        rgba(0, 188, 212, 0.05) 100%);
}

[data-theme="light"] .values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

[data-theme="light"] .value-card .icon {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 6px 20px var(--shadow-medium);
    border: none;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

[data-theme="light"] .value-card:hover .icon {
    background: linear-gradient(45deg, var(--secondary-color), #4dd0e1);
    box-shadow: 0 10px 30px var(--shadow-strong);
    transform: scale(1.1);
}

[data-theme="light"] .value-card .icon i {
    color: white !important;
    font-size: 2rem;
    text-shadow: none;
}

[data-theme="light"] .value-card h4 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

[data-theme="light"] .value-card p {
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.6;
    max-width: 280px;
    position: relative;
    z-index: 1;
}

/* Responsive para valores en tema claro */
@media (max-width: 768px) {
    [data-theme="light"] .values-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    [data-theme="light"] .value-card {
        padding: 2rem;
        min-height: 250px;
    }
}
/* ===== HERO CON MÁS COLOR CYAN PARA TEMA CLARO ===== */

[data-theme="light"] .hero {
    background: linear-gradient(135deg, 
        rgba(0, 188, 212, 0.25) 0%,
        rgba(240, 253, 255, 0.9) 20%,
        rgba(0, 188, 212, 0.15) 40%,
        rgba(255, 255, 255, 0.8) 60%,
        rgba(38, 198, 218, 0.2) 80%,
        rgba(0, 188, 212, 0.3) 100%), 
        url('https://images.unsplash.com/photo-1518770660439-4636190af475?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwzNTc5fDB8MXxzZWFyY2h8N3x8dGVjaG5vbG9neXxlbnwwfHx8fDE2Mzc2NDI0Nzc&ixlib=rb-1.2.1&q=80&w=1080') no-repeat center center/cover;
    position: relative;
    min-height: 100vh;
}

[data-theme="light"] .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 15% 25%, rgba(0, 188, 212, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(38, 198, 218, 0.25) 0%, transparent 45%),
        radial-gradient(circle at 50% 10%, rgba(0, 188, 212, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 30% 80%, rgba(77, 208, 225, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 70% 30%, rgba(0, 188, 212, 0.15) 0%, transparent 60%);
    animation: heroGlow 6s ease-in-out infinite;
    z-index: 1;
}

@keyframes heroGlow {
    0%, 100% { opacity: 0.8; }
    33% { opacity: 1; }
    66% { opacity: 0.9; }
}

[data-theme="light"] .hero-content {
    position: relative;
    z-index: 2;
    background: rgba(240, 253, 255, 0.3);
    backdrop-filter: blur(15px);
    border-radius: 30px;
    padding: 4rem 2rem;
    border: 1px solid rgba(0, 188, 212, 0.4);
    box-shadow: 
        0 25px 70px rgba(0, 188, 212, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 0 0 1px rgba(0, 188, 212, 0.1);
}

[data-theme="light"] .hero-content h1 {
    background: linear-gradient(45deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 25%, 
        #4dd0e1 50%,
        var(--primary-color) 75%,
        #1a2e35 100%);
    background-size: 400% 400%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease-in-out infinite;
    text-shadow: none;
    filter: brightness(1.2) contrast(1.1);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 50% 0%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 100%; }
}

[data-theme="light"] .hero-content p {
    color: #1a2e35;
    opacity: 0.95;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    margin: 2rem auto;
}

[data-theme="light"] .hero .btn {
    background: linear-gradient(45deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 50%, 
        #4dd0e1 100%);
    box-shadow: 
        0 10px 30px rgba(0, 188, 212, 0.4),
        0 5px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .hero .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 0.5s ease;
}

[data-theme="light"] .hero .btn:hover::before {
    left: 100%;
}

[data-theme="light"] .hero .btn:hover {
    background: linear-gradient(45deg, 
        var(--secondary-color) 0%, 
        #4dd0e1 50%, 
        #26c6da 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 15px 40px rgba(0, 188, 212, 0.5),
        0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Shapes decorativas MÁS COLORIDAS */
[data-theme="light"] .hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

[data-theme="light"] .shape {
    position: absolute;
    border-radius: 50%;
    animation: homeFloat 8s ease-in-out infinite;
}

[data-theme="light"] .shape-1 {
    width: 350px;
    height: 350px;
    top: 5%;
    left: 0%;
    background: radial-gradient(circle, 
        rgba(0, 188, 212, 0.2) 0%,
        rgba(38, 198, 218, 0.15) 30%,
        rgba(77, 208, 225, 0.1) 60%,
        transparent 100%);
    animation-delay: 0s;
}

[data-theme="light"] .shape-2 {
    width: 250px;
    height: 250px;
    top: 40%;
    right: 5%;
    background: radial-gradient(circle, 
        rgba(38, 198, 218, 0.25) 0%,
        rgba(77, 208, 225, 0.18) 35%,
        rgba(0, 188, 212, 0.08) 70%,
        transparent 100%);
    animation-delay: 2s;
}

[data-theme="light"] .shape-3 {
    width: 200px;
    height: 200px;
    bottom: 10%;
    left: 45%;
    background: radial-gradient(circle, 
        rgba(77, 208, 225, 0.3) 0%,
        rgba(0, 188, 212, 0.2) 40%,
        rgba(38, 198, 218, 0.1) 70%,
        transparent 100%);
    animation-delay: 4s;
}

/* Partículas flotantes MÁS VIBRANTES */
[data-theme="light"] .hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(3px 3px at 20px 30px, rgba(0, 188, 212, 0.6), transparent),
        radial-gradient(3px 3px at 40px 70px, rgba(38, 198, 218, 0.5), transparent),
        radial-gradient(2px 2px at 90px 40px, rgba(77, 208, 225, 0.7), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(0, 188, 212, 0.4), transparent),
        radial-gradient(1px 1px at 160px 30px, rgba(38, 198, 218, 0.8), transparent);
    background-repeat: repeat;
    background-size: 180px 120px;
    animation: sparkle 15s linear infinite;
    z-index: 1;
    opacity: 0.8;
}

@keyframes sparkle {
    0% { 
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.8;
    }
    50% {
        opacity: 1;
        transform: translateY(-50px) translateX(25px) rotate(180deg);
    }
    100% { 
        transform: translateY(-100px) translateX(50px) rotate(360deg);
        opacity: 0.6;
    }
}

/* Ondas de fondo adicionales */
[data-theme="light"] body[data-theme="light"] .hero {
    background-attachment: fixed;
}

[data-theme="light"] .hero-content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        var(--primary-color), 
        var(--secondary-color), 
        #4dd0e1, 
        var(--primary-color));
    border-radius: 32px;
    z-index: -1;
    opacity: 0.3;
    animation: borderGlow 4s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { 
        opacity: 0.3;
        filter: blur(0px);
    }
    50% { 
        opacity: 0.6;
        filter: blur(2px);
    }
}

/* Responsive mejorado */
@media (max-width: 768px) {
    [data-theme="light"] .hero-content {
        padding: 3rem 1.5rem;
        border-radius: 20px;
        background: rgba(240, 253, 255, 0.4);
    }
    
    [data-theme="light"] .hero-content h1 {
        font-size: 2.5rem;
    }
    
    [data-theme="light"] .shape-1 {
        width: 200px;
        height: 200px;
    }
    
    [data-theme="light"] .shape-2 {
        width: 150px;
        height: 150px;
    }
    
    [data-theme="light"] .shape-3 {
        width: 120px;
        height: 120px;
    }
}
/* ===== TEXTO BLANCO PARA EL PÁRRAFO DEL HERO EN TEMA CLARO ===== */

[data-theme="light"] .hero-content p {
    color: white !important;
    opacity: 0.95;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: rgba(0, 188, 212, 0.1);
    padding: 1rem 2rem;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    margin: 2rem auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
/* ===== FIX PARA EL TEXTO DEL BOTÓN EN HOVER - TEMA CLARO ===== */

[data-theme="light"] .hero .btn {
    background: linear-gradient(45deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 50%, 
        #4dd0e1 100%);
    box-shadow: 
        0 10px 30px rgba(0, 188, 212, 0.4),
        0 5px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
    color: white;
    z-index: 1;
}

[data-theme="light"] .hero .btn span,
[data-theme="light"] .hero .btn i {
    position: relative;
    z-index: 3;
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .hero .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;
    z-index: 2;
    pointer-events: none;
}

[data-theme="light"] .hero .btn:hover::before {
    left: 100%;
}

[data-theme="light"] .hero .btn:hover {
    background: linear-gradient(45deg, 
        var(--secondary-color) 0%, 
        #4dd0e1 50%, 
        #26c6da 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 15px 40px rgba(0, 188, 212, 0.5),
        0 8px 20px rgba(0, 0, 0, 0.15);
    color: white;
}

[data-theme="light"] .hero .btn:hover span,
[data-theme="light"] .hero .btn:hover i {
    color: white !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Asegurar que el texto sea visible en todos los estados */
[data-theme="light"] .hero .btn * {
    color: white !important;
    position: relative;
    z-index: 3;
}
/* ===== ACELERAR ANIMACIÓN DEL TÍTULO DEL HERO ===== */

[data-theme="light"] .hero-content h1 {
    background: linear-gradient(45deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 25%, 
        #4dd0e1 50%,
        var(--primary-color) 75%,
        #1a2e35 100%);
    background-size: 400% 400%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 1.2s ease-in-out infinite; /* Reducido de 3s a 1.2s (60% menos) */
    text-shadow: none;
    filter: brightness(1.2) contrast(1.1);
}

/* También acelerar la animación de aparición inicial */
[data-theme="light"] .hero-content {
    position: relative;
    z-index: 2;
    background: rgba(240, 253, 255, 0.3);
    backdrop-filter: blur(15px);
    border-radius: 30px;
    padding: 4rem 2rem;
    border: 1px solid rgba(0, 188, 212, 0.4);
    box-shadow: 
        0 25px 70px rgba(0, 188, 212, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 0 0 1px rgba(0, 188, 212, 0.1);
    animation: heroFadeIn 0.6s ease-out; /* Reducido de 1.5s a 0.6s (60% menos) */
}

/* Acelerar el gradientShift */
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 50% 0%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 100%; }
}

/* Acelerar heroFadeIn */
@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px); /* Reducido de 50px a 30px para más rapidez */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* También acelerar el borderGlow para consistencia */
[data-theme="light"] .hero-content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        var(--primary-color), 
        var(--secondary-color), 
        #4dd0e1, 
        var(--primary-color));
    border-radius: 32px;
    z-index: -1;
    opacity: 0.3;
    animation: borderGlow 1.6s ease-in-out infinite; /* Reducido de 4s a 1.6s (60% menos) */
}

@keyframes borderGlow {
    0%, 100% { 
        opacity: 0.3;
        filter: blur(0px);
    }
    50% { 
        opacity: 0.6;
        filter: blur(2px);
    }
}
/* ===== FIX CORREGIDO PARA ICONOS EN TEMA CLARO ===== */

/* Los iconos de filosofía (.card-icon) SÍ deben mantener su background gradient */
[data-theme="light"] .about-intro-card .card-icon {
    /* RESTAURAR el background gradient para iconos de filosofía */
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)) !important;
    background-image: linear-gradient(45deg, var(--primary-color), var(--secondary-color)) !important;
    /* RESTAURAR el box-shadow para iconos de filosofía */
    box-shadow: 0 4px 15px var(--shadow-medium) !important;
    /* Asegurar que sean visibles */
    color: white !important;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

/* Efectos hover para iconos de filosofía */
[data-theme="light"] .about-intro-card:hover .card-icon {
    background: linear-gradient(45deg, var(--secondary-color), #4dd0e1) !important;
    box-shadow: 0 8px 25px var(--shadow-strong) !important;
    transform: scale(1.1) !important;
    color: white !important;
}

/* Asegurar que los iconos dentro mantengan color blanco */
[data-theme="light"] .about-intro-card .card-icon i {
    color: white !important;
    background: none !important;
}

/* SOLO aplicar transparencia a iconos de SERVICIOS (no de filosofía) */
[data-theme="light"] .service-card .icon,
[data-theme="light"] .service-header .icon,
[data-theme="light"] .services-grid .icon {
    /* Eliminar solo el gradient background que causa el verde EN SERVICIOS */
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

/* Corregir hover de servicios sin afectar filosofía */
[data-theme="light"] .service-card:hover .icon {
    color: var(--secondary-color) !important;
    text-shadow: 0 0 20px var(--secondary-color) !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Iconos internos de servicios */
[data-theme="light"] .service-card .icon i,
[data-theme="light"] .service-header .icon i {
    background: none !important;
    color: inherit !important;
}
/* ===== FIX SEGURO PARA ESTADÍSTICAS EN TEMA CLARO - SIN CONFLICTOS ===== */

/* SOLO afectar la página acerca.html y sección específica de logros */
[data-theme="light"] #achievements .stat-card {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid rgba(0, 188, 212, 0.2) !important;
    box-shadow: 0 8px 32px rgba(0, 188, 212, 0.1) !important;
}

/* Iconos de estadísticas - SOLO en la sección achievements */
[data-theme="light"] #achievements .stat-icon {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)) !important;
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.15) !important;
    color: white !important;
}

/* Números - SOLO en achievements */
[data-theme="light"] #achievements .stat-number {
    color: var(--primary-color) !important;
    font-weight: 900 !important;
    opacity: 1 !important;
    /* NO tocar text-shadow para no interferir con animaciones originales */
}

/* Etiquetas/títulos - SOLO en achievements */
[data-theme="light"] #achievements .stat-label {
    color: #1a2e35 !important;
    font-weight: 700 !important;
    opacity: 1 !important;
    /* NO tocar text-shadow para mantener compatibilidad */
}

/* Descripciones - SOLO en achievements */
[data-theme="light"] #achievements .stat-description {
    color: var(--text-color) !important;
    opacity: 0.8 !important;
    font-weight: 500 !important;
}

/* Hover effects - SOLO para stat-cards en achievements */
[data-theme="light"] #achievements .stat-card:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 12px 40px rgba(0, 188, 212, 0.2) !important;
    /* NO tocar transform para no interferir con animaciones originales */
}

[data-theme="light"] #achievements .stat-card:hover .stat-icon {
    background: linear-gradient(45deg, var(--secondary-color), #4dd0e1) !important;
    box-shadow: 0 10px 30px rgba(0, 188, 212, 0.25) !important;
    /* NO forzar transform - dejar que use el original */
}

[data-theme="light"] #achievements .stat-card:hover .stat-number {
    color: var(--secondary-color) !important;
    /* Agregar text-shadow SOLO en hover para no interferir */
    text-shadow: 0 0 15px var(--secondary-color) !important;
}

[data-theme="light"] #achievements .stat-card:hover .stat-label {
    color: var(--primary-color) !important;
}

/* ===== CERTIFICACIONES - SOLO en achievements ===== */

[data-theme="light"] #achievements .certification-item {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid rgba(0, 188, 212, 0.2) !important;
    box-shadow: 0 6px 25px rgba(0, 188, 212, 0.1) !important;
}

[data-theme="light"] #achievements .certification-item h4 {
    color: #1a2e35 !important;
    font-weight: 700 !important;
}

[data-theme="light"] #achievements .certification-item p {
    color: var(--text-color) !important;
    opacity: 0.8 !important;
}

[data-theme="light"] #achievements .cert-icon {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)) !important;
    color: white !important;
}

/* ===== TESTIMONIOS - SOLO en achievements ===== */

[data-theme="light"] #achievements .testimonial-content {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid rgba(0, 188, 212, 0.2) !important;
    box-shadow: 0 6px 25px rgba(0, 188, 212, 0.1) !important;
}

[data-theme="light"] #achievements .testimonial-content p {
    color: var(--text-color) !important;
    opacity: 0.9 !important;
}

[data-theme="light"] #achievements .author-info h4 {
    color: #1a2e35 !important;
    font-weight: 700 !important;
}

[data-theme="light"] #achievements .author-info span {
    color: var(--text-color) !important;
    opacity: 0.7 !important;
}

[data-theme="light"] #achievements .quote-icon {
    color: var(--primary-color) !important;
}

/* ===== FONDO DE SECCIÓN - MUY ESPECÍFICO ===== */

[data-theme="light"] #achievements {
    background: rgba(240, 253, 255, 0.8) !important;
    border: 1px solid rgba(0, 188, 212, 0.1) !important;
    box-shadow: 0 8px 32px rgba(0, 188, 212, 0.08) !important;
}

/* Títulos SOLO dentro de achievements */
[data-theme="light"] #achievements h2,
[data-theme="light"] #achievements h3 {
    color: #1a2e35 !important;
    /* NO tocar text-shadow para no interferir con estilos globales */
}

/* Párrafos SOLO dentro de achievements */
[data-theme="light"] #achievements > .container > p {
    color: var(--text-color) !important;
    opacity: 0.9 !important;
}

/* ===== ESTILOS MEJORADOS Y ANIMADOS PARA LA SECCIÓN DE CONTACTO ===== */

@keyframes slideInFromLeft {
    from { opacity: 0; transform: translateX(-50px) perspective(1000px) rotateY(20deg); }
    to { opacity: 1; transform: translateX(0) perspective(1000px) rotateY(0); }
}

@keyframes slideInFromRight {
    from { opacity: 0; transform: translateX(50px) perspective(1000px) rotateY(-20deg); }
    to { opacity: 1; transform: translateX(0) perspective(1000px) rotateY(0); }
}

@keyframes futuristicGlow {
    0%, 100% { 
        box-shadow: 0 0 25px rgba(0, 170, 255, 0.2), 0 0 40px rgba(0, 255, 255, 0.1), inset 0 0 10px rgba(0, 255, 255, 0.1);
        border-color: var(--primary-color); 
    }
    50% { 
        box-shadow: 0 0 40px rgba(0, 170, 255, 0.4), 0 0 60px rgba(0, 255, 255, 0.3), inset 0 0 15px rgba(0, 255, 255, 0.2);
        border-color: var(--secondary-color); 
    }
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: -3rem auto 4rem;
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.8;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

/* Columna de tarjetas de información con animaciones 3D */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: slideInFromLeft 0.8s ease-out 0.3s backwards;
}

.contact-card {
    background: var(--card-bg-color);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid transparent;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(0, 255, 255, 0.15), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-card:hover {
    transform: translateY(-10px) scale(1.02) perspective(1000px) rotateY(-5deg);
    border-color: var(--secondary-color);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.2);
}

.card-icon-wrapper {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 170, 255, 0.3);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.contact-card:hover .card-icon-wrapper {
    transform: scale(1.1) rotateY(180deg);
}

.contact-card h4 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    color: white;
}

.contact-card p {
    margin-bottom: 1rem;
    opacity: 0.8;
}

.contact-card a {
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-card a:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 8px var(--secondary-color);
}

/* Formulario de contacto con brillo y animaciones de campo */
.contact-form-container {
    background: var(--card-bg-color);
    padding: 3rem;
    border-radius: 20px;
    border: 2px solid var(--primary-color);
    animation: slideInFromRight 0.8s ease-out 0.3s backwards, futuristicGlow 5s ease-in-out infinite;
}

.form-group-modern {
    margin-bottom: 1.75rem;
    position: relative;
}

.form-group-modern label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
    transition: all 0.3s ease;
    transform-origin: left;
}

.input-wrapper-modern {
    position: relative;
}

.input-wrapper-modern::after { /* Línea animada inferior */
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.input-wrapper-modern:focus-within::after {
    transform: scaleX(1);
}

.input-wrapper-modern i {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.form-group-modern input,
.form-group-modern textarea {
    width: 100%;
    padding: 15px 20px 15px 55px; /* Espacio para el icono */
    background: rgba(10, 10, 26, 0.8);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-group-modern textarea {
    padding-top: 20px;
    resize: vertical;
    min-height: 120px;
}

/* Estilos de foco mejorados */
.form-group-modern input:focus,
.form-group-modern textarea:focus {
    outline: none;
    background: rgba(15, 15, 35, 0.8);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.input-wrapper-modern:focus-within i {
    color: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
    text-shadow: 0 0 10px var(--secondary-color);
}

.form-group-modern input:focus ~ label,
.form-group-modern textarea:focus ~ label {
    color: var(--secondary-color);
    transform: scale(0.9) translateY(-10px);
    text-shadow: 0 0 5px var(--secondary-color);
}

/* Botón de envío con efecto de barrido luminoso */
.submit-btn-modern {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.submit-btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: skewX(-25deg);
    transition: left 0.8s ease-in-out;
}

.submit-btn-modern:hover::before {
    left: 125%;
}

.submit-btn-modern .btn-text {
    transition: all 0.3s ease;
}

.submit-btn-modern i {
    transition: transform 0.3s ease;
}

.submit-btn-modern:hover i {
    transform: translateX(5px) rotate(10deg) scale(1.1);
}

/* Mensajes de validación y notificación */
.form-error-message {
    color: #ff556e;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-shadow: 0 0 5px rgba(255,85,110,0.5);
}

.form-group-modern.invalid .form-error-message {
    display: block;
    opacity: 1;
}

.form-group-modern.invalid input,
.form-group-modern.invalid textarea {
    border-color: #ff556e;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.form-notification-modern {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateY(10px);
}

.form-notification-modern.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.form-notification-modern.success {
    background: rgba(37, 211, 102, 0.2);
    border: 1px solid #25D366;
    color: #25D366;
    text-shadow: 0 0 8px rgba(37, 211, 102, 0.5);
}

.form-notification-modern.error {
    background: rgba(255, 85, 110, 0.2);
    border: 1px solid #ff556e;
    color: #ff556e;
    text-shadow: 0 0 8px rgba(255, 85, 110, 0.5);
}


/* ===== TEMA CLARO PARA CONTACTO MEJORADO ===== */
[data-theme="light"] .section-subtitle {
    color: var(--text-color);
}

[data-theme="light"] .contact-card {
    background: var(--overlay-light);
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 20px var(--shadow-light);
}

[data-theme="light"] .contact-card h4 {
    color: #1a2e35;
}

[data-theme="light"] .contact-form-container {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--border-medium);
    box-shadow: 0 10px 40px var(--shadow-medium);
    animation: slideInFromRight 0.8s ease-out 0.3s backwards; /* Se quita la animación de brillo */
}

[data-theme="light"] .form-group-modern label {
    color: var(--text-color);
}

[data-theme="light"] .input-wrapper-modern i {
    color: var(--primary-color);
}

[data-theme="light"] .form-group-modern input,
[data-theme="light"] .form-group-modern textarea {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--border-medium);
    color: var(--text-color);
}

[data-theme="light"] .form-group-modern input:focus,
[data-theme="light"] .form-group-modern textarea:focus {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--glow-color);
}

[data-theme="light"] .input-wrapper-modern:focus-within i {
    color: var(--secondary-color);
}

/* ===== RESPONSIVE PARA CONTACTO MEJORADO ===== */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section-subtitle {
        margin-bottom: 3rem;
        font-size: 1rem;
    }
    .contact-form-container {
        padding: 2rem;
    }
}
/* ===== CSS FINAL - BOTÓN DE TEMA SOLO EN EL MENÚ (DESKTOP Y MÓVIL) ===== */

/* OCULTAR COMPLETAMENTE el botón del cuerpo en TODAS las pantallas */
#themeToggle {
    display: none !important;
}

/* DESKTOP - Mostrar nav-controls con el botón */
@media (min-width: 769px) {
    /* Mostrar nav-controls también en desktop */
    .nav-controls {
        display: flex !important;
        align-items: center;
        gap: 20px;
        position: relative;
        z-index: 1002;
    }
    
    /* Ocultar el hamburguesa en desktop */
    .nav-toggle {
        display: none !important;
    }
    
    /* Estilizar el botón para desktop */
    #themeToggleMobile.theme-toggle {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        transform: none !important;
        width: 50px !important;
        height: 26px !important;
        background: var(--card-bg-color) !important;
        border: 2px solid var(--primary-color) !important;
        border-radius: 25px !important;
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 1002;
        display: flex !important;
        align-items: center;
        padding: 2px !important;
        box-shadow: 0 4px 15px rgba(0, 170, 255, 0.3) !important;
        margin: 0 !important;
    }
    
    #themeToggleMobile.theme-toggle:hover {
        box-shadow: 0 6px 20px rgba(0, 170, 255, 0.5) !important;
        transform: scale(1.05) !important;
    }
    
    /* Slider del botón para desktop */
    #themeToggleMobile .theme-toggle-slider {
        width: 20px !important;
        height: 20px !important;
        background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)) !important;
        border-radius: 50% !important;
        transition: all 0.3s ease !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0.7rem !important;
        color: white !important;
        position: relative !important;
        transform: translateX(0) !important;
    }
    
    /* Tema claro para desktop */
    [data-theme="light"] #themeToggleMobile .theme-toggle-slider {
        transform: translateX(22px) !important;
    }
    
    [data-theme="light"] #themeToggleMobile.theme-toggle {
        background: white !important;
        border: 2px solid var(--primary-color) !important;
        box-shadow: 0 4px 15px var(--shadow-medium) !important;
    }
    
    [data-theme="light"] #themeToggleMobile.theme-toggle:hover {
        box-shadow: 0 6px 20px var(--shadow-strong) !important;
    }
}

/* MÓVIL - Mantener la funcionalidad actual */
@media (max-width: 768px) {
    /* Mostrar nav-controls con ambos botones */
    .nav-controls {
        display: flex !important;
        align-items: center;
        gap: 15px;
        position: relative;
        z-index: 1002;
    }
    
    /* Estilizar el botón móvil */
    #themeToggleMobile.theme-toggle {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        transform: none !important;
        width: 45px !important;
        height: 24px !important;
        background: var(--card-bg-color) !important;
        border: 2px solid var(--primary-color) !important;
        border-radius: 20px !important;
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 1002;
        display: flex !important;
        align-items: center;
        padding: 2px !important;
        box-shadow: 0 4px 15px rgba(0, 170, 255, 0.3) !important;
        margin: 0 !important;
        order: 1; /* Aparecer antes del hamburguesa */
    }
    
    #themeToggleMobile.theme-toggle:hover {
        box-shadow: 0 6px 20px rgba(0, 170, 255, 0.5) !important;
        transform: scale(1.05) !important;
    }
    
    /* Slider del botón móvil */
    #themeToggleMobile .theme-toggle-slider {
        width: 18px !important;
        height: 18px !important;
        background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)) !important;
        border-radius: 50% !important;
        transition: all 0.3s ease !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0.6rem !important;
        color: white !important;
        position: relative !important;
        transform: translateX(0) !important;
    }
    
    /* Tema claro para móvil */
    [data-theme="light"] #themeToggleMobile .theme-toggle-slider {
        transform: translateX(19px) !important;
    }
    
    [data-theme="light"] #themeToggleMobile.theme-toggle {
        background: white !important;
        border: 2px solid var(--primary-color) !important;
        box-shadow: 0 4px 15px var(--shadow-medium) !important;
    }
    
    [data-theme="light"] #themeToggleMobile.theme-toggle:hover {
        box-shadow: 0 6px 20px var(--shadow-strong) !important;
    }
    
    /* Hamburguesa después del botón de tema */
    .nav-toggle {
        order: 2;
        display: block !important;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1002;
        padding: 10px;
        border-radius: 5px;
        transition: all 0.3s ease;
        position: relative;
    }
    
    .nav-toggle:hover {
        background: rgba(0, 170, 255, 0.1);
        box-shadow: 0 0 10px var(--glow-color);
    }
    
    /* MENÚ MÓVIL - Corregir posición para que se oculte completamente */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100% !important; /* Ocultar completamente a la derecha */
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: linear-gradient(135deg, var(--card-bg-color), var(--background-color));
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
        gap: 1rem;
        border-left: 2px solid var(--primary-color);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        padding: 2rem;
        transform: translateX(0) !important;
        overflow: hidden;
        z-index: 1001;
    }
    
    /* MOSTRAR el menú cuando esté activo */
    .nav-links.active {
        right: 0 !important; /* Mostrar completamente */
        transform: translateX(0) !important;
    }
    
    /* Tema claro para menú móvil */
    [data-theme="light"] .nav-links {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 253, 255, 0.95)) !important;
        border-left: 2px solid var(--primary-color) !important;
        box-shadow: -10px 0 30px var(--shadow-medium) !important;
    }
}
/* ===== FIX PARA OCULTAR MENÚ MÓVIL COMPLETAMENTE Y AJUSTAR BOTONES ===== */

/* MÓVIL - Corregir menú para que se oculte completamente */
@media (max-width: 768px) {
    
    /* MENÚ MÓVIL - Posición y ocultación corregida */
    .nav-links {
        position: fixed;
        top: 0;
        right: -120% !important; /* Ocultar MÁS ALLÁ del borde derecho */
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: linear-gradient(135deg, var(--card-bg-color), var(--background-color));
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        /* TRANSICIÓN MÁS RÁPIDA Y SUAVE */
        transition: right 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
        gap: 1rem;
        border-left: 2px solid var(--primary-color);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        padding: 2rem;
        /* ASEGURAR que no se vea NADA del menú cuando está oculto */
        transform: translateX(0) !important;
        overflow: hidden;
        z-index: 1001;
        /* IMPORTANTE: evitar que se vea al deslizar */
        visibility: hidden;
        opacity: 0;
    }
    
    /* MOSTRAR el menú cuando esté activo */
    .nav-links.active {
        right: 0 !important;
        transform: translateX(0) !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* TEMA CLARO para menú móvil */
    [data-theme="light"] .nav-links {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 253, 255, 0.95)) !important;
        border-left: 2px solid var(--primary-color) !important;
        box-shadow: -10px 0 30px var(--shadow-medium) !important;
    }
    
    /* OVERLAY para cerrar menú (opcional, para mejorar UX) */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        pointer-events: none;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }
    
    /* BOTONES FLOTANTES - Ajustar posición para que sean visibles */
    .back-to-top {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.2rem !important;
        bottom: 20px !important;
        right: 20px !important;
        z-index: 998 !important; /* Por debajo del menú pero visible */
    }
    
    .whatsapp-float {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.4rem !important;
        bottom: 80px !important; /* Más separado del botón de subir */
        right: 20px !important;
        z-index: 998 !important; /* Por debajo del menú pero visible */
    }
    
    /* AJUSTAR cuando el menú esté activo para que los botones sigan siendo accesibles */
    .nav-links.active ~ .back-to-top,
    .nav-links.active ~ .whatsapp-float {
        /* Los botones siguen siendo visibles y funcionales */
        pointer-events: all;
        z-index: 998; /* Por debajo del menú pero por encima del contenido */
    }
    
    /* ESTILOS DEL MENÚ - Mejorar apariencia */
    .nav-links li {
        margin: 0;
        width: 100%;
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.3s ease;
    }
    
    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }
    
    /* ANIMACIÓN ESCALONADA para los elementos del menú */
    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.4s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.5s; }
    
    .nav-links a {
        font-size: 1.1rem;
        padding: 12px 20px;
        border-radius: 8px;
        width: 100%;
        text-align: center;
        display: block;
        background: rgba(0, 170, 255, 0.05);
        border: 1px solid rgba(0, 170, 255, 0.2);
        margin-bottom: 0.5rem;
        transition: all 0.3s ease;
    }
    
    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(0, 170, 255, 0.2);
        border-color: var(--secondary-color);
        transform: scale(1.02);
    }
}

/* DESKTOP - Asegurar que los botones flotantes estén en su posición normal */
@media (min-width: 769px) {
    .back-to-top {
        bottom: 20px !important;
        right: 20px !important;
        width: 60px !important;
        height: 60px !important;
        z-index: 999 !important;
    }
    
    .whatsapp-float {
        bottom: 90px !important;
        right: 20px !important;
        width: 60px !important;
        height: 60px !important;
        z-index: 999 !important;
    }
}