/* --- VARIABLES & THEME --- */
:root {
    --primary: #000000;
    --accent: #4e54c8;
    --accent-light: #8f94fb;
    --secondary: #0d6efd;
    --success: #2ecc71;
    --dark: #1a1a1a;
    --light: #f8f9fa;
    --white: #ffffff;
    --gray: #6c757d;
    --bg-body: #f4f7f6;
    --font-main: 'Poppins', sans-serif;
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-card: 0 15px 35px rgba(0, 0, 0, 0.05);
    --radius-card: 20px;
    --radius-btn: 50px;
}

/* --- RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-main);
    background-color: var(--white);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* --- UTILITIES --- */
.container-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.section-padding { padding: 100px 0; }
.bg-light { background-color: #f8f9fa; }

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title { font-size: 2.5rem; font-weight: 700; margin-bottom: 20px; color: var(--primary); text-align: center; }
.section-subtitle { display: block; text-align: center; color: var(--accent); font-weight: 600; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem; }

/* --- BUTTONS --- */
.btn-primary-custom {
    background: var(--primary);
    color: var(--white);
    padding: 12px 30px;
    border-radius: var(--radius-btn);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.btn-white:hover { background: #f0f0f0; transform: translateY(-3px); }

/* --- HEADER --- */
.landing-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.landing-header.scrolled {
    position: fixed;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }
.logo-img { height: 40px; width: auto; }

.nav-links { display: flex; gap: 30px; }
.nav-links a { font-weight: 500; font-size: 0.95rem; color: var(--dark); position: relative; }
.nav-links a::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px;
    background: var(--accent); transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    padding: 180px 0 100px;
    overflow: hidden;
    background-color: #fff;
}

.hero-bg-blob {
    position: absolute;
    top: -10%; right: -10%; width: 55%; height: 120%;
    background: linear-gradient(135deg, #f6f9fc 0%, #eef2f5 100%);
    border-radius: 40% 0 0 40% / 50% 0 0 50%;
    z-index: 0;
}
.decor-circle { position: absolute; border-radius: 50%; z-index: 1; }
.dc-1 { width: 20px; height: 20px; background: #FFD700; top: 15%; left: 45%; opacity: 0.6; }
.dc-2 { width: 40px; height: 40px; background: var(--accent-light); bottom: 10%; left: 10%; opacity: 0.2; }
.dc-3 { width: 15px; height: 15px; background: var(--success); top: 20%; right: 40%; }

.hero-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; position: relative; z-index: 2;
}

.hero-text h1 {
    font-size: 3.5rem; line-height: 1.15; font-weight: 700; margin-bottom: 25px; color: var(--dark);
}
.hero-text p { font-size: 1.1rem; color: var(--gray); margin-bottom: 35px; max-width: 90%; }

.hero-search-wrapper {
    background: var(--white); padding: 8px; border-radius: 60px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); display: flex; max-width: 480px;
    border: 1px solid #f0f0f0; margin-bottom: 20px;
}
.hero-search-wrapper input { border: none; flex: 1; padding: 0 20px; outline: none; font-size: 1rem; background: transparent; }
.hero-search-wrapper button {
    background: var(--primary); color: var(--white); border: none; padding: 12px 30px;
    border-radius: 50px; cursor: pointer; font-weight: 500; transition: 0.3s;
}
.hero-search-wrapper button:hover { background: #333; }

/* Widgets & Hero Visual */
.hero-visual { position: relative; height: 500px; display: flex; justify-content: center; align-items: center; }
.main-image-container {
    position: relative; z-index: 1; border-radius: 30px; overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15); transform: perspective(1000px) rotateY(-5deg);
    background: #fff; max-width: 85%;
}

.floating-widget {
    position: absolute; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8); border-radius: 16px; padding: 15px 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1); animation: floatAnim 6s ease-in-out infinite;
    display: flex; align-items: center; gap: 15px; z-index: 5; min-width: 180px;
}
.fw-1 { top: 10%; left: 0; animation-delay: 0s; }
.fw-2 { bottom: 15%; right: 0; animation-delay: 2s; }
.fw-3 { top: 50%; left: -20px; animation-delay: 4s; }

