/* ----------------------------------------------------------
   CSS RESET & NORMALIZE
---------------------------------------------------------- */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  background: #151A27;
  color: #F7F1E4;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  font-size: 16px;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
img, picture, video, canvas, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
}
a {
  text-decoration: none;
  color: inherit;
}
ul, ol {
  padding-left: 1.6em;
  margin-bottom: 1.5em;
}
li {
  margin-bottom: 6px;
}
button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
input, select, textarea {
  font: inherit;
  color: inherit;
}


/* ----------------------------------------------------------
   BRANDING & FONTS
---------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,400|Roboto:400,500,700&display=swap');

:root {
  --primary: #22543D;
  --primary-rgb: 34, 84, 61;
  --secondary: #66A7A3;
  --secondary-rgb: 102,167,163;
  --accent: #F7F1E4;
  --accent-dark: #ded8cb;
  --black: #151A27;
  --elevate: rgba(34, 84, 61, 0.30);
  --white: #fff;
  --neon-green: #00FFD0;
  --neon-blue: #00A3FF;
  --shadow: 0 4px 32px 0 rgba(22,25,48, 0.20), 0 1.5px 7px 0 rgba(34,84,61, 0.12);
  --radius: 16px;
  --radius-sm: 9px;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  background: linear-gradient(120deg, rgba(34,84,61,0.92) 0%, #151A27 100%);
  color: var(--accent);
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--neon-green);
  text-shadow: 0 2px 12px rgba(0,255,208,0.1);
  font-weight: 700;
  margin-bottom: 18px;
  line-height: 1.18;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.2rem;  }
h2 { font-size: 1.5rem;  }
h3 { font-size: 1.15rem; }
h4, h5, h6 { font-size: 1.04rem; font-weight: 600; }

p, li, ul, ol, label  {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 14px;
  line-height: 1.6;
}

.subheadline {
  color: var(--accent);
  font-size: 1.15rem;
  margin-bottom: 28px;
  max-width: 520px;
}

strong, b {
  color: var(--neon-green);
  font-weight: 700;
}


/* ----------------------------------------------------------
   LAYOUT CONTAINERS
---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container, 
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 0;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: rgba(21, 26, 39, 0.9);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: var(--accent);
  color: #161930;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px 0 rgba(34,84,61,0.12);
  margin-bottom: 20px;
  transition: transform .18s cubic-bezier(.4,0,.2,1), box-shadow .18s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 32px 0 rgba(0,163,255,0.15), 0 1.5px 9px 0 rgba(0,255,208,0.09);
  transform: translateY(-4px) scale(1.02);
}
.testimonial-meta {
  font-size: 0.98em;
  color: var(--primary);
  font-weight: 700;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Cards & Features */
