/* =========================
   VARIABLES CORPORATIVAS
========================= */
:root {
  --color-principal: #003366;
  --color-acento: #1f3c88;
  --color-fondo: #f4f4f4;
  --color-texto: #333;
}

/* =========================
   RESET BÁSICO
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================
   CUERPO
========================= */
body {
  font-family: Arial, sans-serif;
  background-color: var(--color-fondo);
  color: var(--color-texto);
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

/* =========================
   HEADER
========================= */
.header {
  position: relative;
  z-index: 1000;

  background-color: rgba(0, 51, 102, 0.7);
  backdrop-filter: saturate(120%) blur(4px);
  -webkit-backdrop-filter: saturate(120%) blur(4px);

  color: white;
  padding: 10px 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* LOGO */
.logo img {
  max-height: 70px;
  height: auto;

  background-color: white;
  padding: 10px;

  border-radius: 12px;
  box-shadow: 0 0 6px rgba(0,0,0,0.12);

  -webkit-mask-image: radial-gradient(circle, black 80%, transparent 100%);
  mask-image: radial-gradient(circle, black 80%, transparent 100%);
}

/* =========================
   NAVEGACIÓN
========================= */
nav {
  display: flex;
  align-items: center;
}

nav a {
  color: white;
  margin-left: 20px;
  text-decoration: none;
  font-weight: bold;
  position: relative;
}

nav a:hover {
  text-decoration: underline;
}

/* =========================
   DROPDOWN NOSOTROS
========================= */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  cursor: pointer;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;

  background-color: rgba(0, 51, 102, 0.95);
  min-width: 180px;
  border-radius: 6px;

  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
  z-index: 1100;
}

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: white;
  text-decoration: none;
  font-size: 14px;
}

.dropdown-menu a:hover {
  background-color: rgba(255,255,255,0.12);
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
}

/* =========================
   HERO
========================= */
.hero {
  height: 70vh;
  background-image: url("img/hero.jpg");
  background-size: cover;
  background-position: center;

  position: relative;
  z-index: 1;

  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.hero-overlay {
  position: relative;
  color: white;
  text-align: center;
  max-width: 800px;
  padding: 20px;

  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1.2s ease-out forwards;
  animation-delay: 0.3s;
}

.hero-overlay h1 {
  font-size: 48px;
  margin-bottom: 15px;
}

.hero-overlay p {
  font-size: 20px;
  line-height: 1.4;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   SECCIONES
========================= */
section {
  max-width: 1100px;
  margin: 40px auto;
  padding: 40px;
  background-color: white;
  border-radius: 6px;
}

section h2 {
  margin-bottom: 20px;
  color: var(--color-principal);
  font-size: 28px;
  border-left: 4px solid var(--color-acento);
  padding-left: 12px;
}

section p {
  max-width: 850px;
}

/* =========================
   SERVICIOS
========================= */
#servicios ul {
  list-style: none;
  padding-left: 0;
}

#servicios li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 10px;
}

#servicios li::before {
  content: "▪";
  position: absolute;
  left: 0;
  color: var(--color-acento);
}

/* =========================
   FORMULARIO
========================= */
.formulario {
  max-width: 500px;
  margin: 20px auto 0;
  display: flex;
  flex-direction: column;
}

.formulario label {
  margin-top: 15px;
  font-weight: bold;
}

.formulario input,
.formulario textarea {
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  font-family: inherit;
}

.formulario textarea {
  resize: vertical;
  min-height: 120px;
}

.formulario input:focus,
.formulario textarea:focus {
  outline: none;
  border-color: var(--color-acento);
  box-shadow: 0 0 0 2px rgba(31,60,136,0.15);
}

.formulario button {
  margin-top: 20px;
  padding: 12px;
  background-color: var(--color-acento);
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.1s ease;
}

.formulario button:hover {
  background-color: #162f6b;
  transform: translateY(-1px);
}

.formulario button:disabled {
  background-color: #999;
  cursor: not-allowed;
}

/* =========================
   WHATSAPP CENTRADO
========================= */
.btn-whatsapp {
  display: block;
  max-width: 280px;
  margin: 25px auto;
  padding: 14px;
  background-color: #25D366;
  color: white;
  text-decoration: none;
  text-align: center;
  font-weight: bold;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* =========================
   FOOTER
========================= */
footer {
  background-color: var(--color-principal);
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: 60px;
  font-size: 14px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    padding: 8px 15px;
    text-align: center;
  }

  nav {
    margin-top: 10px;
  }

  nav a {
    margin: 0 10px;
  }

  .logo img {
    max-height: 55px;
  }

  .hero {
    height: 50vh;
  }

  .hero-overlay h1 {
    font-size: 34px;
  }

  .hero-overlay p {
    font-size: 16px;
  }

  section {
    padding: 25px;
    margin: 20px;
  }
}
