/* ==============================
   VARIABLES Y TEMAS
============================== */
:root {
  --accent: #e63946;
  --accent-2: #ff6b6b;
  --bg-light: #f6f7f9;
  --panel-light: #ffffff;
  --muted-light: #6b7280;
  --text-light: #0b1220;

  --bg-dark: #0b0f14;
  --panel-dark: rgba(255, 255, 255, 0.03);
  --muted-dark: #94a3b8;
  --text-dark: #e6eef8;

  --panel-border-light: rgba(11, 17, 32, 0.04);
  --panel-border-dark: rgba(255, 255, 255, 0.06);

  --shadow: 0 10px 30px rgba(2, 6, 23, 0.12);
  --radius: 14px;
  --maxw: 1200px;
}

/* ==============================
   MODO CLARO Y OSCURO
============================== */
body[data-theme='light'] {
  --bg: var(--bg-light);
  --panel: var(--panel-light);
  --muted: var(--muted-light);
  --text: var(--text-light);
  --panel-border: var(--panel-border-light);
}

body[data-theme='dark'] {
  --bg: var(--bg-dark);
  --panel: var(--panel-dark);
  --muted: var(--muted-dark);
  --text: var(--text-dark);
  --panel-border: var(--panel-border-dark);
}

/* ==============================
   ESTILOS BASE
============================== */
html, body {
  height: 100%;
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial;
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  color: var(--text);
  transition: background 0.25s, color 0.25s;
}

/* ==============================
   HEADER
============================== */
header {
  background: var(--panel);
  border-bottom: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrap {
  max-width: var(--maxw);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 10px 25px;
}

header .brand img {
  height: 70px;
  width: auto;
  object-fit: contain;
}

/* ==============================
   NAVEGACIÓN
============================== */
nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  transition: 0.3s;
}

nav a:hover {
  color: var(--accent);
}

nav a.active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 5px;
}

/* ==============================
   BOTÓN MODO OSCURO
============================== */
.theme-toggle, .modo-btn {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  width: 54px;
  height: 32px;
  display: flex;
  align-items: center;
  padding: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.theme-toggle:hover, .modo-btn:hover {
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}

.toggle-knob {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--panel), #ddd);
  transition: transform 0.28s;
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.08);
}

/* ==============================
   HERO
============================== */
.hero {
  text-align: center;
  padding: 100px 20px 60px;
  background: var(--panel);
  border-bottom: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  border-radius: 0 0 var(--radius) var(--radius);
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: var(--text);
}

.hero p {
  color: var(--muted);
  font-size: 1.1rem;
}

/* ==============================
   SECCIÓN DE SERVICIOS
============================== */
.services, .grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: var(--maxw);
  margin: 40px auto;
  padding: 0 20px;
}

.service-card, .card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 25px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s ease;
}

.service-card:hover, .card:hover {
  transform: translateY(-10px);
}

.service-card h2, .card h2 {
  color: var(--accent);
  margin-bottom: 10px;
}

.service-card p, .card p {
  color: var(--muted);
}

/* ==============================
   SECCIÓN DE CONTACTO
============================== */
.contact-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
}

.contact-form {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  padding: 28px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.contact-form label {
  font-weight: 600;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--panel-border);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}

.contact-mail {
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
}

.contact-mail strong {
  color: var(--accent);
}

/* ==============================
   SECCIÓN DE POLÍTICAS
============================== */
.policies {
  max-width: var(--maxw);
  margin: 60px auto;
  padding: 0 20px;
}

.policies .card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  line-height: 1.7;
  color: var(--text);
}

.policies h2 {
  color: var(--accent);
  font-size: 1.8rem;
  margin-bottom: 15px;
  text-align: center;
}

.policies h3 {
  color: var(--accent-2);
  margin-top: 25px;
}

.policies p {
  color: var(--muted);
  margin-top: 8px;
  text-align: justify;
}

/* ==============================
   FOOTER
============================== */
footer {
  background: var(--panel);
  color: var(--muted);
  text-align: center;
  padding: 20px;
  border-top: 1px solid var(--panel-border);
}

/* ==============================
   WHATSAPP
============================== */
.whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  color: white;
  font-size: 24px;
  z-index: 80;
  text-decoration: none;
  transition: 0.3s;
}

.whatsapp:hover {
  transform: scale(1.1);
}

/* ==============================
   REVEAL ANIMACIÓN
============================== */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ==============================
   RESPONSIVO
============================== */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    background: var(--panel);
    position: absolute;
    top: 70px;
    right: 0;
    display: none;
    padding: 10px 20px;
  }

  .hero {
    padding: 80px 20px;
  }
}