
:root {
  --bg: #ffffff;
  --bg-alt: #f7f7f7;
  --text: #282828;
  --muted: #777777;
  --primary: #ff8a38;
  --primary-dark: #f2741a;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.12);
  --radius-lg: 18px;
  --radius-pill: 999px;
  --transition-fast: 0.18s ease-out;
  --transition-med: 0.25s ease-out;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Lato', 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  width: min(1120px, 100% - 2.5rem);
  margin: 0 auto;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem 0;
}

.logo img {
  height: 52px;
  width: auto;
}

/* NAV */

.main-nav {
  position: relative;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #404040;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list > li > a {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  color: #404040;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.nav-list > li > a:hover {
  background: rgba(0,0,0,0.04);
  transform: translateY(-1px);
}

.nav-list > li.has-submenu {
  position: relative;
}

.submenu {
  position: absolute;
  inset-block-start: 100%;
  left: 0;
  margin-top: 0.4rem;
  padding: 0.55rem;
  list-style: none;
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--transition-med), visibility var(--transition-med), transform var(--transition-med);
  min-width: 220px;
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu li a {
  display: block;
  padding: 0.45rem 0.7rem;
  border-radius: 0.7rem;
  font-size: 0.9rem;
  color: #333;
}

.submenu li a:hover {
  background: rgba(0,0,0,0.04);
}

/* BUTTONS */

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #ffb36b);
  color: #fff;
  box-shadow: 0 12px 30px rgba(255,138,56,0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(255,138,56,0.45);
  background: linear-gradient(135deg, var(--primary-dark), #ffb36b);
}

.btn-secondary {
  background: #ffffff;
  color: #333;
  border: 1px solid rgba(0,0,0,0.06);
}

.btn-secondary:hover {
  transform: translateY(-1px);
  background: #f7f7f7;
}

.full-width {
  width: 100%;
}

/* HERO */

.hero {
  padding: 3.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 3vw, 2.7rem);
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.hero-copy p {
  font-size: 1.02rem;
  color: #f7f7f7;
  margin: 0 0 1.4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0,0,0,0.04);
}

.hero-card h2 {
  font-size: 1.2rem;
  margin-top: 0;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.checklist li::before {
  content: "✔";
  color: var(--primary);
  margin-right: 0.4rem;
}

/* GENERIC SECTIONS */

.section {
  padding: 3rem 0;
}

.section.alt {
  background: var(--bg-alt);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.2rem;
  align-items: flex-start;
}

.section h2,
.section h1 {
  margin-top: 0;
}

.section p {
  color: var(--muted);
  line-height: 1.6;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0,0,0,0.04);
}

.card h3 {
  margin-top: 0;
}

.card-link {
  display: inline-flex;
  margin-top: 0.75rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.card-link::after {
  content: "→";
  margin-left: 0.4rem;
}

/* FLOATING EFFECT */

.floating-card {
  position: relative;
  animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ICON LIST */

.icon-list {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
}

.icon-list li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.3rem;
}

.icon-list span {
  font-size: 1.1rem;
}

/* FORMS */

.contact-form {
  display: grid;
  gap: 0.8rem;
}

.form-group {
  display: grid;
  gap: 0.25rem;
}

label {
  font-size: 0.9rem;
  font-weight: 600;
}

input,
textarea {
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.12);
  padding: 0.6rem 0.75rem;
  font: inherit;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(255,138,56,0.5);
  outline-offset: 1px;
}

.form-note {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* FOOTER */

.site-footer {
  background: #282828;
  color: #ffffff;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0 1.5rem;
  font-size: 0.93rem;
}

.site-footer h4 {
  margin-top: 0;
  margin-bottom: 0.7rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer a {
  color: #ff8a38;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 0.9rem 0;
  font-size: 0.8rem;
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  height: 34px;
  width: auto;
}

/* LAYOUT HELPERS */

.narrow {
  max-width: 720px;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .hero-grid,
  .section-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 2.4rem;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding-inline: 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-list {
    position: absolute;
    flex-direction: column;
    top: 120%;
    right: 0;
    background: #ffffff;
    padding: 0.75rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-soft);
    min-width: 210px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
  }

  .nav-list.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-list > li > a {
    width: 100%;
    justify-content: flex-start;
  }

  .submenu {
    position: static;
    box-shadow: none;
    margin-top: 0.2rem;
    padding-left: 0.25rem;
  }
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: #ffffff;
  border-top: 1px solid #e5e5e5;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
  font-size: 0.9rem;
}

.cookie-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.9rem 0;
}

