/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #0f4c75;
    --primary-light: #3282b8;
    --accent: #f5a623;
    --accent-dark: #d4891a;
    --dark: #0b0c10;
    --dark-2: #1a1a2e;
    --light: #f8f9fa;
    --gray: #6c757d;
    --white: #ffffff;
    --gradient-2: linear-gradient(135deg, #f5a623 0%, #f7931e 100%);
    --gradient-hero: linear-gradient(135deg, #0b0c10 0%, #1a1a2e 30%, #0f4c75 70%, #3282b8 100%);
    --shadow: 0 10px 40px rgba(0,0,0,0.15);
    --shadow-lg: 0 25px 60px rgba(0,0,0,0.25);
    --radius: 16px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Montserrat', sans-serif; color: var(--dark); background: var(--white); overflow-x: hidden; line-height: 1.7; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }

/* Utilidades de texto */
.highlight {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.accent-text { color: var(--accent); }

/* ===== LOADER ===== */
.loader-wrapper {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--dark); display: flex; align-items: center; justify-content: center;
    z-index: 99999; transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader-wrapper.hidden { opacity: 0; visibility: hidden; }
.loader { text-align: center; }
.loader-logo {
    font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 900;
    background: var(--gradient-2); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; animation: pulse 1.5s ease-in-out infinite;
}
.loader-bar {
    width: 200px; height: 3px; background: rgba(255,255,255,0.1);
    border-radius: 10px; margin: 20px auto 0; overflow: hidden;
}
.loader-bar::after {
    content: ''; display: block; width: 40%; height: 100%;
    background: var(--gradient-2); border-radius: 10px;
    animation: loading 1.2s ease-in-out infinite;
}
@keyframes loading { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; padding: 20px 0;
    z-index: 1000; transition: var(--transition);
}
.navbar.scrolled {
    background: rgba(11, 12, 16, 0.95); backdrop-filter: blur(20px);
    padding: 12px 0; box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.nav-container {
    max-width: 1300px; margin: 0 auto; padding: 0 30px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
    font-family: 'Playfair Display', serif; font-size: 1.8rem;
    font-weight: 900; color: var(--white); text-decoration: none; letter-spacing: 2px;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; list-style: none; gap: 35px; align-items: center; }
.nav-links a {
    color: rgba(255,255,255,0.95); text-shadow: 0 1px 4px rgba(0,0,0,0.35);
    text-decoration: none; font-size: 0.85rem; font-weight: 500;
    letter-spacing: 1px; text-transform: uppercase; transition: var(--transition); position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -5px; left: 0;
    width: 0; height: 2px; background: var(--accent); transition: var(--transition);
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
    background: var(--gradient-2) !important; color: var(--dark) !important;
    padding: 10px 25px !important; border-radius: 50px !important; font-weight: 700 !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(245,166,35,0.4); }
.hamburger { display: none; flex-direction: column; cursor: pointer; gap: 6px; z-index: 1001; }
.hamburger span { width: 28px; height: 2px; background: var(--white); transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    background-image: linear-gradient(135deg, rgba(11,12,16,0.95) 0%, rgba(26,26,46,0.92) 30%, rgba(15,76,117,0.88) 70%, rgba(50,130,184,0.82) 100%), url('../images/Maquina-fondo.png');
    background-size: cover; background-position: center; background-repeat: no-repeat; background-blend-mode: overlay;
    position: relative; display: flex; align-items: center; overflow: hidden;
}
.hero::before { content: ''; position: absolute; inset: 0; background: rgba(11,12,16,0.55); pointer-events: none; }
.particles { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; }
.particle {
    position: absolute; width: 4px; height: 4px; background: rgba(245,166,35,0.3);
    border-radius: 50%; animation: float-particle linear infinite;
}
@keyframes float-particle {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; } 90% { opacity: 1; }
    100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
}
.hero-content {
    max-width: 1300px; margin: 0 auto; padding: 0 30px; position: relative; z-index: 2;
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; width: 100%;
}
.hero-text { animation: fadeInUp 1s ease 0.3s both; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(245,166,35,0.15); border: 1px solid rgba(245,166,35,0.3);
    padding: 8px 20px; border-radius: 50px; font-size: 0.8rem; font-weight: 600;
    color: var(--accent); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 25px;
}
.hero-badge i { animation: pulse 2s ease infinite; }
.hero h1 {
    font-family: 'Playfair Display', serif; font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900; color: var(--white); line-height: 1.1; margin-bottom: 25px;
}
.hero p { font-size: 1.1rem; color: rgba(255,255,255,0.7); max-width: 500px; margin-bottom: 40px; line-height: 1.8; }
.hero-buttons { display: flex; gap: 20px; flex-wrap: wrap; }
.btn {
    display: inline-flex; align-items: center; gap: 10px; padding: 16px 35px;
    border-radius: 50px; font-size: 0.9rem; font-weight: 700; text-decoration: none;
    letter-spacing: 0.5px; transition: var(--transition); cursor: pointer; border: none; text-transform: uppercase;
}
.btn-primary { background: var(--gradient-2); color: var(--dark); box-shadow: 0 8px 30px rgba(245,166,35,0.3); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(245,166,35,0.5); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.3); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }
.hero-visual { display: flex; justify-content: center; align-items: center; animation: fadeInUp 1s ease 0.6s both; }
.hero-card {
    background: rgba(255,255,255,0.05); backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 24px;
    padding: 40px; text-align: center; position: relative; overflow: hidden;
}
.hero-card::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: conic-gradient(transparent, rgba(245,166,35,0.1), transparent 30%);
    animation: rotate 4s linear infinite;
}
@keyframes rotate { 100% { transform: rotate(360deg); } }
.hero-card-content { position: relative; z-index: 1; }
.hero-card .machine-icon { font-size: 5rem; margin-bottom: 20px; display: block; }
.hero-card h3 { color: var(--white); font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; }
.hero-card p { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin-bottom: 0; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.stat-item { text-align: center; }
.stat-number { font-size: 2rem; font-weight: 900; color: var(--accent); display: block; }
.stat-label { font-size: 0.7rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px; }
.scroll-indicator {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    z-index: 2; animation: bounce 2s ease infinite;
}
.scroll-indicator a { color: rgba(255,255,255,0.4); font-size: 1.5rem; }
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-15px); }
    60% { transform: translateX(-50%) translateY(-7px); }
}

