/* Archivo: views/assets/css/styles.css */

/* --- VARIABLES CORPORATIVAS --- */
:root {
    --azul-oscuro: #0a2540;
    --azul-brillante: #0070f3;
    --cyan: #0df;
    --naranja: #ff6a00;
    --texto-oscuro: #2d3748;
    --texto-gris: #718096;
    --bg-gris: #f7fafc;
}

/* --- ESTILOS GENERALES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

body, html {
    background-color: #ffffff;
    color: var(--texto-oscuro);
    overflow-x: hidden !important; /* EVITA EL ESPACIO EN BLANCO A LA DERECHA */
    width: 100% !important;
    max-width: 100vw !important;
    position: relative;
}

/* --- ESTILOS DEL HEADER Y LOGO --- */
.main-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 100000 !important; /* SIEMPRE POR ENCIMA DEL CHATBOT (99999) */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-logo {
    height: 52px !important;
    width: 52px !important;
    max-width: 52px !important;
    max-height: 52px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 8px rgba(0, 112, 243, 0.15);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--azul-oscuro);
    line-height: 1;
}

.brand-sub {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--naranja);
}

/* Menú de Navegación */
.navigation ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 22px;
}

.navigation ul li a {
    text-decoration: none;
    color: var(--texto-gris);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.navigation ul li a:hover, .navigation ul li a.active {
    color: var(--azul-brillante);
}

.btn-cotizar {
    display: inline-block;
    background-color: var(--naranja);
    color: #ffffff !important;
    padding: 9px 20px;
    border-radius: 20px;
    font-weight: 600 !important;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(255, 106, 0, 0.15);
    transition: all 0.2s ease;
}

.btn-cotizar:hover {
    background-color: #e05d00;
    transform: translateY(-1px);
}

/* --- SECCIÓN HERO --- */
.hero-section {
    position: relative;
    background-image: url('../img/innova.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 530px; 
    display: flex;
    align-items: center;
    padding: 90px 20px;
    color: #ffffff;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(5, 22, 34, 0.85) 0%, rgba(11, 43, 77, 0.4) 100%);
    z-index: 1;
}

.hero-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-content {
    width: 100%;
    max-width: 620px;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.hero-content h1 span {
    color: var(--cyan);
}

.hero-content p {
    font-size: 1.1rem;
    color: #e2e8f0;
    margin-bottom: 35px;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.btn-empiece {
    display: inline-block;
    background-color: var(--naranja);
    color: #ffffff;
    text-decoration: none;
    padding: 14px 36px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 14px rgba(255, 106, 0, 0.4);
    transition: all 0.25s ease;
}

.btn-empiece:hover {
    background-color: #e05d00;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 106, 0, 0.55);
}

/* --- SECCIÓN CABECERA INTERNA (PÁGINA SERVICIOS) --- */
.services-page-header {
    position: relative;
    background: linear-gradient(135deg, #051622 0%, #0b2b4d 100%);
    background-image: url('../img/servicios.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    padding: 120px 0;
    display: flex;
    align-items: center;
    min-height: 400px;
}

.services-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 34, 68, 0.85) 0%, rgba(0, 64, 128, 0.7) 100%);
    z-index: 1;
}

.services-header-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.services-page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.services-page-header p {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 650px;
    margin: 0 auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* --- SECCIÓN NOSOTROS --- */
.about-section {
    background-color: #ffffff;
    padding: 85px 20px;
}

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

.about-header {
    text-align: center;
    margin-bottom: 40px;
}

.about-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--azul-oscuro);
    margin-bottom: 10px;
}

.about-subtitle {
    font-size: 1rem;
    color: var(--naranja);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-intro {
    max-width: 850px;
    margin: 0 auto 55px auto;
    text-align: center;
}

.about-intro p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--texto-oscuro);
}

.about-mv-grid {
    display: flex;
    gap: 35px;
}

.mv-card {
    flex: 1;
    background-color: var(--bg-gris);
    border-radius: 12px;
    padding: 40px 30px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.mv-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 112, 243, 0.2);
}

.mv-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 112, 243, 0.1);
    color: var(--azul-brillante);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 22px;
}

.mv-card h3 {
    font-size: 1.4rem;
    color: var(--azul-oscuro);
    margin-bottom: 15px;
}

