/* --- VARIABLES GLOBALES --- */
:root {
    --color-primary: #5a2e9b;
    --color-secondary: #00bcd4;
    --color-accent-grad-start: #5a2e9b;
    --color-accent-grad-end: #00bcd4;
    --color-cta: #ff7f50;
    --color-text-dark: #2c3e50;
    --color-text-light: #7f8c8d;
    --color-bg-light: #f8f9fa;
    --color-white: #ffffff;
    --shadow-strong: 0 10px 30px rgba(0, 0, 0, 0.12);
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* --- RESET BÁSICO --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-primary); }
a { text-decoration: none; transition: all 0.3s ease; }
img { max-width: 100%; height: auto; display: block; }
section { padding: 100px 20px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- UTILIDADES --- */
.text-center { text-align: center; }
.gradient-text {
    background: linear-gradient(to right, var(--color-accent-grad-start), var(--color-accent-grad-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 15px; position: relative; display: inline-block; }
.section-header h2::after {
    content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
    width: 80px; height: 4px; background: linear-gradient(to right, var(--color-accent-grad-start), var(--color-accent-grad-end)); border-radius: 2px;
}
.section-header p { font-size: 1.2rem; color: var(--color-text-light); max-width: 700px; margin: 25px auto 0; }

/* --- COMPONENTES --- */
.btn {
    display: inline-flex; align-items: center; padding: 12px 30px; border-radius: 50px;
    font-weight: 600; border: none; cursor: pointer; transition: all 0.3s ease;
}
.btn-primary {
    background: linear-gradient(to right, var(--color-accent-grad-start), var(--color-accent-grad-end));
    color: white; box-shadow: 0 5px 15px rgba(90, 46, 155, 0.3);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(90, 46, 155, 0.4); }
.btn-secondary {
    background: transparent; color: var(--color-primary); border: 2px solid var(--color-primary);
}
.btn-secondary:hover { background: var(--color-primary); color: white; }

/* --- HEADER & NAV --- */
.header-main {
    position: fixed; top: 0; left: 0; width: 100%; background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px); box-shadow: 0 2px 20px rgba(0,0,0,0.1); z-index: 1000; padding: 15px 0;
}
.header-content { display: flex; justify-content: space-between; align-items: center; }
.nav-menu ul { display: flex; list-style: none; gap: 30px; align-items: center; }
.nav-menu a { color: var(--color-text-dark); font-weight: 600; }
.nav-menu a:hover { color: var(--color-primary); }
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; } /* Para móvil */

/* --- HERO --- */
#hero {
    padding-top: 180px; padding-bottom: 100px;
    background: linear-gradient(135deg, #fefeff 0%, #f0f4ff 100%);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.hero-text h1 { font-size: 3.5rem; line-height: 1.2; margin-bottom: 25px; }
.hero-text p { font-size: 1.25rem; color: var(--color-text-light); margin-bottom: 40px; }
.hero-image img {
    border-radius: 20px; box-shadow: var(--shadow-strong);
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg); transition: transform 0.5s ease;
}
.hero-image:hover img { transform: perspective(1000px) rotateY(0deg) rotateX(0deg); }

/* --- CLIENTES --- */
#clientes { background: #f8faff; padding: 80px 0; }
.clients-carousel-wrapper {
    position: relative; max-width: 1100px; margin: 0 auto; padding: 0 60px;
}
.clients-carousel {
    overflow: hidden; position: relative; border-radius: 15px;
}
.clients-track {
    display: flex; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); gap: 50px;
}
.client-logo-item {
    flex: 0 0 calc(25% - 37.5px); min-width: 180px; display: flex; align-items: center; justify-content: center;
    padding: 20px; opacity: 0.7; transition: all 0.3s ease;
}
.client-logo-item img {
    height: 100px; width: auto; max-width: 200px; object-fit: contain; filter: grayscale(100%);
    transition: all 0.3s ease;
}
.client-logo-item:hover {
    opacity: 1; transform: scale(1.1);
}
.client-logo-item:hover img {
    filter: grayscale(0%);
}
.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%); background: white;
    border: 2px solid var(--color-primary); color: var(--color-primary); width: 50px; height: 50px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 10; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.carousel-btn:hover {
    background: var(--color-primary); color: white; transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(90, 46, 155, 0.3);
}
.carousel-btn-prev { left: 0; }
.carousel-btn-next { right: 0; }
.carousel-btn i { font-size: 18px; }
.carousel-dots {
    display: flex; justify-content: center; gap: 10px; margin-top: 30px;
}
.carousel-dot {
    width: 12px; height: 12px; border-radius: 50%; background: rgba(90, 46, 155, 0.3);
    cursor: pointer; transition: all 0.3s ease; border: none;
}
.carousel-dot.active {
    background: var(--color-primary); transform: scale(1.3);
}