.feature {
  background: rgba(34, 84, 61, 0.18);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 9px 0 rgba(0,255,208,0.10);
  padding: 24px 18px 18px 18px;
  min-width: 220px;
  min-height: 280px;
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  transition: box-shadow .19s, border .19s;
  border: 1.5px solid transparent;
  margin-bottom: 20px;
}
.feature:hover,
.feature:focus-within {
  box-shadow: 0 8px 36px 0 rgba(0,255,208,0.18);
  border-color: var(--neon-green);
}
.feature img {
  width: 46px;
  height: 46px;
  filter: drop-shadow(0 0 7px var(--neon-green));
  margin-bottom: 10px;
}
.difficulty-label, .type-label, .author, .category {
  display: inline-block;
  font-size: 0.96em;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-top: 4px;
  border-radius: 7px;
  padding: 3px 12px;
  background-color: var(--primary);
  color: var(--neon-green);
  box-shadow: 0 1px 3px 0 rgba(0,255,208,0.12);
}
.type-label { background: var(--neon-blue); color: #151A27; }
.author, .category { background: var(--secondary); color: #151A27; margin-right: 5px; }

/* CTA SECTION */
.cta-section {
  background: linear-gradient(120deg, var(--secondary) 0%, var(--primary) 80%);
  border-radius: var(--radius);
  box-shadow: 0 2px 18px 0 rgba(0,255,208,0.09);
  margin-bottom: 60px;
  padding: 60px 0 52px 0;
}

/* HERO */
.hero {
  min-height: 420px;
  background: linear-gradient(100deg,
    rgba(0,255,208,0.10) 0%,
    rgba(0,163,255,0.10) 60%,
    rgba(34,84,61,0.8) 98%,
    rgba(102,167,163,0.10) 100%
  );
  border-radius: var(--radius);
  box-shadow: 0 2px 24px 0 rgba(34,84,61, 0.11);
  margin-bottom: 48px;
  padding: 60px 0 62px 0;
  display: flex;
  align-items: center;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 14px;
}
.hero h1 {
  font-size: 2.5rem;
  color: var(--neon-green);
  text-shadow: 0 4px 30px rgba(0,255,208,0.17);
}
.hero .subheadline {
  color: var(--accent-dark);
}

/* ----------------------------------------------------------
   NAVIGATION
---------------------------------------------------------- */
header {
  background: rgba(21, 26, 39, .98);
  box-shadow: 0 2px 18px 0 rgba(0,255,208,0.06);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  height: 72px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}
.main-nav a {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--neon-blue);
  font-weight: 600;
  font-size: 1rem;
  padding: 11px 16px;
  border-radius: 7px;
  transition: background .17s, color .17s, box-shadow .18s;
  position: relative;
  margin-bottom: 0;
}
.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(0,255,208,0.12);
  color: var(--neon-green);
  box-shadow: 0 0 0 2px var(--neon-blue);
}
.main-nav .btn-primary {
  background: linear-gradient(92deg, var(--neon-green) 0%, var(--neon-blue) 100%);
  color: #151A27;
  font-weight: 700;
  border-radius: 9px;
  padding: 11px 24px;
  box-shadow: 0 2px 10px 0 rgba(0,255,208,0.17);
  margin-left: 12px;
  transition: background .19s, box-shadow .19s, color .19s;
}
.main-nav .btn-primary:hover,
.main-nav .btn-primary:focus-visible {
  background: linear-gradient(99deg, var(--neon-blue) 1%, var(--neon-green) 100%);
  color: var(--primary);
}

/* Header logo alignment */
header a img {
  height: 40px;
  display: block;
  margin-right: 12px;
}

