/* ============================================
   Gómez Construcciones, C.A. — Global Styles
   Paleta: Verde oscuro + Rojo/Burdeos + Dorado
   ============================================ */

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

:root {
    --primary: #1A9401;
    --primary-light: #25b003;
    --primary-dark: #117200;
    --secondary: #920101;
    --secondary-light: #b01010;
    --accent: #793832;
    --accent-light: #9a4d45;
    --dark: #070707;
    --light: #f5f5f2;
    --white: #ffffff;
    --text: #1a1a1a;
    --text-light: #4a4a4a;
    --border: #d5d0c8;
    --shadow: rgba(7,7,7,0.08);
    --shadow-hover: rgba(7,7,7,0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul { list-style: none; }

img { max-width: 100%; height: auto; }

/* ==================
   HEADER / NAV
   ================== */

header {
    background: var(--primary-dark);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px var(--shadow);
}

.header-top {
    background: var(--secondary);
    padding: 0.35rem 2rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
}

.lang-toggle {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.4);
    color: var(--white);
    padding: 0.15rem 0.6rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s;
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--white);
    color: var(--secondary);
    border-color: var(--white);
}

.header-main {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1.25rem;
    padding: 0.8rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;            /* permite que el texto se encoja antes de solaparse */
    overflow: hidden;
}

.logo-img {
    height: 45px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.logo-name {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--white);
    line-height: 1.2;
}

.logo-tagline {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.7);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
}

nav {
    display: flex;
    gap: 0.3rem;
    flex-shrink: 0;          /* el menú nunca se comprime contra el logo */
}

nav a {
    color: rgba(255,255,255,0.85);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s;
}

nav a:hover {
    color: var(--white);
    background: rgba(255,255,255,0.1);
}

nav a.active {
    color: var(--primary-light);
    background: rgba(26,148,1,0.1);
    border-bottom: 2px solid var(--primary-light);
}

/* ==================
   FRANJA DE OBRA  (animacion del header)
   ==================
   La retroexcavadora cruza una sola vez por sesion y va dejando tras de si
   la linea verde del borde inferior del header.

   Dos decisiones que sostienen todo esto:

   1) Maquina y linea viajan DENTRO del mismo contenedor (.gc-tren) movido por
      UNA sola transformacion. Si fueran dos animaciones separadas habria que
      sincronizarlas y el filo de la linea se desfasaria del balde. Asi es
      geometricamente imposible que se separen.

   2) La animacion arranca en pausa con fill-mode "both", asi se pinta el
      primer fotograma (maquina fuera de pantalla, linea sin trazar) y es
      js/nav.js quien decide si la corre o la saltea, segun sessionStorage.
      Por eso no hay parpadeo al navegar entre paginas.

   El alto es fijo -> no hay salto de layout (CLS = 0).
   ================== */