/* ===== SECCIONES GENERALES ===== */
section { padding: 100px 0; }
.container { max-width: 1300px; margin: 0 auto; padding: 0 30px; }
.section-header { text-align: center; margin-bottom: 70px; }
.section-tag {
    display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem;
    font-weight: 700; color: var(--accent); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 15px;
}
.section-tag::before, .section-tag::after { content: ''; width: 30px; height: 2px; background: var(--accent); }
.section-header h2 {
    font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900; color: var(--dark); margin-bottom: 15px;
}
.section-header h2 .highlight {
    background: var(--gradient-2); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
}
.section-header p { font-size: 1.05rem; color: var(--gray); max-width: 600px; margin: 0 auto; }

/* ===== ABOUT ===== */
.about { background: var(--light); position: relative; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-image { position: relative; }
.about-image-main {
    width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
    background-image: linear-gradient(135deg, rgba(26,26,46,0.92), rgba(15,76,117,0.75)), url('../images/operando.png');
    background-size: cover; background-position: center; background-repeat: no-repeat;
    display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative;
}
.about-image-main .paint-visual { font-size: 8rem; opacity: 0.2; position: absolute; }
.about-image-main .tech-label { position: relative; z-index: 2; text-align: center; color: white; }
.about-image-main .tech-label i { font-size: 4rem; color: var(--accent); margin-bottom: 15px; display: block; }
.about-image-main .tech-label h3 { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 900; }
.about-image-main .tech-label p { font-size: 0.9rem; opacity: 0.7; }
.about-float-card {
    position: absolute; bottom: -30px; right: -30px; background: var(--white);
    padding: 25px 30px; border-radius: var(--radius); box-shadow: var(--shadow);
    display: flex; align-items: center; gap: 15px;
}
.about-float-card .icon-circle {
    width: 55px; height: 55px; background: var(--gradient-2); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--dark);
}
.about-float-card h4 { font-size: 1.4rem; font-weight: 800; color: var(--dark); }
.about-float-card p { font-size: 0.8rem; color: var(--gray); }
.about-content h3 { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 900; margin-bottom: 20px; }
.about-content > p { color: var(--gray); margin-bottom: 30px; font-size: 1rem; }
.tech-features { display: flex; flex-direction: column; gap: 20px; }
.tech-feature { display: flex; gap: 15px; align-items: flex-start; }
.tech-feature .feature-icon {
    width: 45px; height: 45px; min-width: 45px; background: rgba(245,166,35,0.1);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    color: var(--accent); font-size: 1.1rem;
}
.tech-feature h4 { font-size: 1rem; font-weight: 700; margin-bottom: 3px; }
.tech-feature p { font-size: 0.85rem; color: var(--gray); }

