:root{
    --primario: #BF2122;
    --secundario: #165d8e;
    --letra: #616161;
    --blanco: #fff;
    --negro: #000;
}
html {
  box-sizing: border-box;
  font-size: 62.5%;/*para que 1rem sea 10px siempre*/
    scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
*{
margin:0;
padding:0;
box-sizing:border-box;
}

body{
background:var(--blanco);
}


/* NAVBAR */
.navbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:15px 50px;
  background:var(--blanco);
  box-shadow:0 2px 8px rgba(0,0,0,0.05);
  gap:20px;
}

.logo{
  display:flex;
  align-items:center;
  gap:10px;
  flex-shrink:0;
}

.logo img{
  width:90px;
  height:auto;
  display:block;
}

.logo h1{
  font-size:3.8rem;
  margin:0;
  line-height:1;
  white-space:nowrap;
}

.logo b{
  color:var(--secundario);
}

.menu{
  display:flex;
  align-items:center;
  gap:3rem;
  flex-wrap:nowrap;
}

.menu a{
  text-decoration:none;
  color:var(--letra);
  font-size:2rem;
  position:relative;
  white-space:nowrap;
}

.menu a.active::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-8px;
  width:100%;
  height:3px;
  background:var(--primario);
}

.menu a:hover{
  color:var(--primario);
}

.cta{
  flex-shrink:0;
}

.cta a{
  display:inline-block;
  background:var(--primario);
  color:#fff;
  padding:12px 22px;
  border-radius:6px;
  text-decoration:none;
  font-weight:600;
  font-size:1.8rem;
  transition:0.3s;
  white-space:nowrap;
}

.cta a:hover{
  background:var(--secundario);
}

/* =========================
   TABLET / iPad Pro / Nest Hub
   ========================= */
@media (max-width: 1100px){
  .navbar{
    justify-content:center;
    padding:14px 25px;
  }

  .menu,
  .cta{
    display:none;
  }

  .logo{
    justify-content:center;
  }

  .logo img{
    width:80px;
  }

  .logo h1{
    font-size:3.4rem;
    text-align:center;
  }
}

/* CELULARES */
@media (max-width: 768px){
  .navbar{
    padding:12px 18px;
  }

  .logo{
    gap:8px;
  }

  .logo img{
    width:65px;
  }

  .logo h1{
    font-size:2.7rem;
  }
}

/* CELULARES PEQUEÑOS */
@media (max-width: 480px){
  .logo img{
    width:55px;
  }

  .logo h1{
    font-size:2.2rem;
  }

  .navbar{
    padding:10px 12px;
  }
}
/* HERO */
.hero{
  background-image:url(/imagenes/main.webp);
  background-size:cover;
  background-position:right top;
  background-repeat:no-repeat;

  min-height:90vh;

  display:flex;
  align-items:center;

  padding:80px;
  position:relative;
  overflow:hidden;
}

/* capa oscura para que el texto se vea mejor */
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0, 0, 0, 0.42);
}

.hero-contenido{
  position:relative;
  z-index:2;
  color:white;
  max-width:700px;
  width:100%;
}

.hero h2{
  font-size:6rem;
  line-height:1.1;
  font-weight:700;
  margin:0;
}

.hero h2 span{
  display:block;
  font-weight:400;
}

.hero p{
  margin-top:20px;
  font-size:2.4rem;
  opacity:0.95;
  border-bottom:2px solid rgba(255,255,255,0.5);
  padding-bottom:12px;
  width:90%;
}

.hero-botones{
  margin-top:30px;
  display:flex;
  gap:20px;
  flex-wrap:wrap;
}

.btn-principal,
.btn-secundario{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:56px;
  padding:15px 30px;
  border-radius:6px;
  text-decoration:none;
  font-size:1.8rem;
  font-weight:600;
  transition:0.3s;
}

.btn-principal{
  background:var(--primario);
  color:white;
}

