/* Variables CSS para paleta de colores moderna */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #06b6d4;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    --gradient-secondary: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
    
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --box-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--gray-700);
    overflow-x: hidden;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

/* Navegación */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--box-shadow);
}

.navbar-brand .logo {
    height: 58px;
    width: auto;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--gray-700);
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

.navbar-nav .nav-link.btn {
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-primary);
    color: white;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/hero_background.png') center/cover;
    opacity: 0.3;
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    z-index: 2;
}

.hero-section .container {
    position: relative;
    z-index: 3;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons .btn {
    margin: 0.5rem 0.5rem 0.5rem 0;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

.hero-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-lg);
}

/* Botones personalizados */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--box-shadow);
}

.btn-success {
    background-color: var(--success-color);
}

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

/* Planes de Internet */
.plan-tabs .nav-link {
    border-radius: var(--border-radius);
    font-weight: 600;
    color: var(--gray-600);
    background: var(--gray-100);
    border: none;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
}

.plan-tabs .nav-link.active {
    background: var(--gradient-primary);
    color: white;
}

.plan-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    border: 2px solid transparent;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.plan-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.plan-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 600;
}

.plan-header h4 {
    font-size: 1.5rem;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.plan-price-original {
    font-size: 0.95rem;
    color: var(--gray-400);
    text-decoration: line-through;
    margin-bottom: 0.1rem;
}

.plan-period {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.plan-features li {
    padding: 0.5rem 0;
    color: var(--gray-600);
}

.plan-features li i {
    color: var(--success-color);
    margin-right: 0.5rem;
}

/* TV Digital */
.tv-plan-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.tv-plan-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

.tv-plan-card.featured {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
}

.tv-plan-card h5 {
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.tv-plan-card .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.additional-packs {
    background: var(--gray-100);
    border-radius: var(--border-radius);
    padding: 1rem;
}

.pack-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.pack-item:last-child {
    border-bottom: none;
}

.pack-item .price {
    font-weight: 600;
    color: var(--primary-color);
}

/* Features List */
.features-list {
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.feature-item h5 {
    margin-bottom: 0.5rem;
    color: var(--gray-800);
}

.feature-item p {
    color: var(--gray-600);
    margin-bottom: 0;
}

/* Por qué elegirnos */
.why-choose-item i {
    color: rgba(255, 255, 255, 0.9);
}

.why-choose-item h5 {
    color: white;
    margin-bottom: 1rem;
}

.why-choose-item p {
    color: rgba(255, 255, 255, 0.8);
}

/* Formulario de contacto */
.contact-form-wrapper {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    box-shadow: var(--box-shadow-lg);
    border: 1px solid var(--gray-200);
}

.contact-form .form-control,
.contact-form .form-select {
    border-radius: var(--border-radius);
    border: 2px solid var(--gray-200);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.contact-form .form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

/* Tarjetas de contacto */
.contact-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.contact-card h5 {
    color: var(--gray-800);
    margin: 1rem 0;
}

.contact-card p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    background: var(--gray-900) !important;
}

.footer-logo {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

footer h6 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
}

footer a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: white;
}

/* Chatbot Widget */
.chatbot-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--box-shadow-lg);
    transition: all 0.3s ease;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
}

.chatbot-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 300px;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-lg);
    display: none;
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.chatbot-window.active {
    display: block;
    animation: slideUp 0.3s ease;
}

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