/* ===== SERVICES ===== */
.services { background: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card {
    background: var(--white); border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius); padding: 45px 35px; text-align: center;
    transition: var(--transition); position: relative; overflow: hidden;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: var(--gradient-2); transform: scaleX(0); transition: var(--transition);
}
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    width: 80px; height: 80px; margin: 0 auto 25px;
    background: linear-gradient(135deg, rgba(245,166,35,0.1), rgba(15,76,117,0.1));
    border-radius: 20px; display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: var(--primary); transition: var(--transition);
}
.service-card:hover .service-icon {
    background: var(--gradient-2); color: var(--dark); transform: scale(1.1) rotate(5deg);
}
.service-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.service-card p { font-size: 0.9rem; color: var(--gray); line-height: 1.7; }

/* ===== PORTFOLIO ===== */
.portfolio { background: var(--dark); position: relative; }
.portfolio .section-header h2 { color: var(--white); }
.portfolio .section-header p { color: rgba(255,255,255,0.5); }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.portfolio-item {
    position: relative; border-radius: var(--radius); overflow: hidden;
    aspect-ratio: 4/3; cursor: pointer;
}
.portfolio-item .portfolio-bg {
    width: 100%; height: 100%; transition: var(--transition);
    display: flex; align-items: center; justify-content: center; position: relative;
    background-size: cover; background-position: center;
}
.portfolio-item:nth-child(1) .portfolio-bg { background-image: linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.25)), url('../images/planta-industrial.png'); }
.portfolio-item:nth-child(2) .portfolio-bg { background-image: linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.25)), url('../images/casa-quinta-pilar.png'); }
.portfolio-item:nth-child(3) .portfolio-bg { background-image: linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.25)), url('../images/local-comercial.png'); }
.portfolio-item:nth-child(4) .portfolio-bg { background-image: linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.25)), url('../images/oficinas-centro.png'); }
.portfolio-item:nth-child(5) .portfolio-bg { background-image: linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.25)), url('../images/galpon-logistico.png'); }
.portfolio-item:nth-child(6) .portfolio-bg { background-image: linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.25)), url('../images/edificio-15-pisos.png'); }
.portfolio-item .portfolio-badge {
    position: absolute; top: 20px; left: 20px; z-index: 3; max-width: 65%;
    color: #ffffff; font-family: 'Montserrat', sans-serif; font-size: 0.82rem;
    line-height: 1.4; text-transform: uppercase; text-shadow: 0 2px 14px rgba(0,0,0,0.6);
    letter-spacing: 0.06em;
}
.portfolio-item .portfolio-badge br { content: ''; margin-bottom: 0.35rem; }
.portfolio-item .portfolio-badge strong { display: block; font-weight: 800; margin-bottom: 0.35rem; }
.portfolio-item.portfolio-card-1 .portfolio-badge { text-shadow: 0 2px 20px rgba(0,0,0,0.65); }
.portfolio-bg .portfolio-icon { display: none; }
.portfolio-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 30px;
    transition: var(--transition);
}
.portfolio-item:hover .portfolio-bg { transform: scale(1.1); }
.portfolio-overlay .tag {
    display: inline-block; background: var(--accent); color: var(--dark);
    padding: 4px 14px; border-radius: 50px; font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; width: fit-content;
}
.portfolio-overlay h3 { color: var(--white); font-size: 1.2rem; font-weight: 700; margin-bottom: 5px; }
.portfolio-overlay p { color: rgba(255,255,255,0.6); font-size: 0.85rem; }