.btn-principal:hover{
  background:#9e1b1c;
}

.btn-secundario{
  background:white;
  color:var(--primario);
}

.btn-secundario:hover{
  background:#eee;
}

/* =========================
   LAPTOP / TABLET GRANDE
   ========================= */
@media (max-width: 1200px){
  .hero{
    min-height:80vh;
    padding:60px 50px;
    background-position:72% center;
  }

  .hero-contenido{
    max-width:620px;
  }

  .hero h2{
    font-size:5rem;
  }

  .hero p{
    font-size:2.1rem;
    width:100%;
  }
}

/* =========================
   TABLET
   contenido más al centro
   ========================= */
@media (max-width: 992px){
  .hero{
    justify-content:center;
    text-align:center;
    padding:60px 35px;
    min-height:75vh;
    background-position:78% center;
  }

  .hero-contenido{
    max-width:640px;
    margin:0 auto;
  }

  .hero h2{
    font-size:4.4rem;
  }

  .hero p{
    width:100%;
    margin-left:auto;
    margin-right:auto;
    font-size:2rem;
  }

  .hero-botones{
    justify-content:center;
  }
}

/* =========================
   CELULAR
   botones uno debajo del otro
   imagen hacia la derecha
   ========================= */
@media (max-width: 768px){
  .hero{
    min-height:85vh;
    padding:40px 20px;
    justify-content:center;
    text-align:center;
    background-position:82% center;
  }

  .hero::before{
    background:rgba(0,0,0,0.48);
  }

  .hero-contenido{
    max-width:100%;
  }

  .hero h2{
    font-size:3.4rem;
    line-height:1.15;
  }

  .hero p{
    font-size:1.8rem;
    width:100%;
    padding-bottom:10px;
  }

  .hero-botones{
    flex-direction:column;
    align-items:center;
    gap:14px;
  }

  .btn-principal,
  .btn-secundario{
    width:100%;
    max-width:320px;
    font-size:1.7rem;
    padding:14px 20px;
  }
}

/* =========================
   CELULAR PEQUEÑO
   ========================= */
@media (max-width: 480px){
  .hero{
    min-height:90vh;
    padding:30px 16px;
    background-position:84% center;
  }

  .hero h2{
    font-size:2.8rem;
  }

  .hero p{
    font-size:1.6rem;
  }

  .btn-principal,
  .btn-secundario{
    max-width:100%;
    min-height:52px;
    font-size:1.6rem;
  }
}

/* SECCION SERVICIOS */

.servicios{
background:#f3f4f6;
padding:80px 0;
text-align:center;
}

.titulo-servicios{
font-size:4rem;
color:var(--secundario);
margin-bottom:50px;
}

.contenedor-servicios{
display:flex;
justify-content:center;
gap:40px;
padding:0 80px;
flex-wrap:wrap;
}

.card-servicio{
background:white;
padding:40px 30px;
border-radius:10px;
width:320px;
box-shadow:0 5px 20px rgba(0,0,0,0.08);
transition:0.3s;

display:flex;
flex-direction:column;
align-items:center;
text-align:center;
}
.card-servicio:hover{
transform:translateY(-8px);
box-shadow:0 10px 30px rgba(0,0,0,0.15);
}

.icono{
display:flex;
justify-content:center;
align-items:center;
margin-bottom:20px;
width:100%;
}

.icono img{
width:80px;
display:block;
margin:auto;
}

.card-servicio h3{
font-size:2.6rem;
margin-bottom:10px;
color:#1f2937;
}

.card-servicio p{
font-size:1.8rem;
color:#6b7280;
line-height:1.5;
}
.card-servicio h3{
font-size:2.6rem;
margin-bottom:10px;
color:#1f2937;
min-height:60px;
display:flex;
align-items:center;
justify-content:center;
}
.card-servicio p{
font-size:1.8rem;
color:#6b7280;
line-height:1.5;
max-width:240px;
}
/* PORQUE ELEGIRNOS */

