/* --- 1. Variables y Configuración Global --- */
:root {
    /* Paleta de Colores ZMControl */
    --primary-color: #4e73df;  /* Azul Principal */
    --primary-dark: #224abe;   /* Azul Oscuro (Gradients) */
    --secondary-color: #2e59d9;
    
    --zimbra-orange: #e57e25;  /* Naranja Oficial */
    --smtp-purple: #8e44ad;    /* Púrpura SMTP */
    --wa-green: #25d366;       /* WhatsApp */
    --sms-blue: #36b9cc;       /* SMS Cyan */
    
    --dark-bg: #1a1c23;
    --light-bg: #f8f9fc;
    --white: #ffffff;
    --text-main: #444444;
    --text-light: #858796;
    
    --font-main: 'Poppins', sans-serif;
    /* Fuente para títulos destacados (Más profesional) */
    --font-titles: 'Montserrat', sans-serif; 
    
    --shadow-sm: 0 0.125rem 0.25rem 0 rgba(58, 59, 69, 0.2);
    --shadow-lg: 0 1rem 3rem rgba(0,0,0,0.175);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; }

/* --- 2. Componentes Reutilizables --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding { padding: 100px 0; }
.bg-light { background-color: var(--light-bg); }

/* Textos */
.text-primary { color: var(--primary-color); font-weight: 700; letter-spacing: 1px; font-size: 0.9rem; text-transform: uppercase; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; font-weight: 800; color: #333; margin: 10px 0; }
.section-header p { color: var(--text-light); max-width: 900px; margin: 0 auto; }
.section-header .line { width: 50px; height: 4px; background: var(--primary-color); margin: 15px auto; border-radius: 2px; }

/* Botones (Estilo Pill/Píldora) */
.btn {
    display: inline-block;
    padding: 12px 35px;
    border-radius: 50px; 
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.95rem;
    border: 2px solid transparent;
}

.btn-sm { padding: 8px 20px; font-size: 0.85rem; }

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(78, 115, 223, 0.3);
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(78, 115, 223, 0.4);
}

