
/* =========================================
   GR OBRAS Y PROYECTOS - v2.0 CLEAN BASE
========================================= */

/* ========= VARIABLES ========= */

:root {
  --color-primario: #1a2b4a;
  --color-acento: #fb7400;
  --color-texto: #364d59;
  --fuente: 'Work Sans', sans-serif;
}

/* ========= RESET BASE ========= */

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: var(--fuente);
  color: var(--color-texto);
  background: #fff;
}

a {
  text-decoration: none;
  transition: .3s;
}

a:hover {
  text-decoration: none;
}

/* ========= TIPOGRAFÍA ========= */

h1, h2, h3 {
  font-weight: 300;
}

/* ========= LAYOUT GENERAL ========= */

.site-section {
  padding: 2.5rem 0;
}

@media (min-width:768px) {
  .site-section {
    padding: 5rem 0;
  }
}

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

.site-navbar {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 999;
  background: transparent;
  padding: 1rem 0;
}

.site-navbar .site-logo a {
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,.4);
}

/* MENU DESKTOP */

.site-menu > li {
  display: inline-block;
}

.site-menu > li > a {
  color: #fff !important;
  margin: 0 15px;
}

/* HAMBURGUESA */

.site-menu-toggle {
  color: #fff !important;
  font-size: 2rem;
  text-shadow: 0 2px 4px rgba(0,0,0,.4);
}

/* ========= MOBILE FIX HEADER ========= */

@media (max-width:991px) {

  .site-navbar .row {
    flex-direction: column;
    text-align: center;
  }

  .site-navbar .col-3,
  .site-navbar .col-9 {
    max-width: 100%;
    flex: 0 0 100%;
  }

  .site-logo {
    margin-bottom: 10px;
  }

  .logo-gr {
    height: 60px;
    width: auto;
  }

  .site-navbar .text-right {
    text-align: center !important;
  }

  .site-menu-toggle {
    display: inline-flex;
    justify-content: center;
    margin: 0 auto;
  }

  .site-navbar {
    padding: 15px 0;
  }
}

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

.ftco-cover-1 {
  position: relative;
  min-height: 78vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: #FFFFFF;
}

.ftco-cover-1.overlay:before {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: .5;
}

/* ========= SERVICIOS ========= */

.service-2 {
  background: #fff;
  padding: 40px;
}


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

.site-footer {
  padding: 4em 0;
  background: #000;
}

@media (min-width: 768px) {
  .site-footer {
    padding: 8em 0;
  }
}