/* ----------------------------------------------------------
   MOBILE NAVIGATION
---------------------------------------------------------- */
.mobile-menu-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  color: var(--neon-green);
  background: transparent;
  border: none;
  margin-left: 10px;
  height: 54px;
  width: 54px;
  z-index: 107;
  transition: color .14s;
}
.mobile-menu-toggle:hover { color: var(--neon-blue); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(21,26,39, 0.99);
  z-index: 106;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(100%);
  transition: transform .31s cubic-bezier(.21,.7,.42,1);
  overflow-y: auto;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0%);
}
.mobile-menu-close {
  font-size: 2.2rem;
  color: var(--neon-green);
  padding: 10px 12px;
  background: transparent;
  border: none;
  margin: 18px 0 12px 18px;
  align-self: flex-start;
  z-index: 108;
  transition: color .17s;
}
.mobile-menu-close:hover { color: var(--neon-blue); }
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 10px 36px 27px 36px;
}
.mobile-nav a {
  font-size: 1.2rem;
  color: var(--neon-blue);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 12px 0;
  border-radius: 4px;
  transition: color .17s, background .13s;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus-visible {
  color: var(--neon-green);
  background: rgba(0,255,208, 0.08);
}

@media (max-width: 1060px) {
  .main-nav { gap: 2px; }
}

@media (max-width: 900px) {
  header .main-nav { gap: 0; }
  .container { max-width: 98vw; }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .mobile-menu {
    display: flex;
  }
}
@media (min-width: 769px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
  .main-nav {
    display: flex !important;
  }
}

/* ----------------------------------------------------------
   BUTTONS & LINKS
---------------------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(88deg, var(--neon-green) 0%, var(--neon-blue) 100%);
  color: #151A27;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.07rem;
  border-radius: 9px;
  padding: 13px 34px;
  min-width: 150px;
  margin: 0 0 0 0;
  cursor: pointer;
  box-shadow: 0 2px 23px 0 rgba(0,255,208, 0.13);
  border: solid 2px transparent;
  transition: background .19s, color .19s, box-shadow .18s, border .18s, transform .08s;
  text-shadow: none;
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: linear-gradient(97deg, var(--neon-blue) 1%, var(--neon-green) 100%);
  color: var(--primary);
  border-color: var(--neon-green);
  box-shadow: 0 4px 36px 0 rgba(0,255,208,0.14);
  transform: translateY(-2px) scale(1.03);
}

/* Accent links */
a {
  transition: color .16s, border-bottom .13s;
}
a[href^="mailto"]:hover,
a[href^="tel"]:hover,
a.underline:hover { color: var(--neon-green); border-bottom: 2px solid var(--neon-green); }

/* Utility for alert info text */
.alert-info {
  background: linear-gradient(90deg, var(--neon-blue) 4%, var(--neon-green) 95%);
  color: #151A27;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 9px 0 rgba(0,163,255,0.07);
  font-weight: 600;
}

/* ----------------------------------------------------------
   FOOTER
---------------------------------------------------------- */
footer {
  background: #242A38;
  color: var(--accent);
  padding: 32px 0 25px 0;
  margin-top: 36px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 18px 0 12px 0;
  font-size: 1.04em;
  font-weight: 600;
}
.footer-nav a {
  color: var(--neon-blue);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: color .15s, border-bottom .13s;
}
.footer-nav a:hover, .footer-nav a:focus-visible {
  color: var(--neon-green);
  border-bottom: 2px solid var(--neon-green);
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.99rem;
  margin-top: 10px;
}
.contact-info div {
  display: flex;
  align-items: center;
  gap: 7px;
}
footer a img {
  height: 32px;
  margin-bottom: 3px;
  margin-right: 12px;
}

/* ----------------------------------------------------------
   RESPONSIVE LAYOUTS & FLEX DIRECTION
---------------------------------------------------------- */
@media (max-width: 1000px) {
  .content-wrapper, .container { max-width: 95vw; }
}
@media (max-width: 840px) {
  .feature-grid { flex-direction: column; }
  .feature { min-width: 0; width: 100%; }
  .testimonial-card { min-width: 0; }
}
@media (max-width: 768px) {
  .container { padding: 0 7px; }
  .card-container, .feature-grid, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .card { width: 100%; margin-bottom: 20px; }
  .text-image-section { flex-direction: column; gap: 18px; }
  .section, .cta-section, .hero {
    padding: 28px 0 28px 0;
  }
  .main-nav { display: none !important; }
  .mobile-menu, .mobile-menu-toggle { display: flex; }
  .hero h1 { font-size: 1.38rem; }
  .hero .subheadline { font-size: 1.04rem; }
}
@media (max-width: 520px) {
  h1, .hero h1 { font-size: 1.2rem; }
  h2 { font-size: 1.09rem; }
  .btn-primary { font-size: 0.99rem; }
  footer, .cta-section, .section, .hero { padding-left: 0; padding-right: 0; }
}

/* ----------------------------------------------------------
   ADDITIONAL COMPONENTS
---------------------------------------------------------- */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 10px;
}
.text-section ul {
  margin-bottom: 0;
  padding-left: 1.05em;
}
.text-section h3 {
  margin-top: 16px;
  margin-bottom: 8px;
}

/* General icon style */
img[alt^="Dirección"], img[alt^="Teléfono"], img[alt^="Email"], img[alt^="Horario"] {
  width: 19px;
  filter: drop-shadow(0 1px 4px var(--neon-green));
}

