/* --- 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;
    --section-padding: 100px 20px;
}

/* --- RESET BÁSICO --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 1rem;
}
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-primary); line-height: 1.2; }
a { text-decoration: none; transition: all 0.3s ease; }
img { max-width: 100%; height: auto; display: block; }
section { padding: var(--section-padding); }
.container { width: 100%; 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: clamp(2rem, 5vw, 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: clamp(1rem, 3vw, 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;
    font-size: 1rem; white-space: nowrap;
}
.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; font-size: 0.95rem; }
.nav-menu a:hover { color: var(--color-primary); }
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--color-primary); }

/* --- HERO --- */
#hero {
    padding-top: 160px; 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: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: 25px; }
.hero-text p { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--color-text-light); margin-bottom: 40px; }
.hero-image img {
    width: 100%; 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); }

/* --- CARACTERÍSTICAS VOIP --- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.feature-card {
    display: flex; align-items: flex-start; padding: 30px; background: white;
    border-radius: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: transform 0.3s;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-strong); }
.feature-icon-small {
    font-size: 2rem; color: var(--color-secondary); margin-right: 20px; min-width: 50px; text-align: center;
}
.feature-content h3 { font-size: 1.3rem; margin-bottom: 10px; }
.feature-content p { font-size: 0.95rem; color: var(--color-text-light); margin-bottom: 0; }

/* --- BENEFICIOS (Dos columnas) --- */
#beneficios { background: var(--color-bg-light); }
.benefits-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.benefits-content { text-align: left; /* Asegura alineación a la izquierda */ }
.benefits-list { list-style: none; padding: 0; margin-top: 30px; }
.benefits-list li {
    display: flex;
    align-items: flex-start; /* Alinea el icono con la primera línea de texto */
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: left;
}
.benefits-list i {
    color: #25d366; /* Color check verde */
    font-size: 1.4rem;
    margin-right: 15px;
    margin-top: 3px; /* Pequeño ajuste para alinear con el texto */
    flex-shrink: 0; /* Evita que el icono se encoja */
}

/* --- 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.8); }
.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; display: flex; flex-direction: column; justify-content: center;
}
.contact-info h3 { color: #ffffff; font-size: 2rem; margin-bottom: 30px; }
.info-item { display: flex; align-items: flex-start; margin-bottom: 25px; font-size: 1.1rem; }
.info-item i { font-size: 1.5rem; margin-right: 15px; margin-top: 5px; 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; color: var(--color-text-dark); }
.form-input {
    width: 100%; padding: 14px 16px; border: 2px solid #eee; border-radius: 10px;
    transition: all 0.3s; font-family: var(--font-body); font-size: 1rem;
}
.form-input:focus { border-color: var(--color-primary); outline: none; box-shadow: 0 0 0 4px rgba(90, 46, 155, 0.1); }

/* --- FOOTER --- */
footer { background: #1a252f; color: rgba(255,255,255,0.7); padding: 80px 0 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 50px; }
.footer-col h4 { color: white; margin-bottom: 25px; font-size: 1.2rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: rgba(255,255,255,0.7); transition: color 0.3s ease; }
.footer-links a:hover { color: white; }
.footer-social-icons { display: flex; gap: 15px; flex-wrap: wrap; }
.footer-social-icons a {
    width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: white; font-size: 1.2rem;
    transition: all 0.3s ease;
}
.footer-social-icons a:hover { background: var(--color-accent-grad-end); transform: translateY(-3px); }

/* --- 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 25px rgba(37,211,102,0.4); z-index: 999;
    transition: all 0.3s ease;
}
.whatsapp-btn:hover { transform: scale(1.1); box-shadow: 0 15px 30px rgba(37,211,102,0.5); }

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 992px) {
    :root { --section-padding: 80px 20px; }
    .hero-grid, .benefits-split { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-text { order: 1; }
    .hero-image { order: 2; max-width: 80%; margin: 0 auto; }
    .benefits-split .benefits-image { order: 1; max-width: 80%; margin: 0 auto; } /* Imagen primero en móvil para beneficios */
    .benefits-split .benefits-content { order: 2; text-align: left; } /* Texto alineado izq para lista en móvil */
    .hero-text div { justify-content: center; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .contact-info { padding: 40px 30px; order: 1; }
    .contact-form { padding: 40px 30px; order: 2; }
    
    .menu-toggle { display: block; }
    .nav-menu {
        position: fixed; top: 75px; left: -100%; width: 100%; height: calc(100vh - 75px);
        background: white; transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        flex-direction: column; justify-content: center; align-items: center;
        box-shadow: none; overflow-y: auto;
    }
    .nav-menu.active { left: 0; }
    .nav-menu ul { flex-direction: column; gap: 20px; width: 100%; text-align: center; padding: 40px 0; }
}
@media (max-width: 768px) {
    :root { --section-padding: 60px 20px; }
    .section-header { margin-bottom: 40px; }
    .hero-image, .benefits-split .benefits-image { max-width: 100%; }
}
@media (max-width: 480px) {
    .btn { width: 100%; justify-content: center; }
    .hero-text div { flex-direction: column; gap: 15px; }
    .contact-info, .contact-form { padding: 30px 20px; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-social-icons { justify-content: center; }
    .whatsapp-btn { width: 50px; height: 50px; font-size: 26px; bottom: 20px; right: 20px; }
}

