/**
 * Diseño SITEC - Estilos del diseño corporativo
 * Basado en: Diseño del sitio/SitioWebDiseño.jpeg
 */

/* ========================================
   VARIABLES DE COLORES
   ======================================== */
:root {
    /* Colores principales */
    --sitec-primary: #1a2332;      /* Azul oscuro - Header, Footer, Badges */
    --sitec-secondary: #00a8e8;    /* Cyan - Botones, Acentos */
    --sitec-accent: #FFFFFF;       /* Blanco - Textos */
    --sitec-dark: #0f172a;         /* Slate oscuro - Fondos alternativos */
    
    /* Grises */
    --sitec-gray-light: #f8f9fa;
    --sitec-gray: #6c757d;
    
    /* Fuente */
    --sitec-font: 'Gotham', sans-serif;
}

/* ========================================
   HEADER
   ======================================== */
.site-header {
    background-color: #ffffff;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.site-logo {
    display: flex;
    align-items: center;
}

.site-logo a {
    display: block;
    line-height: 0;
}

.sitec-main-logo {
    height: 55px;
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.sitec-main-logo:hover {
    opacity: 0.9;
}

/* Logo personalizado de WordPress */
.custom-logo {
    max-height: 55px;
    width: auto;
    display: block;
}

.custom-logo-link {
    display: block;
    line-height: 0;
}

.main-navigation ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: var(--sitec-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.main-navigation a:hover {
    color: var(--sitec-secondary);
}

.main-navigation a:hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--sitec-secondary);
}

.header-cta {
    background-color: var(--sitec-primary);
    color: var(--sitec-accent);
    border: 2px solid var(--sitec-secondary);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.header-cta:hover {
    background-color: var(--sitec-secondary);
    color: var(--sitec-accent);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    background: linear-gradient(rgba(26, 35, 50, 0.85), rgba(26, 35, 50, 0.85)),
                url('../images/hero-background.jpg') center/cover no-repeat;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 6rem 2rem 4rem;
    position: relative;
    margin-top: 60px;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, var(--sitec-secondary) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, var(--sitec-secondary) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    color: var(--sitec-accent);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.hero-subtitle {
    color: var(--sitec-accent);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2rem;
    max-width: 600px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: var(--sitec-secondary);
    color: var(--sitec-accent);
    padding: 0.875rem 2rem;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--sitec-secondary);
    display: inline-block;
}

.btn-primary:hover {
    background-color: #0096d1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 168, 232, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--sitec-accent);
    padding: 0.875rem 2rem;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--sitec-accent);
    display: inline-block;
}

.btn-secondary:hover {
    background-color: var(--sitec-accent);
    color: var(--sitec-primary);
}

/* ========================================
   SERVICIOS SECTION
   ======================================== */
.services-section {
    background-color: #ffffff;
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.section-badge {
    background-color: var(--sitec-primary);
    color: var(--sitec-accent);
    padding: 0.5rem 2rem;
    border-radius: 25px;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 3rem;
}

.section-title-center {
    text-align: center;
    margin-bottom: 4rem;
}

.services-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem 3rem;
    position: relative;
    z-index: 1;
}

.service-item {
    text-align: center;
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-15px);
}

.service-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    padding: 0.75rem;
    border: 4px solid var(--sitec-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(26, 35, 50, 0.1);
}

.service-item:hover .service-icon {
    background-color: var(--sitec-secondary);
    border-color: var(--sitec-secondary);
    box-shadow: 0 8px 25px rgba(0, 168, 232, 0.3);
    transform: scale(1.1);
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: filter 0.3s ease;
}

.service-item:hover .service-icon img {
    filter: brightness(0) invert(1);
}

.service-title {
    color: var(--sitec-primary);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
    min-height: 2.8rem;
}

.service-description {
    color: var(--sitec-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 320px;
    margin: 0 auto;
}

/* Layout especial: 3 arriba, 2 abajo centrados */
.service-item:nth-child(4) {
    grid-column: 1 / 2;
    margin-left: 50%;
}

.service-item:nth-child(5) {
    grid-column: 2 / 3;
    margin-right: 50%;
}

/* ========================================
   SOCIOS SECTION
   ======================================== */
.partners-section {
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9)),
                url('../images/partners-background.jpg') center/cover no-repeat;
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.partners-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, var(--sitec-secondary) 1px, transparent 1px),
        linear-gradient(var(--sitec-secondary) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.05;
    pointer-events: none;
}

.partners-grid {
    max-width: 1400px;
    margin: 4rem auto 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6rem;
    position: relative;
    z-index: 1;
    padding: 3rem 2rem;
}

.partner-item {
    text-align: center;
    transition: transform 0.3s ease;
    flex: 0 1 auto;
}

.partner-item:hover {
    transform: scale(1.08);
}

.partner-logo {
    max-width: 280px;
    min-width: 200px;
    height: auto;
    margin: 0 auto;
    display: block;
    transition: all 0.3s ease;
}

/* Logos específicos - mantener colores originales */
.partner-item:nth-child(1) .partner-logo {
    /* Hikvision - mantener rojo */
    filter: none;
    opacity: 1;
}

.partner-item:nth-child(2) .partner-logo {
    /* Syscom - blanco */
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.partner-item:nth-child(3) .partner-logo {
    /* Axis - mantener amarillo */
    filter: none;
    opacity: 1;
}

.partner-item:hover .partner-logo {
    opacity: 1;
    transform: scale(1.05);
}

.partner-subtitle {
    color: var(--sitec-accent);
    font-size: 1rem;
    margin-top: 1.5rem;
    opacity: 0.8;
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background-color: var(--sitec-primary);
    color: var(--sitec-accent);
    padding: 3rem 2rem 1.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--sitec-secondary);
    margin-bottom: 1rem;
}

.footer-section a {
    color: var(--sitec-accent);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--sitec-secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .partners-grid {
        gap: 4rem;
    }
    
    .partner-logo {
        max-width: 220px;
        min-width: 180px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-item:nth-child(4) {
        margin-left: 0;
    }
    
    .partners-grid {
        flex-direction: column;
        gap: 3rem;
        padding: 2rem 1rem;
    }
    
    .partner-logo {
        max-width: 250px;
        min-width: 200px;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .site-header .container {
        flex-wrap: wrap;
    }
}

/* ========================================
   UTILIDADES
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 2rem;
}

