/* ============================================
   PROCESSIA OPS - ESTILOS PERSONALIZADOS
   Colores: Navy Blue (#1E3A5F) + Gold (#D4AF37)
   ============================================ */

/* Variables de colores */
:root {
    --processia-navy: #1E3A5F;
    --processia-gold: #D4AF37;
    --processia-black: #000000;
    --processia-white: #FFFFFF;
    --processia-light-bg: #F8F9FA;
    --processia-text: #333333;
}

/* Estilos globales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--processia-text);
    overflow-x: hidden;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    background-color: var(--processia-white) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}

.navbar-logo {
    height: 105px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.nav-link {
    color: var(--processia-navy) !important;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
}

.nav-link:hover {
    color: var(--processia-gold) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--processia-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 70%;
}

/* En móvil, logo más pequeño */
@media (max-width: 768px) {
    .navbar-logo {
        height: 70px;
    }
}

/* ============================================
   BOTONES
   ============================================ */

.btn-primary {
    background-color: var(--processia-navy);
    border-color: var(--processia-navy);
    color: var(--processia-white);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--processia-gold);
    border-color: var(--processia-gold);
    color: var(--processia-navy);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.btn-outline-light {
    border: 2px solid #FFFFFF;
    color: #FFFFFF;
    font-weight: 600;
    background-color: transparent;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: var(--processia-gold);
    border-color: var(--processia-gold);
    color: var(--processia-navy);
    transform: translateY(-2px);
}

.btn-outline-secondary {
    border: 2px solid var(--processia-navy);
    color: var(--processia-navy);
    font-weight: 600;
}

.btn-outline-secondary:hover {
    background-color: var(--processia-navy);
    border-color: var(--processia-navy);
    color: var(--processia-white);
}

/* ============================================
   HERO SECTION - IMAGEN DE FONDO COMPLETA
   ============================================ */

.hero-section-bg {
    min-height: 90vh;
    background-image: url('../images/hero-header.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    padding: 8rem 0 5rem;
    margin-top: 76px;
}

/* Overlay oscuro para legibilidad */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(30, 58, 95, 0.90) 0%, 
        rgba(30, 58, 95, 0.75) 50%,
        rgba(30, 58, 95, 0.85) 100%
    );
    z-index: 1;
}

/* Contenido del hero por encima del overlay */
.hero-content {
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.text-gold {
    color: var(--processia-gold) !important;
}

/* Responsive del hero */
@media (max-width: 992px) {
    .hero-section-bg {
        min-height: 80vh;
        padding: 6rem 0 4rem;
        background-attachment: scroll;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
}

@media (max-width: 768px) {
    .hero-section-bg {
        min-height: 70vh;
        padding: 4rem 0 3rem;
        background-position: center right;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
}

/* ============================================
   SECCIONES GENERALES
   ============================================ */

.bg-primary {
    background-color: var(--processia-navy) !important;
}

.bg-light {
    background-color: var(--processia-light-bg) !important;
}

.text-primary {
    color: var(--processia-navy) !important;
}

/* ============================================
   SERVICIOS - CARDS
   ============================================ */

.service-card {
    border: none;
    transition: all 0.4s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15) !important;
}

.feature-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--processia-navy) 0%, #2C5282 100%);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.service-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--processia-gold) 0%, #E5C76B 100%);
    transform: rotate(360deg) scale(1.1);
}

.feature-icon i {
    color: var(--processia-white);
    font-size: 1.75rem;
}

/* ============================================
   TECNOLOGÍAS Y SECTORES
   ============================================ */

.tech-badge {
    transition: all 0.3s ease;
    min-height: 110px;
    cursor: pointer;
}

.tech-badge:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(30, 58, 95, 0.15) !important;
    background-color: var(--processia-light-bg) !important;
}

/* ============================================
   FORMULARIO DE CONTACTO - ULTRA COMPACTO
   ============================================ */

#contacto {
    padding: 4rem 0;
}

.contact-form {
    padding: 2rem;
    background-color: var(--processia-white);
}

#contacto .form-control {
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

#contacto .form-control:focus {
    border-color: var(--processia-gold);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

#contacto .form-label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--processia-navy);
}

#contacto textarea {
    height: 100px;
    max-height: 100px;
    min-height: 100px;
    resize: vertical;
}

#contacto button[type="submit"] {
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
}

#contacto .display-6 {
    font-size: 2rem;
}

/* Responsive del formulario */
@media (max-width: 768px) {
    #contacto {
        padding: 3rem 0;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    #contacto textarea {
        height: 90px;
        max-height: 90px;
    }
    
    #contacto .display-6 {
        font-size: 1.75rem;
    }
}

/* ============================================
   FOOTER
   ============================================ */

.bg-dark-blue {
    background-color: var(--processia-navy) !important;
}

footer {
    color: var(--processia-white);
}

.footer-logo {
    height: 105px;
    width: auto;
}

footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    color: #E5C76B !important;
    transform: translateX(5px);
}

/* ============================================
   ANIMACIONES
   ============================================ */

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

.animate-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* ============================================
   UTILIDADES
   ============================================ */

.text-white-50 {
    color: rgba(255, 255, 255, 0.5);
}

/* Sombras personalizadas */
.shadow-sm {
    box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
}

.shadow {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

.shadow-lg {
    box-shadow: 0 8px 30px rgba(0,0,0,0.15) !important;
}

/* ============================================
   CONSENTIMIENTO DE DATOS PERSONALES
   ============================================ */

#contacto .alert {
    background-color: #f8f9fa;
    font-size: 0.9rem;
    line-height: 1.5;
}

#contacto .alert ul {
    margin-bottom: 0.5rem;
}

#contacto .alert ul li {
    margin-bottom: 0.25rem;
}

#contacto .form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0.15rem;
}

#contacto .form-check-label {
    font-size: 0.9rem;
    line-height: 1.5;
    padding-left: 0.5rem;
}

#contacto .form-check-input:checked {
    background-color: var(--processia-navy);
    border-color: var(--processia-navy);
}

/* Responsive */
@media (max-width: 768px) {
    #contacto .alert {
        font-size: 0.85rem;
        padding: 0.75rem;
    }
    
    #contacto .form-check-label {
        font-size: 0.85rem;
    }
}

/* ============================================
   CHATBOT N8N - MINIMAL
   ============================================ */
:root {
  --chat--color-primary: #1E3A5F;
  --chat--color-secondary: #D4AF37;
}