.gc-franja {
    position: relative;
    height: 46px;
    overflow: hidden;
    background-color: var(--primary-dark);
    /* Skyline de refineria: torre de destilacion, esfera de gas, tanque,
       mechurrio, reactor, intercambiador, torre de enfriamiento y rack de
       tuberias. Al 9% de blanco es textura, no dibujo: la maquina pasa por
       delante al 92% y nunca compite con el.
       El tile mide 700x60 y nada cruza x=0 ni x=700, por eso la costura del
       repeat-x no se ve. Los 537px = 700 x (46/60): conserva la proporcion.
       Va como data URI en el CSS y no en los 6 HTML: se descarga y cachea
       una sola vez. La CSP de nginx ya admite data: en img-src. */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 700 60'%3E%3Cg fill='%23ffffff' fill-opacity='.09'%3E%3Cpath d='M8 28h72v3H8z'/%3E%3Cpath d='M8 36h72v3H8z'/%3E%3Cpath d='M12 31h4v29h-4z'/%3E%3Cpath d='M42 31h4v29h-4z'/%3E%3Cpath d='M72 31h4v29h-4z'/%3E%3Cpath d='M92 16h16v44H92z'/%3E%3Cpath d='M92 16a8 8 0 0 1 16 0z'/%3E%3Cpath d='M88 24h24v2H88z'/%3E%3Cpath d='M88 36h24v2H88z'/%3E%3Cpath d='M88 48h24v2H88z'/%3E%3Ccircle cx='134' cy='40' r='14'/%3E%3Cpath d='M124 50h3v10h-3z'/%3E%3Cpath d='M132.5 52h3v8h-3z'/%3E%3Cpath d='M141 50h3v10h-3z'/%3E%3Cpath d='M158 30h44v3h-44z'/%3E%3Cpath d='M161 33h38v27h-38z'/%3E%3Cpath d='M221 8h5v52h-5z'/%3E%3Cpath d='M217 22h13v2h-13z'/%3E%3Cpath d='M217 38h13v2h-13z'/%3E%3Cpath d='M223.5 8c-3-4 1-6 0-8 4 2 6 5 3 8z'/%3E%3Cpath d='M242 24h13v36h-13z'/%3E%3Cpath d='M242 24a6.5 6.5 0 0 1 13 0z'/%3E%3Cpath d='M239 34h19v2h-19z'/%3E%3Crect x='270' y='44' width='46' height='12' rx='6'/%3E%3Cpath d='M276 55h4v5h-4z'/%3E%3Cpath d='M306 55h4v5h-4z'/%3E%3Cpath d='M330 60c6-16 12-26 14-36v-3h14v3c2 10 8 20 14 36z'/%3E%3Cpath d='M386 38h14v22h-14z'/%3E%3Cpath d='M386 38a7 7 0 0 1 14 0z'/%3E%3Cpath d='M406 46h8v14h-8z'/%3E%3Cpath d='M448 14h14v46h-14z'/%3E%3Cpath d='M448 14a7 7 0 0 1 14 0z'/%3E%3Cpath d='M444 26h22v2h-22z'/%3E%3Cpath d='M444 40h22v2h-22z'/%3E%3Cpath d='M444 52h22v2h-22z'/%3E%3Crect x='472' y='36' width='38' height='14' rx='7'/%3E%3Cpath d='M478 49h4v11h-4z'/%3E%3Cpath d='M500 49h4v11h-4z'/%3E%3Cpath d='M520 40h40v3h-40z'/%3E%3Cpath d='M520 47h40v3h-40z'/%3E%3Cpath d='M523 43h4v17h-4z'/%3E%3Cpath d='M553 43h4v17h-4z'/%3E%3Cpath d='M574 20h10v40h-10z'/%3E%3Cpath d='M571 30h16v2h-16z'/%3E%3Cpath d='M596 40h32v3h-32z'/%3E%3Cpath d='M599 43h26v17h-26z'/%3E%3Ccircle cx='648' cy='48' r='9'/%3E%3Cpath d='M642 54h2.5v6H642z'/%3E%3Cpath d='M652 54h2.5v6H652z'/%3E%3Crect x='666' y='50' width='24' height='10' rx='5'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: left bottom;
    background-size: 537px 46px;
}

.gc-tren {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 92px;      /* = alto 42px x relacion 112:51 del viewBox */
    height: 42px;
    will-change: transform;
    animation: gc-avanza 5s linear both;
    animation-play-state: paused;
}

.gc-maquina {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    color: rgba(255,255,255,0.92);
    animation: gc-bache 0.42s ease-in-out 12;
    animation-play-state: paused;
}

/* La linea nace bajo el balde y se extiende hacia la izquierda.
   right: 11px es medido: deja el filo a 0,5 px del labio del balde. */
.gc-linea {
    position: absolute;
    bottom: 0;
    right: 11px;
    width: calc(100vw + 240px);
    height: 3px;
    /* Verde de marca subido de brillo: sobre el #117200 del header, el
       --primary original quedaba invisible. El filo va casi lima y con
       resplandor, como el punto donde la maquina esta trabajando. */
    background: linear-gradient(90deg,
        #25b003 0%,
        #3fd80c 78%,
        #b6ff8c 100%);
    box-shadow: 0 0 6px rgba(150,255,100,0.32);
}

/* La rueda es maciza: cubo y radios se calan con el verde del header. */
.gc-corte { stroke: var(--primary-dark); fill: none; }

.gc-rueda { transform-box: view-box; }

/* La delantera es mas chica (r=8 vs r=10), asi que gira 1,25 veces mas rapido.
   Mantener esa proporcion es lo que evita que se vea "patinando". */
.gc-rueda-tras {
    transform-origin: 38px 46px;
    animation: gc-gira 0.45s linear 12;
    animation-play-state: paused;
}
.gc-rueda-del {
    transform-origin: 78px 48px;
    animation: gc-gira 0.36s linear 15;
    animation-play-state: paused;
}

@keyframes gc-avanza {
    from { transform: translateX(-92px); }
    to   { transform: translateX(calc(100vw + 60px)); }
}

/* Bamboleo minimo: sugiere terreno irregular sin marear. */
@keyframes gc-bache {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-1px); }
}