.mv-card p {
    font-size: 0.95rem;
    color: var(--texto-gris);
    line-height: 1.6;
    text-align: justify;
}

/* --- SECCIÓN CONTENEDORES DE TARIFAS --- */
.services-section, .services-section-independent {
    background-color: var(--bg-gris);
    padding: 75px 20px;
}

.services-section h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--azul-oscuro);
    text-align: center;
    margin-bottom: 45px;
}

.category-title {
    max-width: 1200px;
    margin: 50px auto 25px auto;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--azul-oscuro);
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.category-title i {
    color: var(--azul-brillante);
}

.services-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 25px;
}

.service-card {
    background-color: #ffffff;
    flex: 1;
    border-radius: 8px;
    padding: 35px 25px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: all 0.25s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.04);
}

.card-icon {
    width: 44px;
    height: 44px;
    background-color: rgba(0, 112, 243, 0.08);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--azul-brillante);
    font-size: 1.3rem;
}

.service-card h3 {
    font-size: 1.25rem;
    color: var(--azul-oscuro);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--texto-gris);
    line-height: 1.5;
}

/* Precios de la Página Independiente */
.pricing-card {
    display: flex;
    flex-direction: column;
}

.price-tag {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--azul-brillante);
    margin-bottom: 5px;
}

.delivery-time {
    font-size: 0.85rem;
    color: var(--naranja);
    font-weight: 600;
    margin-bottom: 20px;
}

.card-features {
    list-style: none;
    margin-top: 10px;
}

.card-features li {
    font-size: 0.9rem;
    color: var(--texto-oscuro);
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.4;
}

.card-features li i {
    color: #10b981;
    margin-top: 3px;
    font-size: 0.85rem;
}

.featured-card {
    border: 2px solid var(--azul-brillante);
    box-shadow: 0 10px 25px rgba(0, 112, 243, 0.08);
    transform: scale(1.02);
    position: relative;
}

.card-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background-color: var(--azul-brillante);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

.card-badge.bg-orange {
    background-color: var(--naranja);
}

.global-includes {
    max-width: 1200px;
    margin: 30px auto 0 auto;
    background-color: rgba(0, 112, 243, 0.05);
    border-left: 4px solid var(--azul-brillante);
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
}

.global-includes p {
    font-size: 0.9rem;
    color: var(--azul-oscuro);
}

.promo-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 40px 30px;
}

.promo-card h4 {
    font-size: 1.3rem;
    color: var(--azul-oscuro);
    margin-bottom: 10px;
}

.promo-price {
    font-size: 2.3rem;
    font-weight: 900;
    color: var(--naranja);
    margin-bottom: 15px;
}

.featured-promo {
    border: 2px solid var(--naranja);
    box-shadow: 0 12px 30px rgba(255, 106, 0, 0.1);
}

/* --- TABLA DE SERVICIOS COMPLEMENTARIOS --- */
.table-container {
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: auto;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.complementary-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.complementary-table th, .complementary-table td {
    padding: 16px 24px;
    font-size: 0.95rem;
}

.complementary-table th {
    background-color: var(--azul-oscuro);
    color: #ffffff;
}

.complementary-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
}

.complementary-table tbody tr:hover {
    background-color: rgba(0, 112, 243, 0.02);
}

.complementary-table td strong {
    color: var(--azul-brillante);
}

/* --- ESTILOS DEL FOOTER CON REDES SOCIALES --- */
.main-footer {
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 35px 20px;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-socials {
    display: flex;
    gap: 18px;
    justify-content: center;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--bg-gris);
    color: var(--texto-gris);
    border-radius: 50%;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid #e2e8f0;
}

