/* ===========================================================================
   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;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #181c26;
  color: #F5F7FA;
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-width: 100vw;
}
ol, ul {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  border: 0;
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  color: inherit;
}
*:focus {
  outline: 2px solid #E93A5A;
  outline-offset: 2px;
}
:root {
  --color-primary: #1A2440;
  --color-secondary: #E93A5A;
  --color-accent: #F5F7FA;
  --color-bg: #181c26;
  --color-surface: #232b3f;
  --color-metal: #7e8297;
  --color-shadow: 0 4px 24px rgba(0,0,0,0.15);
  --radius-base: 12px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
  --transition: .3s cubic-bezier(.23,1.02,.56,.84);
}

/* ===========================================================================
   TYPOGRAPHY
=========================================================================== */
h1, .h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: #F5F7FA;
  text-shadow: 0 2px 8px rgba(26,36,64,0.12);
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #e9eaf4;
  text-shadow: 0 2px 6px rgba(26,36,64,0.08);
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: #f5f7fa;
}
h4, .h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: #b6bacf;
}
.lead {
  font-size: 1.18rem;
  color: #cfd3e2;
  margin-bottom: 18px;
}
p, ul, li {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: #d2d7e2;
}
strong {
  color: #F5F7FA;
  font-weight: 700;
}

@media (max-width: 768px) {
  h1, .h1 { font-size: 2rem; }
  h2, .h2 { font-size: 1.5rem; }
  h3, .h3 { font-size: 1rem; }
}

/* ===========================================================================
   CONTAINER & LAYOUT STRUCTURE
=========================================================================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}

@media (max-width: 768px) {
  .section { padding: 28px 8px; margin-bottom: 36px; }
}

.card-container,
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  background: var(--color-surface);
  border-radius: var(--radius-base);
  box-shadow: var(--color-shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 18px;
  min-width: 270px;
  flex: 1 1 275px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .22s, border .22s;
  border: 1px solid #232a39;
}
.card:hover {
  box-shadow: 0 8px 28px rgba(26,36,64,0.20);
  border-color: var(--color-secondary);
}

.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: var(--radius-base);
  background: #F5F7FA;
  color: #232b3f;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(44, 55, 75, 0.13);
  border-left: 6px solid var(--color-secondary);
  position: relative;
}
.testimonial-card p {
  color: #232b3f;
  margin-bottom: 0;
  font-size: 1.05rem;
}
.stars {
  color: #E93A5A;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 1.3px;
  margin-right: 12px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.icon-row {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 16px;
}
.icon-row img {
  filter: grayscale(25%) brightness(1.07) contrast(1.18) drop-shadow(0 2px 6px #1A2440);
  width: 46px;
  height: 46px;
}

.course-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 18px 0 0 0;
}
.course-list > div {
  background: var(--color-surface);
  padding: 24px 18px;
  border-radius: var(--radius-base);
  flex: 1 1 270px;
  min-width: 270px;
  box-shadow: var(--color-shadow);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  transition: border .2s, box-shadow .2s;
  border: 1px solid #232a39;
}
.course-list > div:hover {
  border-color: var(--color-secondary);
  box-shadow: 0 12px 30px rgba(26,36,64,0.18);
}
.age-tag {
  background: #1A2440;
  color: #F5F7FA;
  border-radius: 8px;
  font-size: 13px;
  padding: 3px 10px;
  margin-left: 8px;
  letter-spacing: .5px;
}

/* Table Styles (horarios.html) */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0 20px 0;
  background: var(--color-surface);
  border-radius: var(--radius-base);
  overflow: hidden;
  box-shadow: var(--color-shadow);
}
thead {
  background: #222839;
}
th, td {
  padding: 12px 8px;
  text-align: left;
  font-family: var(--font-body);
  color: #F5F7FA;
}
th {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .5px;
  background: #222839;
}
tbody tr:nth-child(even) {
  background: #1a2440;
}
tbody tr:nth-child(odd) {
  background: #232b3f;
}