@keyframes gc-gira { to { transform: rotate(360deg); } }

/* Corriendo: primera visita de la sesion. */
.gc-franja.gc-anima .gc-tren,
.gc-franja.gc-anima .gc-maquina,
.gc-franja.gc-anima .gc-rueda { animation-play-state: running; }

/* Terminada: navegacion interna dentro de la misma sesion. */
.gc-franja.gc-listo .gc-tren {
    animation: none;
    transform: translateX(calc(100vw + 60px));
}
.gc-franja.gc-listo .gc-maquina { opacity: 0; animation: none; }
.gc-franja.gc-listo .gc-rueda { animation: none; }

/* Si el sistema pide menos movimiento, no se mueve nada: la linea aparece
   ya puesta. */
@media (prefers-reduced-motion: reduce) {
    .gc-franja .gc-tren {
        animation: none !important;
        transform: translateX(calc(100vw + 60px));
    }
    .gc-franja .gc-maquina { opacity: 0; animation: none !important; }
    .gc-franja .gc-rueda { animation: none !important; }
}

/* Celular: el header es sticky y no puede comerse 46 px mas de pantalla.
   Queda solo la linea, que se traza mas rapido. */
@media (max-width: 600px) {
    .gc-franja { height: 3px; background-image: none; }
    .gc-tren { height: 3px; animation-duration: 2.2s; }
    .gc-maquina { display: none; }
}

/* ==================
   HERO
   ================== */

.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: var(--white);
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(26,148,1,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(146,1,1,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.2;
}

.hero .rif {
    font-size: 0.95rem;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.hero .subtitle {
    font-size: 1.2rem;
    opacity: 0.92;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26,148,1,0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    margin-left: 1rem;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-dark);
}

/* ==================
   SECTIONS
   ================== */

.section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-alt {
    background: var(--light);
}

.section-alt .section {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.05rem;
    max-width: 650px;
    margin: 1rem auto 0;
}

/* ==================
   CARDS GRID
   ================== */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    padding: 2.2rem;
    border-radius: 8px;
    box-shadow: 0 2px 12px var(--shadow);
    transition: all 0.3s;
    border-left: 4px solid var(--primary);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-hover);
    border-left-color: var(--primary-light);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    color: var(--white);
}

.card h3 {
    color: var(--primary);
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
}

.card p {
    color: var(--text-light);
    font-size: 0.93rem;
    line-height: 1.7;
}

/* ==================
   TWO COLUMN LAYOUT
   ================== */

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.info-block h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.info-block p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

.values-list {
    background: var(--light);
    padding: 1.8rem 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary);
}

.values-list li {
    padding: 0.6rem 0;
    padding-left: 1.8rem;
    position: relative;
    line-height: 1.6;
}

.values-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
}

.values-list li strong {
    color: var(--primary);
}

.highlight-box {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    border-radius: 10px;
    padding: 3rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 380px;
}

.highlight-box .big-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.highlight-box h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--primary-light);
}

.highlight-box p {
    opacity: 0.9;
    font-size: 0.95rem;
}

/* ==================
   STANDARDS BOXES
   ================== */

.standards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.standard-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border: 2px solid var(--border);
    transition: all 0.3s;
}

.standard-box:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 20px var(--shadow);
}

.standard-box .icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.2rem;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
}

.standard-box h3 {
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.standard-box p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ==================
   CONTACT FORM
   ================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
}

.contact-info-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 12px var(--shadow);
}

.contact-info-card h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.8rem;
    align-items: flex-start;
}

.contact-item .icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--white);
    flex-shrink: 0;
}

.contact-item strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.2rem;
}

