/* ===== VARIABLES Y RESET ===== */
:root {
    --primary-blue: #1a3a8f;
    --secondary-blue: #2a4db7;
    --light-blue: #4a7dff;
    --accent-red: #e63946;
    --dark-red: #c1121f;
    --dark-bg: #0f1426;
    --light-bg: #f8f9ff;
    --text-dark: #1a1a2e;
    --text-light: #f1faee;
    --gradient-primary: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    --gradient-red: linear-gradient(135deg, var(--accent-red), var(--dark-red));
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== TIPOGRAFÍA ===== */
h1, h2, h3, h4, h5 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-red);
    border-radius: 2px;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1.5rem;
}

/* ===== BOTONES ===== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    font-size: 1rem;
    box-shadow: var(--shadow);
}

.btn-primary {
    background: var(--gradient-red);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(230, 57, 70, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-blue);
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-full {
    width: 100%;
}

/* ===== ENCABEZADO ===== */
header {
    background: rgba(15, 20, 38, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 0.7rem 0;
    background: rgba(15, 20, 38, 0.98);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: white;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-red);
    transition: width 0.3s ease;
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--light-blue);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== SECCIÓN HERO ===== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
    margin-top: 80px;
    padding-top: 80px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-bg) 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 20, 38, 0.7);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== SECCIÓN BENEFICIOS ===== */
.benefits {
    padding: 6rem 0;
    background: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.benefit-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--light-blue);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.benefit-card i {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.benefit-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

/* ===== SECCIÓN PRODUCTOS DESTACADOS ===== */
.featured-products {
    padding: 6rem 0;
    background: var(--light-bg);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 220px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--light-bg) 0%, #e1e5ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image .image-placeholder {
    text-align: center;
    color: var(--primary-blue);
}

.product-image .image-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.product-image .image-placeholder span {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.8;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-red);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
}

.price {
    font-weight: bold;
    color: var(--accent-red);
    font-size: 1.3rem;
}

/* ===== SECCIÓN HOME ASSISTANT HERO ===== */
.ha-hero {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--primary-blue) 100%);
    color: white;
}

.ha-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.ha-hero-text h2 {
    color: white;
    text-align: left;
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.ha-hero-text h2:after {
    display: none;
}

.ha-hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    font-weight: 300;
}