.porque{
background:#f3f4f6;
padding:70px 0;
text-align:center;
}

.titulo-porque{
display:flex;
align-items:center;
justify-content:center;
gap:20px;
margin-bottom:60px;
}

.titulo-porque h2{
font-size:3.8rem;
color:var(--secundario);
}

.linea{
width:200px;
height:2px;
background:#d1d5db;
display:block;
}

.contenedor-porque{
display:flex;
justify-content:center;
gap:30px;
flex-wrap:wrap;
padding:0 80px;
}

.card-porque{
background:white;
width:260px;
border-radius:10px;
box-shadow:0 5px 20px rgba(0,0,0,0.08);
padding:50px 20px 30px 20px;
position:relative;
transition:0.3s;
}

.card-porque:hover{
transform:translateY(-6px);
box-shadow:0 12px 30px rgba(0,0,0,0.15);
}

.card-porque img{
width:70px;
position:absolute;
top:-35px;
left:50%;
transform:translateX(-50%);
}

.card-porque h3{
font-size:2rem;
color:#1f2937;
margin-bottom:8px;
}

.card-porque p{
font-size:1.7rem;
color:#6b7280;
}

/* PORQUE ELEGIRNOS */

.porque{
background:#f3f4f6;
padding:70px 0;
text-align:center;
}

.titulo-porque{
display:flex;
align-items:center;
justify-content:center;
gap:20px;
margin-bottom:60px;
}

.titulo-porque h2{
font-size:3.8rem;
color:var(--secundario);
}

.linea{
width:200px;
height:2px;
background:#d1d5db;
display:block;
}

.contenedor-porque{
display:flex;
justify-content:center;
gap:30px;
flex-wrap:wrap;
padding:0 80px;
}

.card-porque{
background:white;
width:260px;
border-radius:10px;
box-shadow:0 5px 20px rgba(0,0,0,0.08);
padding:50px 20px 30px 20px;
position:relative;
transition:0.3s;
}

.card-porque:hover{
transform:translateY(-6px);
box-shadow:0 12px 30px rgba(0,0,0,0.15);
}

.card-porque img{
width:70px;
position:absolute;
top:-35px;
left:50%;
transform:translateX(-50%);
}

.card-porque h3{
font-size:2rem;
color:#1f2937;
margin-bottom:8px;
}

.card-porque p{
font-size:1.7rem;
color:#6b7280;
}
/* NOSOTROS */

.nosotros{
  width: 100%;
  background: #f3f4f6;
  padding: 6rem 0;
}

.container-nosotros{
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: 0 20px;
}

.nosotros-info{
  flex: 1;
}

.nosotros-info h2{
  font-size: 32px;
  color: #1f3b63;
  margin-bottom: 20px;
}

.nosotros-info p{
  font-size: 16px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 15px;
}

.nosotros-info ul{
  margin-top: 20px;
  padding-left: 20px;
}

.nosotros-info li{
  font-size: 16px;
  margin-bottom: 10px;
  color: #1f3b63;
}

.nosotros-imagen{
  flex: 1;
  display: flex;
  justify-content: center;
}