.contact-item span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.form-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 12px var(--shadow);
}

.form-card h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.3rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.93rem;
    transition: border-color 0.3s;
    background: var(--light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(27,67,50,0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(27,67,50,0.2);
}

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

footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 3rem 2rem 1.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-name {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    font-size: 0.85rem;
    opacity: 0.7;
    line-height: 1.7;
    margin-top: 0.8rem;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--primary-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,0.7);
    padding: 0.3rem 0;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-contact p {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 1.5rem auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* ==================
   PAGE-SPECIFIC HEROES
   ================== */

.page-hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    padding: 3.5rem 2rem;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.page-hero p {
    opacity: 0.85;
    font-size: 1.05rem;
}

/* ==================
   RESPONSIVE
   ================== */

@media (max-width: 900px) {
    .header-main {
        flex-direction: row;
        justify-content: space-between;
        padding: 0.6rem 1rem;
        position: relative;
    }

    nav { flex-wrap: wrap; justify-content: center; }

    .hero h1 { font-size: 2rem; }
    .hero .subtitle { font-size: 1rem; }
    .hero { padding: 3.5rem 1.5rem; }

    .two-col,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .btn-secondary { margin-left: 0; margin-top: 0.8rem; }

    .section { padding: 3rem 1.5rem; }
    .page-hero { padding: 2.5rem 1.5rem; }
    .page-hero h1 { font-size: 1.7rem; }
}

/* ==================
   HEADER TOP INNER
   ================== */

.header-top {
    padding: 0.35rem 0;
}

.header-top-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.9);
}

.header-top-inner a {
    color: rgba(255,255,255,0.9);
    transition: color 0.3s;
}

.header-top-inner a:hover { color: var(--white); }

/* ==================
   NAV CONTACT BUTTON
   ================== */

nav a.nav-btn {
    background: var(--secondary);
    color: var(--white);
    padding: 0.45rem 1.2rem;
    border-radius: 4px;
    font-weight: 700;
}

nav a.nav-btn:hover {
    background: var(--secondary-light);
    color: var(--white);
}

/* ==================
   HAMBURGER MENU
   ================== */

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ==================
   HERO WITH PHOTO
   ================== */

.hero-photo {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 7rem 2rem;
    overflow: hidden;
}

.hero-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(4, 20, 4, 0.68);
}

.hero-photo .hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-photo h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-photo .subtitle {
    font-size: 1.15rem;
    opacity: 0.92;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* ==================
   PROJECT CARDS
   ================== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px var(--shadow-hover);
}

.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.project-card-body {
    padding: 1.5rem;
}

.project-card-body h3 {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 0.6rem;
    line-height: 1.4;
}

.project-card-body p {
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.6;
}

.project-card-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.tag {
    font-size: 0.72rem;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    background: var(--light);
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* ==================
   SOCIAL/SUPPORT CARDS
   ================== */

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.social-card {
    background: var(--white);
    padding: 1.8rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow);
    border-top: 4px solid var(--secondary);
}

.social-card .social-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--white);
}

.social-card .social-icon svg {
    width: 22px;
    height: 22px;
}

.social-card h3 {
    color: var(--primary);
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

.social-card .location {
    color: var(--text-light);
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
    font-style: italic;
}

.social-card ul {
    padding: 0;
}

.social-card ul li {
    color: var(--text-light);
    font-size: 0.85rem;
    padding: 0.25rem 0 0.25rem 1rem;
    position: relative;
    line-height: 1.5;
}

.social-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 5px;
    height: 5px;
    background: var(--secondary);
    border-radius: 50%;
}

/* ==================
   CLIENTS BAND
   ================== */

.clients-band {
    background: var(--light);
    padding: 3rem 2rem;
    text-align: center;
}

