/* ==========================================================================
   1. VARIABLES Y REGLAS GENERALES
   ========================================================================== */
:root {
    --primary-color: #0F2C59;      /* Azul marino corporativo */
    --secondary-color: #16FF00;    /* Verde para acentos/WhatsApp */
    --accent-color: #008DDA;       /* Azul técnico/GIS */
    --bg-light: #F8FAFC;           /* Fondo claro de secciones */
    --text-dark: #1E293B;          /* Texto principal */
    --text-muted: #64748B;         /* Texto secundario */
    --white: #FFFFFF;
    --border-color: #E2E8F0;
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
}

/* ==========================================================================
   2. ENCABEZADO (HEADER & NAV)
   ========================================================================== */
header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    margin-left: 1.5rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

nav a:hover {
    color: var(--accent-color);
}

.btn-nav {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
}

.btn-nav:hover {
    background-color: var(--accent-color);
}


/* ==========================================================================
   3. HERO SECTION
   ========================================================================== */
.hero {
    /* Fondo con capa oscura transparente + la imagen */
    background: linear-gradient(
        rgba(15, 44, 89, 0.4), 
        rgba(10, 29, 58, 0.88)
    ), 
    url('../img/satelite.jpg') no-repeat center center/cover;
    
    color: var(--white);
    padding: 6rem 5% 5rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.15rem;
    color: #CBD5E1;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Botones principales */
.btn-primary, .btn-whatsapp, .btn-submit {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    font-weight: 600;
    border-radius: var(--radius);
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #0077B6;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background-color: #1EBE5D;
    transform: translateY(-2px);
}

/* ==========================================================================
   4. SECCIÓN DE SERVICIOS
   ========================================================================== */
#servicios {
    padding: 5rem 5%;
    background-color: var(--bg-light);
}

#servicios h2, #contacto h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-top: 4px solid var(--accent-color);
}

.card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
}

.card ul {
    list-style: none;
}

.card li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* ==========================================================================
   5. FORMULARIO DE CONTACTO
   ========================================================================== */
#contacto {
    padding: 5rem 5%;
    max-width: 650px;
    margin: 0 auto;
}

#form-cotizacion {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

#form-cotizacion label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
}

#form-cotizacion input,
#form-cotizacion select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

#form-cotizacion input:focus,
#form-cotizacion select:focus {
    outline: none;
    border-color: var(--accent-color);
}

.btn-submit {
    background-color: var(--primary-color);
    color: var(--white);
    margin-top: 1rem;
    width: 100%;
}

.btn-submit:hover {
    background-color: var(--accent-color);
}

/* ==========================================================================
   6. ADAPTACIÓN A MÓVILES (RESPONSIVE)
   ========================================================================== */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    nav a {
        margin: 0 0.5rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary, .btn-whatsapp {
        width: 100%;
    }
}