.nosotros-imagen img{
  width: 100%;
  max-width: 450px;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* TABLET Y MÓVIL */
@media (max-width: 992px){
  .nosotros{
    padding: 4rem 0;
  }

  .container-nosotros{
    flex-direction: column-reverse; /* texto abajo, imagen arriba */
    gap: 30px;
    text-align: center;
  }

  .nosotros-info{
    width: 100%;
  }

  .nosotros-info h2{
    font-size: 28px;
  }

  .nosotros-info p{
    font-size: 15px;
  }

  .nosotros-info ul{
    padding-left: 0;
    list-style: none;
    margin-top: 20px;
  }

  .nosotros-info li{
    font-size: 15px;
    margin-bottom: 12px;
  }

  .nosotros-imagen{
    width: 100%;
  }

  .nosotros-imagen img{
    max-width: 100%;
    width: 100%;
  }
}

/* MÓVIL PEQUEÑO */
@media (max-width: 576px){
  .nosotros{
    padding: 3rem 0;
  }

  .container-nosotros{
    gap: 24px;
    padding: 0 16px;
  }

  .nosotros-info h2{
    font-size: 24px;
  }

  .nosotros-info p{
    font-size: 14px;
    line-height: 1.7;
  }

  .nosotros-info li{
    font-size: 14px;
  }

  .nosotros-imagen img{
    border-radius: 6px;
  }
}

/* BARRA NOTICIAS */
.noticias{
  background:#1f3b63;
  color:white;
  width:100%;
  padding:0 20px;
  display:flex;
  justify-content:center;
}

.noticias-contenedor{
  width:100%;
  max-width:1200px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.noticia-titulo{
  background:#1a3355;
  min-height:60px;
  padding:0 40px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:2rem;
  font-weight:600;
  text-align:center;
  flex-shrink:0;
}

.noticias-items{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:40px;
  padding:0 30px;
  min-height:60px;
  flex:1;
  flex-wrap:wrap;
}

.noticia{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  text-align:center;
  font-size:1.8rem;
}

.check{
  background:#0ea5e9;
  padding:4px 8px;
  border-radius:4px;
  font-size:1.4rem;
  line-height:1;
  flex-shrink:0;
}

/* TABLET */
@media (max-width: 992px){
  .noticias{
    padding:10px 20px;
  }

  .noticias-contenedor{
    flex-direction:column;
    gap:12px;
  }

  .noticia-titulo{
    width:100%;
    min-height:auto;
    padding:14px 20px;
    font-size:1.9rem;
  }

  .noticias-items{
    width:100%;
    min-height:auto;
    padding:0;
    gap:18px 28px;
  }

  .noticia{
    font-size:1.7rem;
  }
}

/* CELULAR */
@media (max-width: 768px){
  .noticias{
    padding:16px;
  }

  .noticias-items{
    flex-direction:column;
    gap:14px;
  }

  .noticia-titulo{
    font-size:1.8rem;
    padding:12px 16px;
  }

  .noticia{
    width:100%;
    font-size:1.6rem;
  }

  .check{
    font-size:1.3rem;
    padding:4px 7px;
  }
}

/* CELULAR PEQUEÑO */
@media (max-width: 480px){
  .noticias{
    padding:14px 12px;
  }

  .noticia-titulo{
    font-size:1.7rem;
  }

  .noticia{
    font-size:1.5rem;
    gap:8px;
  }
}
/* SECCION COTIZACION */
.cotizacion{
  background:#f3f4f6;
  padding:10rem 8rem;
}

.cotizacion-header{
  display:flex;
  align-items:center;
  gap:20px;
  margin-bottom:10px;
}

.cotizacion-header h2{
  font-size:3.6rem;
  color:var(--secundario);
  margin:0;
  white-space:nowrap;
}

.cotizacion-header .linea{
  flex:1;
  height:2px;
  background:#d1d5db;
}

.cotizacion-texto{
  font-size:2rem;
  color:#6b7280;
  margin-bottom:40px;
}

.form-cotizacion{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:20px;
  align-items:center;
}

.form-cotizacion select,
.form-cotizacion input{
  width:100%;
  padding:15px 16px;
  border-radius:6px;
  border:none;
  box-shadow:0 3px 10px rgba(0,0,0,0.1);
  font-size:1.8rem;
  background:#fff;
}

.form-cotizacion button{
  grid-column:4;
  width:100%;
  background:var(--primario);
  color:white;
  border:none;
  padding:16px;
  border-radius:6px;
  font-size:2rem;
  font-weight:600;
  cursor:pointer;
  transition:0.3s;
}

.form-cotizacion button:hover{
  background:var(--secundario);
}

/* =========================
   LAPTOP / TABLET GRANDE
   ========================= */
@media (max-width: 1200px){
  .cotizacion{
    padding:8rem 5rem;
  }

  .form-cotizacion{
    grid-template-columns:repeat(2, 1fr);
  }

  .form-cotizacion button{
    grid-column:1 / -1;
  }
}

/* =========================
   TABLET
   ========================= */
@media (max-width: 768px){
  .cotizacion{
    padding:6rem 2.5rem;
  }

  .cotizacion-header{
    gap:14px;
  }

  .cotizacion-header h2{
    font-size:3rem;
    white-space:normal;
  }

  .cotizacion-texto{
    font-size:1.8rem;
    margin-bottom:30px;
  }

  .form-cotizacion{
    grid-template-columns:1fr;
    gap:16px;
  }

  .form-cotizacion select,
  .form-cotizacion input,
  .form-cotizacion button{
    font-size:1.7rem;
  }

  .form-cotizacion button{
    grid-column:auto;
  }
}

/* =========================
   CELULAR PEQUEÑO
   ========================= */
@media (max-width: 480px){
  .cotizacion{
    padding:5rem 1.5rem;
  }

  .cotizacion-header{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
  }

  .cotizacion-header .linea{
    width:100%;
    flex:none;
  }

  .cotizacion-header h2{
    font-size:2.5rem;
  }

  .cotizacion-texto{
    font-size:1.6rem;
  }

  .form-cotizacion select,
  .form-cotizacion input{
    padding:14px;
    font-size:1.6rem;
  }

  .form-cotizacion button{
    padding:14px;
    font-size:1.7rem;
  }
}

/* FOOTER */

.footer{
background:#1f3b63;
color:white;
padding:60px 10% 20px 10%;
}

.footer-container{
display:flex;
justify-content:space-between;
flex-wrap:wrap;
gap:40px;
}

.footer-col{
width:220px;
}

.footer-col h3{
margin-bottom:20px;
font-size:1.8rem;
}

.footer-col p{
font-size:1.5rem;
line-height:1.6;
}

.footer-col ul{
list-style:none;
}

.footer-col ul li{
margin-bottom:10px;
font-size:1.5rem;
cursor:pointer;
}

.redes{
display:flex;
flex-direction:column;
gap:10px;
}

.redes a{
color:white;
text-decoration:none;
font-size:1.5rem;
}

.footer-bottom{
text-align:center;
margin-top:40px;
padding-top:20px;
border-top:1px solid rgba(255,255,255,0.2);
font-size:1.4rem;
}
/**whatsapp boton*/
.whatsapp-float {
  position: fixed;
  width: 10rem;
  height: 10rem;
  bottom: 4rem;
  right: 8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  z-index: 9999;
  transition: transform 0.2s ease-in-out;
}

.whatsapp-float:hover {
  transform: scale(1.12);
}

.whatsapp-float img {
  width: 100px; 
  height: 100px;
}
@media (max-width: 768px){
  .whatsapp-float{
    width: 60px;
    height: 60px;
    right: 16px;
    bottom: 16px;
  }

  .whatsapp-float img{
    width: 60px;
    height: 60px;
  }}


body {
  position: relative;
}

.cotizacion {
  position: relative;
}

.mensaje-flotante {
  position: absolute;
  top: 300px;
  left: 50%;
  transform: translateX(-50%);
  background: #09b431;
  color: white;
  padding: 15px 30px;
  border-radius: 30px;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 1000;
  text-align: center;
  max-width: 90%;
}

.mensaje-flotante.mostrar {
  opacity: 1;
}

.mensaje-flotante.error {
  background: red;
}

@media (max-width: 520px) {
  .mensaje-flotante {
    top: 200px;
  }
}

@media (max-width: 368px) {
  .mensaje-flotante {
    top: 150px;
  }
}

@media (max-width: 362px) {
  .beneficios {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
