/* style.css (modo claro por defecto) */
:root {
  --bg: #f6f7f8;
  --card: rgba(255, 255, 255, 0.92);
  --text: rgba(12, 18, 16, 0.92);
  --muted: rgba(12, 18, 16, 0.7);
  --soft: rgba(12, 18, 16, 0.08);
  --brand: #1fbf91;
  --brand2: #63d9bc;
  --shadow: 0 18px 50px rgba(12, 18, 16, 0.1);
  --radius: 18px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(
      1200px 600px at 10% 10%,
      rgba(31, 191, 145, 0.1),
      transparent 55%
    ),
    radial-gradient(
      900px 500px at 90% 20%,
      rgba(99, 217, 188, 0.08),
      transparent 55%
    ),
    radial-gradient(
      900px 700px at 50% 90%,
      rgba(12, 18, 16, 0.05),
      transparent 50%
    ),
    var(--bg);
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  width: min(calc(100% - 36px), var(--max));
  margin: 0 auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 10px 12px;
  background: #111;
  color: #fff;
  border-radius: 10px;
  z-index: 9999;
}

/* ===== Header / Navegación ===== */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: linear-gradient(
    to bottom,
    rgba(246, 247, 248, 0.92),
    rgba(246, 247, 248, 0.75)
  );
  border-bottom: 1px solid rgba(12, 18, 16, 0.1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(
    135deg,
    rgba(31, 191, 145, 0.95),
    rgba(99, 217, 188, 0.7)
  );
  box-shadow: 0 10px 24px rgba(31, 191, 145, 0.18);
  border: 1px solid rgba(12, 18, 16, 0.1);
}

.menu {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Links normales del menú */
.menu > a {
  color: var(--muted);
  font-weight: 650;
  padding: 8px 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
}
.menu > a[aria-current="page"] {
  color: var(--text);
  background: rgba(12, 18, 16, 0.05);
  border: 1px solid rgba(12, 18, 16, 0.1);
}
.menu > a:hover {
  color: var(--text);
  background: rgba(12, 18, 16, 0.04);
  text-decoration: none;
}

/* ===== Botones ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 800;

  background: #c6c6c6; /* fondo reposo */
  color: #000000; /* texto negro */
  border: 1px solid #c6c6c6;

  box-shadow: none;
  transition: background 0.2s ease, border-color 0.2s ease;
  text-decoration: none !important;
}

.btn:hover {
  background: #ffffff; /* fondo hover */
  color: #000000; /* texto negro */
  border-color: #000000;
}

.btn.primary {
  background: linear-gradient(
    135deg,
    rgba(31, 191, 145, 0.95),
    rgba(99, 217, 188, 0.8)
  );
  color: #062018;
  border: 1px solid rgba(12, 18, 16, 0.1);
  box-shadow: 0 14px 45px rgba(31, 191, 145, 0.18);
}
.btn.primary:hover {
  filter: brightness(1.02);
  background: rgba(36, 230, 175, 0.95);
}

/* Botón alternativo */
.btn.alt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 800;

  background: #ffffff; /* reposo */
  color: #000000; /* texto */
  border: 1px solid #c6c6c6;

  box-shadow: none;
  transition: background 0.2s ease, border-color 0.2s ease;
  text-decoration: none !important;
}

.btn.alt:hover {
  background: #c6c6c6; /* hover */
  color: #000000;
  border-color: #c6c6c6;
}

/* ===== Dropdown Servicios (controlado por JS) ===== */
.menu-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Link "Servicios" con mismo look que menú */
.menu-link {
  color: var(--muted);
  font-weight: 650;
  padding: 8px 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
}
.menu-link:hover {
  color: var(--text);
  background: rgba(12, 18, 16, 0.04);
  text-decoration: none;
}

/* Botón caret */
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(12, 18, 16, 0.12);
  background: rgba(255, 255, 255, 0.75);
  color: rgba(12, 18, 16, 0.85);
  border-radius: 10px;
  padding: 6px 10px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}
.dropdown-toggle:hover {
  background: rgba(255, 255, 255, 0.92);
}