/* ===== VIDEO SECTION ===== */
.video-section {
    background: var(--dark-2); position: relative; overflow: hidden;
}
.video-section::before {
    content: ''; position: absolute; top: -50%; right: -20%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(245,166,35,0.08) 0%, transparent 70%);
    border-radius: 50%;
}
.video-section .section-header h2 { color: var(--white); }
.video-section .section-header p { color: rgba(255,255,255,0.5); }
.video-wrapper {
    max-width: 900px; margin: 0 auto; position: relative;
    border-radius: 20px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    border: 2px solid rgba(245,166,35,0.2);
}
.video-wrapper .video-frame {
    position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden;
}
.video-wrapper .video-frame iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}
.video-wrapper .video-fallback {
    margin-top: 20px; padding: 20px; background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08); border-radius: 16px;
    text-align: center; color: rgba(255,255,255,0.85);
}
.video-wrapper .video-fallback p { margin-bottom: 12px; color: rgba(255,255,255,0.7); font-size: 0.95rem; }
.video-wrapper .video-fallback a {
    display: inline-block; padding: 12px 24px; border-radius: 999px;
    background: var(--accent); color: var(--dark); font-weight: 700;
    text-decoration: none; transition: var(--transition);
}
.video-wrapper .video-fallback a:hover { background: #d4891a; }
.video-wrapper .video-placeholder {
    position: relative; width: 100%; aspect-ratio: 16/9;
    background: linear-gradient(135deg, #0f4c75 0%, #1a1a2e 50%, #0b0c10 100%);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; overflow: hidden;
}
.video-placeholder::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M20 20l10-10v20z'/%3E%3C/g%3E%3C/svg%3E");
}
.video-placeholder .machine-bg {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-size: 10rem; opacity: 0.08;
}
.video-placeholder .play-button {
    position: relative; z-index: 2; width: 100px; height: 100px;
    background: var(--gradient-2); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; color: var(--dark); transition: var(--transition);
    box-shadow: 0 10px 40px rgba(245,166,35,0.4); animation: playPulse 2s ease infinite;
}
.video-placeholder:hover .play-button {
    transform: scale(1.15); box-shadow: 0 15px 50px rgba(245,166,35,0.6);
}
@keyframes playPulse {
    0% { box-shadow: 0 0 0 0 rgba(245,166,35,0.5); }
    70% { box-shadow: 0 0 0 25px rgba(245,166,35,0); }
    100% { box-shadow: 0 0 0 0 rgba(245,166,35,0); }
}
.video-placeholder .play-label {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    z-index: 2; color: rgba(255,255,255,0.6); font-size: 0.85rem;
    font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
}
.video-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }
.video-info-card {
    text-align: center; padding: 30px; background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius);
    transition: var(--transition);
}
.video-info-card:hover {
    background: rgba(255,255,255,0.06); border-color: rgba(245,166,35,0.2);
    transform: translateY(-5px);
}
.video-info-card .info-icon { font-size: 2rem; margin-bottom: 15px; display: block; color: var(--accent); }
.video-info-card h4 { color: var(--white); font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.video-info-card p { color: rgba(255,255,255,0.5); font-size: 0.85rem; }

/* ===== PROCESS ===== */
.process { background: var(--light); }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; position: relative; }
.process-steps::before {
    content: ''; position: absolute; top: 55px; left: 15%; width: 70%; height: 3px;
    background: linear-gradient(to right, var(--accent), var(--primary)); z-index: 0;
}
.step { text-align: center; position: relative; z-index: 1; }
.step-number {
    width: 70px; height: 70px; margin: 0 auto 25px; background: var(--white);
    border: 3px solid var(--accent); border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-size: 1.5rem;
    font-weight: 900; color: var(--accent); box-shadow: var(--shadow); transition: var(--transition);
}
.step:hover .step-number { background: var(--gradient-2); color: var(--dark); transform: scale(1.15); }
.step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 0.85rem; color: var(--gray); }

/* ===== BENEFITS ===== */
.benefits { background: var(--white); position: relative; overflow: hidden; }
.benefits::before {
    content: ''; position: absolute; top: -200px; right: -200px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(245,166,35,0.08) 0%, transparent 70%);
    border-radius: 50%;
}
.benefits-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; }
.benefit-card {
    display: flex; gap: 20px; padding: 30px; background: var(--white);
    border: 1px solid rgba(0,0,0,0.06); border-radius: var(--radius);
    transition: var(--transition);
}
.benefit-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.benefit-icon {
    width: 60px; height: 60px; min-width: 60px;
    background: linear-gradient(135deg, rgba(245,166,35,0.15), rgba(15,76,117,0.1));
    border-radius: 16px; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--accent-dark);
}
.benefit-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.benefit-card p { font-size: 0.88rem; color: var(--gray); }

