:root{
  --bg:#0b0f12;
  --surface:#0f1720;
  --muted:#94a3b8;
  --emerald:#0f9d58;
  --white:#fff;
  --shadow:0 10px 30px rgba(2,6,23,0.6);
  --text-second:#f5b800;
  --hmo-color: #39B54A;
  --gris-claro: #D9D9D9;

  --Amarilloconstrucción:#FFC300;
  --Negrocarbón:#1C1C1C;
  --Grisacero:#6E6E6E;
  
  font-size: 16px;
  box-sizing: border-box;
  scroll-behavior: smooth;

   --radius: 10px;
  --transition: 220ms cubic-bezier(.2,.8,.2,1);
}

*, 
*::before,
*::after{
    margin: 0;
    padding: 0;
    box-sizing: inherit;
}

body{
    font-family:'Roboto',sans-serif;
    min-height: 100vh;
    background: linear-gradient(180deg, #f7f7f7 0%, #ffffff 100%);
    color:var(--white);
}

/* estilos navbar */
.header {
    /* position: fixed; */
    top: 0;
    width: 100%;
    background: var(--bg);
    padding: 5px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    height: 100px;
    background:rgba(0, 0, 0, 0.713); 
    position: sticky;
}

.navbar {
    display: flex;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 0.5px;
}

.navbar ul li {
    position: relative;
}

.navbar a {
    color: #fff;
    text-decoration: none;
    padding: 10px;
    display: block;
    font-size: 16px;
}

.navbar a:hover{
    color: var(--Amarilloconstrucción);
    background:rgba(255, 255, 255, 0.178);
    border-radius: 10px;
    transition: all 300ms ease-in-out;
}

/* Submenús escritorio */
.navbar ul li ul {
    position: absolute;
    background: var(--Grisacero);
    display: none;
    min-width: 250px;
}

.navbar ul li:hover > ul {
    display: block;
    border-radius: 15px;
    background: var(--Negrocarbón);
}

/* Submenús de segundo nivel */
.navbar ul li ul li ul {
    right: -250px;
    top: 0;
}

/* Esconde completamente el checkbox */
#toggle {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}


/* ====== MODO MÓVIL ====== */
#toggle,
.header label {
    display: none;
}

@media (max-width: 950px) {

    #toggle,
    .header label {
        display: block;
        cursor: pointer;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        background: var(--Negrocarbón);
        flex-direction: column;
        transition: max-height 0.4s ease;
    }

    #toggle:checked ~ .navbar {
        max-height: 90vh;
        overflow-y: auto;
        padding-bottom: 15px;
    }

    .navbar ul {
        flex-direction: column;
        gap: 0;
    }

    .navbar ul li {
        width: 100%;
    }

    /* Submenús colapsables con click */
    .navbar ul li > a {
        padding: 14px;
        position: relative;
    }

    .navbar ul li ul {
        max-height: 0;
        overflow: hidden;
        position: static;
        background: #222;
        transition: max-height 0.4s ease;
    }

    /* Flecha indicadora */
    .navbar ul li a:only-child::after {
        content: "";
    }
    .navbar ul li > a + ul::before {
        content: "▼";
        position: absolute;
        right: 20px;
        font-size: 10px;
        color: var(--Amarilloconstrucción);
    }

    /* Abrir submenú cuando se hace click */
    .navbar ul li:focus-within > ul {
        max-height: 500px;
    }
}

/* --------------------------------- */
/* inicio de estilos para el hero */
/* --------------------------------- */
#slide {
  position: relative;
  margin: auto;
  width: 100%;
  overflow: hidden;
  padding: 0;
}

#slide ul {
  position: relative;
  left: 0%;
  margin: auto;
  height: auto;
  width: 200%;
  clear: both;
  transition: left 500ms ease;
  -moz-transition: left 500ms ease;
  -o-transition: left 500ms ease;
}

#slide ul li {
  position: relative;
  float: left;
  width: 50%;
}

