/* =========================================
   1. VARIABLES DE SISTEMA (ROOT)
   ========================================= */
:root {
    /* Paleta de Colores Extraída del Logo/Imagen */
    --color-primary: #1a435d;    /* Azul Petróleo Principal */
    --color-accent: #e65c00;     /* Naranja Acción */
    --color-brand: #3a9c3a;      /* Verde Logotipo */
    --color-dark: #222222;       /* Texto Principal */
    --color-gray: #666666;       /* Texto Secundario/Muted */
    --color-light: #f4f7f9;      /* Fondos de Sección Gris */
    --color-border: #e1e8ed;     /* Bordes y Separadores */
    --color-white: #ffffff;

    /* Tipografía Escalar */
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-size-base: 16px;
    --h1-size: 2.5rem;    /* 40px */
    --h2-size: 2rem;      /* 32px */
    --h3-size: 1.5rem;    /* 24px */
    --h4-size: 1.25rem;   /* 20px */
    --p-size: 1rem;       /* 16px */
    --small-size: 0.875rem; /* 14px */

    /* Layout */
    --max-width: 1200px;
    --gap: 30px;
    --radius: 6px;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* =========================================
   2. RESET Y REGLAS BASE
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { 
    font-size: var(--font-size-base); 
    scroll-behavior: smooth; 
}

body {
    font-family: var(--font-main);
    color: var(--color-dark);
    line-height: 1.6;
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

/* Enlaces neutrales */
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* =========================================
   3. CLASES DE ESTRUCTURA (CONTAINERS)
   ========================================= */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Espaciadores de Sección */
.section { padding: 80px 0; }
.section-sm { padding: 40px 0; }
.bg-light { background-color: var(--color-light); }
.bg-primary { background-color: var(--color-primary); color: var(--color-white); }

/* Sistema de Grids Neutrales */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 992px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Flexbox Helpers */
.flex { display: flex; align-items: center; gap: 20px; }
.between { justify-content: space-between; }
.center { justify-content: center; }

/* =========================================
   4. TIPOGRAFÍA PRECISA
   ========================================= */
h1, h2, h3, h4 {
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

h1 { font-size: var(--h1-size); }
h2 { font-size: var(--h2-size); }
h3 { font-size: var(--h3-size); }
h4 { font-size: var(--h4-size); }

p { margin-bottom: 1rem; }
.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }
.text-white { color: var(--color-white); }
.upper { text-transform: uppercase; letter-spacing: 1px; }

/* =========================================
   5. COMPONENTES GLOBALES (BOTONES Y CARDS)
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: var(--p-size);
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    border: 2px solid transparent;
    text-transform: uppercase;
}

.btn-accent { background: var(--color-accent); color: var(--color-white); }
.btn-accent:hover { background: #cc5200; transform: translateY(-2px); }

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

/* Estilo para las tarjetas de propiedades */
.card-item {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--shadow);
}
.card-item:hover { box-shadow: var(--shadow); }

/* Estilo para listas informativas */
.check-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
}
.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-brand);
    font-weight: bold;
}


/* Contenedor Global de Ancho Fijo agregado y esperando efecto */
.centrar-contenido {
    max-width: 1200px; /* Ancho máximo del contenido */
    margin: 0 auto;    /* Centra el bloque */
    padding: 0 20px;   /* Margen interno para que en móvil no toque los bordes */
    width: 100%;       /* Para que sea responsivo */
    box-sizing: border-box;
}

/* Fondo Full Width */
.top-bar {
    background-color: #1a1a1a;
    color: #fff;
    padding: 10px 0;
    width: 100%; /* Fondo de lado a lado */
}

/* Alineación de los elementos internos */
.flex-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info a {
    color: #fff;
    text-decoration: none;
    margin-right: 20px;
    font-size: 14px;
}

.top-info i {
    color: #c4a47c;
    margin-right: 5px;
}

.top-social a {
    color: #fff;
    margin-left: 15px;
    font-size: 16px;
}

/* --- RESPONSIVO --- */
@media (max-width: 768px) {
    .flex-top {
        flex-direction: column;
        gap: 8px;
    }
    
    .top-info {
        text-align: center;
    }

    .top-info a {
        margin: 0 10px;
        display: inline-block;
    }

    /* Opcional: ocultar el texto del correo en móviles muy pequeños para ahorrar espacio */
    .hide-mobile {
        display: none; 
    }
}
