/* ============================================
   Variables y Reset
   ============================================ */
:root {
    /* Paleta elegante crema y dorado */
    --fondo-suave: #F9F7F2;         /* Crema de fondo */
    --oro-principal: #D4AF37;       /* Dorado brillante (cintas) */
    --oro-oscuro: #A68948;          /* Para sombras o bordes metálicos */
    --texto-elegante: #333333;      /* Gris oscuro de la tipografía */
    --blanco-puro: #FFFFFF;         /* Tarjetas o secciones destacadas */
    
    /* Aliases para compatibilidad */
    --gold-bright: var(--oro-principal);
    --gold-medium: var(--oro-principal);
    --gold-dark: var(--oro-oscuro);
    --gold-light: #E8D5A3;
    --gold-glow: #E8D5A3;
    
    /* Fondos oscuros (hero, contacto) */
    --bg-dark: #1a1510;
    --bg-dark-secondary: #2d251c;
    --bg-dark-tertiary: #3d3328;
    
    /* Colores Base */
    --white: var(--blanco-puro);
    --light-gray: var(--fondo-suave);
    --gray: #5c5c5c;
    --dark-gray: var(--texto-elegante);
    --text-dark: var(--texto-elegante);
    
    /* Sombras suaves */
    --shadow: rgba(0, 0, 0, 0.05);
    --shadow-lg: rgba(0, 0, 0, 0.08);
    --shadow-gold: rgba(212, 175, 55, 0.25);
    
    /* Legacy */
    --primary-dark: var(--bg-dark);
    --primary-light: var(--oro-principal);
    --primary-medium: var(--oro-oscuro);
    --accent-gold: var(--oro-principal);
    --hover-beige: var(--oro-oscuro);
}

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

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    background-color: var(--fondo-suave);
    color: var(--texto-elegante);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
    width: 100%;
    box-sizing: border-box;
}

/* Contenedor principal - estética de tarjeta elegante (bordes suaves, sombra sutil) */
.contenedor-principal {
    background-color: var(--blanco-puro);
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 40px;
    max-width: 800px;
    margin: 50px auto;
    text-align: center;
    box-sizing: border-box;
}

/* Línea divisoria dorada */
hr {
    border: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--oro-principal), transparent);
    width: 50%;
    margin: 20px auto;
}

/* Botón de acción (acento dorado) */
.boton-accion,
.btn-primary {
    background-color: var(--oro-principal);
    color: var(--blanco-puro);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.boton-accion:hover,
.btn-primary:hover {
    background-color: var(--oro-oscuro);
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--dark-gray);
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 215, 0, 0.1);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 30px var(--shadow-lg);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
}

.logo {
    flex-shrink: 0;
    max-width: 150px;
}

.logo img {
    height: 50px;
    width: auto;
    max-width: 100%;
}

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

.nav-link {
    text-decoration: none;
    color: var(--gold-light);
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-bright), var(--gold-medium));
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--gold-bright);
}

.nav-link:hover {
    color: var(--gold-bright);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

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

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    flex-shrink: 0;
    margin-left: 15px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--accent-gold);
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* ============================================
   Language Selector
   ============================================ */
.language-selector {
    position: relative;
    margin-left: 20px;
    flex-shrink: 0;
    z-index: 1001;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(255, 215, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid var(--gold-light);
    border-radius: 25px;
    color: var(--gold-bright);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.2);
}

.lang-btn:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-glow) 100%);
    color: var(--gold-dark);
    border-color: var(--gold-bright);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--shadow-gold), 0 0 15px rgba(255, 215, 0, 0.4);
}

.lang-btn i:last-child {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow-lg);
    min-width: 180px;
    max-width: calc(100vw - 20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1002;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transform-origin: top right;
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown.active ~ .lang-btn i:last-child {
    transform: rotate(180deg);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--light-gray);
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: var(--hover-beige);
    color: var(--accent-gold);
}

.lang-option span {
    font-size: 20px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 80px;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-secondary) 50%, var(--bg-dark-tertiary) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(157, 78, 221, 0.08) 0%, transparent 70%);
    z-index: 1;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.hero .container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

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

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.15;
    background-color: var(--primary-dark);
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, transparent 0%, rgba(255, 215, 0, 0.05) 50%, transparent 100%),
        radial-gradient(ellipse at top, rgba(255, 193, 7, 0.1) 0%, transparent 60%);
    z-index: 2;
    animation: pulse 8s ease-in-out infinite;
}

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

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
    text-align: center;
    width: 100%;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold-medium) 50%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.3);
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-weight: 300;
    text-align: center;
    width: 100%;
}

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