.ha-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.ha-stat {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--light-blue);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.ha-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.ha-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.ha-feature i {
    font-size: 2rem;
    color: var(--light-blue);
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.ha-feature h4 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.ha-feature p {
    opacity: 0.9;
    margin-bottom: 0;
}

.ha-hero-visual {
    position: relative;
}

.ha-device-showcase {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ha-server-placeholder {
    width: 300px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.ha-server-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--light-blue);
}

.ha-server-placeholder span {
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.9;
}

/* ===== SECCIÓN CASOS DE USO ===== */
.use-cases {
    padding: 6rem 0;
    background: var(--light-bg);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.use-case {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    border-top: 4px solid var(--light-blue);
}

.use-case:hover {
    transform: translateY(-10px);
}

.use-case-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.use-case-icon i {
    font-size: 2rem;
    color: white;
}

.use-case h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.use-case p {
    color: #666;
    margin-bottom: 1.5rem;
}

.use-case-brands {
    background: rgba(74, 125, 255, 0.1);
    padding: 0.8rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--primary-blue);
    font-weight: 600;
}

/* ===== SECCIÓN CTA ===== */
.cta-section {
    padding: 6rem 0;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.cta-section h2:after {
    background: white;
}

.cta-section p {
    max-width: 700px;
    margin: 0 auto 2.5rem;
    font-size: 1.2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== SECCIÓN COTIZACIONES PERSONALIZADAS ===== */
.custom-quotes {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--light-bg) 0%, white 100%);
}

.quote-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.quote-text h2 {
    text-align: left;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.quote-text h2:after {
    left: 0;
    transform: none;
}

.quote-subtitle {
    font-size: 1.3rem;
    color: var(--secondary-blue);
    margin-bottom: 3rem;
    font-weight: 500;
}

.quote-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.quote-feature {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.quote-feature i {
    font-size: 2rem;
    color: var(--light-blue);
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.quote-feature h4 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.quote-feature p {
    color: #666;
    margin-bottom: 0;
}

.quote-cta {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--accent-red);
}

.quote-cta h4 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.quote-cta p {
    margin-bottom: 1.5rem;
    color: #666;
}

.quote-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.quote-buttons .btn i {
    margin-right: 0.5rem;
}

.quote-visual {
    display: flex;
    justify-content: center;
}

.quote-devices {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 400px;
}

.device-item {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.device-item:hover {
    transform: translateY(-5px);
    border-color: var(--light-blue);
}

.device-item i {
    font-size: 2.5rem;
    color: var(--light-blue);
    margin-bottom: 1rem;
    display: block;
}

.device-item span {
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 0.9rem;
}

/* ===== SECCIÓN COMPATIBILIDAD ===== */
.compatibility {
    padding: 6rem 0;
    background: var(--dark-bg);
    color: white;
    text-align: center;
}

.compatibility h2 {
    color: white;
    margin-bottom: 1rem;
}

.compatibility h2:after {
    background: var(--light-blue);
}

.compatibility p {
    margin-bottom: 3rem;
    opacity: 0.9;
}

.compatibility-icons {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.compatibility-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.compatibility-item i {
    font-size: 3rem;
    color: var(--light-blue);
}

.compatibility-item span {
    font-weight: 600;
    opacity: 0.9;
}

/* ===== PIE DE PÁGINA ===== */
footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #ecf0f1;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
    opacity: 0.9;
}

.footer-section ul li a:hover {
    color: #3498db;
    opacity: 1;
}

/* CONTACTO EN FOOTER - CORREGIDO */
.footer-section .contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-section .contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #ecf0f1;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
}

.footer-section .contact-item:hover {
    opacity: 1;
}

.footer-section .contact-item i {
    color: #3498db;
    width: 20px;
    text-align: center;
}

.footer-section .contact-item span {
    color: #ecf0f1 !important;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #3498db;
    transform: translateY(-2px);
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ecf0f1;
    opacity: 0.8;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
/* ===== ESTILOS PARA PRODUCTOS DETALLADOS ===== */
.product-categories {
    padding: 6rem 0;
    background: var(--light-bg);
}

.categories-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.category-btn {
    background: white;
    border: 2px solid var(--light-blue);
    color: var(--light-blue);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.category-btn:hover,
.category-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

.products-grid.detailed {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.products-grid.detailed .product-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.product-image-slider {
    position: relative;
}

.slider-container {
    position: relative;
    height: 300px;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(135deg, var(--light-bg) 0%, #e1e5ff 100%);
}

.slides {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--primary-blue);
}

.slide.active {
    opacity: 1;
}

.slide i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.slide span {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.8;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 3;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}

.product-features {
    list-style: none;
    margin: 1.5rem 0;
}

.product-features li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.product-features i {
    color: var(--accent-red);
    margin-right: 0.8rem;
    font-size: 0.9rem;
}

.highlight-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.compatibility-note {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(74, 125, 255, 0.1);
    padding: 1rem;
    border-radius: var(--radius);
    margin: 1.5rem 0;
    border-left: 3px solid var(--light-blue);
}

.compatibility-note i {
    color: var(--light-blue);
    font-size: 1.2rem;
}

.config-note {
    font-size: 0.8rem;
    color: var(--accent-red);
    font-weight: 600;
    display: block;
    margin-top: 0.5rem;
}

.product-features-mini {
    list-style: none;
    margin: 1rem 0;
}

.product-features-mini li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.product-features-mini i {
    color: var(--accent-red);
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

/* ===== ESTILOS PARA SERVICIOS ===== */
.services-detailed {
    padding: 4rem 0;
    background: #f8f9fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #e9ecef;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.service-card.featured {
    border: 2px solid #3498db;
    transform: scale(1.02);
}

.service-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #e74c3c;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.service-icon {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 1rem;
    text-align: center;
}

.service-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    text-align: center;
}

.service-features {
    list-style: none;
    margin: 1.5rem 0;
}

.service-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f1f1;
    display: flex;
    align-items: center;
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features i {
    color: #27ae60;
    margin-right: 0.5rem;
}

.service-price {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f1f1f1;
}

.service-price .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e74c3c;
    display: block;
    margin-bottom: 1rem;
}

.config-note {
    font-size: 0.8rem;
    color: #666;
    display: block;
    margin-bottom: 1rem;
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* Asegurar consistencia con productos */
.page-header {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}
/* ===== ESTILOS PARA CONTACTO ===== */
.contact-main {
    padding: 4rem 0;
    background: #f8f9fa;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info-card,
.contact-form-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.contact-info-card:hover,
.contact-form-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.contact-info-card h2,
.contact-form-card h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    text-align: center;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 8px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: #e9ecef;
}

.contact-icon {
    font-size: 1.5rem;
    color: #3498db;
    margin-top: 0.2rem;
}

.contact-content h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-content p {
    color: #666;
    margin: 0;
}

.contact-cta-card {
    background: #3498db;
    color: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.contact-cta-card h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.contact-cta-card p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.contact-cta-card .btn {
    background: white;
    color: #3498db;
}

.contact-cta-card .btn:hover {
    background: #f8f9fa;
}

/* Formulario */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* Preguntas Frecuentes */
.faq-section {
    padding: 4rem 0;
    background: white;
}

.faq-section h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 3rem;
    font-size: 2.2rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.faq-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
}

.faq-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.faq-icon {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.faq-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.faq-card p {
    color: #666;
    line-height: 1.6;
}

/* Mapa */
.map-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.map-section h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 3rem;
    font-size: 2.2rem;
}

.map-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.map-placeholder {
    padding: 3rem;
    text-align: center;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
}

.map-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.map-placeholder h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.map-placeholder p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.map-placeholder .btn {
    background: white;
    color: #3498db;
}

.map-placeholder .btn:hover {
    background: #f8f9fa;
}

/* ===== ESTILOS PARA PÁGINA DE PAQUETES ===== */
.packages-main {
    padding: 4rem 0;
    background: #f8f9fa;
}

.packages-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.packages-intro h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2.2rem;
}

.packages-intro p {
    color: #666;
    font-size: 1.1rem;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.package-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.package-card.featured {
    border: 3px solid #3498db;
    transform: scale(1.05);
}

.package-card.premium {
    border: 3px solid #f39c12;
    background: linear-gradient(135deg, #fff, #fef9e7);
}

.package-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: #e74c3c;
    color: white;
    padding: 0.5rem 2rem;
    font-size: 0.8rem;
    font-weight: bold;
    transform: rotate(45deg);
    z-index: 2;
}

.package-card.premium .package-badge {
    background: #f39c12;
}

.package-header {
    padding: 2rem;
    text-align: center;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
}

.package-card.premium .package-header {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.package-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.package-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.package-subtitle {
    opacity: 0.9;
    font-size: 0.9rem;
}

.package-features {
    padding: 2rem;
}

.package-features h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.package-features ul {
    list-style: none;
}

.package-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f1f1;
    display: flex;
    align-items: center;
}

.package-features li:last-child {
    border-bottom: none;
}

.package-features i {
    color: #27ae60;
    margin-right: 0.5rem;
}

.package-benefits {
    padding: 0 2rem;
}

.package-benefits h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.benefits-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.benefit-tag {
    background: #3498db;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.package-price {
    padding: 2rem;
    border-top: 2px solid #f1f1f1;
    text-align: center;
}

.price-main {
    margin-bottom: 1rem;
}

.price {
    font-size: 2rem;
    font-weight: bold;
    color: #e74c3c;
    display: block;
}

.price-note {
    font-size: 0.9rem;
    color: #666;
    text-decoration: line-through;
}

.savings-badge {
    background: #27ae60;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 1rem;
    display: inline-block;
}

.install-note {
    font-size: 0.8rem;
    color: #666;
    display: block;
    margin-top: 1rem;
}

.package-comparison {
    padding: 4rem 0;
    background: white;
}

.package-comparison h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 3rem;
    font-size: 2.2rem;
}

.comparison-table {
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.comparison-table th {
    background: #2c3e50;
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: bold;
}

.comparison-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #f1f1f1;
}

.comparison-table tr:nth-child(even) {
    background: #f8f9fa;
}

.comparison-table i.fa-check {
    color: #27ae60;
    font-size: 1.2rem;
}

.comparison-table i.fa-times {
    color: #e74c3c;
    font-size: 1.2rem;
}

.financing-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.financing-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.financing-text h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.financing-text p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.financing-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.financing-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #2c3e50;
    font-weight: bold;
}

.financing-feature i {
    color: #3498db;
    font-size: 1.2rem;
}

.financing-visual {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.payment-example h4 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
}

.payment-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.payment-item:last-child {
    background: #3498db;
    color: white;
    font-weight: bold;
}

/* ===== ESTILOS PARA VIDEOS EN PAQUETES ===== */
.package-icon.video-container {
    width: 200;
    height: 200
    border-radius: 50%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.package-card:not(.premium) .package-icon.video-container {
    background: rgba(255, 255, 255, 0.1);
}

.package-card.premium .package-icon.video-container {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 5px 20px rgba(243, 156, 18, 0.3);
}

.package-icon.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.package-icon.video-container:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
    border-color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
    .package-icon.video-container {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 576px) {
    .package-icon.video-container {
        width: 200
        height: 200
    }
}

.package-icon.video-container::before {
    content: attr(data-fallback);
    position: absolute;
    color: white;
    font-size: 2rem;
    z-index: 1;
    display: none;
}

.package-icon.video-container.fallback::before {
    display: block;
}

/* ===== ESTILOS PARA SECCIÓN DE ESCENARIOS ===== */
.scenarios-detailed {
    padding: 4rem 0;
    background: var(--light-bg);
}

.scenarios-detailed h2 {
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 1rem;
}

.scenarios-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.scenario-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.scenario-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid #e9ecef;
}

.scenario-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.scenario-card.featured {
    border: 2px solid var(--accent-red);
}

.scenario-icon.video-container {
    width: 100%;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background-color: #000;
}

.scenario-icon.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scenario-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.scenario-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.scenario-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.action-tag {
    background: var(--light-blue);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.scenarios-cta {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-bg));
    color: white;
    padding: 2.5rem;
    border-radius: var(--radius);
    text-align: center;
    margin-top: 2rem;
}

.scenarios-cta h3 {
    color: white;
    margin-bottom: 1rem;
}

.scenarios-cta p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.scenarios-cta .btn {
    background: white;
    color: var(--primary-blue);
}

.scenarios-cta .btn:hover {
    background: #f8f9fa;
}

/* Ajustes responsivos para videos de escenarios */
@media (max-width: 768px) {
    .scenario-icon.video-container {
        height: 140px;
    }
    
    .scenario-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 576px) {
    .scenario-icon.video-container {
        height: 120px;
    }
    
    .scenario-card {
        padding: 1.2rem;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .container {
        width: 95%;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .hero h1 {
        font-size: 3.2rem;
    }
}

@media (max-width: 992px) {
    .products-grid.detailed .product-card {
        grid-template-columns: 1fr;
    }
    
    .ha-hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .quote-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    .hero {
        padding-top: 70px;
        min-height: calc(100vh - 70px);
    }
    
    nav {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background: var(--dark-bg);
        transition: right 0.3s ease;
        padding: 2rem;
        z-index: 999;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .ha-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .ha-feature {
        flex-direction: column;
        text-align: center;
    }
    
    .compatibility-icons {
        gap: 2rem;
    }
    
    .quote-feature {
        flex-direction: column;
        text-align: center;
    }
    
    .quote-buttons {
        flex-direction: column;
    }
    
    .quote-devices {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .container {
        width: 95%;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .benefit-card, .product-card, .use-case {
        padding: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .categories-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .category-btn {
        width: 100%;
        max-width: 250px;
    }
}
/* ========== VIDEO Y FRASE (mismo ancho que página) ========== */

/* Contenedor que se ajusta al ancho de tu página */
.video-frase-container {
    width: 100%;
    max-width: 1200px; /* Mismo que el resto de tu contenido */
    margin: 0 auto; /* Centra como el resto */
    padding: 40px 20px; /* Espaciado consistente */
    display: flex;
    flex-direction: column;
    align-items: center; /* ← Esto centra el contenido */
    justify-content: center; /* ← Centrado vertical si es necesario */
}

/* Video con encuadre - ocupa ancho completo del contenedor */
.video-frame {
    width: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
}
.hero-video-frase {
    margin-top: 80px; /* ← AGREGAR ESTA LÍNEA SOLAMENTE */
}

/* Elegir UN encuadre (elige solo uno) */

/* 1. ENCUADRE MODERNO (recomendado) */
.video-frame-moderno {
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    background: #000;
}

/* 2. ENCUADRE SIMPLE */
.video-frame-simple {
    border: 1px solid #ddd;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 3. ENCUADRE SIN BORDES */
.video-frame-clean {
    border: none;
    border-radius: 0;
}

/* El video en sí */
.main-video {
    width: 50%;
    height: auto;
    margin: 0
    display: block;
    border-radius: 50px;
}

/* Si quieres altura específica, usa esto: */
.main-video.altura-media {
    height: 400px;
    object-fit: cover;
}

.main-video.altura-grande {
    height: 500px;
    object-fit: cover;
}

/* Controles opcionales */
.video-controls {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 10;
}

.play-btn {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.play-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* FRASE debajo del video */
.frase-contenedor {
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

.frase-destacada {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.3;
}

.frase-subtitulo {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Efecto hover sutil en video */
.video-frame:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .video-frase-container {
        padding: 20px 15px;
    }
    
    .frase-destacada {
        font-size: 1.5rem;
    }
    
    .frase-subtitulo {
        font-size: 1rem;
    }
    
    .main-video.altura-media {
        height: 300px;
    }
    
    .main-video.altura-grande {
        height: 350px;
    }
    .hero-video-frase {
        margin-top: 70px;
    }
}

@media (max-width: 480px) {
    .video-frame {
        border-radius: 8px;
    }
    
    .main-video {
        border-radius: 6px;
    }
    
    .frase-destacada {
        font-size: 1.3rem;
    }
}
/* ===== SOBRESCRITURA PARA PRODUCTOS DINÁMICOS ===== */
#productos-container .product-card {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    margin-bottom: 3rem !important;
}

#productos-container .slider-container {
    height: 300px !important;
    background: linear-gradient(135deg, #f8f9ff 0%, #e1e5ff 100%) !important;
}

#productos-container .slide {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#productos-container .slide img {
    width: 80% !important;
    height: 80% !important;
    object-fit: contain !important;
}