* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1e3a5f;
    --primary-dark: #0f2b45;
    --secondary: #2d6a4f;
    --secondary-dark: #1f4d38;
    --accent: #e67e22;
    --accent-dark: #c0392b;
    --gray-light: #f4f6f9;
    --gray: #e0e4e8;
    --gray-dark: #5a6c7e;
    --text-dark: #1a2a3a;
    --shadow: 0 5px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 10px 30px rgba(0,0,0,0.12);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--gray-light);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4, .logo {
    font-family: 'Poppins', sans-serif;
}

h1 { font-size: 3rem; font-weight: 700; margin-bottom: 1rem; }
h2 { font-size: 2.2rem; font-weight: 600; margin-bottom: 1.5rem; }
h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 0.75rem; }
.highlight { color: var(--accent); }

.top-bar {
    background: var(--primary);
    color: white;
    padding: 10px 0;
    font-size: 0.85rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar a {
    color: white;
    text-decoration: none;
    margin-right: 20px;
}

.header {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo h1 {
    font-size: 1.4rem;
    color: var(--primary);
}

.logo span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--secondary);
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
}

.nav-menu a.active,
.nav-menu a:hover {
    color: var(--accent);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 80px 0;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.hero-text { flex: 1; }

.hero-badge {
    background: rgba(255,255,255,0.2);
    display: inline-block;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.hero h1 { font-size: 2.8rem; }

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--accent);
    color: white;
    padding: 12px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: var(--accent-dark);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    padding: 12px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-stats {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: 20px;
    display: flex;
    gap: 30px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    display: block;
}

section { padding: 60px 0; }

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-tag {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 30px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 24px;
    border-radius: 40px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.coverage { background: white; }

.coverage-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.coverage-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.coverage-column ul { list-style: none; }
.coverage-column li { margin-bottom: 8px; font-size: 0.9rem; }

.badge {
    background: var(--gray);
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 5px;
}

.coverage-map iframe {
    border-radius: var(--border-radius);
    width: 100%;
}

.why-us { background: var(--primary); color: white; }

.why-us-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.feature {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.feature i { font-size: 1.5rem; color: var(--accent); }

.cta-card {
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
}

.btn-phone, .btn-whatsapp-large {
    padding: 12px;
    display: block;
    border-radius: 40px;
    text-decoration: none;
    font-weight: bold;
    margin: 15px 0;
}

.btn-phone { background: var(--accent); color: white; }
.btn-whatsapp-large { background: #25D366; color: white; }

.cta-final {
    background: var(--secondary);
    color: white;
    text-align: center;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    padding: 12px 28px;
    border-radius: 40px;
    text-decoration: none;
}

.footer {
    background: #0f1a2c;
    color: #ccc;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-logo h3 { color: white; }
.footer-logo span { color: var(--accent); }

.footer a {
    color: #ccc;
    text-decoration: none;
}

.footer a:hover { color: white; }

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid #2c3e50;
    font-size: 0.8rem;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    z-index: 100;
}

.page-hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 60px 0;
    text-align: center;
}

.service-category { margin-bottom: 50px; }

.service-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.service-item {
    background: white;
    padding: 12px 16px;
    border-radius: 40px;
    box-shadow: var(--shadow);
}

.service-item i { margin-right: 8px; color: var(--accent); }

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.tech-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.tech-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.form-group { margin-bottom: 20px; }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray);
    border-radius: 12px;
    font-family: inherit;
}

.contact-info-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-info-card a {
    color: var(--accent);
    text-decoration: none;
}

/* CHATBOT */
.chatbot-button {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
}

.chatbot-button i { font-size: 30px; color: white; }

.chatbot-window {
    position: fixed;
    bottom: 170px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
}

.chatbot-window.active { display: flex; }

.chatbot-header {
    background: #1e3a5f;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
}

.chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f5f5f5;
}

.message {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
}

.message.bot { align-items: flex-start; }
.message.user { align-items: flex-end; }

