/* ── ROOT VARIABLES ── */
:root {
    --primary-color: #0948b3;
    --primary-dark: #073a8e;
    --accent-color: #05A32D;
    --text-color: #4a5568;
    --heading-color: #2d3748;
    --white: #ffffff;
    --light-bg: #f7fafc;
    --gradient-primary: linear-gradient(135deg, #0948b3 0%, #073a8e 100%);
    --transition: all 0.3s ease;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
    color: var(--heading-color);
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.section-title p {
    font-size: 18px;
    color: #718096;
}

/* ── BUTTONS ── */
.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 5px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(5, 163, 45, 0.3);
    cursor: pointer;
    border: none;
}

.btn-primary:hover {
    background-color: #048a26;
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    border-radius: 5px;
    font-weight: 600;
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-contact {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 5px;
    font-weight: 600;
}

/* ── HEADER ── */
header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: transparent;
    transition: all 0.4s ease;
}

header.sticky {
    background: var(--white);
    padding: 12px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    transition: var(--transition);
}

/* Manejo de logos */
.logo .logo-dark { display: none; }
.logo .logo-white { display: block; }

header.sticky .logo .logo-white { display: none; }
header.sticky .logo .logo-dark { display: block; }

nav ul {
    display: flex;
    align-items: center;
    gap: 25px;
}

nav ul li a {
    color: var(--white);
    font-weight: 500;
    font-size: 15px;
}

header.sticky nav ul li a {
    color: var(--heading-color);
}

header.sticky nav ul li a:hover {
    color: var(--primary-color);
}

header.sticky nav ul li a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Enlace activo en el nav */
nav ul li a.active {
    color: #fff;
    font-weight: 700;
    border-bottom: 2px solid rgba(255,255,255,0.7);
    padding-bottom: 2px;
}

/* Botón hamburguesa */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: var(--transition);
}

header.sticky .nav-toggle span {
    background: var(--primary-color);
}

/* ── HERO ── */
.hero {
    min-height: 100vh;
    background: var(--primary-color) linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--white);
    transform: skewY(-2deg);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 56px;
    color: var(--white);
    margin-bottom: 25px;
    line-height: 1.1;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.hero-image {
    text-align: right;
}

.hero-image img {
    max-width: 100%;
}