.btn {
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-medium) 0%, var(--gold-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 20px var(--shadow-gold), 0 0 30px rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::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;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold-medium) 100%);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--shadow-gold), 0 0 40px rgba(255, 215, 0, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--white);
    border: 2px solid rgba(255, 215, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--gold-medium) 0%, var(--gold-dark) 100%);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-secondary:hover {
    background: rgba(255, 215, 0, 0.2);
    color: var(--gold-bright);
    border-color: var(--gold-bright);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.btn-secondary:hover::before {
    width: 100%;
}

.btn-block {
    width: 100%;
    text-align: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 24px;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 3;
}

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

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

/* ============================================
   Section Styles
   ============================================ */
section {
    padding: 80px 0;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--oro-principal);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--texto-elegante);
    font-weight: 400;
    opacity: 0.85;
}

/* ============================================
   About Section
   ============================================ */
.about {
    background: var(--blanco-puro);
    border-radius: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

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

.about-text h3 {
    font-size: 1.8rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold-medium) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.stat-label {
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 500;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px var(--shadow-lg);
}

.about-img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    object-position: center;
    border-radius: 20px;
    transition: transform 0.3s ease;
    background-color: var(--light-gray);
}

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

.image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--primary-dark) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 80px;
    box-shadow: 0 10px 40px var(--shadow-lg);
}

/* ============================================
   Services Section
   ============================================ */
.services {
    background: var(--fondo-suave);
}

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

.service-card {
    background: var(--blanco-puro);
    padding: 40px 30px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-top: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--oro-principal), transparent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(212, 175, 55, 0.15);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold-medium) 50%, var(--gold-dark) 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 30px;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px var(--shadow-gold), 0 0 20px rgba(255, 215, 0, 0.4);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: rotate(45deg);
    transition: all 0.6s;
}

.service-card:hover .service-icon {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 12px 35px var(--shadow-gold), 0 0 30px rgba(255, 215, 0, 0.6);
}

.service-card:hover .service-icon::before {
    top: -30%;
    left: -30%;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

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

.service-features li {
    color: var(--gray);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-features i {
    color: var(--hover-beige);
    font-size: 14px;
}

/* ============================================
   Clients Section
   ============================================ */
.clients {
    background: var(--blanco-puro);
    padding: 32px 0;
}

.clients .section-header {
    margin-bottom: 28px;
}

.clients-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.client-item {
    flex: 1 1 0;
    min-width: 0;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: var(--blanco-puro);
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.client-logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ============================================
   Technologies Section
   ============================================ */
.technologies {
    background: var(--white);
}

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

.tech-category {
    background: linear-gradient(135deg, var(--light-gray) 0%, rgba(255, 245, 230, 0.3) 100%);
    padding: 30px;
    border-radius: 20px;
    border-left: 4px solid transparent;
    background-image: linear-gradient(135deg, var(--light-gray) 0%, rgba(255, 245, 230, 0.3) 100%),
                      linear-gradient(90deg, var(--gold-bright), var(--gold-medium));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: all 0.4s ease;
}

.tech-category:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.tech-category h3 {
    color: var(--accent-gold);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-item {
    background: var(--white);
    padding: 10px 20px;
    border-radius: 25px;
    color: var(--gold-dark);
    font-weight: 500;
    font-size: 0.9rem;
    border: 2px solid var(--gold-light);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.tech-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: left 0.5s;
}

.tech-item:hover::before {
    left: 100%;
}

.tech-item:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-glow) 100%);
    color: var(--gold-dark);
    transform: translateY(-5px) scale(1.05);
    border-color: var(--gold-bright);
    box-shadow: 0 8px 25px var(--shadow-gold), 0 0 15px rgba(255, 215, 0, 0.4);
}

/* ============================================
   Portfolio Section
   ============================================ */
.portfolio {
    background: var(--light-gray);
}

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

.portfolio-item {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.portfolio-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(255, 215, 0, 0.3);
    border: 2px solid var(--gold-bright);
}

.portfolio-image {
    height: 250px;
    background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold-medium) 50%, var(--gold-dark) 100%);
    position: relative;
    overflow: hidden;
}

.portfolio-image picture,
.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    background-color: var(--primary-dark);
}

.portfolio-image img {
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}


.portfolio-content {
    padding: 25px;
}