/* ===== TESTIMONIALS ===== */
.testimonials { background: var(--gradient-hero); position: relative; }
.testimonials .section-header h2 { color: var(--white); }
.testimonials .section-header p { color: rgba(255,255,255,0.5); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.testimonial-card {
    background: rgba(255,255,255,0.05); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius);
    padding: 40px 30px; transition: var(--transition);
}
.testimonial-card:hover { transform: translateY(-8px); background: rgba(255,255,255,0.1); border-color: rgba(245,166,35,0.3); }
.testimonial-stars { color: var(--accent); font-size: 0.9rem; margin-bottom: 20px; display: flex; gap: 3px; }
.testimonial-card blockquote { color: rgba(255,255,255,0.8); font-size: 0.95rem; font-style: italic; line-height: 1.8; margin-bottom: 25px; }
.testimonial-author { display: flex; align-items: center; gap: 15px; }
.testimonial-avatar {
    width: 50px; height: 50px; border-radius: 50%; background: var(--gradient-2);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; color: var(--dark); font-size: 1.1rem;
}
.testimonial-author h4 { color: var(--white); font-size: 0.95rem; font-weight: 700; }
.testimonial-author p { color: rgba(255,255,255,0.5); font-size: 0.8rem; }

/* ===== COUNTER ===== */
.counter-section { background: var(--accent); padding: 60px 0; }
.counter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.counter-item h3 { font-size: 2.8rem; font-weight: 900; color: var(--dark); margin-bottom: 5px; }
.counter-item p { font-size: 0.85rem; font-weight: 600; color: rgba(0,0,0,0.6); text-transform: uppercase; letter-spacing: 1px; }

/* ===== CONTACT ===== */
.contact { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info { padding-right: 40px; }
.contact-info h3 { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 900; margin-bottom: 15px; }
.contact-info > p { color: var(--gray); margin-bottom: 40px; }
.contact-details { display: flex; flex-direction: column; gap: 25px; }
.contact-item { display: flex; gap: 15px; align-items: center; }
.contact-item .icon-box {
    width: 55px; height: 55px; min-width: 55px;
    background: linear-gradient(135deg, rgba(245,166,35,0.1), rgba(15,76,117,0.1));
    border-radius: 14px; display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: var(--accent-dark);
}
.contact-item h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 2px; }
.contact-item p { font-size: 0.88rem; color: var(--gray); }
.contact-form-wrapper {
    background: var(--white); border: 1px solid rgba(0,0,0,0.08);
    border-radius: var(--radius); padding: 45px; box-shadow: var(--shadow);
}
.contact-form-wrapper h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 25px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; font-size: 0.8rem; font-weight: 600; color: var(--dark);
    margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 14px 18px; border: 2px solid rgba(0,0,0,0.08);
    border-radius: 12px; font-family: 'Montserrat', sans-serif; font-size: 0.9rem;
    transition: var(--transition); background: var(--light); color: var(--dark);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--accent); background: var(--white);
    box-shadow: 0 0 0 4px rgba(245,166,35,0.1);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-submit {
    width: 100%; padding: 16px; background: var(--gradient-2); color: var(--dark);
    border: none; border-radius: 12px; font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; cursor: pointer; transition: var(--transition);
}
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(245,166,35,0.4); }

