:root {
  --naranja: #eda140;
  --azul: #72cfff;
  --gris: #333;
  --blanco: #fff;
  --fondo: #fafafa;
  --transicion: all 0.3s ease;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--gris);
  background: var(--blanco);
  scroll-behavior: smooth;
}

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--blanco);
  color: var(--gris);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 5%;
  z-index: 1000;
  box-sizing: border-box;
}

header .logo img {
  height: 45px;
  max-width: 100%;
}

nav {
  flex-grow: 1;
  display: flex;
  justify-content: flex-end;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: flex-end;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--gris);
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transicion);
}

nav a:hover {
  color: var(--naranja);
}

/* Icono menú móvil */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--gris);
}

/* Ajuste para evitar que el contenido quede oculto bajo el header */
body {
  padding-top: 80px;
}



.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--blanco);
}

/* Corrige el solapamiento del contenido con el header */
body {
  padding-top: 80px;
}
/* Menú móvil */
.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--gris);
}

/* ===== SECCIONES ===== */
.section {
  padding: 100px 20px;
  text-align: center;
  margin: auto;
}

h1, h2 {
  color: var(--naranja);
}

.hero {
  background: linear-gradient(135deg, #d9f1ff, #ffe5b8); /* degradado más claro */
  color: var(--gris);
  padding: 160px 20px 100px;
  position: relative;
  text-shadow: none;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3); /* ligera capa blanca translúcida */
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 2.2rem;
  color: var(--naranja);
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--gris);
}

.hero-logos img {
  height: 80px;
  margin: 20px;
}

/* ===== IMÁGENES INTERMEDIAS ===== */
.image-section {
  height: 350px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.image-section .overlay {
  background: rgba(0, 0, 0, 0.35);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ===== SERVICIOS ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.service-card {
  background: var(--blanco);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: var(--transicion);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ===== CONTACTO ===== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
  margin: 30px auto;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.contact-form button {
  background: var(--naranja);
  color: var(--blanco);
  border: none;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transicion);
}

.contact-form button:hover {
  background: var(--azul);
}

/* ===== FOOTER ===== */
footer {
  background: var(--gris);
  color: var(--blanco);
  text-align: center;
  padding: 15px;
  font-size: 0.9rem;
}
/* ===== MENÚ RESPONSIVE ===== */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 0;
    background: var(--blanco);
    width: 200px;
    display: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }

  nav ul.active {
    display: flex;
  }

  nav a {
    color: var(--gris);
  }

  .menu-toggle {
    display: block;
  }

  header {
    padding: 10px 15px;
  }

  header img {
    height: 40px;
  }

  .hero-logos img {
    height: 60px;
  }
}