.clients-band h3 {
    color: var(--text-light);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.clients-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.clients-logos img {
    height: 48px;
    width: auto;
    opacity: 0.65;
    filter: grayscale(40%);
    transition: opacity 0.3s, filter 0.3s;
}

.clients-logos img:hover {
    opacity: 1;
    filter: none;
}

/* ==================
   CTA BAND
   ================== */

.cta-band {
    background: var(--primary-dark);
    color: var(--white);
    padding: 4.5rem 2rem;
    text-align: center;
}

.cta-band h2 {
    font-size: 1.9rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.cta-band p {
    opacity: 0.85;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.btn-cta {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    background: var(--secondary);
    color: var(--white);
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.btn-cta:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(146,1,1,0.3);
}

/* ==================
   STATS BAND
   ================== */

.stats-band {
    background: var(--primary-dark);
    color: var(--white);
    padding: 4rem 2rem;
}

.stats-inner {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item .stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-light);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-item .stat-label {
    font-size: 0.9rem;
    opacity: 0.85;
    line-height: 1.4;
}

/* ==================
   PHOTO COLUMN
   ================== */

.photo-col img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 20px var(--shadow-hover);
}

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

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 0.8rem;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-rif {
    color: var(--primary-light);
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.footer-contact a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s;
}

.footer-contact a:hover { color: var(--primary-light); }

.footer-credits {
    max-width: 1200px;
    margin: 0.9rem auto 0;
    text-align: center;
    font-size: 0.72rem;
    letter-spacing: 0.3px;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.footer-credits a {
    color: inherit;
    border-bottom: 1px dotted currentColor;
}

.footer-credits:hover { opacity: 0.8; }

/* ==================
   WHATSAPP FLOAT
   ================== */

.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    box-shadow: 0 4px 16px rgba(37,211,102,0.4);
    transition: transform 0.3s;
}

.whatsapp-float:hover { transform: scale(1.1); }

.whatsapp-float svg {
    width: 30px;
    height: 30px;
    fill: white;
}

/* ==================
   RESPONSIVE ADDITIONS
   ================== */

@media (max-width: 900px) {
    .hamburger { display: flex; }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 1rem;
        gap: 0.2rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        z-index: 999;
    }

    nav.open { display: flex; }

    nav a { padding: 0.75rem 1rem; }

    .hero-photo { padding: 4rem 1.5rem; }
    .hero-photo h1 { font-size: 2rem; }
    .hero-photo .subtitle { font-size: 1rem; }

    .stats-inner { grid-template-columns: 1fr; }
    .stat-item .stat-number { font-size: 2.5rem; }

    .clients-logos { gap: 2rem; }

    .social-grid { grid-template-columns: 1fr 1fr; }
    .projects-grid { grid-template-columns: 1fr 1fr; }

    .photo-col img { height: 280px; }
}

/* ==================
   FORMULARIO: TRAMPA ANTI-BOT Y AVISOS
   ================== */

.campo-trampa {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-status {
    margin-top: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
    min-height: 1.2em;
}

.form-status.exito {
    color: var(--primary-dark);
    background: rgba(26,148,1,0.08);
    border: 1px solid rgba(26,148,1,0.25);
    border-radius: 5px;
    padding: 0.75rem 1rem;
    font-weight: 600;
}

.form-status.error {
    color: var(--secondary);
    background: rgba(146,1,1,0.06);
    border: 1px solid rgba(146,1,1,0.25);
    border-radius: 5px;
    padding: 0.75rem 1rem;
    font-weight: 600;
}

.form-nota {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
    line-height: 1.6;
}

.form-nota a { color: var(--primary); font-weight: 600; }
.form-nota a:hover { color: var(--primary-light); }

.btn-submit:disabled { opacity: 0.65; cursor: wait; transform: none; }

/* ==================
   RANGO INTERMEDIO (901–1150px): evita que el logo y el menú se aprieten
   ================== */

@media (min-width: 901px) and (max-width: 1150px) {
    .header-main { padding: 0.7rem 1.25rem; gap: 0.75rem; }
    .logo-img { height: 38px; }
    .logo-name { font-size: 1.02rem; }
    .logo-tagline { font-size: 0.6rem; letter-spacing: 1px; }
    nav { gap: 0.1rem; }
    nav a { padding: 0.45rem 0.6rem; font-size: 0.85rem; }
    .header-top-inner { gap: 1rem; padding: 0 1.25rem; }
}

/* ==================
   MÓVIL — TELÉFONOS (≤600px)
   ================== */

@media (max-width: 600px) {
    /* --- barra superior: solo el teléfono, para llamar con un toque --- */
    .header-top { padding: 0.3rem 0; font-size: 0.75rem; }
    .header-top-inner { justify-content: center; gap: 0; padding: 0 0.9rem; }
    .header-top-inner span { display: none; }                      /* RIF */
    .header-top-inner a[href^="mailto"] { display: none; }         /* correo */
    .header-top-inner a[href^="https://wa.me"] { font-weight: 700; }

    .header-main { padding: 0.55rem 0.9rem; gap: 0.6rem; }
    .logo-name { white-space: nowrap; }
    .logo-img { height: 34px; }
    .logo-name { font-size: 0.95rem; letter-spacing: 0.2px; }
    .logo-tagline { font-size: 0.58rem; letter-spacing: 1.2px; }
    nav a { min-height: 44px; display: flex; align-items: center; }

    /* --- hero --- */
    .hero-photo,
    .hero { padding: 3rem 1.15rem; }
    .hero-photo h1,
    .hero h1 { font-size: 1.6rem; line-height: 1.25; }
    .hero-photo .subtitle,
    .hero .subtitle { font-size: 0.95rem; margin-bottom: 1.75rem; }

    /* --- botones: ancho completo, apilados --- */
    .hero-content > div { display: flex; flex-direction: column; gap: 0.7rem; }
    .btn { width: 100%; padding: 0.95rem 1rem; min-height: 46px; }
    .btn-secondary { margin-top: 0; }
    .btn-cta { width: 100%; max-width: 320px; padding: 0.95rem 1rem; min-height: 46px; }

    /* --- secciones y encabezados --- */
    .section { padding: 2.4rem 1.15rem; }
    .section-header { margin-bottom: 2rem; }
    .section-header h2 { font-size: 1.5rem; }
    .section-header h2::after { width: 56px; }
    .section-header p { font-size: 0.95rem; }

    /* --- tarjetas --- */
    .cards-grid,
    .standards-grid,
    .social-grid,
    .projects-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .card { padding: 1.5rem; }
    .card h3 { font-size: 1.05rem; }

    /* --- estadísticas: 2x2 en vez de 4 apiladas --- */
    .stats-inner { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; }
    .stat-item .stat-number { font-size: 2.1rem; }
    .stat-item .stat-label { font-size: 0.82rem; }

    /* --- fotos --- */
    .photo-col img { height: 210px; }

    /* --- clientes --- */
    .clients-logos { gap: 1.5rem 1.75rem; }
    .clients-logos img { height: 34px; }

    /* --- banda CTA --- */
    .cta-band { padding: 2.75rem 1.15rem; }
    .cta-band h2 { font-size: 1.35rem; line-height: 1.3; }
    .cta-band p { font-size: 0.93rem; margin-bottom: 1.5rem; }

    /* --- hero de páginas internas --- */
    .page-hero { padding: 2.1rem 1.15rem; }
    .page-hero h1 { font-size: 1.45rem; }
    .page-hero p { font-size: 0.95rem; }

    /* --- formulario: 16px evita el zoom automático de iOS --- */
    .form-card { padding: 1.4rem; }
    .form-card h3 { font-size: 1.1rem; margin-bottom: 1.25rem; }
    .form-group input,
    .form-group select,
    .form-group textarea { font-size: 1rem; padding: 0.8rem 0.9rem; }
    .btn-submit { min-height: 48px; }

    /* --- WhatsApp flotante: más chico y respetando la barra del iPhone --- */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        right: 1rem;
        bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    }
    .whatsapp-float svg { width: 26px; height: 26px; }

    /* --- pie --- */
    .footer-content { gap: 1.5rem; }
    .footer-bottom { font-size: 0.78rem; line-height: 1.5; }
}

/* ==================
   MÓVIL — PANTALLAS ANGOSTAS (≤400px)
   ================== */

@media (max-width: 400px) {
    .logo-name { font-size: 0.82rem; }
    .header-top { font-size: 0.7rem; }
    .logo-tagline { display: none; }
    .logo-img { height: 30px; }

    .hero-photo h1,
    .hero h1 { font-size: 1.4rem; }
    .section-header h2 { font-size: 1.35rem; }

    .stats-inner { grid-template-columns: 1fr; }
    .section { padding: 2rem 1rem; }
    .card { padding: 1.25rem; }
}
