@font-face {
  font-family: 'Geist';
  src: url('assets/fonts/geist/Geist-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bs-font-sans-serif: 'Geist', system-ui, sans-serif;
  --azul: #0E2538;
  --ligth-azul: #9BC8D6;
  --naranja: #f05b34;
  --naranja-ligth: #ededed;
  --gris: #58595b;
}

body {
  font-family: 'Geist', sans-serif;
  color: #58595b;
}

h1, h2, h3 {
  letter-spacing: -0.02em;
  color: var(--azul);
}
@media (min-width: 1200px) {
    .h2, h2 {
        font-size: 2.5rem;
        font-weight: bold;
        margin-bottom: 1rem;
    }
}
p {
    font-size: larger;
}
/* botones */
.btn-ligth-azul,
.btn-azul {
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.375rem 2rem;

}
.btn-ligth-azul {
    background: var(--ligth-azul);
    color: var(--azul);
    
    &:hover {
        background: var(--azul);
        color: var(--ligth-azul);
    }
}
.btn-azul {
    background: var(--azul);
    color: var(--ligth-azul);

    &:hover {
        background: white;
        color: var(--azul);
    }
}

/* colors */
.bg-gris {
  background-color: var(--gris);
}
.dark-blue{
  color: var(--azul);
} 
.bg-dark-blue{
  background-color: var(--azul);
} 
.bg-ligth-azul{
  background-color: var(--ligth-azul);
}
.ligth-azul{
  color: var(--ligth-azul);
}
.bg-naranja{
  background-color: var(--naranja);
}
.naranja{
  color: var(--naranja);
}
.bg-ligth-naranja{
  background-color: var(--naranja-ligth);
}
.ligth-naranja{
  color: var(--naranja-ligth);
}
a{
  text-decoration: none;
}
hr.naranja {
  height: 8px;
  width: 40%;
  background-color: var(--naranja);
  opacity: 100;
    border-top: none;
}

.hero-slide::before, 
.hero-content, 
#highlight .image-slider img,
.cta-presupuesto .image-slider img {
    will-change: transform, opacity;
}

#highlight, .home-grid, .cta-presupuesto, .logo-aliado {
    content-visibility: auto;
    contain-intrinsic-size: 1px 500px; /* Ayuda a que el scroll sea fluido */
}

/* LOGO */
.logo-svg {
  height: auto;
  width: 292px;
}

.logo-isotipo {
  transition: transform 0.4s ease;
}

.logo-texto {
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform-origin: left center;
}
@media (max-width: 991px) {

  .logo-texto {
    opacity: 0;
    transform: translateX(-10px);
    pointer-events: none;
  }

  .logo-svg {
    height: 60px;
    width: auto;
  }
}
@media (min-width: 992px) {

  .logo-texto {
    opacity: 1;
    transform: translateX(0);
  }
}

/**************** 
       MENU 
*******************/
.main-navbar {
  position: sticky;
  top: 0;
  z-index: 9999;
}

.navbar-nav {
  gap: 10px;
  text-transform: uppercase;
}

.navbar-nav .menu-item {
  list-style: none;
}

.navbar-nav .nav-link {
  border-radius: 10px;
  font-weight: 500;
  color: var(--azul);
  transition: background .3s ease, color .3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  background: var(--naranja);
  color: var(--azul);
}
@media (min-width: 992px) {
    .navbar-expand-lg .navbar-nav .nav-link {
        padding-right: 1rem;
        padding-left: 1rem;
    }
}
@media (max-width: 991px) {

  .navbar-collapse {
    padding-top: 1rem;
  }

  .navbar-nav {
    gap: .5rem;
  }

  .navbar-nav .nav-link {
    width: 100%;
    padding: 14px 20px;
  }
}

.navbar-collapse {
  transition: opacity .25s ease, transform .25s ease;
}

.navbar-collapse.collapsing {
  opacity: 0;
  transform: translateY(-10px);
}

.navbar-collapse.show {
  opacity: 1;
  transform: translateY(0);
}