.btn-light {
    background: var(--white);
    color: var(--primary-color);
    font-weight: 700;
}
.btn-light:hover { background: #f0f0f0; }

.btn-outline {
    border: 2px solid rgba(255,255,255,0.3);
    color: var(--white);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

.btn-block { width: 100%; display: block; }

.mt-20 { margin-top: 20px; }

/* --- 3. Navbar (Estilo Glass/White) --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.brand-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 2px;
}
.logo-text span { color: var(--primary-color); }

.logo-slogan {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-left: 2px;
}

.logo-image img { height: 50px; width: auto; }

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: #555;
    transition: color 0.3s;
}
.nav-links a:hover { color: var(--primary-color); }

.nav-links .btn-contact {
    color: var(--text-main);
    font-weight: 600;
}

.hamburger { display: none; font-size: 1.5rem; color: #333; cursor: pointer; }

/* --- 4. Hero Section --- */
.hero {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(160deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
}

.hero-shape {
    position: absolute;
    width: 600px; height: 600px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    top: -100px; right: -100px;
}

.hero-content { 
    position: relative; 
    z-index: 2; 
    max-width: 800px; 
    padding: 0 20px;
    margin-top: -60px; 
}

.badge-hero {
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
}
.badge-hero i { color: #ffce00; margin-right: 5px; }

.hero h1 { 
    font-size: 3.5rem; 
    font-weight: 800; 
    margin-bottom: 15px; 
    line-height: 1.2; 
}

.hero p { 
    font-size: 1.2rem; 
    margin-bottom: 30px; 
    opacity: 0.9; 
    font-weight: 300; 
}

.hero-btns { display: flex; gap: 15px; justify-content: center; }

/* --- 5. Stats Bar --- */
.stats-container { position: relative; margin-top: -50px; z-index: 10; padding: 0 20px; }
.stats-bar {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    padding: 30px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
}
.stat-item { flex: 1; min-width: 150px; border-right: 1px solid #eee; margin-bottom: 10px; }
.stat-item:last-child { border-right: none; }
.stat-item h3 { font-size: 1.8rem; color: var(--primary-color); font-weight: 800; }
.stat-item p { font-size: 0.85rem; text-transform: uppercase; color: var(--text-light); font-weight: 600; }

/* --- 6. Tabs / Servicios --- */
.tabs-wrapper {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-top: 40px;
}

.tabs-nav {
    display: flex;
    background: #f1f3f5;
    padding: 10px;
    gap: 10px;
    overflow-x: auto;
}

.tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 15px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: 600;
    color: #666;
    transition: all 0.3s;
    white-space: nowrap;
}

.tab-btn i { margin-right: 8px; }
.tab-btn:hover { background: rgba(255,255,255,0.5); color: var(--hover-color); }

.tab-btn.active {
    background: var(--white);
    color: var(--hover-color);
    box-shadow: var(--shadow-sm);
}

.tabs-content { padding: 50px; min-height: 400px; }
.tab-pane { display: none; animation: fadeIn 0.4s ease; }
.tab-pane.active { display: block; }

.pane-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 50px; align-items: center; }
.pane-text h3 { font-size: 2rem; font-weight: 700; margin-bottom: 15px; }
.pane-text .lead { font-size: 1.1rem; color: #555; margin-bottom: 20px; font-weight: 500; }

.check-list li { margin-bottom: 12px; display: flex; align-items: flex-start; color: #555; font-size: 0.95rem; }
.check-list li i { margin-right: 12px; margin-top: 4px; font-size: 1.1rem; }

/* Estilos mejorados para las imágenes de los Tabs */
.pane-visual {
    background: transparent;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    overflow: hidden; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
}

.tab-img {
    width: 100%;
    height: 100%;
    max-height: 350px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pane-visual:hover .tab-img { transform: scale(1.05); }

/* Ocultamos íconos viejos */
.big-icon, .tech-tag { display: none; }


/* --- 8. Contacto --- */
.contact-wrapper { display: flex; gap: 40px; }
.contact-cards { flex: 1; display: flex; flex-direction: column; gap: 20px; }
.card-info {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s;
    border: 1px solid #f0f0f0;
}
.card-info:hover { transform: translateY(-5px); border-color: var(--primary-color); }
.card-info i { font-size: 2rem; color: var(--primary-color); margin-bottom: 10px; }
.card-info h4 { font-size: 1.1rem; margin-bottom: 5px; }

.contact-form-container {
    flex: 2;
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.form-row { display: flex; gap: 20px; margin-bottom: 20px; }
input, select, textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: var(--font-main);
    background: #fcfcfc;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary-color); background: var(--white); }

/* --- 9. Footer --- */
footer { background: var(--dark-bg); color: #aab0c6; padding: 70px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { font-size: 1.5rem; font-weight: 800; color: var(--white); margin-bottom: 15px; }
.footer-logo span { color: var(--primary-color); }
.footer-links h5 { color: var(--white); margin-bottom: 20px; font-weight: 700; }
.footer-links a { display: block; margin-bottom: 10px; transition: 0.3s; }
.footer-links a:hover { color: var(--white); padding-left: 5px; }
.footer-socials a { color: var(--white); margin-right: 15px; font-size: 1.2rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 0.85rem; }

/* Botón flotante WA */
.float-wa {
    position: fixed; bottom: 30px; right: 30px;
    background: var(--wa-green); color: white;
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    transition: 0.3s;
    z-index: 100;
}
.float-wa:hover { transform: scale(1.1); }

/* Animaciones */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- Responsive --- */
@media (max-width: 992px) {
    .pane-grid { grid-template-columns: 1fr; }
    .pane-visual { display: none; }
    .logo-image { display: none; }
    .contact-wrapper { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hardware-split { flex-direction: column; text-align: center; }
    .hw-specs { grid-template-columns: 1fr; text-align: left; max-width: 400px; margin: 20px auto; }
}

@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-links {
        position: absolute; right: 0; top: 80px; height: calc(100vh - 80px);
        background: var(--white); flex-direction: column; width: 80%;
        transform: translateX(100%); transition: 0.3s; padding: 40px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    .nav-links.active { transform: translateX(0); }
    .hero h1 { font-size: 2.2rem; }
    .hero-btns { flex-direction: column; }
    .stats-bar { flex-direction: column; }
    .stat-item { border-right: none; border-bottom: 1px solid #eee; padding: 15px 0; }
    .form-row { flex-direction: column; gap: 10px; }
    .tabs-nav { overflow-x: scroll; }
    .about-grid { grid-template-columns: 1fr; }
}

/* --- Nuevos Estilos para Sección Nosotros (Tarjetas) --- */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.about-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.card-img-top {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-body {
    padding: 30px;
    flex: 1; 
    display: flex;
    flex-direction: column;
}

/* TÍTULOS DE TARJETAS (Centrados y Profesionales) */
.card-body h3 {
    font-family: var(--font-titles); /* Montserrat */
    font-size: 1.6rem; /* Tamaño elegante */
    margin-bottom: 20px;
    font-weight: 700; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center; /* CENTRADO */
}

/* Colores Específicos */
.title-team { color: var(--primary-color); }       /* Azul */
.title-infra { color: var(--zimbra-orange); }      /* Naranja */
.title-mkt { color: var(--sms-blue); }             /* Cyan */

.card-body p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 0;
    text-align: justify; 
}

/* --- Sección Hardware Destacado --- */
.hardware-split {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 40px;
}

.hw-image {
    flex: 1;
    text-align: center;
    position: relative;
}

/* Círculo decorativo detrás del servidor */
.hw-image::before {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(78, 115, 223, 0.1) 0%, rgba(255,255,255,0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    border-radius: 50%;
}

.hw-image img {
    position: relative;
    z-index: 1;
    max-width: 100%;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
    transition: transform 0.3s;
}

.hw-image img:hover { transform: scale(1.05); }

.hw-info { flex: 1; }

.hw-title {
    font-family: var(--font-titles);
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
}

.hw-subtitle {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: block;
}

.hw-specs {
    list-style: none;
    margin: 20px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.hw-specs li {
    font-size: 0.9rem;
    color: #555;
    display: flex;
    align-items: center;
}

.hw-specs li i {
    color: var(--wa-green); 
    margin-right: 8px;
    font-size: 1.1rem;
}