* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
 scroll-behavior: smooth;
}
a,strong,nav{
  margin: 0;
  padding: 0;
}
body {
  background: #fff;
  margin: 0;
  
}
a {
  text-decoration: none;
}

/* HEADER */
.header{
  background:#0d3b66;
  color:#fff;
  padding:40px;
  text-align:center;
}

/* LAYOUT */
.layout{
  display:grid;
  grid-template-columns:260px 1fr;
  grid-template-areas: "sidebar contenido";
  gap:40px;
  max-width:1200px;
  margin:auto;
  padding:40px;
}
.sidebar-servicios{
  grid-area: sidebar;
}

.contenido{
  grid-area: contenido;
}


/* SIDEBAR */
.sidebar-servicios{
  background:#0d3b66;
  color:#fff;
  padding:20px;
  border-radius:10px;
  position:sticky;
  top:20px;
  height:fit-content;
}

.sidebar-servicios h3{
  margin-bottom:15px;
}

 

/* LINKS */
.sidebar-servicios a{
  display:block;
  padding:10px;
  margin-bottom:5px;
  color:#fff;
  text-decoration:none;
  border-radius:6px;
  transition:0.3s;
}

.sidebar-servicios a:hover{
  background:#0d6efd;
}

/* ACTIVO */
.sidebar-servicios a.active{
  background:#fff;
  color:#0d3b66;
  font-weight:bold;
}
.sub{
  color:#0d6efd;
  margin-bottom:10px;
}

.contenido p{
  margin-bottom:15px;
  line-height:1.6;
}

.contenido ul{
  margin:15px 0;
  padding-left:20px;
}

.contenido li{
  margin-bottom:8px;
}
/* CONTENIDO */
.contenido{
  max-width:800px;
}
 

/* IMAGEN */
.img{
  width:75%;
  border-radius:10px;
  margin:25px 0;
  
}

/* BOTON */
.btn{
  display:inline-block;
  margin-top:10px;
  padding:10px 20px;
  background:#25D366;
  color:#fff;
  text-decoration:none;
  border-radius:6px;
}

/* RESPONSIVE */
@media(max-width:900px){
  .layout{
    grid-template-columns:1fr;
  }
}
.topbar{
  background: #0f2235;
  color: #fff;
  font-size: 12px;
  padding: 16px 5%;

}
.container{
  display: flex;
  justify-content: space-between;
    
  align-items: center;
  width: 90%;
}
.top-right span{
  margin-left: 15px;
  position: relative;
}
.linea{
  height: 100%;
}
.top-right .linea::before{
content: "";
position:absolute ;
width: 2px;
height: 140%;
background: #a4a4a3af;
}
 
/* NAVBAR */
.navbar {
  background: #fff;
  padding: 15px 10%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  
}
.navbar {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1000;
}
.container1{
  display: flex;
  justify-content: space-between;
  align-items: center;
  
}
nav a{
  text-decoration: none;
    color: #333;
    font-weight: 500;
    margin: 0 12px;
    transition: color 0.3s ease;
}
nav a:hover{
color: #ff9d2f;
}
nav a.active{
  color: #ff9d2f;
}
.logo a{
  text-decoration: none;
  font-size: 18px;
  color: #0f2235;
  font-weight: 800;
}
.logo-titu{
   color: #ff9d2f;
}
.btn{
  background: #ff9d2f;
  color: white;
  padding: 10px 18px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s;
}
.btn:hover {
  background: #e88b1f;
}
/* DROPDOWN */
.dropdown {
  position: relative;
  display: inline-block;
}

/* MENÚ OCULTO */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 300px;
  max-height: 400px;
  overflow-y: auto;

  background: #0f4c81;
  padding: 15px 0;

  display: none;
  flex-direction: column;

  border-radius: 6px;
}

/* LINKS */
.dropdown-menu a {
  color: #fff;
  padding: 10px 20px;
  display: block;
  font-size: 14px;
  text-decoration: none;
}

.dropdown-menu a:hover {
  background: #0c3c66;
}

/* MOSTRAR AL PASAR */
.dropdown:hover .dropdown-menu {
  display: flex;
}
.hero {
  position: relative;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  transition: background-image 1s ease-in-out;
}
.dots {
  position: absolute;
  bottom: 30px;
  display: flex;
  gap: 10px;
}

.dot {
  width: 30px;
  height: 4px;
  background: #ccc;
  border-radius: 5px;
  transition: 0.3s;
}

.dot.active {
  background: #ff9d2f;
}
/* 🔥 HAMBURGUESA */
.menu-toggle{
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle span{
  width: 28px;
  height: 3px;
  background: #333;
  display: block;
}

/* 🔹 MOBILE NAVBAR LIMPIO */
@media (max-width: 992px){

  .navbar{
    padding: 18px 6%;
  }
 .layout{
    grid-template-columns:1fr;
    grid-template-areas:
      "sidebar"
      "contenido";
  }

  .sidebar-servicios{
    position: relative;
    top: auto;
  }
  .container1{
    display: flex;
   
    align-items: center;
    justify-content: space-between;
  }

  /* 🔥 LOGO IZQUIERDA */
  .logo{
    font-size: 16px;
  }

  /* 🔥 HAMBURGUESA DERECHA */
  .menu-toggle{
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
  }

  /* 🔥 OCULTAR NAV INICIALMENTE */
 nav{
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: #fff;

    display: flex; /* 🔥 IMPORTANTE */
    flex-direction: column; /* 🔥 clave */

    max-height: 0;
    overflow: hidden;
    transition: 0.4s ease;
  }

   

  /* 🔥 OCULTAR BOTÓN */
  .nav-content .btn{
    display: none;
  }

   nav.active{
    max-height: 100vh;
  }

  nav a{
    width: 100%;
    padding: 18px;
    text-align: center;
    border-bottom: 1px solid #eee;
  }

  /* 🔥 dropdown ocupa todo el ancho */
  .dropdown{
    width: 100%;
  }

  .dropdown > a{
    display: block;
    width: 100%;
  }

  .dropdown-menu{
    width: 100%;
    background: #0f4c81;
  }

  .dropdown-menu a{
    text-align: center;
   
  }
  
  nav.active{
    max-height: 800px; /* 🔥 despliega menú */
  }

  nav a{
    padding: 24px;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #eee;
    font-size: 28px;
  }

  /* 🔥 ocultar botón cotización arriba */
  .nav-content .btn{
    display: none;
  }

  /* 🔥 dropdown adaptado */
  .dropdown-menu{
    position: static;
    box-shadow: none;
    display: none;
  }

  .dropdown.active .dropdown-menu{
    display: block;
  }
}
 @media(max-width:900px){

  .layout{
    grid-template-columns:1fr; /* una sola columna */
  }

  .sidebar-servicios{
    order: -1; /* 👈 esto lo sube arriba */
    position: relative; /* quita el sticky en móvil */
    top: auto;
  }

}
/* BOTÓN FLOTANTE */
.floating-btn {
  position: fixed;
  bottom: 25px;
  left: 25px;
  background: #ffffff;
  color: white;
  font-size: 28px;
  width: 65px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 1000;
}