/* ----------------------------------------------------------
   COOKIE CONSENT BANNER & MODAL
---------------------------------------------------------- */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  background: #151A27;
  color: var(--accent);
  box-shadow: 0 -2px 16px 0 rgba(0,255,208,0.14);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 22px 14px;
  z-index: 9999;
  font-size: 1rem;
  transition: transform .35s cubic-bezier(.37,1.17,.44,.96);
  border-top: 3px solid var(--neon-blue);
}
.cookie-consent-banner.hide {
  transform: translateY(120%);
}
.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 8px;
  padding: 12px 23px;
  background: linear-gradient(92deg, var(--neon-blue) 20%, var(--neon-green) 100%);
  color: #151A27;
  border: none;
  transition: background .17s, color .17s, box-shadow .14s;
  box-shadow: 0 2px 7px 0 rgba(0,255,208,0.10);
  margin: 0 2px;
  cursor: pointer;
}
.cookie-btn:hover {
  background: linear-gradient(95deg, var(--neon-green) 1%, var(--neon-blue) 100%);
  color: var(--primary);
}
.cookie-btn.reject {
  background: #ded8cb;
  color: #151A27;
  border: 2px solid var(--neon-blue);
  box-shadow: none;
}
.cookie-btn.reject:hover { background: var(--accent-dark); border-color: var(--neon-green); }
.cookie-btn.settings {
  background: transparent;
  color: var(--neon-blue);
  border: 2px solid var(--neon-green);
  box-shadow: none;
}
.cookie-btn.settings:hover { color: var(--neon-green); border-color: var(--neon-blue);  }

/* COOKIE PREFERENCES MODAL  */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(21, 26, 39, 0.97);
  z-index: 10001;
  justify-content: center;
  align-items: center;
  transition: opacity .22s;
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: var(--accent);
  color: #151A27;
  max-width: 98vw;
  width: 410px;
  border-radius: 19px;
  box-shadow: 0 9px 34px 0 rgba(0,255,208,0.18);
  padding: 32px 30px 24px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal h2 {
  color: var(--primary);
  margin-bottom: 4px;
}
.cookie-preferences {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.02em;
}
.cookie-category label {
  color: #151A27;
  font-weight: 600;
  margin-bottom: 0;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-category input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--neon-green);
  margin-right: 4px;
}
.cookie-category.essential label::after {
  content: ' (siempre activo)';
  font-size: 0.96em;
  color: var(--neon-blue);
  font-weight: 400;
  margin-left: 7px;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 14px;
}
.cookie-modal-close {
  position: absolute;
  top: 13px;
  right: 16px;
  color: var(--neon-blue);
  font-size: 1.7em;
  background: none;
  border: none;
  cursor: pointer;
  transition: color .16s;
}
.cookie-modal-close:hover { color: var(--neon-green); }
@media (max-width: 460px) {
  .cookie-modal { width: 96vw; padding: 18px 4vw; }
}

/* ----------------------------------------------------------
   MICRO-ANIMATIONS & INTERACTIONS
---------------------------------------------------------- */
.btn-primary, .feature, .testimonial-card, .cookie-btn, .feature img {
  will-change: transform, box-shadow;
}
.btn-primary:active, .cookie-btn:active {
  transform: scale(0.97);
}

.feature:active, .testimonial-card:active {
  transform: scale(0.98);
}
.feature img {
  transition: filter .11s;
}
.feature:hover img {
  filter: drop-shadow(0 0 16px var(--neon-green));
}

/* ----------------------------------------------------------
   ACCESSIBILITY
---------------------------------------------------------- */
:focus {
  outline: 2.5px solid var(--neon-green);
  outline-offset: 2.5px;
  z-index: 2;
}

/* ----------------------------------------------------------
   PRINT STYLES
---------------------------------------------------------- */
@media print {
  header, footer, .mobile-menu, .cookie-consent-banner, .cookie-modal-overlay {
    display: none !important;
  }
  main, .section, .content-wrapper, .container { background: none !important; color: #222 !important; }
}
