/* ========================================
   TELEADVISE - ESTILOS COMPLETOS
   ======================================== */

:root {
    --primary: #2563eb;
    --secondary: #7c3aed;
    --dark: #1a202c;
    --light: #f7fafc;
    --lighter: #edf2f7;
    --text-light: #718096;
    --border: #e2e8f0;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   NAVBAR
   ======================================== */

.navbar {
    background: var(--white);
    padding: 20px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -1px;
}

.logo-tele {
    color: var(--primary);
}

.logo-advise {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-cta {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 6px;
    transition: transform 0.2s;
}

.btn-cta:hover {
    transform: scale(1.05);
}

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 6px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--white);
        padding: 20px;
        gap: 15px;
        display: none;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    margin-top: 70px;
    display: grid;
    grid-template-rows: auto auto;
    padding: 0;
    min-height: 100vh;
}

.hero-visual {
    grid-row: 1;
    position: relative;
    overflow: hidden;
    min-height: 60vh;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-content {
    grid-row: 2;
    background: var(--white);
    padding: 80px 20px;
    text-align: center;
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--dark);
    max-width: 900px;
    text-align: center;
}

.hero-content .highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content > p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.8;
    max-width: 800px;
    text-align: center;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: var(--lighter);
    color: var(--dark);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    background: var(--light);
}

.btn-outline {
    background: transparent;
    color: var(--dark);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content > p {
        font-size: 16px;
    }

    .hero-visual {
        min-height: 40vh;
    }

    .hero-content {
        padding: 40px 20px;
    }
}

/* ========================================
   SECCIONES GENERALES
   ======================================== */

section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 16px;
    color: var(--dark);
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   DESAFÍOS
   ======================================== */

.desafios {
    background: var(--light);
}

.desafios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.desafio-item {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.desafio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 28px;
    margin-bottom: 20px;
}

.desafio-item h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--dark);
}

.desafio-item p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ========================================
   SERVICIOS
   ======================================== */

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.servicio-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    border: 2px solid var(--border);
    transition: all 0.3s;
    position: relative;
}

.servicio-card:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.1);
}

.servicio-numero {
    font-size: 32px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 16px;
    opacity: 0.3;
}

.servicio-icon {
    width: 60px;
    height: 60px;
    background: var(--lighter);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 28px;
    margin-bottom: 20px;
}

.servicio-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--dark);
}

.servicio-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ========================================
   METODOLOGÍA
   ======================================== */

.metodologia {
    background: var(--light);
}

.metodo-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.step {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 20px;
}

.step h3 {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--dark);
}

.step p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.step ul {
    list-style: none;
    padding-left: 0;
}

.step li {
    color: var(--text-light);
    padding-left: 24px;
    position: relative;
    margin-bottom: 12px;
}

.step li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.resultado-esperado {
    background: #f3e8ff;
    padding: 40px;
    border-radius: 12px;
}

.resultado-esperado h3 {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
    color: var(--dark);
}

.resultado-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.resultado-item {
    text-align: center;
}

.resultado-numero {
    font-size: 36px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.resultado-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ========================================
   PLANES
   ======================================== */

.planes {
    background: var(--white);
}

.planes-grid {
    position: relative;
    display: flex;
    align-items: center;
    gap: 40px;
    overflow: hidden;
    margin-bottom: 60px;
}

.plan-card {
    flex: 0 0 calc(33.333% - 27px);
    transition: all 0.5s ease-in-out;
    opacity: 1;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 30px 25px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.plan-card.hidden-carousel {
    display: none;
    opacity: 0;
}

.plan-card.visible-carousel {
    animation: slideIn 0.5s ease-out;
}

.plan-card.featured {
    border-color: var(--primary);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.15);
    transform: scale(1.05);
}

.badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
}

.plan-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--dark);
}

.price {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 6px;
}

.price span {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

.plan-desc {
    color: var(--text-light);
    margin-bottom: 16px;
    font-size: 13px;
}

.plan-features {
    list-style: none;
    margin-bottom: 20px;
    flex-grow: 1;
}

.plan-features li {
    padding: 8px 0;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features i {
    color: var(--primary);
    width: 20px;
}

.plan-features i.fa-times {
    color: #cbd5e0;
}

.plan-features i.fa-info-circle {
    color: var(--secondary);
}

/* Carrusel controles */
.carousel-controls {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    background: var(--primary);
    border-color: var(--secondary);
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: var(--secondary);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 1024px) {
    .plan-card {
        flex: 0 0 calc(50% - 20px);
    }

    .plan-card.featured {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .plan-card {
        flex: 0 0 100%;
    }

    .planes-grid {
        gap: 20px;
    }
}

/* ========================================
   CONTACTO
   ======================================== */

.contacto {
    background: var(--light);
}

.contacto-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contacto-form {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-note {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 16px;
}

.contacto-info {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contacto-info h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--dark);
}

.info-block {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.info-block:last-child {
    border-bottom: none;
}

.info-block i {
    font-size: 24px;
    color: var(--primary);
    width: 30px;
    text-align: center;
}

.info-block strong {
    display: block;
    color: var(--dark);
    margin-bottom: 4px;
}

.info-block p {
    color: var(--text-light);
    margin: 0;
}

@media (max-width: 768px) {
    .contacto-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ========================================
   CHATBOT
   ======================================== */

.chatbot-container {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 380px;
    height: 600px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    z-index: 999;
    transition: all 0.3s;
}

.chatbot-container.hidden {
    display: none;
    opacity: 0;
    transform: scale(0.9);
}

.chatbot-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h3 {
    margin: 0;
    font-size: 18px;
}

.chatbot-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s;
}

.chatbot-close:hover {
    transform: scale(1.2);
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chatbot-message {
    display: flex;
    margin-bottom: 12px;
}

.chatbot-message p {
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 80%;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.4;
}

.chatbot-message.bot p {
    background: var(--lighter);
    color: var(--dark);
    border-radius: 12px 12px 12px 0;
}

.chatbot-message.user {
    justify-content: flex-end;
}

.chatbot-message.user p {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-radius: 12px 12px 0 12px;
}

.chatbot-options {
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.chatbot-option-btn {
    background: var(--lighter);
    border: 2px solid var(--border);
    color: var(--dark);
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    text-align: left;
}

.chatbot-option-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.chatbot-input-area {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid var(--border);
}

.chatbot-input {
    flex: 1;
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 14px;
}

.chatbot-input:focus {
    outline: none;
    border-color: var(--primary);
}

.chatbot-send {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.chatbot-send:hover {
    transform: scale(1.05);
}

.chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: all 0.3s;
    z-index: 998;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
}

.chatbot-toggle.hidden {
    display: none;
}

@media (max-width: 768px) {
    .chatbot-container {
        width: 100%;
        height: 70vh;
        bottom: 0;
        right: 0;
        left: 0;
        border-radius: 12px 12px 0 0;
    }
}

/* ========================================
   WHATSAPP FLOTANTE
   ======================================== */

.whatsapp-float {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    transition: all 0.3s;
    z-index: 997;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-section p {
    color: #cbd5e0;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #cbd5e0;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    section {
        padding: 40px 0;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .section-header p {
        font-size: 16px;
    }
}