.portfolio-content h3 {
    color: var(--accent-gold);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.portfolio-content p {
    color: var(--gray);
    margin-bottom: 15px;
    line-height: 1.6;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.portfolio-tags span {
    background: var(--hover-beige);
    color: var(--accent-gold);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ============================================
   Process Section
   ============================================ */
.process {
    background: var(--white);
}

.process-timeline {
    max-width: 900px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    align-items: flex-start;
    position: relative;
}

.process-step::before {
    content: '';
    position: absolute;
    left: 35px;
    top: 70px;
    width: 3px;
    height: calc(100% + 20px);
    background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold-medium) 50%, var(--gold-dark) 100%);
    opacity: 0.4;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.process-step:last-child::before {
    display: none;
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold-medium) 50%, var(--gold-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 25px var(--shadow-gold), 0 0 20px rgba(255, 215, 0, 0.4);
    transition: all 0.4s ease;
}

.process-step:hover .step-number {
    transform: scale(1.15) rotate(360deg);
    box-shadow: 0 12px 35px var(--shadow-gold), 0 0 30px rgba(255, 215, 0, 0.6);
}

.step-content {
    flex: 1;
    padding-top: 10px;
}

.step-content h3 {
    color: var(--accent-gold);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.step-content p {
    color: var(--gray);
    line-height: 1.7;
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials {
    background: var(--light-gray);
}

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

.testimonial-card {
    background: linear-gradient(135deg, var(--white) 0%, rgba(255, 245, 230, 0.5) 100%);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.6s;
}

.testimonial-card:hover::before {
    left: 100%;
}

.testimonial-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(255, 215, 0, 0.3), 0 0 30px rgba(0, 212, 255, 0.2);
    border: 2px solid var(--gold-bright);
    background: linear-gradient(135deg, rgba(255, 245, 230, 0.9) 0%, rgba(255, 224, 130, 0.3) 100%);
}

.testimonial-stars {
    color: #fbbf24;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.testimonial-text {
    color: var(--gray);
    font-style: italic;
    margin-bottom: 25px;
    line-height: 1.7;
}

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

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold-medium) 50%, var(--gold-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 5px 15px var(--shadow-gold);
    transition: all 0.4s ease;
}

.testimonial-card:hover .author-avatar {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 25px var(--shadow-gold), 0 0 20px rgba(255, 215, 0, 0.5);
}

.author-info h4 {
    color: var(--accent-gold);
    margin-bottom: 5px;
}

.author-info p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* ============================================
   Advantages Section
   ============================================ */
.advantages {
    background: var(--white);
}

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

.advantage-item {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.advantage-item:hover {
    background: var(--hover-beige);
    transform: translateY(-5px);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold-medium) 50%, var(--gold-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 35px;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px var(--shadow-gold), 0 0 25px rgba(255, 215, 0, 0.4);
    transition: all 0.4s ease;
    position: relative;
}

.advantage-icon::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--gold-bright), var(--accent-cyan));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
}

.advantage-item:hover .advantage-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 15px 40px var(--shadow-gold), 0 0 35px rgba(255, 215, 0, 0.6);
}

.advantage-item:hover .advantage-icon::after {
    opacity: 1;
}

.advantage-item h3 {
    color: var(--accent-gold);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.advantage-item p {
    color: var(--gray);
    line-height: 1.7;
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-secondary) 50%, var(--bg-dark-tertiary) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(0, 212, 255, 0.08) 0%, transparent 50%);
    z-index: 0;
}

.contact .section-title,
.contact .section-subtitle {
    color: var(--white);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-details h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.contact-details p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.contact-details p:last-child {
    margin-bottom: 0;
}

.whatsapp-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.whatsapp-link:hover {
    color: var(--gold-bright);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    transform: translateX(3px);
}

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

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-link {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-link:hover {
    background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold-medium) 100%);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px var(--shadow-gold), 0 0 20px rgba(255, 215, 0, 0.5);
    color: var(--white);
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px) saturate(180%);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 215, 0, 0.1);
    position: relative;
    z-index: 1;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-bright);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3), inset 0 0 10px rgba(255, 215, 0, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.form-group button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: var(--primary-dark);
    color: var(--white);
}

/* ============================================
   WhatsApp Float Buttons
   ============================================ */
.whatsapp-float-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.whatsapp-float {
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: visible;
}

.whatsapp-float i {
    font-size: 28px;
}

.whatsapp-label {
    font-size: 10px;
    font-weight: 700;
    margin-top: 2px;
    line-height: 1;
}