#slide ul li img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
}

#slide ul li h1 {
  position: absolute;
  top: 20%;
  left: 10%;
  color: #fff;
  font-size: 1.5rem;
  text-shadow:3px 3px 6px rgba(0, 0, 0, 095);
}

.span-title{
  color: var(--hmo-color);
  font-size: 2.0rem;
}


.span-title-dos{
  color: var(--hmo-color);
  font-size: 2.0rem;
  text-shadow:3px 3px 6px rgba(0, 0, 0, 0.95);
}

#slide ul li h2 {
  position: absolute;
  top: 40%;
  left: 10%;
  width: 40%;
  background: rgba(0,0,0,.5);
  color: #fff;
  padding: 1rem;
  border-radius: 15px;
}

#slide .arrowl {
  position: absolute;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  z-index: 2;
  padding: 30px 10px;
  background:rgba(0,0,0,.5);
  border-radius: 0 5px 5px 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
}
#slide .arrowr{
  position: absolute;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  z-index: 2;
  padding: 30px 10px;
  background:rgba(0,0,0,.5);
  border-radius: 5px 0 0 5px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
}

#slide #prev {
  left: 0;
}

#slide #next {
  right: 0;
}

#slide #paginacion {
  position: absolute;
  width: 100%;
  margin: auto;
  text-align: center;
  line-height: 12px;
  font-size: 15px;
  left: 0;
  z-index: 1;
  bottom: 10px;
}

#slide #paginacion li {
  display: inline-block;
  margin: 0 5px;
  cursor: pointer;
  opacity: .5;
  color: #fff;
  text-shadow: 0 0 5px #333;
}

#slide #paginacion li:first-child {
  opacity: 1;
}

.contendor {
  position: relative;
}

.btn-primary {
  position: absolute;
  bottom: 60px;
  right: 30px; 
  z-index: 10;
}

.contendor {
  position: relative;
}

/* Estilos base del botón */
.btn-primary{
  font-size: 1.2rem;
  position: absolute;
  bottom: 60px;
  right: 20px;
  z-index: 10;
  padding: 12px 24px;
  border-radius: 6px;
  background: var(--hmo-color);
  color:var(--white);
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.3s ease, background-color 0.3s ease, opacity 0.5s ease;
  
  /* Animación de entrada */
  opacity: 0;
  animation: fadeSlide 1.2s ease forwards;
}

/* Efecto hover */
.btn-primary:hover {
  color: var(--bg);
  transform: scale(1.8);
  background: var(--Amarilloconstrucción);
  box-shadow:3px 3px 6px rgba(0, 0, 0, 0.9);
}