.chatbot-header {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h6 {
    margin: 0;
    font-weight: 600;
}

.chatbot-body {
    padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.chatbot-message {
    background: var(--gray-100);
    padding: 0.75rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.bot-message {
    background: var(--gray-100);
}

.user-message {
    background: var(--primary-color);
    color: white;
    margin-left: 2rem;
}

.chatbot-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chatbot-option {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chatbot-option:hover {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .plan-card.featured {
        transform: none;
    }
    
    .plan-card.featured:hover {
        transform: translateY(-5px);
    }
    
    .chatbot-window {
        width: 280px;
        right: -10px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem 1rem;
    }
    
    .navbar-brand .logo {
        height: 42px;
    }
}

/* Animaciones adicionales */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Utilidades */
.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-secondary {
    background: var(--gradient-secondary);
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =====================
   HUB PAGE
   ===================== */

.hub-hero {
    padding: 140px 0 90px;
    background: #fff;
    border-bottom: 1px solid #E5E7EB;
}

.hub-badge {
    display: inline-block;
    background: #EFF6FF;
    color: #2563EB;
    padding: 0.35rem 1rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 1.5rem;
}

.hub-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    font-family: var(--font-secondary);
}

.hub-subtitle {
    font-size: 1.1rem;
    color: #6B7280;
    margin-bottom: 2.5rem;
}

.hub-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-cta {
    border-radius: var(--border-radius);
    padding: 0.5rem 1.25rem;
    font-weight: 600;
}

/* Services grid */
.services-section {
    padding: 80px 0;
    background: #F9FAFB;
}

.service-card {
    display: block;
    background: white;
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    text-decoration: none;
    color: inherit;
    border: 1px solid #E5E7EB;
    transition: all 0.25s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    border-color: transparent;
    color: inherit;
    text-decoration: none;
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}

.service-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.service-card p {
    font-size: 0.9rem;
    color: #6B7280;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.service-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2563EB;
}

.service-link i {
    margin-left: 0.25rem;
    transition: transform 0.2s;
    font-size: 0.75rem;
}

.service-card:hover .service-link i {
    transform: translateX(4px);
}

/* Stats */
.stats-section {
    padding: 60px 0;
    background: white;
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2563EB;
    font-family: var(--font-secondary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #6B7280;
}

/* Contact bar */
.contact-bar {
    padding: 70px 0;
    background: #F9FAFB;
}

.contact-bar h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.contact-bar p {
    color: #6B7280;
    margin: 0;
}

/* Footer */
footer {
    background: #111827 !important;
    color: #9CA3AF;
    padding: 3.5rem 0 1.5rem;
}

.footer-logo {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

footer p {
    color: #9CA3AF;
    font-size: 0.9rem;
}

footer h6 {
    color: white !important;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #9CA3AF;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-divider {
    border-color: #374151;
    margin: 2rem 0 1.5rem;
}

.footer-copy {
    font-size: 0.85rem;
    color: #6B7280;
    margin: 0;
}

.footer-social {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-social:hover {
    color: white;
}

/* Banners de página (electricidad / solar) */
.page-banner-wrap {
    width: 100%;
    line-height: 0;
}

.page-banner {
    width: 100%;
    height: auto;
    display: block;
}

/* Secciones con banner integrado (jardines / informática) */
.product-section {
    border-top: 1px solid #E5E7EB;
}

.product-section-banner {
    width: 100%;
    line-height: 0;
}

.product-section-banner img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.product-section:hover .product-section-banner img {
    transform: scale(1.02);
}

/* =====================
   SERVICE PAGES
   ===================== */

.service-hero {
    padding: 130px 0 70px;
    color: white;
    position: relative;
    overflow: hidden;
}

.service-hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 60px;
    background: white;
    clip-path: ellipse(55% 100% at 50% 100%);
}

.service-hero-inner {
    position: relative;
    z-index: 2;
}

.service-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.2);
    padding: 0.35rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.service-hero-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.service-hero-title {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.service-hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 2rem;
    max-width: 520px;
}

/* Feature cards */
.features-grid {
    padding: 80px 0;
    background: white;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #E5E7EB;
    height: 100%;
    transition: all 0.25s ease;
}

.feature-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.07);
    border-color: transparent;
    transform: translateY(-3px);
}

.feature-card-icon {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.feature-card h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.4rem;
}

.feature-card p {
    font-size: 0.875rem;
    color: #6B7280;
    margin: 0;
    line-height: 1.6;
}

/* CTA section */
.cta-section {
    padding: 80px 0;
    background: #F9FAFB;
    text-align: center;
    border-top: 1px solid #E5E7EB;
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
}

.cta-section p {
    color: #6B7280;
    margin-bottom: 2rem;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .hub-title { font-size: 2.5rem; }
    .service-hero-title { font-size: 2rem; }
    .stat-number { font-size: 2rem; }
}

@media (max-width: 576px) {
    .hub-title { font-size: 2rem; }
    .hub-hero { padding: 120px 0 60px; }
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* Fotos del local */
.store-section {
    background: #111827;
}

.store-photos-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    line-height: 0;
}

.store-photos-strip img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.store-photos-strip img:hover {
    transform: scale(1.02);
    z-index: 1;
    position: relative;
}

.store-caption {
    text-align: center;
    padding: 0.75rem 1rem;
    color: #9CA3AF;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .store-photos-strip {
        grid-template-columns: repeat(2, 1fr);
    }
    .store-photos-strip img {
        height: 220px;
    }
    .store-photos-strip img:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 576px) {
    .store-photos-strip {
        grid-template-columns: 1fr;
    }
    .store-photos-strip img {
        height: 240px;
    }
    .store-photos-strip img:last-child {
        grid-column: auto;
    }
}

/* Próximamente badge */
.proximamente-badge {
    display: inline-flex;
    align-items: center;
    background: #FEF3C7;
    color: #92400E;
    border: 1.5px solid #FCD34D;
    padding: 0.45rem 1.1rem;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.proximamente-wrap {
    position: relative;
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    background: #FFFBEB;
    border: 2px dashed #FCD34D;
}

