/* Fuente */
body {
  margin: 0;
  font-family: 'Dosis', sans-serif;
  color: #333;
}

/* HEADER */
header {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;   /* que quede por encima */
  background: #fff;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 8%;
  background: white;
}

.topbar .logo img {
  max-height: 70px;
  display: block;
  margin: 0 auto;
}

.topbar .info {
  text-align: left;
}

.topbar .telefono {
  font-size: 20px;
  font-weight: 600;
  color: #00aff6;
  margin: 0;
}

.topbar .direccion {
  font-size: 13px;
  margin: 0;
  color: #666;
}

.topbar .presupuesto a {
  background: #00aff6;
  color: #fff;
  text-decoration: none;
  padding: 10px 18px;
  font-weight: 600;
  border-radius: 4px;
  transition: background 0.3s ease;
  white-space: nowrap;
  display: inline-block;
}

.topbar .presupuesto a:hover {
  background: #008fc1;
}

/* HERO */
.hero {
  position: relative;
  text-align: center;
}

.hero img {
  width: 100%;        /* más ancha */
  max-height: 580px; /* un poco más grande */
  object-fit: cover;
  margin: 0 auto;
  display: block;
  max-width: 1600px;
}

/* FRANJA AZUL DEBAJO DEL HERO */
.hero::after {
  content: "";
  position: absolute;
  top: 20%;
  left: 0;
  width: 100%;
  height: 360px;        /* altura franja */
  background: #00aff6;
  z-index: -1;          /* detrás de la imagen */
}

/* MENÚ */
.menu {
  background: #00aff6;
  text-align: center;
  width: 60%;
  margin: 0 auto;
  position: relative;
  top: 25px;
}

.menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.menu li {
  margin: 0 10px;
  font-weight: 700;
}

.menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  display: block;
  padding: 15px 5px;
  transition: color 0.3s;
}

.menu a:hover {
  color: #d9f4ff;
}

.menu .sep {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}


/* ===== HAMBURGUESA ===== */
.hamburguesa {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  color: #00aff6;
  cursor: pointer;
  position: fixed;  /* 👈 se queda arriba a la derecha siempre */
  top: 20px;
  right: 20px;
  z-index: 200;
}

/* ===== SUBMENÚ ===== */
.submenu {
  position: relative;
}

.submenu > a::after {
  content: " ▼";
  font-size: 12px;
}

.submenu .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #008fc1;
  list-style: none;
  padding: 0;
  margin: 0;
  border-radius: 4px;
  min-width: 220px;
  z-index: 100;
}

.submenu:hover .dropdown {
  display: block;
}

.submenu .dropdown li {
  text-align: left;
}

.submenu .dropdown a {
  display: block;
  padding: 10px 15px;
  color: #fff;
  font-weight: 500;
  font-size: 15px;
}

.submenu .dropdown a:hover {
  background: #00aff6;
}


/* ===== MENU RESPONSIVE ===== */
@media (max-width: 768px) {
  .hamburguesa {
    display: block;
  }

  .menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: #00aff6;
    display: none;
    flex-direction: column;
    text-align: center;
    z-index: 150;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  body.menu-abierto .menu {
    display: flex;
    max-height: 1000px;
  }

  .menu ul {
    flex-direction: column;
    width: 100%;
  }

  .menu li {
    margin: 10px 0;
  }

  .menu .sep {
    display: none;
  }

  /* Submenús dentro del menú móvil */
  .submenu .dropdown {
    position: static;
    background: #009fd4;
    border-radius: 0;
    padding: 0;
    display: none;
  }

  .submenu .dropdown.abierto {
    display: block;
  }

  .submenu .dropdown a {
    padding: 10px 20px;
    font-size: 14px;
  }

  .submenu > a::after {
    content: " ▶";
  }

  .submenu .dropdown.abierto + a::after {
    content: " ▼";
  }

  .hero::after {
    display: none;
  }

  .topbar .presupuesto a {
    font-size: 10px;
    padding: 5px 8px;
  }

  .topbar .presupuesto a::after {
    content: "PRESUPUESTO";
  }

  .topbar .presupuesto a {
    font-size: 10px;
    padding: 5px 8px;
  }

  /* 🔹 opcional: ocultar el texto original */
  .topbar .presupuesto a {
    font-size: 0; /* oculta texto original */
  }

  .topbar .presupuesto a::after {
    font-size: 10px; /* muestra solo el nuevo */
    content: "PRESUPUESTO";
  }
	
	/* ===== SCROLL DENTRO DEL MENÚ MÓVIL ===== */
	body.menu-abierto {
	  overflow: hidden; /* evita mover la página de fondo */
	}

	body.menu-abierto .menu {
	  overflow-y: auto;  /* permite hacer scroll dentro del menú */
	  max-height: 100vh;
	}

	/* Transiciones suaves para el menú */
	.menu {
	  transition: max-height 0.4s ease;
	}

	/* Indicador del submenú abierto */
	.submenu > a.activo::after {
	  content: " ▼";
	}

}


