/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background: #f9f9f9;
  color: #222;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.header {
  background: #0e1a2b;
  height: 120px;
  padding: 0;
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  overflow: hidden;
  transition: all 0.3s ease;
}

.header.scrolled {
  height: 80px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center; /* Esto es clave */
  height: 100%;         /* Asegura altura para centrar */
  padding: 0 2rem;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
}

.logo {
  height: 200px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  padding-top: 10px; /* nuevo */
  transition: height 0.3s ease;
}

.header.scrolled .logo {
  height: 80px;
  margin-top: -10px;
}

/* Botón hamburguesa */
.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  color: white;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center; /* Centrado vertical */
  height: 100%;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

@media (min-width: 769px) {
  .navbar ul {
    opacity: 0;
    transform: translateY(-20px);
    animation: navFadeIn 0.8s ease-out forwards;
    animation-delay: 0.4s;
  }
}

@keyframes navFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.navbar a:hover {
  background-color: #ffffff;
  color: #0e1a2b;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

/* Hero */
.hero {
  background: linear-gradient(to right, rgba(14, 26, 43, 0.4), rgba(28, 61, 90, 0.4)),
              url('../images/fondo-header-2.png') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 6rem 2rem;
  animation: fadeIn 1.5s ease;
  backdrop-filter: brightness(1.3);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.btn {
  background: #00bcd4;
  color: white;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 25px;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.3s ease;
  cursor: pointer;
}

.btn:hover {
  background: #0097a7;
}

/* Secciones */
section {
  padding: 4rem 2rem;
  animation: fadeIn 1s ease;
}

.services, .about, .contact {
  background: white;
  border-top: 1px solid #e0e0e0;
}

.services h2,
.about h2,
.contact h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #0e1a2b;
}

.service-item {
  margin-bottom: 2rem;
  text-align: center;
  padding: 1rem;
}

.service-item h3 {
  margin-bottom: 0.5rem;
  color: #00bcd4;
}

/* Formulario */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

input, textarea {
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

button[type="submit"] {
  background: #0e1a2b;
  color: white;
  padding: 0.8rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button[type="submit"]:hover {
  background: #1c3d5a;
}

/* Footer */
.footer {
  background: #0e1a2b;
  color: white;
  text-align: center;
  padding: 1.5rem 0;
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 1s ease both;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    align-self: center;
    position: relative;
  }

  .navbar {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #0e1a2b;
    padding: 1rem 0;
    z-index: 999;
  }

  .navbar.open {
    display: block;
  }

  .navbar ul {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 0;
  }

  .navbar a {
    display: block;
    padding: 1rem;
    width: 100%;
    text-align: center;
  }

  .header-flex {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    position: relative;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .btn {
    font-size: 0.9rem;
    padding: 0.6rem 1.5rem;
  }

  section {
    padding-top: 5rem;
  }
}