/* ===== CTA ===== */
.cta-section {
    background: var(--gradient-hero); padding: 100px 0; text-align: center;
    position: relative; overflow: hidden;
}
.cta-section::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='rgba(255,255,255,0.03)'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-content { position: relative; z-index: 2; }
.cta-content h2 {
    font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900; color: var(--white); margin-bottom: 15px;
}
.cta-content p { color: rgba(255,255,255,0.6); font-size: 1.1rem; margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.footer { background: var(--dark); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 50px; margin-bottom: 50px; }
.footer-brand .nav-logo { display: inline-block; margin-bottom: 20px; }
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 0.9rem; margin-bottom: 25px; max-width: 300px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 42px; height: 42px; background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.5); font-size: 1rem; transition: var(--transition);
}
.footer-social a:hover {
    background: var(--accent); color: var(--dark); border-color: var(--accent);
    transform: translateY(-3px);
}
.footer-col h4 {
    color: var(--white); font-size: 0.9rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px; margin-bottom: 25px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a {
    color: rgba(255,255,255,0.5); text-decoration: none;
    font-size: 0.88rem; transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--accent); padding-left: 5px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08); padding-top: 30px;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 15px;
}
.footer-bottom p { color: rgba(255,255,255,0.3); font-size: 0.82rem; }
.footer-bottom p a { color: var(--accent); text-decoration: none; }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; z-index: 9999; }
.whatsapp-float a {
    display: flex; align-items: center; justify-content: center;
    width: 65px; height: 65px; background: #25d366; border-radius: 50%;
    color: white; font-size: 2rem; text-decoration: none;
    box-shadow: 0 8px 25px rgba(37,211,102,0.4); transition: var(--transition);
    animation: whatsapp-pulse 2s ease infinite;
}
.whatsapp-float a:hover { transform: scale(1.1); box-shadow: 0 12px 35px rgba(37,211,102,0.6); }
.whatsapp-tooltip {
    position: absolute; right: 80px; top: 50%; transform: translateY(-50%);
    background: var(--white); color: var(--dark); padding: 10px 18px;
    border-radius: 10px; font-size: 0.82rem; font-weight: 600;
    white-space: nowrap; box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transition: var(--transition);
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; visibility: visible; }
@keyframes whatsapp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
    70% { box-shadow: 0 0 0 20px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed; bottom: 30px; left: 30px; width: 50px; height: 50px;
    background: var(--dark); color: var(--accent); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; text-decoration: none; opacity: 0; visibility: hidden;
    transition: var(--transition); z-index: 999; border: 2px solid rgba(245,166,35,0.3);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--accent); color: var(--dark); transform: translateY(-3px); }

/* ===== ANIMACIONES ===== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero p { margin: 0 auto 40px; }
    .hero-buttons { justify-content: center; }
    .hero-visual { display: none; }
    .about-grid { grid-template-columns: 1fr; gap: 50px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .process-steps { grid-template-columns: repeat(2, 1fr); }
    .process-steps::before { display: none; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .video-info { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 80%; max-width: 350px;
        height: 100vh; background: var(--dark); flex-direction: column;
        justify-content: center; padding: 40px; transition: var(--transition); gap: 25px;
    }
    .nav-links.active { right: 0; }
    .services-grid { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .benefits-grid { grid-template-columns: 1fr; }
    .counter-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    section { padding: 70px 0; }
    .contact-form-wrapper { padding: 30px 20px; }
    .about-float-card { position: relative; bottom: auto; right: auto; margin-top: 20px; }
    .video-info { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn { width: 100%; justify-content: center; }
    .counter-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .counter-item h3 { font-size: 2rem; }
}

/* ===== VIDEO HTML5 LOCAL ===== */
.video-wrapper .video-element {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 20px;
    background: #000;
    display: block;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    border: 2px solid rgba(245,166,35,0.2);
    object-fit: cover;
}

/* Fallback para cuando el video no carga */
.video-wrapper .video-fallback {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    text-align: center;
    color: rgba(255,255,255,0.85);
    display: none; /* Se muestra solo si hay error */
}

/* Mostrar fallback si el video falla (opcional con JS) */
.video-wrapper.error .video-fallback {
    display: block;
}
.video-wrapper.error .video-element {
    display: none;
}

/* Responsive para video */
@media (max-width: 768px) {
    .video-wrapper .video-element {
        border-radius: 16px;
    }
}

/* ===== FAQ ===== */
.faq { background: var(--light); }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid rgba(0,0,0,0.06);
    overflow: hidden;
    transition: var(--transition);
}
.faq-item:hover { box-shadow: var(--shadow); }
.faq-question {
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    user-select: none; /* Evita selección de texto al hacer click rápido */
}
.faq-question:hover { color: var(--accent-dark); }
.faq-question i {
    color: var(--accent);
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}
/* Contenedor de la respuesta - CLAVE PARA LA ANIMACIÓN */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    will-change: max-height; /* Optimiza el rendimiento de la animación */
}
.faq-answer-content {
    padding: 0 30px 25px;
    color: var(--gray);
    font-size: 0.92rem;
    line-height: 1.8;
}
/* Cuando está activo, aplicamos padding superior vía la clase active */
.faq-item.active .faq-answer-content {
    padding-top: 15px;
}