/* Keyframes para aparecer suavemente */
@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* estilos nuestros servicios */
/* SERVICES */

    #services{
      margin: 35px 30px;
      color: var(--Grisacero);
      text-align: center;
    }

    .services{
      display:grid;
      grid-template-columns:repeat(3,1fr);
      
      margin:40px 30px;
    }
    .service-card{
      margin: 20px 20px;
      background:var(--blanco);
      padding:18px;
      border-radius:12px;
      box-shadow:0 8px 18px rgba(16,24,32,0.04);
      transition:transform var(--transition),box-shadow var(--transition);
      border-top:6px solid transparent
    }
    .service-card:hover{
      transform:translateY(-14px);
      box-shadow:0 18px 36px rgba(16,24,32,0.9);
      border-top-color:var(--Amarilloconstrucción)
    }
    .service-icon{
      width:94px;
      height:94px;
      border-radius:12px;
      background:linear-gradient(180deg,var(--gris-claro),#fafafa);
      display:flex;
      align-items:center;
      justify-content:center;
      font-size:26px
    }

.services-text{
    color: var(--Negrocarbón);
    font-size: 2.5rem;
    text-align: center;
    margin-top: 4rem;
    margin-bottom:2rem ;
      
}
.service-card h4{
  font-size: 1.2rem;
  margin:16px 0 16px;
  color: var(--Negrocarbón);
}

.service-card p{
  margin:0;color:#666;
  font-size: 1rem;
  text-align: justify;
      
}

/* estilos carousel */
.container-carousel{
  min-height: 100%;
  margin: 35px 30px;
  padding: 4rem 0;
}

.carousel-title{
  color: var(--bg);
  font-size: 2.5rem;
}

.carousel-txt{
  color: var(--hmo-color);
}

.container-carousel p{
  gap:18px;
  margin: 10px 40px 10px 40px;
  color: var(--Grisacero);
  font-weight: bold;
  font-size: 1.2rem;
}

.container-carousel h4{
  text-align: center;
  margin-bottom: 2rem;
}

.carousel{
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 1rem 0;
}

.track{
  display: inline-flex;
  gap: 3rem;
  animation: scroll 25s linear infinite;
  will-change: transform;
}

.card{
  width: 180px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(30%);
  transition: transform .3s ease, filter .3s ease;
}

.card img:hover{
  transform: scale(1.12);
  filter: grayscale(0);
}

@keyframes scroll{
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.carousel:hover .track{
  animation-play-state: paused;
}

/* estilos porque elegirnos */

.about{
  min-height: 100%;
  margin: 35px 30px;
  padding: 4rem 0;
}

.about h4{
  text-align: center;
  margin-bottom: 2rem;
}

.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.feature {
  background-color: #111;
  padding: 1rem 2rem;
  border-radius: 5px;
  color: #F5B800;
  transition: background-color 0.3s;
}

.feature:hover {
  background-color: #4CAF50;
  color: #fff;
}

/* ===== CONTACTO ===== */
/* ===== CONTACTO (REVISADO: evita solapamientos) ===== */
/* ===== CONTACTO: solución con GRID para evitar solapamientos ===== */
/* CONTACT SECTION */
.contact-section {
    padding: 120px 2rem 4rem;
    background-color:var(--white);
    color: #fff;
}

.contact-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
}

.contact-info {
    flex: 1 1 350px;
    background: #1A1A1A;
    padding: 2rem;
    border-radius: 10px;
}

.contact-info h2 {
    color: var(--Amarilloconstrucción);
    margin-bottom: 1rem;
}

.contact-info p {
    margin: 0.5rem 0;
}

.map-container {
    margin-top: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 260px;
    border: none;
}

/* FORMULARIO */
.contact-form {
    flex: 1 1 350px;
    display: flex;
    flex-direction: column;
    background: #1A1A1A;
    padding: 2rem;
    border-radius: 10px;
}

.contact-form label {
    margin: 0.8rem 0 0.3rem;
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 6px;
    border: none;
    background: #333;
    color: var(--white);
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--Amarilloconstrucción);
}


.contact-form button {
    width: 100%;
    max-width: 250px;
    margin: 1.2rem auto 0;
    display: block;
}

.btn-primarys{
    background-color:var(--hmo-color);
    color: var(--white);
    padding: 0.9rem 1.5rem;
    text-decoration: none;
    border-radius: 8px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 240px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    margin: 0 auto;
    transition: transform 0.3s, background-color 0.3s;
}

.btn-primarys:hover {
    transform: scale(1.09);
    background-color:var(--Amarilloconstrucción);
    color:var(--bg);
}

/* estilos encabezado de contacto */
.contacto-section {
    background-color:var(--gris-claro);
    max-width: 900px;
    margin: 50px auto;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  
    color:var(--Grisacero);
}

.contacto-section h2 {
    text-align: center;
    font-size: 2.2rem;
    color:var(--bg);
    margin-bottom: 25px;
}

.contacto-section p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.contacto-section p strong {
    color: var(--bg);
}

.privacy {
    font-size: 0.9rem;
    color: #555;
    text-align: center;
    font-style: italic;
}


/* estilos sobre nosotros */