.whatsapp-float:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
    background: #20ba5a;
}

.whatsapp-float-es {
    background: linear-gradient(135deg, #25d366 0%, #20ba5a 100%);
}

.whatsapp-float-en {
    background: linear-gradient(135deg, #128c7e 0%, #0d6b5f 100%);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 60px 0 20px;
}

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

.footer-logo img {
    height: 50px;
    width: auto;
    margin-bottom: 15px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer-section h4 {
    margin-bottom: 20px;
    color: var(--white);
    font-size: 1.1rem;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--hover-beige);
}

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

.footer-bottom a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
}

.developer-link {
    color: var(--gold-light) !important;
    font-weight: 500;
}

.developer-link:hover {
    color: var(--gold-bright) !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 968px) {
    .nav-wrapper {
        padding: 10px 0;
        gap: 10px;
    }

    .logo {
        max-width: 120px;
    }

    .logo img {
        height: 40px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        max-width: 100vw;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px var(--shadow);
        padding: 30px 0;
        gap: 0;
        box-sizing: border-box;
        overflow-y: auto;
        max-height: calc(100vh - 70px);
    }

    .nav-menu.active {
        left: 0;
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

    .nav-menu li {
        margin: 15px 0;
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 10px 0;
    }

    .hamburger {
        display: flex;
        margin-left: 10px;
    }

    .language-selector {
        margin-left: 0;
        margin-right: 10px;
        order: -1;
        position: relative;
    }

    .lang-btn {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 50px;
        justify-content: center;
        gap: 6px;
    }

    .lang-btn span {
        display: inline-block;
        font-size: 12px;
        font-weight: 700;
    }

    .lang-btn i:first-child {
        font-size: 14px;
    }

    .lang-btn i:last-child {
        font-size: 10px;
    }

    .lang-dropdown {
        right: 0;
        left: auto;
        min-width: 160px;
        max-width: calc(100vw - 20px);
        width: auto;
        top: calc(100% + 8px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
        transform-origin: top right;
    }

    /* Asegurar que el dropdown no se salga en pantallas muy pequeñas */
    @media (max-width: 360px) {
        .lang-dropdown {
            right: -10px;
            max-width: calc(100vw - 10px);
        }
    }

    .lang-option {
        padding: 14px 18px;
        font-size: 14px;
    }

    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        width: 55px;
        height: 55px;
        font-size: 26px;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

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

    .process-step {
        flex-direction: column;
    }

    .process-step::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid,
    .portfolio-grid,
    .testimonials-grid,
    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .clients-grid {
        flex-wrap: wrap;
        gap: 16px;
    }

    .client-item {
        flex: 0 0 auto;
        min-width: 0;
        width: calc(50% - 8px);
        height: 110px;
        padding: 18px;
    }
}

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

    .nav-wrapper {
        padding: 8px 0;
    }

    .logo {
        max-width: 100px;
    }

    .logo img {
        height: 35px;
    }

    .lang-btn {
        padding: 7px 10px;
        font-size: 12px;
        min-width: 45px;
    }

    .lang-btn span {
        font-size: 11px;
    }

    .lang-btn i:first-child {
        font-size: 13px;
    }

    .lang-btn i:last-child {
        font-size: 9px;
    }

    .lang-dropdown {
        min-width: 150px;
        max-width: calc(100vw - 20px);
        right: 0;
        left: auto;
        top: calc(100% + 8px);
        transform-origin: top right;
    }

    .lang-option {
        padding: 12px 16px;
        font-size: 13px;
    }

    .lang-option span {
        font-size: 18px;
    }

    .hamburger {
        margin-left: 8px;
    }

    .hamburger span {
        width: 22px;
        height: 2px;
    }

    .hero {
        padding: 100px 15px 60px;
    }

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

    .section-title {
        font-size: 1.8rem;
    }

    .contact-form {
        padding: 25px;
    }

    .whatsapp-float-container {
        bottom: 10px;
        right: 10px;
        gap: 10px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .whatsapp-float i {
        font-size: 22px;
    }

    .whatsapp-label {
        font-size: 8px;
    }

    .clients {
        padding: 24px 0;
    }

    .clients .section-header {
        margin-bottom: 20px;
    }

    .clients-grid {
        flex-wrap: wrap;
        gap: 12px;
    }

    .client-item {
        flex: 0 0 auto;
        width: 100%;
        height: 90px;
        padding: 14px;
        border-radius: 16px;
    }
}

/* ============================================
   Animations
   ============================================ */
.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

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