/* --- SERVICIOS --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card {
    padding: 40px 30px; border-radius: 20px; background: white; border: 1px solid #eee;
    transition: all 0.3s ease;
}
.service-card:hover { border-color: transparent; box-shadow: var(--shadow-strong); transform: translateY(-10px); }
.service-icon {
    width: 70px; height: 70px; background: linear-gradient(135deg, var(--color-accent-grad-start), var(--color-accent-grad-end));
    color: white; font-size: 28px; display: flex; align-items: center; justify-content: center;
    border-radius: 18px; margin-bottom: 25px;
}

/* --- DEMO --- */
.video-container {
    max-width: 900px; margin: 0 auto; border-radius: 20px; overflow: hidden;
    box-shadow: var(--shadow-strong);
}
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* --- EQUIPO --- */
#equipo { background: #f8faff; }
.team-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 40px; }
.team-member { text-align: center; width: 250px; }
.member-photo {
    width: 180px; height: 180px; margin: 0 auto 20px; border-radius: 50%; overflow: hidden;
    border: 5px solid white; box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* --- CONTACTO --- */
#contacto { background: linear-gradient(135deg, #2c3e50, #1a252f); color: white; }
#contacto .section-header h2 { color: white; }
#contacto .section-header p { color: rgba(255,255,255,0.7); }
.contact-wrapper {
    display: grid; grid-template-columns: 1fr 1.5fr; background: white;
    border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-strong);
}
.contact-info {
    background: linear-gradient(135deg, var(--color-accent-grad-start), var(--color-accent-grad-end));
    padding: 50px; color: white;
}
.contact-info h3 { color: #ffffff; /* Color blanco puro para mayor contraste */ }
.info-item { display: flex; align-items: center; margin-bottom: 25px; font-size: 1.1rem; }
.info-item i { font-size: 1.5rem; margin-right: 15px; opacity: 0.8; }
.info-item a { color: white; text-decoration: none; transition: opacity 0.3s ease; }
.info-item a:hover { opacity: 0.8; text-decoration: underline; }
.contact-form { padding: 50px; color: var(--color-text-dark); }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 600; margin-bottom: 8px; }
.form-input {
    width: 100%; padding: 12px 15px; border: 2px solid #eee; border-radius: 8px;
    transition: all 0.3s; font-family: var(--font-body);
}
.form-input:focus { border-color: var(--color-primary); outline: none; }

/* --- FOOTER --- */
footer { background: #1a252f; color: rgba(255,255,255,0.6); padding: 80px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-col h4 { color: white; margin-bottom: 20px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.6); }
.footer-links a:hover { color: white; }

/* --- WHATSAPP --- */
.whatsapp-btn {
    position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background: #25d366;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: white; font-size: 32px; box-shadow: 0 10px 20px rgba(37,211,102,0.3); z-index: 999;
}
.whatsapp-btn:hover { transform: scale(1.1); }

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .hero-grid, .contact-wrapper, .footer-grid { grid-template-columns: 1fr; }
    .hero-image { display: none; }
    .hero-text { text-align: center; }
    .hero-text h1 { font-size: 2.8rem; }
    .menu-toggle { display: block; }
    .nav-menu {
        position: fixed; top: 70px; left: -100%; width: 100%; background: white;
        padding: 20px; transition: 0.3s; box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    .nav-menu.active { left: 0; }
    .nav-menu ul { flex-direction: column; }
    .clients-carousel-wrapper { padding: 0 50px; }
    .client-logo-item { flex: 0 0 calc(33.333% - 33.33px); }
    .carousel-btn { width: 40px; height: 40px; }
    .carousel-btn i { font-size: 14px; }
}
@media (max-width: 768px) {
    .clients-carousel-wrapper { padding: 0 50px; }
    .client-logo-item { flex: 0 0 calc(50% - 25px); min-width: 150px; }
    .client-logo-item img { height: 80px; }
}
@media (max-width: 480px) {
    .clients-carousel-wrapper { padding: 0 50px; }
    .client-logo-item { flex: 0 0 calc(100% - 0px); min-width: 150px; }
    .client-logo-item img { height: 70px; }
}