.message-bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 14px;
}

.message.bot .message-bubble {
    background: white;
    color: #333;
}

.message.user .message-bubble {
    background: #1e3a5f;
    color: white;
}

.chatbot-input {
    display: flex;
    padding: 12px;
    border-top: 1px solid #e0e0e0;
    background: white;
}

.chatbot-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 24px;
    font-family: inherit;
}

.chatbot-input button {
    background: #1e3a5f;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 8px;
    cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    h1 { font-size: 2.2rem; }
    .hero-content { flex-direction: column; text-align: center; }
    .coverage-content { grid-template-columns: 1fr; }
    .why-us-content { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        padding: 80px 30px 30px;
        z-index: 1000;
    }
    
    .nav-menu.active { display: block; }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .nav-menu ul li a {
        font-size: 1.2rem;
        display: block;
        padding: 10px;
    }
    
    .services-grid { grid-template-columns: 1fr; }
    .coverage-list { grid-template-columns: 1fr; }
    .hero-buttons { justify-content: center; }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .footer-column a {
        font-size: 0.7rem;
        word-break: break-all;
    }
    
    .chatbot-window {
        width: calc(100% - 40px);
        right: 20px;
        bottom: 150px;
    }
    
    .chatbot-button { bottom: 80px; }
}

@media (max-width: 480px) {
    .top-bar-content { flex-direction: column; text-align: center; }
    .hero h1 { font-size: 1.8rem; }
    .hero-stats { flex-direction: column; gap: 15px; text-align: center; }
    
}

/* ============================================ */
/* PÁGINA SOBRE NOSOTROS - ESTILOS EXCLUSIVOS  */
/* ============================================ */

/* Cabecera de página */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 60px 0;
    text-align: center;
    color: white;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Sección principal Sobre Nosotros */
.about-main {
    padding: 80px 0;
    background: var(--gray-light);
}

.about-main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-main-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.about-main-text p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

/* Estadísticas */
.about-stats {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.about-stats .stat {
    text-align: center;
    flex: 1;
    min-width: 80px;
}

.about-stats .number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}

.about-stats .label {
    font-size: 0.8rem;
    color: var(--gray-dark);
}

/* Imagen lateral */
.about-main-image {
    background: var(--gray);
    border-radius: 20px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    overflow: hidden;
}

.about-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sección de valores */
.values {
    padding: 60px 0;
    background: white;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.value-card {
    background: var(--gray-light);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.value-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.value-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.value-card p {
    font-size: 0.95rem;
    color: #666;
}

/* Cita de compromiso */
.team-commitment {
    padding: 60px 0;
    background: var(--gray-light);
}

.commitment-card {
    background: var(--primary);
    color: white;
    padding: 50px;
    border-radius: 20px;
    text-align: center;
}

.commitment-card i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 20px;
    display: block;
}

.commitment-card p {
    font-size: 1.3rem;
    line-height: 1.5;
    max-width: 700px;
    margin: 0 auto 20px;
}

.commitment-card span {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Ajustes responsive para Sobre Nosotros */
@media (max-width: 992px) {
    .about-main-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-main-image {
        height: 300px;
        order: -1;
    }
    
    .about-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .about-main {
        padding: 50px 0;
    }
    
    .about-main-text h2 {
        font-size: 1.6rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .commitment-card {
        padding: 30px 20px;
    }
    
    .commitment-card p {
        font-size: 1rem;
    }
    
    .about-stats {
        gap: 15px;
    }
    
    .about-stats .number {
        font-size: 1.5rem;
    }
}

/* Corrección para el menú móvil (importante) */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        font-size: 1.8rem;
        cursor: pointer;
        color: var(--primary);
        z-index: 1001;
        position: relative;
    }
    
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: white;
        z-index: 1000;
        padding: 80px 20px 40px;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        display: block;
    }
    
    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
    
    .nav-menu ul li a {
        font-size: 1.2rem;
        padding: 10px 0;
        display: block;
    }
}