.footer-socials a:hover {
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.footer-socials a[aria-label="Instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
}

.footer-socials a[aria-label="Telegram"]:hover {
    background-color: #0088cc;
    border-color: #0088cc;
}

.footer-socials a[aria-label="X (Twitter)"]:hover {
    background-color: #000000;
    border-color: #000000;
}

.footer-container p {
    font-size: 0.85rem;
    color: var(--texto-gris);
}

/* --- NUEVA SECCIÓN DE CONTACTO --- */
.contact-main-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.contact-info-panel, .contact-form-panel {
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 40px;
    flex: 1;
    box-shadow: 0 4px 6px rgba(0,0,0,0.01);
}

.contact-panel-title {
    font-size: 1.5rem;
    color: var(--azul-oscuro);
    margin-bottom: 12px;
    font-weight: 700;
}

.contact-panel-desc {
    font-size: 0.95rem;
    color: var(--texto-gris);
    margin-bottom: 35px;
    line-height: 1.5;
}

.contact-detail-item {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 30px;
}

.contact-icon-box {
    width: 48px;
    height: 48px;
    background-color: rgba(0, 112, 243, 0.08);
    color: var(--azul-brillante);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-text-box h4 {
    font-size: 1rem;
    color: var(--azul-oscuro);
    margin-bottom: 4px;
}

.contact-text-box p, .contact-text-box p a {
    font-size: 0.9rem;
    color: var(--texto-gris);
    line-height: 1.4;
    text-decoration: none;
}

.contact-text-box p a:hover {
    color: var(--azul-brillante);
}

.form-group-split {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group-split .form-field {
    flex: 1;
    margin-bottom: 0;
}

.form-field {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--azul-oscuro);
}

.form-field input, .form-field select, .form-field textarea {
    padding: 12px 16px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--texto-oscuro);
    background-color: #ffffff;
    outline: none;
    transition: border-color 0.2s;
}

.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
    border-color: var(--azul-brillante);
}

.btn-enviar-formulario {
    width: 100%;
    background-color: var(--azul-brillante);
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color 0.2s;
}

.btn-enviar-formulario:hover {
    background-color: #0056bd;
}

.contact-action-container {
    margin-top: 40px;
    text-align: center;
}

.btn-ver-planes {
    display: inline-block;
    padding: 12px 30px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3748;
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.btn-ver-planes:hover {
    color: #ffffff;
    background-color: #0400ff;
    border-color: #00d9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 210, 255, 0.15);
}

/* ==========================================================================
   MEDIA QUERIES RESPONSIVE (UNIFICADOS Y OPTIMIZADOS)
   ========================================================================== */

/* 1. HEADER Y NAVEGACIÓN EN MÓVIL */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column !important;
        align-items: center !important;
        padding: 15px 20px !important;
        gap: 15px !important;
    }

    .logo-area {
        width: 100% !important;
        justify-content: center !important;
        margin-bottom: 5px !important;
    }

    .navbar-logo {
        height: 45px !important;
        width: 45px !important;
        max-width: 45px !important;
        max-height: 45px !important;
    }

    .brand-name { font-size: 1.1rem; }
    .brand-sub { font-size: 0.75rem; }

    .navigation { width: 100% !important; }

    .navigation ul {
        flex-direction: column !important;
        width: 100% !important;
        gap: 8px !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .navigation ul li {
        width: 100% !important;
        text-align: center !important;
    }

    .navigation ul li a {
        display: block !important;
        width: 100% !important;
        padding: 12px 0 !important;
        border-radius: 6px !important;
    }

    .navigation ul li a:hover {
        background-color: var(--bg-gris) !important;
    }

    .btn-cotizar {
        width: 100% !important;
        text-align: center !important;
        margin-top: 10px !important;
        display: block !important;
    }

    /* Ajustes de secciones en móvil */
    .services-page-header { padding: 80px 0; min-height: 300px; }
    .services-page-header h1 { font-size: 2.2rem; }
    .services-page-header p { font-size: 1rem; }
    
    .contact-main-container { flex-direction: column; gap: 30px; }
    .form-group-split { flex-direction: column; gap: 20px; }
    .services-grid { flex-direction: column; gap: 35px; }
    .featured-card { transform: scale(1); }
    .about-mv-grid { flex-direction: column; }
}

/* 2. CONTROL DEL ASISTENTE VIRTUAL INNOVA EN MÓVIL */
@media (max-width: 768px) {
    #innova-fab {
        width: 70px !important;
        height: 70px !important;
        bottom: 10px !important;
        right: 10px !important;
    }
    
    #innova-panel {
        bottom: 90px !important;
        right: 10px !important;
        left: 10px !important;
        width: auto !important;
        max-width: calc(100vw - 20px) !important; /* Evita que se salga de la pantalla */
    }
    
    #innova-escena {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
    }
    
    #innova-avatar-marco {
        width: 70px !important;
        height: 70px !important;
        flex: none !important;
    }
    
    #innova-burbuja {
        width: 100% !important;
    }
    
    #innova-mensajes {
        max-height: 150px !important;
    }
}