.nav-link:focus-visible {
  outline: 2px solid var(--naranja);
  outline-offset: 3px;
}

/* animation hover */
.hover-underline-animation {
  display: inline-block;
  position: relative;
}

.hover-underline-animation::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--naranja);
  transition: transform 0.25s ease-out;
}

.hover-underline-animation:hover::after {
  transform: scaleX(1);
}

.hover-underline-animation.left::after {
  transform-origin: bottom right;
}

.hover-underline-animation.left:hover::after {
  transform-origin: bottom left;
}

/**************** 
       COUNTER 
*******************/
#count .fw-bolder,
.counter {
  font-weight: 900!important;
}
#count hr{
  height: 8px;
  width: 30%;
  background-color: var(--naranja);
  opacity: 100;
  border-top: none;
}

/**************** 
       HERO 
*******************/
.hero {
  position: relative;
  height: 700px;
  overflow: hidden;
}

/* SLIDER */
.hero-slider {
  height: 100%;
}

/* SLIDE */
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  animation: slideFade 14s infinite;
}

.hero-slide:first-child {
  opacity: 1;
}

/* Fondo por slide */
.hero-slide:nth-child(1)::before {
  background-image: url('../img/obrah-2.webp');
}
.hero-slide:nth-child(2)::before {
  background-image: url('../img/obrah-1.webp');
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  animation: bgZoom 14s infinite;
  z-index: -1;
}
/* OVERLAY OSCURO */
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45); /* ajustá opacidad */
  z-index: 2;
  pointer-events: none;
}

/* Escalonado */
.hero-slide:nth-child(2),
.hero-slide:nth-child(2)::before,
.hero-slide:nth-child(2) .hero-content {
  animation-delay: 7s;
}

/* TEXTO */
.hero-content {
  z-index: 3;
  padding: 2.5rem 0;
  opacity: 0;
  transform: translateY(30px);
  animation: textUp 14s infinite;
}
.hero-content h1 {
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.2;
  font-weight: 600;
  font-size: 4rem;
}


/* ANIMACIONES */
@keyframes slideFade {
  0%, 10%, 50%  { opacity: 1; }
  60%, 100%  { opacity: 0; }
}

@keyframes bgZoom {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.08); }
  100% { transform: scale(1.08); }
}

@keyframes textUp {
  0%   { opacity: 0; transform: translateY(30px); }
  15%  { opacity: 1; transform: translateY(0); }
  50%  { opacity: 1; }
  60%  { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 0; }
}

/* ACCESIBILIDAD – REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-slide::before,
  .hero-content {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero-slide:not(:first-child) {
    display: none;
  }
}

/**************** 
     HIGHLIGHT
*******************/

#highlight .image-slider {
    aspect-ratio: 139 / 120;
    height: auto;
}

#highlight .grid-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  min-height: 60vh; /* altura flexible */
}

/* IZQUIERDA – IMAGEN SLIDER */

#highlight .grid-left {
  position: relative;
  height: 100%;
}

#highlight .image-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 1rem;
}

#highlight .image-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  opacity: 0;
  animation: fadeZoom 14s infinite ease-in-out;
  will-change: transform, opacity;
}

/* Segunda imagen */
#highlight .image-slider img:nth-child(2) {
  animation-delay: 7s;
}

/* DERECHA – GRID INTERNO */

#highlight .grid-right {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
}
#highlight p{
  font-size: 4rem;
}

/* Arriba derecha (8 / 4) */
#highlight .grid-top {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}

#highlight .grid-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
}

/* Logo box */
#highlight .logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Abajo derecha */
#highlight .grid-bottom {
  display: flex;
}

/*   UTILIDADES */

#highlight .img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ANIMACIÓN FADE + ZOOM */

@keyframes fadeZoom {
  0% {
    opacity: 0;
    transform: scale(1);
  }

  12% {
    opacity: 1;
  }

  50% {
    opacity: 1;
    transform: scale(1.06); /* zoom sutil PRO */
  }

  62% {
    opacity: 0;
  }

  100% {
    opacity: 0;
    transform: scale(1.06);
  }
}