.about-section {
  padding: 80px 20px;
  color: var(--Negrocarbón);
}

.capital{
  color: var(--hmo-color);
  font-weight: bold;
}

.section-title {
  text-align: center;
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--hmo-color);
  margin-bottom: 40px;
}

.container {
  max-width: 1100px;
  margin: auto;
}

.about-card {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 60px;
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: fadeUp var(--transition);
}

.about-card.reverse {
  flex-direction: row-reverse;
}

.about-img {
  width: 45%;
  border-radius: var(--radius);
  object-fit: cover;
  transition: transform 0.4s ease-in-out;
}

.about-img:hover {
  transform: scale(1.03);
}

.about-video {
  width: 45%;
  border-radius: var(--radius);
  object-fit: cover;
  transition: transform 0.4s ease-in-out;
  max-height: 350px;
}

.about-video:hover {
  transform: scale(1.03);
}

@media (max-width: 768px) {
  .about-video {
    width: 100%;
  }
}


.about-content h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--hmo-color);
  margin-bottom: 10px;
}

.about-content p {
  font-size: 1rem;
  font-weight: 400;
  color: var(--Negrocarbón);
  line-height: 1.6;
}

/* Animación suave al aparecer */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* estilos para btn whatsApp */

.whatsapp {
  position:fixed;
  width:60px;
  height:60px;
  bottom:35px;
  right:40px;
  background-color:#25d366;
  color:#FFF;
  border-end-end-radius: 2px solid var(--white);
  border-radius:50px;
  text-align:center;
  font-size:33px;
  z-index:100;
  
}
 
.whatsapp-icon {
  margin-top:13px;transition: transform 0.4s ease-in-out;
}

.whatsapp-icon:hover {
  
  transform: scale(1.3);
}

/* estilos navvar posicion actual */




/* estilos footer */
.footer {
  background-color: #111;
  padding: 2rem;
  text-align: center;
  color: #aaa;
}

/* Responsive: centrar en pantallas pequeñas */
@media (max-width: 768px) {
  .btn-primary {
    right: 50%;
    bottom: 15px;
    transform: translateX(50%);
    font-size: 14px;
    padding: 10px 20px;
  }
   .contact-container {
        flex-direction: column;
        text-align: center;
    }

    #slide .arrowl{
      display: none;
    }
    #slide .arrowr{
      display: none;
    }

    

#slide ul li h1 {
  text-align: center;
    font-size: 1.2rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 095);
    }
    
    #slide ul li h2 {
      align-items: center;
      width: 100%;
      padding: 0.5rem;
      left: 0;
      margin: 0 auto;
      
    }
    #slide ul li h2{
        font-size: 1.2rem;
    }

    .span-title-dos{
      font-size: 1.5rem;
    }

    #services {
    margin:0;
    color: var(--Grisacero);
    text-align: center;
    }

    .services .muted .small p{
      color: var(--Grisacero);
    }

    .service-card {
    margin:5px 0 15px 0;
    background: var(--blanco);
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(16, 24, 32, 0.04);
    transition: transform var(--transition), box-shadow var(--transition);
    border-top: 6px solid transparent;
    }

    .whatsapp{
      bottom: 10px;
      right: 10px;
      width: 45px;
      height: 45px;
      font-size: 20px;
  }

}
/* small screens */
/* @media (max-width:1100px){.hero{grid-template-columns:1fr 360px}} */
@media (max-width:900px){
    .services{grid-template-columns:1fr}
}
    
@media (max-width:520px){
    .projects-grid{grid-template-columns:1fr}
}

/* Responsivo sobre nosotros */
@media (max-width: 768px) {
  .about-card, .about-card.reverse {
    flex-direction: column;
    text-align: center;
  }
  .about-img {
    width: 100%;
  }
  .about-content h3 {
    font-size: 1.5rem;
  }
}

/* RESPONSIVE */
@media(max-width: 768px) {
   
}