/* ===========================================================================
   HEADER & NAVIGATION
=========================================================================== */
header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 90;
  background: #1A2440F2;
  box-shadow: 0 4px 24px rgba(26,36,64,0.07);
  backdrop-filter: blur(4px);
}
header .container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}
.logo {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
}
.logo img {
  height: 45px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 26px;
}
.main-nav a {
  color: #F5F7FA;
  font-family: var(--font-display);
  font-size: 1.03rem;
  font-weight: 500;
  letter-spacing: .4px;
  padding: 3px 0 3px 0;
  border-bottom: 2px solid transparent;
  transition: color .18s, border .18s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  color: #E93A5A;
  border-bottom: 2px solid #E93A5A;
}
.main-nav .cta-primary {
  background: #E93A5A;
  color: #F5F7FA !important;
  border-radius: 8px;
  padding: 9px 22px;
  margin-left: 10px;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(233,58,90,0.07);
  border: none;
  letter-spacing: 1px;
  transition: background .18s, color .18s, box-shadow .18s;
}
.main-nav .cta-primary:hover, .main-nav .cta-primary:focus {
  background: #F5F7FA;
  color: #1A2440 !important;
  box-shadow: 0 4px 16px rgba(233,58,90,0.15);
}

.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  background: none;
  border: none;
  color: #E93A5A;
  cursor: pointer;
  margin-left: 24px;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background .18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #2a344e;
}