/* Responsive Principal */
@media (max-width: 991px) {
    .nav-toggle {
        display: flex;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease-in-out;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    nav.nav-open {
        max-height: 80vh;
        padding: 20px 0;
        overflow-y: auto;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }

    nav ul li a {
        color: var(--heading-color) !important;
        padding: 15px 25px;
        display: block;
        border-bottom: 1px solid #f0f0f0;
    }

    nav ul li a i {
        margin-right: 10px;
        font-size: 20px !important;
    }

    .btn-contact {
        margin: 15px 25px;
        text-align: center;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-btns {
        justify-content: center;
    }
}

/* ── SERVICES ── */
.services {
    padding: 120px 0;
    background-color: var(--white);
}

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

.service-card {
    padding: 40px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 24px;
}

/* ── FEATURES ── */
.features {
    padding: 120px 0;
    background-color: var(--light-bg);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 100px;
}

.feature-item:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-image {
    flex: 1;
}

.feature-image img {
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.feature-content {
    flex: 1;
}

.feature-content h3 {
    font-size: 32px;
    margin-bottom: 20px;
}

.feature-content p {
    margin-bottom: 30px;
    font-size: 18px;
}

/* ── FOOTER ── */
footer {
    padding: 60px 0 20px;
    background-color: #0c1a35;
    color: var(--white);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 35px;
    margin-bottom: 20px;
}

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

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 20px;
}

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

.footer-links ul li a {
    opacity: 0.7;
}

.footer-links ul li a:hover {
    opacity: 1;
}

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

.footer-legal {
    margin-bottom: 15px;
}

.footer-legal a {
    color: var(--white);
    opacity: 0.6;
    margin: 0 15px;
    text-decoration: none;
    transition: var(--transition);
}

.footer-legal a:hover {
    opacity: 1;
}

/* ── Modern Chat Widget ── */
:root {
    --chat-primary: #05A32D;
    --chat-header: linear-gradient(135deg, #0948b3 0%, #05A32D 100%);
    --chat-bg: #ffffff;
    --chat-text: #333333;
    --chat-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.chat-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 10000;
    font-family: 'Inter', sans-serif;
    display: none;
}

.chat-bubble {
    width: 60px;
    height: 60px;
    background: var(--chat-header);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(5, 163, 45, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.chat-bubble:hover {
    transform: scale(1.1) rotate(5deg);
}

.chat-window {
    display: none;
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    max-width: calc(100vw - 50px);
    background: var(--chat-bg);
    border-radius: 20px;
    box-shadow: var(--chat-shadow);
    overflow: hidden;
    animation: chatSlideIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.chat-header {
    background: var(--chat-header);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.messages-container {
    height: 350px;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.msg-bubble {
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 13px;
    max-width: 85%;
    line-height: 1.4;
}

.msg-visitor {
    align-self: flex-end;
    background: var(--chat-primary);
    color: white;
    border-bottom-right-radius: 2px;
}

.msg-admin {
    align-self: flex-start;
    background: #f0f2f5;
    color: #333;
    border-bottom-left-radius: 2px;
}

.chat-footer {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.chat-footer input {
    flex: 1;
    border: none;
    padding: 10px;
    font-size: 14px;
}

.chat-footer input:focus { outline: none; }

/* ── Estilos para iconos en el menú ── */
nav ul li a i {
    font-size: 24px !important;
    vertical-align: middle;
}

nav ul li a:hover i {
    display: inline-block;
    transform: scale(1.1);
    transition: transform 0.2s;
}

/* ── CTA Section ── */
.cta {
    padding: 100px 0;
    text-align: center;
}

.cta .container {
    background: var(--gradient-primary);
    padding: 60px 40px;
    border-radius: 20px;
    color: var(--white);
    box-shadow: 0 15px 40px rgba(9, 72, 179, 0.3);
}

.cta h2 {
    font-size: 40px;
    margin-bottom: 20px;
    color: var(--white);
}

.cta p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* ── AYUDA Y SOPORTE SPECIFIC STYLES ── */
.hero-subtitle {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
    color: white;
}

.ayuda-form-wrapper {
    display: flex;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-top: 40px;
    min-height: 600px;
}

.ayuda-form-sidebar {
    width: 320px;
    background: #f8fbff;
    padding: 40px 30px;
    border-right: 1px solid #edf2f9;
    display: flex;
    flex-direction: column;
}

.ayuda-sidebar-service {
    margin-bottom: 40px;
    text-align: center;
}

.ayuda-sidebar-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 25px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 10px 20px rgba(9, 72, 179, 0.2);
}

.ayuda-sidebar-service h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.ayuda-sidebar-service p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.step-indicator {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    color: #999;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.step-indicator span {
    width: 28px;
    height: 28px;
    background: #e0e6ed;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.step-indicator.active {
    color: var(--primary-color);
}

.step-indicator.active span {
    background: var(--primary-color);
}

.step-indicator.completed span {
    background: #05A32D;
}

.ayuda-form-content {
    flex: 1;
    padding: 40px 50px;
}

.ayuda-form__heading {
    font-size: 24px;
    margin-bottom: 5px;
}

.ayuda-form__sub {
    color: #777;
    margin-bottom: 30px;
    font-size: 15px;
}

.ayuda-form__step {
    display: none;
}

.ayuda-form__step.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

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

.ayuda-form__label {
    display: block;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 16px;
}

.ayuda-service-selector {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.ayuda-service-group__title strong {
    display: block;
    font-size: 15px;
}

.ayuda-service-group__title small {
    color: #999;
}

.ayuda-service-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.ayuda-service-option {
    border: 1px solid #e0e6ed;
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.ayuda-service-option:hover {
    background: #f0f4ff;
    border-color: var(--primary-color);
}

.ayuda-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    font-size: 15px;
    transition: var(--transition);
}

.ayuda-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(9, 72, 179, 0.1);
}

.ayuda-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.ayuda-form__group {
    margin-bottom: 20px;
}

.ayuda-form__group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.summary-box {
    background: #f8fbff;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    padding: 25px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #edf2f9;
}

.summary-value {
    font-weight: 600;
    color: var(--primary-color);
}

.ayuda-form__footer {
    margin-top: 40px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.ayuda-faq {
    padding: 80px 0;
    background: white;
}

.faq-item {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.faq-question {
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding-top: 15px;
    color: #666;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .ayuda-form-wrapper {
        flex-direction: column;
    }
    .ayuda-form-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #edf2f9;
    }
    .ayuda-sidebar-steps ul {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }
    .ayuda-form__row {
        grid-template-columns: 1fr;
    }
}

/* ── ZIGZAG SECTIONS ── */
.zigzag-section {
    padding: 100px 0;
}

.zigzag-container {
    display: flex;
    align-items: center;
    gap: 80px;
}

.zigzag-section:nth-child(even) .zigzag-container {
    flex-direction: row-reverse;
}

.zigzag-image {
    flex: 1;
    text-align: center;
}

.zigzag-image img {
    max-width: 100%;
    height: auto;
    transition: var(--transition);
}

.zigzag-image img:hover {
    transform: scale(1.02);
}

.zigzag-content {
    flex: 1;
}

.zigzag-content h2 {
    font-size: 36px;
    margin-bottom: 25px;
}

.zigzag-content p {
    font-size: 18px;
    line-height: 1.8;
}

@media (max-width: 991px) {
    .zigzag-container {
        flex-direction: column !important;
        gap: 40px;
        text-align: center;
    }
}

/* ── SPLIT ICONS & ICON BOXES ── */
.split-icons {
    padding: 100px 0;
}

.split-icons .container {
    display: flex;
    gap: 60px;
    align-items: center;
}

.split-icons-content {
    flex: 1;
}

.split-icons-image {
    flex: 1;
}

.split-icons-image img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.icon-box-left {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    text-align: left;
}

.icon-box-left .icon {
    width: 50px;
    height: 50px;
    background: var(--light-bg);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.icon-box-left h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

/* ── DEMOS GRID ── */
.demos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.demo-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    padding-bottom: 30px;
}

.demo-card:hover {
    transform: translateY(-10px);
}

.demo-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    margin-bottom: 20px;
}

.demo-card h4 {
    font-size: 20px;
    padding: 0 20px;
}

.demo-card p {
    padding: 0 20px;
    margin-top: 10px;
}

/* ── ACCORDION ── */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion details {
    background: var(--white);
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid #edf2f7;
}

.accordion summary {
    padding: 20px 25px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    list-style: none;
    position: relative;
    transition: var(--transition);
    font-size: 18px;
    color: var(--heading-color);
}

.accordion summary::-webkit-details-marker {
    display: none;
}

.accordion summary::after {
    content: '+';
    position: absolute;
    right: 25px;
    font-size: 20px;
}

.accordion details[open] summary::after {
    content: '-';
}

.accordion details[open] summary {
    background: var(--light-bg);
    color: var(--primary-color);
}

.accordion-content {
    padding: 20px 25px 30px;
    line-height: 1.7;
    color: var(--text-color);
    border-top: 1px solid #edf2f7;
}
