/* ==========================================================================
   VARIABLES Y RESET MODERNIZADO
   ========================================================================== */
:root {
    --primary-color: #003366; /* Azul profundo corporativo */
    --primary-light: #e6f0fa;
    --accent-color: #c5a059;  /* Dorado/Ocre moderno para contrastar */
    --accent-dark: #a38245;
    --text-main: #173860;
    --text-muted: #43474e;
    --bg-main: #ffffff;
    --bg-light: #f8f9fa;
    --shadow-card: 0 16px 40px rgba(23, 56, 96, 0.08);
    --shadow-hover: 0 20px 50px rgba(23, 56, 96, 0.15);
    --border-radius: 4px; /* Bordes más rectos estilo SSCCGUSA */
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-muted);
    background-color: var(--bg-main);
    scroll-behavior: smooth;
    overflow-x: hidden;
    top: 0 !important;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 0;
}

.accent-line {
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin-bottom: 20px;
}

.section-label {
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: block;
}

/* ==========================================================================
   HEADER Y NAVEGACIÓN
   ========================================================================== */
.site-header {
    background-color: var(--bg-main);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 0;
    position: relative;
}

.logo-img {
    max-height: 60px;
    width: auto;
    display: block;
    position: relative;
    z-index: 1002;
}

.main-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.main-nav a:hover {
    color: var(--accent-color);
}

/* Widget Google Translate */
#google_translate_element {
    margin-left: 15px;
    display: inline-block;
}
.skiptranslate iframe { display: none !important; }

/* Botón Hamburguesa */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
}
.hamburger span {
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Capa oscura del menú móvil */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(23, 56, 96, 0.85); /* Azul oscuro translúcido */
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* ==========================================================================
   BOTONES
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff !important;
}
.btn-primary:hover {
    background-color: var(--accent-color);
    box-shadow: var(--shadow-card);
}

.btn-accent {
    background-color: var(--accent-color);
    color: #ffffff !important;
}
.btn-accent:hover {
    background-color: #a88544;
}

.btn-outline {
    background-color: transparent;
    border-color: #ffffff;
    color: #ffffff !important;
}
.btn-outline:hover {
    background-color: #ffffff;
    color: var(--primary-color) !important;
}

/* ==========================================================================
   HERO SECTION (ESTILO SSCCGUSA)
   ========================================================================== */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(0,25,51,0.9) 0%, rgba(0,25,51,0.5) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 100px 0;
    max-width: 800px;
}

.hero-content h1 {
    color: #ffffff;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* ==========================================================================
   TARJETAS MODULARES (MODERN CARDS)
   ========================================================================== */
.bg-light-section { background-color: var(--bg-light); }

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: var(--bg-main);
    border: 1px solid rgba(0,0,0,0.08);
    border-top: 3px solid var(--accent-color);
    border-radius: 0; /* Bordes cuadrados, más serios */
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-img-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.card-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* ==========================================================================
   CONTACTO (SPLIT LAYOUT)
   ========================================================================== */
.contact-grid {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
    padding-right: 20px;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-card-wrapper {
    flex: 1;
    background: var(--bg-main);
    padding: 40px;
    box-shadow: var(--shadow-hover);
    border-radius: var(--border-radius);
    border-top: 4px solid var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid #d1d5db;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--bg-main);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

.site-footer {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.mobile-call-now {
    display: none;
}

/* ==========================================================================
   MEDIA QUERIES Y MENÚ MÓVIL INTERACTIVO
   ========================================================================== */
@media (max-width: 992px) {
    .contact-grid { flex-direction: column; }
    .contact-info { padding-right: 0; text-align: center; }
    .contact-info .accent-line { margin: 0 auto 20px auto; }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content { padding: 60px 0; }
    .hero-actions { flex-direction: column; }
    .btn { width: 100%; }

    /* Menú Móvil Deslizable (Slide-in) */
    .hamburger { display: flex; }
    
    .main-nav {
        position: fixed;
        top: 0; right: -100%; /* Oculto a la derecha */
        width: 80%; max-width: 320px; height: 100vh;
        background-color: var(--bg-main);
        padding: 100px 30px 30px;
        flex-direction: column; align-items: flex-start; justify-content: flex-start;
        box-shadow: -5px 0 25px rgba(0,0,0,0.15);
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 999;
    }
    
    .main-nav.active { right: 0; }
    
    .main-nav a {
        font-size: 1.2rem;
        padding: 15px 0;
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .main-nav .btn-primary { margin-top: 20px; border-bottom: none; }
    
    .mobile-call-now {
        display: flex; justify-content: center; align-items: center;
        position: fixed; bottom: 0; left: 0; width: 100%;
        background-color: var(--accent-color); color: white;
        padding: 18px 0; font-size: 1.2rem; font-weight: 700;
        text-decoration: none; z-index: 9999;
    }
}