.site-footer .border-top {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.site-footer p,
.site-footer a,
.site-footer ul li,
.site-footer span {
  color: rgba(255, 255, 255, 0.7);
}

.site-footer h2, 
.site-footer h3, 
.site-footer h4, 
.site-footer h5 {
  color: #fff;
}

.site-footer a:hover {
  color: white;
}

.site-footer .footer-heading {
  font-size: 16px;
  color: #fff;
}

.site-footer .icono-fijo {
  width: 28px;
  display: inline-block;
}

.footer-gr a[href^="mailto:"],
.footer-gr a[href^="tel:"] {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.footer-gr a[href^="mailto:"]:hover,
.footer-gr a[href^="tel:"]:hover {
  color: white;
  text-decoration: underline;
}

/* ========= MOBILE MENU ========= */

.site-mobile-menu {
  position: fixed;
  right: 0;
  top: 0;
  width: 300px;
  height: 100vh;
  background: #1a1a1a;
  transform: translateX(110%);
  transition: .3s ease;
  z-index: 9999;
}

.offcanvas-menu .site-mobile-menu {
  transform: translateX(0);
}


/* =========================
   HEADER ON SCROLL
========================= */

.site-navbar {
  transition: all .3s ease;
}

.site-navbar.scrolled {
  position: fixed;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
  padding: .6rem 0;
  box-shadow: 0 5px 20px rgba(0,0,0,.2);
}


/* =========================
   HERO UX UPGRADE
========================= */

.ftco-cover-1 .container {
  position: relative;
  z-index: 2;
}

/* Oscurecer un poco mejor para legibilidad */
.ftco-cover-1.overlay:before {
  opacity: 0.55;
}

/* TITULO HERO */
.ftco-cover-1 h1 {
  font-size: 2.8rem;
  line-height: 1.2;
  font-weight: 300;
  text-shadow: 0 3px 10px rgba(0,0,0,.5);
}

/* SUBTITULO */
.ftco-cover-1 p {
  font-size: 1.1rem;
  opacity: .95;
  text-shadow: 0 2px 6px rgba(0,0,0,.4);
}

/* BOTONES HERO */
.btn {
  transition: all .25s ease;
  border-radius: 6px;
}

.btn:hover {
  transform: translateY(-2px);
}

/* BOTÓN PRINCIPAL */
.btn-primary {
  background: var(--color-acento);
  border-color: var(--color-acento);
}

.btn-primary:hover {
  background: #e56600;
  border-color: #e56600;
}

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

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all .6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}


/* =========================
   PERFORMANCE FIXES
========================= */

/* Evita scroll horizontal raro */
html, body {
  overflow-x: hidden;
}

/* Mejora render de imágenes */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Suaviza transiciones globales */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =========================
   UX POLISH
========================= */

/* Hover más consistente */
a, button {
  transition: all .25s ease;
}

/* Botones más modernos */
.btn {
  border-radius: 6px;
}

/* Mejora foco accesibilidad */
a:focus, button:focus {
  outline: 2px solid var(--color-acento);
  outline-offset: 2px;
}

/* =========================
   SERVICIOS UPGRADE
========================= */

.service-2 {
  background: #fff;
  padding: 40px 30px;
  border-radius: 10px;
  transition: all .3s ease;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  height: 100%;
}

/* ICONO (si existe en la card) */
.service-2 .icon {
  font-size: 40px;
  color: var(--color-acento);
  margin-bottom: 15px;
}

/* TITULO */
.service-2 h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

/* HOVER PRO */
.service-2:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

/* MOBILE */
@media (max-width:768px) {
  .service-2 {
    padding: 30px 20px;
    margin-bottom: 20px;
  }
}

/* =========================
   CONSISTENCIA GLOBAL
========================= */

/* Espaciado uniforme entre secciones */
.site-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* Evitar secciones pegadas en móvil */
@media (max-width:768px) {
  .site-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

/* Títulos consistentes */
h1, h2, h3 {
  line-height: 1.3;
  letter-spacing: -0.2px;
}

/* Evitar desalineación entre páginas */
.container {
  max-width: 1140px;
}

/* Uniformidad de imágenes */
img {
  border-radius: 6px;
}


/* =========================
   FORMULARIO CONTACTO PRO
========================= */

.form-control {
  border-radius: 6px;
  padding: 12px 14px;
  border: 1px solid #e0e0e0;
  transition: all .2s ease;
  font-size: 0.95rem;
}

.form-control:focus {
  border-color: var(--color-acento);
  box-shadow: 0 0 0 0.2rem rgba(251,116,0,0.15);
}

/* BOTÓN ENVÍO */
.btn-submit {
  background: var(--color-acento);
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: 6px;
  transition: all .25s ease;
  font-weight: 500;
}

.btn-submit:hover {
  background: #e56600;
  transform: translateY(-2px);
}

/* ESTADO DE CARGA */
.btn-submit.loading {
  opacity: .7;
  pointer-events: none;
}

/* MENSAJES */
.form-message {
  margin-top: 15px;
  font-size: 0.9rem;
}

.form-message.success {
  color: #28a745;
}

.form-message.error {
  color: #dc3545;
}


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

.site-footer {
  background: #111;
  color: #ccc;
  padding: 4rem 0;
}

.site-footer a {
  color: #ccc;
  transition: .2s;
}

.site-footer a:hover {
  color: var(--color-acento);
}

/* Títulos footer */
.site-footer h3,
.site-footer h4 {
  color: #fff;
  margin-bottom: 15px;
}

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

.whatsapp-float {
  position: fixed;
  width: 55px;
  height: 55px;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 28px;
  box-shadow: 0 5px 15px rgba(0,0,0,.2);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s ease;
}

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

/* =========================
   CTA FINAL
========================= */

.cta-section {
  background: var(--color-primario);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}

.cta-section h2 {
  color: #fff;
  margin-bottom: 15px;
}

.cta-section .btn {
  margin-top: 20px;
}

/* =========================
   FINAL SAFE FIXES
========================= */

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

/* =========================
   FOOTER FIX DEFINITIVO (SIN CONFLICTOS)
========================= */

.site-footer h3,
.site-footer h4 {
  font-size: 16px;
  font-weight: 300;
  color: #ccc;
  letter-spacing: normal;
  text-transform: none;
}

/* evita herencia de estilos globales */
.site-footer h3,
.site-footer h4 {
  line-height: 1.4;
}

/* ==========================
   HERO MOBILE FIX
========================== */

@media (max-width: 991px) {

  .ftco-cover-1 {
    align-items: flex-start;
    padding-top: 120px;
	min-height: 70vh;
  }

  .ftco-cover-1 .col-lg-7 {
    text-align: center;
	
	color: #FFFFFF;
  }

  .ftco-cover-1 h1 {
    font-size: 2rem;
  }

  .ftco-cover-1 p {
    font-size: 1rem;
  }
}