.cookie-banner p {
  margin: 0;
  line-height: 1.5;
}

.cookie-banner a {
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-actions .btn-secondary {
  background: transparent;
  border: 1px solid #ccc;
  color: #333;
}

@media (min-width: 768px) {
  .cookie-banner-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cookie-banner p {
    max-width: 70%;
  }
}

/* === COOKIE CONSENT - ESTILOS === */

.cookie-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.65);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.cookie-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.cookie-modal {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.35);
  width: min(960px, 96vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-size: 0.95rem;
}

.cookie-header {
  padding: 1.25rem 1.75rem 0.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.cookie-header h2 {
  font-size: 1.25rem;
  margin: 0 0 0.35rem;
}

.cookie-header p {
  margin: 0 0 0.75rem;
  color: #4b5563;
}

.cookie-link {
  color: #f97316;
  text-decoration: underline;
  font-weight: 500;
}

.cookie-body {
  padding: 1rem 1.75rem 0.75rem;
  overflow-y: auto;
}

.cookie-body p {
  margin: 0 0 0.8rem;
  color: #4b5563;
}

/* Vista de categorías */
.cookie-categories {
  margin-top: 0.75rem;
  border-top: 1px solid #e5e7eb;
}

.cookie-category {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.cookie-category h3 {
  margin: 0 0 0.2rem;
  font-size: 0.98rem;
}

.cookie-category small {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
  margin-bottom: 0.25rem;
}

.cookie-category p {
  margin: 0;
  color: #4b5563;
  font-size: 0.9rem;
}

/* Switch */
.cookie-switch-wrapper {
  flex-shrink: 0;
}

.cookie-switch {
  position: relative;
  width: 46px;
  height: 24px;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #e5e7eb;
  border-radius: 999px;
  transition: background-color 0.2s ease;
}

.cookie-slider::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  transition: transform 0.2s ease;
}

.cookie-switch input:checked + .cookie-slider {
  background: linear-gradient(135deg, #ffb56b, #ff8a38);
}

.cookie-switch input:checked + .cookie-slider::before {
  transform: translateX(20px);
}

.cookie-switch input:disabled + .cookie-slider {
  background-color: #d1d5db;
  cursor: not-allowed;
}

/* Área de acciones */
.cookie-actions {
  padding: 0.75rem 1.75rem 1.2rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-btn {
  flex: 1 1 120px;
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
}

.cookie-btn--ghost {
  background-color: #f3f4f6;
  color: #111827;
}

.cookie-btn--ghost:hover {
  background-color: #e5e7eb;
}

.cookie-btn--outline {
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  color: #374151;
}

.cookie-btn--outline:hover {
  background-color: #f9fafb;
}

.cookie-btn--primary {
  background: linear-gradient(135deg, #ffb56b, #ff8a38);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(248, 113, 5, 0.4);
}

.cookie-btn--primary:hover {
  filter: brightness(1.03);
}

/* Vista compacta en móvil */
@media (max-width: 640px) {
  .cookie-modal {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    max-height: 100vh;
  }

  .cookie-header,
  .cookie-body,
  .cookie-actions {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .cookie-actions {
    flex-direction: column;
  }
}

/* Botón flotante para reabrir preferencias */
.cookie-fab {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #ffb56b, #ff8a38);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.4);
  cursor: pointer;
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.cookie-fab.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cookie-fab span {
  letter-spacing: 0.06em;
}

/* Estados internos */
.cookie-view-settings .cookie-body-intro {
  display: none;
}

.cookie-view-settings .cookie-categories {
  display: block;
}

.cookie-view-consent .cookie-categories {
  display: none;
}