/* ACCESIBILIDAD – REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
  #highlight .image-slider img {
    animation: none;
    opacity: 1;
    transform: none;
  }

  #highlight .image-slider img:not(:first-child) {
    display: none;
  }
}

/* RESPONSIVE */

@media (max-width: 991.98px) {
  #highlight .grid-feature {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  #highlight .grid-right {
    grid-template-rows: auto;
  }

  #highlight .grid-top {
    grid-template-columns: 1fr 1fr;
  }

  #highlight .image-slider {
    height: 300px;
  }
}


/* MOBILE */
@media (max-width: 991.98px) {
  .grid-feature {
    grid-template-columns: 1fr;
  }

  .grid-right {
    grid-template-rows: auto;
  }

  .grid-top {
    grid-template-columns: 1fr 1fr;
  }
}

/**************** 
      SERVICE 
*******************/
/* GRID BASE */

.home-grid .grid-item {
  position: relative;
  display: block;
  overflow: hidden;
  height: 100%;
  min-height: 330px;
}
.home-grid .row.g-3>div {
    padding: 0;
    margin: 0;
}

/* IMAGEN */

.home-grid .grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

/* OVERLAY */

.home-grid .grid-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;;
  background: #0e253880;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all .4s ease;
  height: 50%;
}

/* TEXTO */

.home-grid .grid-overlay h3 {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  text-transform: uppercase;
}

/* HOVER EFFECT */

.home-grid .grid-item:hover img {
  transform: scale(1.08);
}

.home-grid .grid-item:hover .grid-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* Cuando estamos en servicios */
.text-white-section {
  color: #fff;
}

.text-white-section .dark-blue {
  color: #fff !important;
}

.text-white-section hr {
  background-color: var(--azul)!important;
}

.text-white-section h6 {
  color: #fff;
}

/* Cambiar SVG a blanco solo en página servicios */
.text-white-section img {
  filter: brightness(0) invert(1);
}

/**************** 
      OBRAS 
*******************/
/* GRID BASE */

.proyectos {
.home-grid .row.g-3>div {
    padding: 0 1rem;
}

.home-grid .grid-overlay {
  background: var(--azul);
  height: auto;
}

  .home-grid .grid-overlay-content {
  display: flex;
  flex-direction: column; /* <-- CLAVE */
  gap: 0.3rem; /* espacio entre título y lugar */
  text-align: left;
}
}

.proyectos-single .img-wrapper {
  overflow: hidden;
}

.proyectos-single .img-wrapper img {
  width: 100%;
  object-fit: cover;
  display: block;
}

.ficha-item {
  padding: 1.2rem 0 .8rem;
  border-bottom: 1px solid #cfcfcf;
  display: flex;
  flex-direction: column;
}

.ficha-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #7a7a7a;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.ficha-value {
  font-size: 1rem;
  color: #58595b;
}

.proyectos-single .image-slider.single-img img {
  animation: none !important;
  opacity: 1 !important;
  position: relative !important;
}

div#carouselProyecto{
  overflow: hidden;
  height: 500px;
}

/**************** 
   ALIADOS
*******************/