/* ===== SERVICIOS ===== */
.servicios {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 50px 8%;
  background: #fff;
}

.servicio {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}

.servicio img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.servicio:hover img {
  transform: scale(1.05);
}

.servicio .overlay {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: #00aff6;
  color: #fff;
  font-weight: 700;
  padding: 8px 20px;
  font-size: 15px;
  white-space: nowrap;
  z-index: 2;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .servicios {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .servicios {
    grid-template-columns: 1fr;
  }
  .servicio img {
    max-height: 220px; /* 🔹 fotos más pequeñas en móvil */
  }
}

/* ===== ENCABEZADO ===== */
.servicios-detalle {
  text-align: center;
  padding: 60px 8%;
  background: #fff;
}

.servicios-detalle h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #333;
}

.servicios-detalle .linea {
  width: 80px;
  height: 3px;
  background: #00aff6; /* azul corporativo */
  margin: 0 auto 40px;
  border-radius: 2px;
}

/* ===== GRID DE SERVICIOS ===== */
.grid-servicios {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.card {
  background: #f6f6f6; /* gris del bloque */
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  height: 200px;  /* menos alto que el hero */
  object-fit: cover;
  display: block;
}

.card .contenido {
  padding: 20px;
  text-align: left;
}

.card h3 {
  font-size: 22px;
  font-weight: 1000;
  margin: 0 0 15px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #333;
}

.card h3 .circulo {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: #00aff6;
  border-radius: 50%;
}

/* Flechas */
.card ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.card ul li {
  font-size: 18px;
  margin-bottom: 6px;
  color: #555;
}

.lista-servicios a {
  text-decoration: none;
  color: inherit;  /* hereda el color del texto normal */
  font-weight: 500; /* opcional, por si quieres un poco de fuerza */
}

.lista-servicios a:hover {
  color: #00AEEF; /* opcional: un azul de tu branding en hover */
}


/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .grid-servicios {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid-servicios {
    grid-template-columns: 1fr;
  }
  .card img {
    height: 160px;
  }
}

.grid-servicios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

/* ===== SECCIÓN CON DIAGONAL ===== */
.franja-diagonal {
  position: relative;
  overflow: hidden;
  padding: 80px 10%; /* más alto para dar aire */
}

/* pseudo-elemento azul inclinado */
.franja-diagonal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 90%;
  background: #00aff6;
  /* 🔹 Empieza recto más tiempo y luego diagonal */
  clip-path: polygon(0 0, 75% 0, 60% 100%, 0% 100%);
  z-index: -1;
}

.franja-diagonal .contenedor {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.franja-diagonal .texto {
  flex: 1 1 50%;
  color: #fff; /* texto encima del azul */
  z-index: 1;
  margin-top: -140px; /* 🔹 subimos el bloque de texto */
}

.franja-diagonal .texto h3 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.franja-diagonal .texto h2 {
  font-size: 32px;   /* 🔹 más grande */
  font-weight: 700;
  margin-bottom: 25px;
  line-height: 1.3;
}

.franja-diagonal .texto .destacado {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 25px;
  line-height: 1.5;
}

.franja-diagonal .texto p {
  font-size: 16px;
  line-height: 1.6; /* más aire */
  margin-bottom: 15px;
}

.franja-diagonal .media {
  flex: 1 1 40%;
  text-align: center;
}

.franja-diagonal .media img {
  max-width: 90%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 20px;
  margin-left: 100px;
}

.franja-diagonal .media .info {
  font-size: 16px;
  line-height: 1.4;
  color: #333; /* texto negro sobre blanco */
	margin-left: 100px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .franja-diagonal::before {
    clip-path: polygon(0 0, 100% 0, 100% 60%, 0 100%);
  }

  .franja-diagonal .contenedor {
    flex-direction: column;
    text-align: center;
  }

  .franja-diagonal .texto {
    flex: 1 1 100%;
    margin-top: 0; /* reseteamos en móvil */
    margin-bottom: 30px;
  }

  .franja-diagonal .texto h2 {
    font-size: 24px;
  }

  .franja-diagonal .texto p,
  .franja-diagonal .texto .destacado {
    font-size: 14px;
  }

  .franja-diagonal .media {
    flex: 1 1 100%;
  }
}

/* ===== FOOTER ===== */
.footer {
  background: #000;
  color: #fff;
  padding: 50px 20px;
  font-family: Arial, sans-serif;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col h4 {
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: bold;
}

.footer-col p,
.footer-col li {
  margin-bottom: 8px;
  font-size: 14px;
  color: #ddd;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-logo {
  max-width: 150px;
  margin-bottom: 15px;
}

.btn-footer {
  display: inline-block;
  margin-top: 10px;
  padding: 12px 20px;
  background: #00AEEF;
  color: #fff;
  font-weight: bold;
  border-radius: 4px;
  text-decoration: none;
}

.btn-footer:hover {
  background: #008cc7;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-logo {
    margin: 0 auto 15px;
  }
}

.contacto-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin-top: 3rem;
  align-items: flex-start;
}