/* Menú desplegable (cerrado por defecto) */
.has-dropdown .dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 280px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(12, 18, 16, 0.12);
  box-shadow: 0 18px 50px rgba(12, 18, 16, 0.12);
  display: none;
  z-index: 2000;
}

/* Abierto SOLO con .open (por JS) */
.has-dropdown.open .dropdown-menu {
  display: block;
}

.has-dropdown .dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(12, 18, 16, 0.88);
  font-weight: 650;
  text-decoration: none;
}
.has-dropdown .dropdown-menu a:hover {
  background: rgba(12, 18, 16, 0.06);
}

/* Móvil: integrado en el flujo pero sigue controlado por .open */
@media (max-width: 920px) {
  .has-dropdown .dropdown-menu {
    position: static;
    min-width: auto;
    box-shadow: none;
    border: none;
    padding: 8px 0 0;
    margin: 0;
  }
}

/* ===== Tipografía y layout ===== */
.hero {
  padding: 46px 0 18px;
}

.hero .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 18px;
  align-items: start;
}
@media (max-width: 920px) {
  .hero .hero-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--card);
  border: 1px solid rgba(12, 18, 16, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card.pad {
  padding: 26px;
}
.card.soft {
  background: rgba(255, 255, 255, 0.7);
  box-shadow: none;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-size: 12px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 6px rgba(31, 191, 145, 0.16);
}

h1 {
  margin: 14px 0 10px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.4px;
}
h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.2px;
}
h3 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.08;
  letter-spacing: -0.1px;
}
p {
  margin: 0 0 12px;
  line-height: 1.08;
  color: var(--muted);
}
.lead {
  color: rgba(12, 18, 16, 0.9);
  font-weight: 700;
  line-height: 1.08;
  font-size: 16px;
}
.small {
  font-size: 13px;
  color: rgba(12, 18, 16, 0.68);
}

.section {
  padding: 18px 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 920px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 920px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.hr {
  height: 1px;
  background: rgba(12, 18, 16, 0.1);
  margin: 14px 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(12, 18, 16, 0.12);
  background: rgba(255, 255, 255, 0.75);
  color: rgba(12, 18, 16, 0.82);
  font-weight: 750;
  font-size: 13px;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.list .item {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(12, 18, 16, 0.1);
  background: rgba(255, 255, 255, 0.72);
}
.list .item strong {
  color: rgba(12, 18, 16, 0.92);
}

.highlight {
  border-left: 3px solid rgba(31, 191, 145, 0.95);
  padding-left: 14px;
}
.quote {
  font-weight: 850;
  color: rgba(12, 18, 16, 0.92);
  font-size: 18px;
  line-height: 1.25;
}

.notice {
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(12, 18, 16, 0.1);
  background: rgba(31, 191, 145, 0.1);
  color: rgba(12, 18, 16, 0.82);
}

.form {
  display: grid;
  gap: 10px;
}

.input,
textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(12, 18, 16, 0.12);
  background: rgba(255, 255, 255, 0.82);
  color: rgba(12, 18, 16, 0.92);
  outline: none;
}
textarea {
  min-height: 110px;
  resize: vertical;
}
.input:focus,
textarea:focus {
  border-color: rgba(31, 191, 145, 0.7);
  box-shadow: 0 0 0 6px rgba(31, 191, 145, 0.14);
}

.map {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(12, 18, 16, 0.06);
}

/* ===== Footer ===== */
.footer {
  padding: 26px 0 42px;
  color: rgba(12, 18, 16, 0.7);
}
.footer a {
  color: rgba(12, 18, 16, 0.84);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}
@media (max-width: 920px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.center.narrow {
  max-width: 720px;
}

.hr.center {
  margin-left: auto;
  margin-right: auto;
  max-width: 120px;
}

/* CTA centrado dentro de cards */
.cta-center {
  text-align: center;
  max-width: 720px;
  margin: 18px auto 0;
}

/* CTA centrado (blindado) */
.cta-center {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;

  max-width: 720px;
  margin: 18px auto 0 !important;
}

.cta-center .hr {
  width: 140px !important;
  margin: 14px auto !important;
}

.cta-center h2,
.cta-center p {
  text-align: center !important;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}