.logo-aliado img {
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.logo-aliado:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/**************** 
   PROJECT HIGHLIGHT
*******************/

.project-highlight .ph-img {
  height: 200px;
}

.project-highlight .ph-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-highlight .ph-logo {
  height: 200px;
  padding: 20px 0; 
}

.project-highlight .ph-logo img {
  max-height: 100%;
  width: auto;
}

.project-highlight .ph-bottom {
  min-height: 180px;
}

.project-highlight .ph-bottom p {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

/* Responsive */

@media (max-width: 991.98px) {
  .project-highlight .ph-logo,
  .project-highlight .ph-img {
    min-height: 220px;
  }

  .project-highlight .ph-bottom p {
    font-size: 2rem;
  }
}

.carousel-control-next-icon,
.carousel-control-prev-icon{
  filter: invert(1) sepia(1) saturate(5) hue-rotate(180deg);
}

/*************
     CTA PRESUPUESTO/CONTACTO
*************/
.cta-presupuesto .image-slider {
  position: relative;
  min-height: 358.23px;
  overflow: hidden;
  border-radius: 1rem;
}

.cta-presupuesto .image-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: fadeZoom 14s infinite ease-in-out;
  will-change: transform, opacity;
}

/* Segunda imagen */
.cta-presupuesto .image-slider img:nth-child(2) {
  animation-delay: 7s;
}

/* ACCESIBILIDAD – REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
  .cta-presupuesto .image-slider img {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .cta-presupuesto .image-slider img:not(:first-child) {
    display: none;
  }
}

.contact-card {
  padding: 90px 30px 40px;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.contact-card .logo-box {
  position: absolute;
  top: -35px;
  right: 40px;
  padding: 30px;
}

.contact-card .logo-box img {
  width: 70px;
}

.contact-info p {
  margin: 15px 0;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-info i {
  font-size: 1.2rem;
}

.contact-info a {
  color: #fff;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* IMAGEN SLIDER */

.contact.grid-left {
  position: relative;
  height: 100%;
}

.contact  .image-slider {
  position: relative;
  width: 100%;
  height: 50%;
  overflow: hidden;
  border-radius: 1rem;
}

.contact  .image-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  opacity: 0;
  animation: fadeZoom 14s infinite ease-in-out;
  will-change: transform, opacity;
}

/* Segunda imagen */
.contact  .image-slider img:nth-child(2) {
  animation-delay: 7s;
}

/* ACCESIBILIDAD – REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
  .contact .image-slider img {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .contact .image-slider img:not(:first-child) {
    display: none;
  }
}

/* RESPONSIVE */

@media (max-width: 991.98px) {
  .contact .image-slider {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .contact-card {
    padding: 30px 20px;
  }

  .contact-card  .logo-box {
    position: static;
    margin-bottom: 20px;
    display: inline-block;
  }
}

/* ----- CONTENEDOR / FORM----- */

.contacts-form {
  max-width: 900px;
  margin: 0 auto;
}

/* Quitar estilos por defecto */
.contacts-form p {
  margin-bottom: 2rem;
}

/* Labels */
.contacts-form label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #0e2538;
  display: block;
  margin-bottom: 8px;
}

/* Inputs estilo línea */
.contacts-form input[type="text"],
.contacts-form input[type="email"],
.contacts-form input[type="tel"],
.contacts-form textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid #ccc;
  background: transparent;
  padding: 8px 0;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}

/* Focus elegante */
.contacts-form input:focus,
.contacts-form textarea:focus {
  border-bottom: 1px solid #000;
}

/* Textarea */
.contacts-form textarea {
  min-height: 120px;
  resize: none;
}


/* Ocultar bordes de validación feos */
.contacts-form .wpcf7-not-valid {
  border-bottom: 1px solid red;
}

/* Responsive */
@media (min-width: 768px) {
  .contacts-form form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .contacts-form form p:nth-child(6) {
    grid-column: span 2;
  }
}

/**************** 
   PAGE HERO 
*******************/

.page-hero {
  position: relative;
  height: 265px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

/* Fondo */
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

/* Overlay oscuro */
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2;
}

/* Contenido */
.page-hero-content {
  position: relative;
  z-index: 3;
  padding-bottom: 30px;
}

.page-hero-content h1 {
  color: #fff;
  font-size: clamp(3rem, 4vw, 4rem);
  font-weight: 600;
  margin: 0;
}

/**************** 
   RESPONSIVE 
*******************/

@media (max-width: 992px) {
  .page-hero {
    height: 250px;
  }
}

@media (max-width: 768px) {
  .page-hero {
    height: 200px;
  }

  .page-hero-bg {
    background-position: center center;
    background-size: cover;
  }

  .page-hero-content {
    padding-bottom: 40px;
  }

}

@media (max-width: 480px) {
  .page-hero {
    height: 200px;
  }

  .page-hero-bg {
    background-position: center;
    background-size: cover;
  }
}

/** FOOTER **/
.under-footer a{
  color: white;
}