.widget-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.2rem; }
.bg-purple { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.bg-green { background: linear-gradient(135deg, #2af598 0%, #009efd 100%); }
.bg-orange { background: linear-gradient(135deg, #f6d365 0%, #fda085 100%); }

.widget-text h5 { font-size: 0.9rem; margin: 0; font-weight: 600; }
.widget-text span { font-size: 0.75rem; color: #888; }

@keyframes floatAnim {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* --- ABOUT & SERVICES --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text p { color: var(--gray); font-size: 1.05rem; margin-bottom: 20px; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 50px; }
.service-card {
    background: var(--white); padding: 40px 30px; border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); transition: all 0.3s ease; border: 1px solid #f9f9f9;
}
.service-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
.icon-box {
    width: 60px; height: 60px; border-radius: 15px; background: #f4f7f6;
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
    color: var(--primary); margin-bottom: 20px; transition: 0.3s;
}
.service-card:hover .icon-box { background: var(--primary); color: var(--white); }

/* --- HOW IT WORKS (Demo Visual) --- */
.how-it-works-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 50px; }
.step-item { text-align: center; position: relative; }
.step-number { font-size: 4rem; font-weight: 800; color: #f0f0f0; position: absolute; top: -20px; left: 50%; transform: translateX(-50%); z-index: 0; }
.step-content { position: relative; z-index: 1; padding-top: 20px; }
.step-content h4 { margin-bottom: 10px; font-weight: 600; }
.step-content p { font-size: 0.9rem; color: var(--gray); }

/* --- EMAIL BANNER --- */
.cta-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../images/landing/cta-bg.png');
    background-size: cover; background-position: center; color: var(--white);
    text-align: center; padding: 100px 20px;
}
.cta-banner h2 { font-size: 2.5rem; margin-bottom: 20px; font-weight: 700; }
.cta-banner p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.9; }

/* --- CLIENTS SLIDER (Logo Carousel) --- */
.clients-slider { overflow: hidden; padding: 20px 0; position: relative; }
.clients-track {
    display: flex; gap: 50px; width: max-content;
    animation: scroll 30s linear infinite;
}
.client-logo-placeholder {
    height: 60px; width: 150px; background: #e9ecef; border-radius: 8px;
    display: flex; align-items: center; justify-content: center; color: #adb5bd; font-weight: 600;
}
/* Si usas imágenes reales */
.client-logo-img { height: 50px; filter: grayscale(100%); opacity: 0.5; transition: 0.3s; }
.client-logo-img:hover { filter: grayscale(0%); opacity: 1; }

@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- TESTIMONIALS --- */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 50px; }
.testimonial-card { background-color: var(--white); border-radius: var(--radius-card); padding: 30px; border: 1px solid #eee; position: relative; }
.stars { color: #f39c12; margin-bottom: 15px; }
.testimonial-author { display: flex; align-items: center; gap: 15px; margin-top: 20px; }
.author-avatar { width: 45px; height: 45px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; }

/* --- FAQ --- */
.faq-container { max-width: 800px; margin: 50px auto 0; }
.faq-item { background: var(--white); margin-bottom: 15px; border-radius: 10px; border: 1px solid #eee; overflow: hidden; }
.faq-question { padding: 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.faq-answer { max-height: 0; overflow: hidden; transition: 0.3s ease; padding: 0 20px; color: var(--gray); }
.faq-item.active .faq-answer { padding-bottom: 20px; }

/* --- FOOTER --- */
.footer-modern { background: #0f0f0f; color: #a0a0a0; padding: 80px 0 30px; }
.footer-logo { filter: brightness(0) invert(1); width: 150px; margin-bottom: 20px; }
.footer-col h5 { color: #fff; margin-bottom: 20px; font-weight: 600; }
.footer-links li { margin-bottom: 12px; }
.footer-links a:hover { color: #fff; padding-left: 5px; }

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
    .hero-grid, .about-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-text h1 { font-size: 2.5rem; }
    .hero-search-wrapper { margin: 0 auto 40px; }
    .hero-visual { height: 400px; margin-top: 20px; }
    .hero-bg-blob { width: 100%; top: -5%; height: 60%; border-radius: 0 0 50% 50%; }
    .nav-links { display: none; }
}

/* Construction Mode Styles */
.construction-wrapper {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%); position: relative; overflow: hidden;
}
.construction-card {
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); padding: 3rem;
    border-radius: 30px; box-shadow: var(--shadow-soft); text-align: center; max-width: 500px; width: 90%;
    position: relative; z-index: 10; border: 1px solid #fff;
}
.construction-bg-shape {
    position: absolute; width: 600px; height: 600px;
    background: radial-gradient(circle, var(--accent-light) 0%, rgba(255,255,255,0) 70%);
    opacity: 0.2; top: -20%; right: -10%; border-radius: 50%; z-index: 1;
}