/* --- Responsive Nav --- */
@media (max-width: 960px) {
  .main-nav { gap: 14px; }
}
@media (max-width: 820px) {
  .main-nav { gap: 8px; }
  header .container { padding: 0 8px; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
  .logo img { height: 38px; }
}

/* ===========================================================================
   MOBILE MENU OVERLAY
=========================================================================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  z-index: 111;
  background: rgba(26,36,64, 0.97);
  box-shadow: 0 0 40px 12px rgba(26,36,64,0.33);
  transform: translateX(-100%);
  transition: transform 0.42s var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100vw;
  height: 100vh;
  padding: 0 0 0 0;
  overflow-y: auto;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  font-size: 2rem;
  background: none;
  border: none;
  color: #E93A5A;
  padding: 24px 24px 8px 16px;
  align-self: flex-end;
  cursor: pointer;
  z-index: 2;
  transition: color .16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #F5F7FA;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 32px 0 0 40px;
  min-width: 60vw;
}
.mobile-nav a {
  color: #F5F7FA;
  font-family: var(--font-display);
  font-size: 1.19rem;
  font-weight: 600;
  letter-spacing: 1.1px;
  padding: 6px 0;
  border-bottom: 1px solid #2a344e;
  transition: color .2s, border .2s;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #E93A5A;
  border-bottom: 2px solid #E93A5A;
}
@media (max-width:500px) {
  .mobile-nav {
    padding: 28px 0 0 18px;
  }
  .mobile-menu-close { padding: 24px 8px 4px 4px; }
}

/* ===========================================================================
   BUTTONS & CTA STYLES
=========================================================================== */
.cta-primary,
.cta-secondary {
  display: inline-block;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 12px 30px;
  margin-top: 18px;
  letter-spacing: 0.7px;
  transition: background .2s, color .2s, box-shadow .2s, border .2s;
  text-align: center;
  box-shadow: 0 4px 16px rgba(26,36,64,0.10);
  border: none;
  cursor: pointer;
}
.cta-primary {
  background: var(--color-secondary);
  color: #F5F7FA;
  border: 2px solid var(--color-secondary);
}
.cta-primary:hover, .cta-primary:focus {
  background: #F5F7FA;
  color: #1A2440;
  border-color: #E93A5A;
  box-shadow: 0 8px 24px rgba(233,58,90,0.18);
}
.cta-secondary {
  background: transparent;
  color: #E93A5A;
  border: 2px solid #E93A5A;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #E93A5A;
  color: #F5F7FA;
}

/* ===========================================================================
   FOOTER STYLE
=========================================================================== */
footer {
  background: #1A2440;
  color: #B2B7C9;
  padding: 40px 0 10px 0;
  border-top: 2px solid #282e47;
}
footer .container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand img {
  height: 44px; width: auto; margin-bottom: 6px;
}
.footer-nav {
  font-family: var(--font-display);
  display: flex;
  flex-direction: row;
  gap: 10px;
  font-size: 15px;
}
.footer-nav a {
  color: #F5F7FA;
  opacity: 0.83;
  transition: color .16s, opacity .16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #E93A5A;
  opacity: 1;
}
.footer-contact, .footer-hours {
  font-size: 14px;
  margin-top: 8px;
  color: #C9CCDA;
}
.footer-contact img {
  height: 1.1em;
  width: auto;
  vertical-align: middle;
  margin-right: 4px;
}
.footer-hours {
  color: #b6bacf;
  margin-top: 4px;
  font-size: 13px;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .footer-nav { flex-wrap: wrap; gap: 6px; }
}

/* ===========================================================================
   UTILITY CLASSES & HELPERS
=========================================================================== */
.text-center { text-align: center !important; }
.flex { display: flex !important; }
.flex-row { flex-direction: row !important; }
.flex-col { flex-direction: column !important; }
.align-center { align-items: center !important; }
.align-start { align-items: flex-start !important; }
.gap-8 { gap: 8px !important; }
.gap-16 { gap: 16px !important; }
.gap-20 { gap: 20px !important; }
.gap-32 { gap: 32px !important; }
.mt-20 { margin-top: 20px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mt-40 { margin-top: 40px !important; }
.mb-40 { margin-bottom: 40px !important; }

/* ===========================================================================
   RESPONSIVE LAYOUTS
=========================================================================== */
@media (max-width: 900px) {
  .card-container, .card-grid, .course-list {
    gap: 16px;
  }
  .card, .course-list > div {
    min-width: 210px;
    padding: 18px 10px;
  }
}
@media (max-width: 640px) {
  .container { padding: 0 3vw; }
  .card-container, .card-grid, .course-list {
    flex-direction: column;
    gap: 16px;
  }
  .card, .course-list > div { min-width: 96%; }
}

/* Tables Scroll on Mobile */
@media (max-width: 600px) {
  table, thead, tbody, th, td, tr {
    display: block;
  }
  thead tr {
    position: absolute;
    top: -9999px; left: -9999px;
  }
  tr { margin-bottom: 12px; }
  td {
    border: none;
    position: relative;
    padding-left: 46%;
    background: #232b3f;
    color: #e9eaf4;
  }
  td:before {
    position: absolute;
    left: 6px;
    width: 40%;
    white-space: nowrap;
    color: #cfd3e2;
    font-weight: 700;
    font-size: 0.97em;
  }
  td:nth-of-type(1):before { content: "Día"; }
  td:nth-of-type(2):before { content: "Clase"; }
  td:nth-of-type(3):before { content: "Grupo Etario"; }
  td:nth-of-type(4):before { content: "Hora"; }
}

/* ===========================================================================
   COOKIE CONSENT BANNER & MODAL
=========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  z-index: 101;
  background: #232b3f;
  color: #F5F7FA;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
  padding: 20px 38px;
  box-shadow: 0 -4px 32px rgba(26,36,64,0.23);
  transition: transform .44s var(--transition), opacity .38s;
  opacity: 1;
  transform: translateY(0);
  font-size: 16px;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 13px;
}
.cookie-banner button {
  border-radius: 7px;
  border: none;
  background: #E93A5A;
  color: #F5F7FA;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 7px 15px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(233,58,90,0.10);
  margin: 0 1px;
  transition: background .16s, color .16s, box-shadow .16s;
}
.cookie-banner button.cookie-reject {
  background: transparent;
  color: #E93A5A;
  border: 1.5px solid #E93A5A;
}
.cookie-banner button.cookie-reject:hover, .cookie-banner button.cookie-reject:focus {
  background: #E93A5A;
  color: #F5F7FA;
}
.cookie-banner button.cookie-settings {
  background: #232b3f;
  border: 1.5px solid #7e8297;
  color: #e0e3ef;
}
.cookie-banner button.cookie-settings:hover, .cookie-banner button.cookie-settings:focus {
  background: #353e54;
  color: #E93A5A;
}
.cookie-banner .cookie-icon {
  font-size: 1.5em;
  margin-right: 18px;
  vertical-align: middle;
  color: #F5F7FA;
}
@media (max-width:768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 16px 12px;
    font-size: 15px;
  }
  .cookie-banner .cookie-actions {
    gap: 7px;
  }
}

/* --- Cookie Modal --- */
.cookie-modal {
  position: fixed;
  z-index: 120;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(26,36,64, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .36s var(--transition);
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-dialog {
  background: #F5F7FA;
  color: #1A2440;
  border-radius: 13px;
  padding: 36px 30px 28px 30px;
  box-shadow: 0 10px 56px rgba(26,36,64,0.31);
  max-width: 430px;
  width: 92vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: fade-in-modal .4s;
}
@keyframes fade-in-modal {
  from { transform: translateY(70px) scale(0.97); opacity:0; }
  to { transform: translateY(0) scale(1); opacity:1; }
}
.cookie-modal-dialog h2 {
  color: #1A2440;
  font-size: 1.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin: 8px 0;
  gap: 16px;
  font-size: 1rem;
}
.cookie-category label {
  font-weight: 600;
  color: #1A2440;
  margin-left: 3px;
  font-family: var(--font-body);
}
.cookie-category input[type="checkbox"] {
  accent-color: #E93A5A;
  width: 18px; height: 18px;
}
.cookie-category .essential {
  color: #7e8297;
  font-size: 0.93em;
  margin-left: 6px;
}
.cookie-modal-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: row;
  gap: 12px;
  width: 100%;
  justify-content: flex-end;
}
.cookie-modal-actions button {
  min-width: 98px;
  border-radius: 7px;
  border: none;
  background: #E93A5A;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 20px;
  cursor: pointer;
  transition: background .18s;
}
.cookie-modal-actions button.cancel {
  background: #7e8297;
  color: #fff;
}
.cookie-modal-actions button.cancel:hover{
  background: #232b3f;
}
.cookie-modal-actions button.save {
  background: #E93A5A;
}
.cookie-modal-actions button.save:hover {
  background: #1A2440;
}
@media (max-width: 600px) {
  .cookie-modal-dialog {
    padding: 20px 6px 16px 12px;
    max-width: 96vw;
  }
  .cookie-modal-dialog h2 { font-size: 1.06rem; }
}

/* ===========================================================================
   INDUSTRIAL MODERN MICRO-ELEMENTS (SHADOWS, BORDERS, METAL ACCENTS)
=========================================================================== */
.card, .course-list > div, .testimonial-card, table {
  box-shadow: 0 6px 26px rgba(10,18,44,0.07), 0 1px 2px 0 #232b3f;
  border-radius: 12px;
  border: 1.5px solid #363b4b;
}
.card:before, .course-list > div:before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(90deg, #B7BABF 0%, #E93A5A 80%, #B7BABF 100%);
  opacity: 0.18;
  pointer-events: none;
}

/* --- Metallic Text Accents for Industrial Feel --- */
.metall-text {
  color: #B7BABF;
  letter-spacing: 2.2px;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 600;
}

/* ===========================================================================
   MISCELLANEOUS
=========================================================================== */
.map-embed, iframe.map-embed {
  min-height: 180px;
  background: #232b3f;
  border-radius: 10px;
  margin-top: 20px;
  border: 2px dashed #7e8297;
}

ul, li {
  margin-bottom: 8px;
}
ul:last-child, li:last-child { margin-bottom: 0; }

/* ------------------------------------
   PRINT STYLES
------------------------------------- */
@media print {
  *, *:before, *:after { box-shadow: none !important; background: none !important; color: #1A2440 !important; }
  .footer-brand, .main-nav, .mobile-nav, .cta-primary, .cta-secondary, .cookie-banner, .cookie-modal { display: none !important; }
  header, footer { background: none !important; }
}