.form-contacto {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-contacto input,
.form-contacto textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
}

.form-contacto button {
  background-color: #004e98;
  color: #fff;
  border: none;
  padding: 0.9rem 1.4rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.3s;
}

.form-contacto button:hover {
  background-color: #003b75;
}

.datos-contacto {
  flex: 1 1 300px;
  background-color: #f6f8fb;
  padding: 2rem;
  border-radius: 8px;
  line-height: 1.6;
}

.datos-contacto h3 {
  margin-bottom: 1rem;
}

.datos-contacto p {
  margin: 0.5rem 0;
}

.datos-contacto i {
  color: #004e98;
  margin-right: 0.5rem;
}

.franja-diagonal-contacto {
  background: linear-gradient(135deg, #00aff6 0%, #008fc1 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 80px 8%;
  margin-top: 60px;
  clip-path: polygon(0 0, 100% 4%, 100% 100%, 0 96%);
}

.franja-diagonal-contacto .contenedor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.franja-diagonal-contacto .texto {
  flex: 1 1 500px;
}

.franja-diagonal-contacto .texto h3 {
  font-size: 1.2rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #c9f2ff;
  margin-bottom: 10px;
}

.franja-diagonal-contacto .texto h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.franja-diagonal-contacto .texto p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 10px;
}

.franja-diagonal-contacto .texto .destacado {
  background: rgba(255, 255, 255, 0.12);
  padding: 15px 20px;
  border-radius: 6px;
  font-weight: 500;
  margin-bottom: 20px;
}

.franja-diagonal-contacto .texto a {
  color: #fff;
  text-decoration: underline;
}

.franja-diagonal-contacto .texto a:hover {
  color: #d9f4ff;
}

.franja-diagonal-contacto .media {
  flex: 1 1 300px;
  text-align: center;
}

.franja-diagonal-contacto .media img {
  max-width: 300px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
  margin-bottom: 15px;
}

.franja-diagonal-contacto .media .info {
  font-size: 0.95rem;
  color: #e8f8ff;
  line-height: 1.5;
}

/* =========================================================
   RESPONSIVE GENERAL
========================================================= */

/* ===== Tablet ===== */
@media (max-width: 1024px) {
  .hero img {
    max-height: 400px;
  }

  .franja-diagonal-contacto {
    padding: 60px 6%;
    clip-path: polygon(0 0, 100% 3%, 100% 100%, 0 97%);
  }

  .franja-diagonal-contacto .texto h2 {
    font-size: 1.7rem;
  }

  .franja-diagonal-contacto .media img {
    max-width: 250px;
  }
}

/* ===== Móvil ===== */
@media (max-width: 768px) {
  .topbar {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .menu {
    width: 100%;
  }

  .hero img {
    max-height: 300px;
  }

  .contacto-flex {
    flex-direction: column;
    gap: 2rem;
  }

  .form-contacto,
  .datos-contacto {
    width: 100%;
  }

  .franja-diagonal-contacto {
    padding: 50px 5%;
    clip-path: none;
    text-align: center;
  }

  .franja-diagonal-contacto .contenedor {
    flex-direction: column;
    align-items: center;
  }

  .franja-diagonal-contacto .texto {
    flex: none;
  }

  .franja-diagonal-contacto .texto h2 {
    font-size: 1.5rem;
  }

  .franja-diagonal-contacto .media img {
    max-width: 220px;
  }

  footer .footer-col {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
  }

  footer .redes {
    justify-content: center;
  }

  .mapa iframe {
    height: 300px;
  }
}

/* ===== Extra pequeño (móviles antiguos) ===== */
@media (max-width: 480px) {

  .franja-diagonal-contacto {
    padding: 40px 5%;
  }

  .franja-diagonal-contacto .texto h2 {
    font-size: 1.3rem;
  }

  .form-contacto input,
  .form-contacto textarea {
    font-size: 0.9rem;
  }

}
