:root {
  --primary: #001f3f;
  --primary-light: #0077cc;
  --accent: #00aaff;
  --text: #1e293b;
  --gray: #64748b;
  --light: #f8fafc;
  --white: #ffffff;
  --dark: #0f172a;

  --navy:#0b1f45;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  background: var(--light);
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn-primary {
  background: var(--primary-light);
  color: white;
  border: 2px solid var(--primary-light);
}

.btn-primary:hover {
  background: #0062a5;
  transform: translateY(-3px);
}

/* ---------------------------------- */
/* Reglas comunes movidas desde archivos de página (header, nav, botones) */
/* ---------------------------------- */

/* Header / Navegación */
header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
  
.header-integrated {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
}

.logo img {
  
}

section h2 {
  text-align: center;
  color: var(--primary);
  font-size: 3.2rem;
  margin-bottom: 6rem;
  position: relative;
}

section h2::after {
  content: '';
  width: 110px;
  height: 6px;
  background: var(--primary-light);
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 3px;
}

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

.top-line {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lang-flags {
  display: flex;
  gap: 0.8rem;
}

.lang-flags a {
  font-size: 1.4rem;
  transition: transform 0.2s, opacity 0.2s;
  opacity: 0.9;
}

.lang-flags a:hover {
  opacity: 1;
  transform: scale(1.15);
}

.phone-link {
  color: var(--primary-light);
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  transition: all 0.3s;
}

.phone-link:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

nav a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.08rem;
  transition: color 0.3s;
}
nav li.current-menu-item a {
      color: var(--primary-light);
    } 

nav a:hover,
nav a.active {
  color: var(--primary-light);
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: white;
  min-width: 280px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  top: 100%;
  left: 0;
  padding: 1rem 0;
  margin-top: 8px;
  z-index: 1001;
}
/* Puente invisible que cubre el gap entre el ítem y el dropdown */
.dropdown-content::before {
  content: '';
  position: absolute;
  top: -12px;        /* misma altura que el margin-top del dropdown */
  left: 0;
  width: 100%;
  height: 12px;
}

.dropdown-content a {
  color: var(--text);
  padding: 0.8rem 1.5rem;
  display: block;
  font-size: 1rem;
  transition: background 0.2s;
}

.dropdown-content a:hover {
  background: var(--light);
  color: var(--primary-light);
}

.dropdown:hover .dropdown-content {
  display: block;
}

.drop-arrow {
  display: inline-block;
  transition: transform 0.3s;
  pointer-events: none;
  margin-left: 2px;
}

.dropdown.is-open .drop-arrow {
  transform: rotate(180deg);
}

/* Hamburguesa / boton nav mobile */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 1100;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-close-btn {
  display: none;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}

/* Botón base compartido */
.btn {
  padding: 1rem 2.6rem;
  border-radius: 50px;
  font-size: 1.12rem;
  font-weight: 600;
  font-family: 'Open Sans', sans-serif;
  text-decoration: none;
  transition: all 0.35s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  border: none;
  display: inline-block;
}

.section-heading {
  text-align: center;
  margin-bottom: 4rem;
}
.section-heading .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.9rem;
}
.section-heading .eyebrow::before,
.section-heading .eyebrow::after {
  content: '';
  width: 22px; height: 1.5px;
  background: var(--blue);
  display: block;
}
.section-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}
.section-heading p {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}
/* ---------------------------------- */
/* Reglas móviles comunes (header/nav/botones) */
/* ---------------------------------- */
@media (max-width: 768px) {

  /* Header */
  .header-integrated {
    padding: 0.8rem 0;
  }

  .logo img {
    height: 56px;
  }

  .top-line {
    display: none;
  }

  .hamburger {
    display: flex;
    margin-left: auto;
  }

  .hamburger.is-open {
    display: none;
  }

  /* Nav — panel que cae desde arriba */
  nav {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #001428;
    z-index: 1050;
    padding: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease, box-shadow 0.4s ease;
    box-shadow: none;
  }

  nav.is-open {
    max-height: 100vh;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  }

  .nav-close-btn {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1rem 1.4rem 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    width: 100%;
    padding: 0 0 1.5rem;
  }

  nav ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  nav ul li:last-child {
    border-bottom: none;
  }

  nav a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    padding: 1rem 1.5rem;
    display: block;
    text-align: left;
  }

  nav a:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.04);
  }

  /* Dropdown táctil */
  .dropdown:hover .dropdown-content {
    display: none;
  }

  .dropdown.is-open .dropdown-content {
    display: block;
  }

  .dropdown-content {
    display: none;
    position: static;
    background: rgba(0, 0, 0, 0.25);
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    min-width: unset;
    width: 100%;
  }

  .dropdown-content a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    padding: 0.75rem 2rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .dropdown-content a:last-child {
    border-bottom: none;
  }

  .dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--accent);
  }

  /* Botones responsive */
  .btn {
    font-size: 1rem;
    padding: 0.9rem 2rem;
  }

}


/* ── Wrapper general del formulario ── */
.wpcf7 form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* ── Labels ── */
.wpcf7 label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
}

/* ── Inputs, email y textarea ── */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #1e293b;
  background: #f8fafc;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
  background: #fff;
}

/* ── Textarea ── */
.wpcf7 textarea {
  min-height: 140px;
  resize: vertical;
}

/* ── Select (Asunto) ── */
.wpcf7 select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #1e293b;
  background: #f8fafc;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.wpcf7 select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
  background-color: #fff;
}

/* ── Checkbox de aceptación (privacidad) ── */
.wpcf7 .wpcf7-acceptance {
  display: flex;
}
.wpcf7 .wpcf7-list-item {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.wpcf7 .wpcf7-list-item-label {
  font-size: 0.85rem;
  font-weight: 400;
  color: #475569;
  line-height: 1.4;
}
.wpcf7 .wpcf7-list-item input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 16px;
  height: 16px;
  accent-color: #3b82f6;
  cursor: pointer;
  flex-shrink: 0;
}
.wpcf7 .wpcf7-list-item-label a {
  color: #3b82f6;
  text-decoration: underline;
}

/* ── Botón enviar ── */
.wpcf7 input[type="submit"] {
  align-self: flex-start;
  padding: 0.75rem 2rem;
  background: #3b82f6;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.wpcf7 input[type="submit"]:hover {
  background: #2563eb;
}
.wpcf7 input[type="submit"]:active {
  transform: scale(0.98);
}

/* ── Mensajes de validación ── */
.wpcf7 .wpcf7-not-valid-tip {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 0.2rem;
}
.wpcf7 .wpcf7-response-output {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  border: none;
}

/* Éxito */
.wpcf7 .wpcf7-mail-sent-ok {
  background: #f0fdf4;
  color: #16a34a;
}

/* Error */
.wpcf7 .wpcf7-mail-sent-ng,
.wpcf7 .wpcf7-validation-errors {
  background: #fef2f2;
  color: #dc2626;
}