/* ============================================================
   AUTOESCUELA GONZALO CANO v2 - DESIGN SYSTEM
   Con tienda online y carrito. Iconos grandes. Imagenes reales.
   ============================================================ */

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

/* ===== DESIGN TOKENS ===== */
:root {
   --color-primary: #1B4D8F;
   --color-primary-dark: #0F3460;
   --color-primary-light: #2A6FC9;
   --color-secondary: #E8A317;
   --color-secondary-dark: #C78B0E;
   --color-secondary-light: #F5C44E;
   --color-accent: #D63031;
   --color-white: #FFFFFF;
   --color-off-white: #F8F9FC;
   --color-gray-100: #F1F3F7;
   --color-gray-200: #E2E6EE;
   --color-gray-300: #C8CEDB;
   --color-gray-400: #9AA2B5;
   --color-gray-500: #6B7589;
   --color-gray-600: #4A5267;
   --color-gray-700: #2D3344;
   --color-dark: #1A1E2E;
   --font-display: 'DM Serif Display', Georgia, serif;
   --font-body: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
   --text-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.8rem);
   --text-sm: clamp(0.8rem, 0.75rem + 0.3vw, 0.9rem);
   --text-base: clamp(0.95rem, 0.88rem + 0.35vw, 1.05rem);
   --text-lg: clamp(1.1rem, 1rem + 0.5vw, 1.25rem);
   --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
   --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
   --text-3xl: clamp(1.9rem, 1.5rem + 2vw, 2.75rem);
   --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3.5rem);
   --text-5xl: clamp(2.75rem, 2rem + 3.5vw, 4.5rem);
   --space-xs: 0.25rem;
   --space-sm: 0.5rem;
   --space-md: 1rem;
   --space-lg: 1.5rem;
   --space-xl: 2rem;
   --space-2xl: 3rem;
   --space-3xl: 4rem;
   --space-4xl: 6rem;
   --space-5xl: 8rem;
   --container-max: 1200px;
   --container-narrow: 800px;
   --header-height: 80px;
   --radius-sm: 6px;
   --radius-md: 10px;
   --radius-lg: 16px;
   --radius-xl: 24px;
   --radius-full: 9999px;
   --shadow-sm: 0 1px 3px rgba(27, 77, 143, 0.06), 0 1px 2px rgba(27, 77, 143, 0.04);
   --shadow-md: 0 4px 12px rgba(27, 77, 143, 0.08), 0 2px 4px rgba(27, 77, 143, 0.04);
   --shadow-lg: 0 12px 32px rgba(27, 77, 143, 0.12), 0 4px 8px rgba(27, 77, 143, 0.06);
   --shadow-xl: 0 20px 48px rgba(27, 77, 143, 0.16), 0 8px 16px rgba(27, 77, 143, 0.08);
   --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
   --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
   --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

html {
   scroll-behavior: smooth;
   -webkit-text-size-adjust: 100%;
}

body {
   font-family: var(--font-body);
   font-size: var(--text-base);
   line-height: 1.7;
   color: var(--color-gray-700);
   background: var(--color-white);
   -webkit-font-smoothing: antialiased;
   overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
   font-family: var(--font-display);
   line-height: 1.2;
   color: var(--color-dark);
   font-weight: 400;
}

h1 {
   font-size: var(--text-5xl);
}

h2 {
   font-size: var(--text-3xl);
}

h3 {
   font-size: var(--text-2xl);
}

h4 {
   font-size: var(--text-xl);
}

p {
   margin-bottom: var(--space-md);
}

p:last-child {
   margin-bottom: 0;
}

a {
   color: var(--color-primary);
   text-decoration: none;
   transition: color var(--transition-fast);
}

a:hover {
   color: var(--color-primary-light);
}

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

ul,
ol {
   list-style: none;
}

.container {
   width: 100%;
   max-width: var(--container-max);
   margin: 0 auto;
   padding: 0 var(--space-lg);
}

.container--narrow {
   max-width: var(--container-narrow);
}

.section {
   padding: var(--space-4xl) 0;
}

.section--sm {
   padding: var(--space-2xl) 0;
}

.text-center {
   text-align: center;
}

.sr-only {
   position: absolute;
   width: 1px;
   height: 1px;
   padding: 0;
   margin: -1px;
   overflow: hidden;
   clip: rect(0, 0, 0, 0);
   white-space: nowrap;
   border: 0;
}

/* ===== SECTION LABEL ===== */
.section-label {
   display: inline-flex;
   align-items: center;
   gap: var(--space-sm);
   font-family: var(--font-body);
   font-size: var(--text-xs);
   font-weight: 700;
   letter-spacing: 0.15em;
   text-transform: uppercase;
   color: var(--color-primary);
   margin-bottom: var(--space-md);
}

.section-label::before {
   content: '';
   display: block;
   width: 28px;
   height: 2px;
   background: var(--color-secondary);
}

.section-heading {
   margin-bottom: var(--space-lg);
}

.section-desc {
   font-size: var(--text-lg);
   color: var(--color-gray-500);
   max-width: 600px;
}

.section-desc--center {
   margin-left: auto;
   margin-right: auto;
}

/* ===== BUTTONS ===== */
.btn {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   gap: var(--space-sm);
   padding: 0.85em 2em;
   font-family: var(--font-body);
   font-size: var(--text-sm);
   font-weight: 700;
   letter-spacing: 0.03em;
   text-transform: uppercase;
   border: 2px solid transparent;
   border-radius: var(--radius-full);
   cursor: pointer;
   transition: all var(--transition-base);
   text-decoration: none;
   white-space: nowrap;
   line-height: 1.2;
}

.btn:focus-visible {
   outline: 3px solid var(--color-primary-light);
   outline-offset: 2px;
}

.btn--primary {
   background: var(--color-secondary);
   color: var(--color-dark);
   border-color: var(--color-secondary);
}

.btn--primary:hover {
   background: var(--color-secondary-dark);
   border-color: var(--color-secondary-dark);
   color: var(--color-dark);
   transform: translateY(-2px);
   box-shadow: var(--shadow-lg);
}

.btn--secondary {
   background: var(--color-primary);
   color: var(--color-white);
   border-color: var(--color-primary);
}

.btn--secondary:hover {
   background: var(--color-primary-dark);
   border-color: var(--color-primary-dark);
   color: var(--color-white);
   transform: translateY(-2px);
   box-shadow: var(--shadow-lg);
}

.btn--outline {
   background: transparent;
   color: var(--color-primary);
   border-color: var(--color-primary);
}

.btn--outline:hover {
   background: var(--color-primary);
   color: var(--color-white);
   transform: translateY(-2px);
}

.btn--ghost {
   background: transparent;
   color: var(--color-white);
   border-color: rgba(255, 255, 255, 0.4);
}

.btn--ghost:hover {
   background: var(--color-white);
   color: var(--color-primary);
   transform: translateY(-2px);
}

.btn--sm {
   padding: 0.6em 1.4em;
   font-size: var(--text-xs);
}

.btn--lg {
   padding: 1.1em 2.6em;
   font-size: var(--text-base);
}

.btn svg {
   width: 1.1em;
   height: 1.1em;
   flex-shrink: 0;
}

/* ===== CARD ===== */
.card {
   background: var(--color-white);
   border-radius: var(--radius-lg);
   padding: var(--space-2xl);
   box-shadow: var(--shadow-sm);
   border: 1px solid var(--color-gray-200);
   transition: all var(--transition-base);
}

.card:hover {
   box-shadow: var(--shadow-lg);
   transform: translateY(-4px);
   border-color: transparent;
}

/* ===== BADGE ===== */
.badge {
   display: inline-flex;
   align-items: center;
   padding: 0.3em 0.8em;
   font-size: var(--text-xs);
   font-weight: 700;
   border-radius: var(--radius-full);
   text-transform: uppercase;
   letter-spacing: 0.05em;
}

.badge--primary {
   background: rgba(27, 77, 143, 0.1);
   color: var(--color-primary);
}

.badge--secondary {
   background: rgba(232, 163, 23, 0.15);
   color: var(--color-secondary-dark);
}

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
   background: var(--color-dark);
   color: var(--color-gray-300);
   font-size: var(--text-xs);
   padding: var(--space-sm) 0;
}

.top-bar__inner {
   display: flex;
   justify-content: space-between;
   align-items: center;
   flex-wrap: wrap;
   gap: var(--space-sm);
}

.top-bar__contact {
   display: flex;
   align-items: center;
   gap: var(--space-lg);
   flex-wrap: wrap;
}

.top-bar__item {
   display: flex;
   align-items: center;
   gap: var(--space-xs);
   color: var(--color-gray-300);
   font-weight: 500;
}

.top-bar__item svg {
   width: 14px;
   height: 14px;
   color: var(--color-secondary);
   flex-shrink: 0;
}

.top-bar__item a {
   color: var(--color-gray-300);
   transition: color var(--transition-fast);
}

.top-bar__item a:hover {
   color: var(--color-white);
}

.top-bar__social {
   display: flex;
   gap: var(--space-sm);
}

.top-bar__social a {
   display: flex;
   align-items: center;
   justify-content: center;
   width: 28px;
   height: 28px;
   border-radius: var(--radius-full);
   background: rgba(255, 255, 255, 0.08);
   color: var(--color-gray-400);
   transition: all var(--transition-fast);
}

.top-bar__social a:hover {
   background: var(--color-secondary);
   color: var(--color-dark);
}

.top-bar__social svg {
   width: 14px;
   height: 14px;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
   background: var(--color-white);
   position: sticky;
   top: 0;
   z-index: 1000;
   border-bottom: 1px solid var(--color-gray-200);
   transition: box-shadow var(--transition-base);
}

.header--scrolled {
   box-shadow: var(--shadow-md);
}

.header__inner {
   display: flex;
   align-items: center;
   justify-content: space-between;
   height: var(--header-height);
   gap: var(--space-xl);
}

.header__logo {
   display: flex;
   align-items: center;
   gap: var(--space-md);
   text-decoration: none;
   flex-shrink: 0;
}

.header__logo-img {
   height: 50px;
   width: auto;
}

.header__logo-text {
   font-family: var(--font-display);
   font-size: var(--text-lg);
   color: var(--color-dark);
   line-height: 1.1;
}

.header__logo-text span {
   display: block;
   font-family: var(--font-body);
   font-size: var(--text-xs);
   color: var(--color-gray-400);
   font-weight: 500;
   letter-spacing: 0.1em;
   text-transform: uppercase;
}

.nav {
   display: flex;
   align-items: center;
}

.nav__list {
   display: flex;
   align-items: center;
}

.nav__item {
   position: relative;
}

.nav__link {
   display: flex;
   align-items: center;
   gap: 4px;
   padding: var(--space-sm) var(--space-md);
   font-size: var(--text-sm);
   font-weight: 600;
   color: var(--color-gray-600);
   transition: color var(--transition-fast);
   white-space: nowrap;
}

.nav__link:hover,
.nav__link--active {
   color: var(--color-primary);
}

.nav__link svg {
   width: 12px;
   height: 12px;
   transition: transform var(--transition-fast);
}

.nav__dropdown {
   position: absolute;
   top: 100%;
   left: 0;
   min-width: 240px;
   background: var(--color-white);
   border-radius: var(--radius-md);
   box-shadow: var(--shadow-xl);
   border: 1px solid var(--color-gray-200);
   padding: var(--space-sm) 0;
   opacity: 0;
   visibility: hidden;
   transform: translateY(8px);
   transition: all var(--transition-base);
   z-index: 100;
}

.nav__item:hover .nav__dropdown {
   opacity: 1;
   visibility: visible;
   transform: translateY(0);
}

.nav__item:hover .nav__link svg {
   transform: rotate(180deg);
}

.nav__dropdown-link {
   display: block;
   padding: var(--space-sm) var(--space-lg);
   font-size: var(--text-sm);
   font-weight: 500;
   color: var(--color-gray-600);
   transition: all var(--transition-fast);
}

.nav__dropdown-link:hover,
.nav__dropdown-link--active {
   color: var(--color-primary);
   background: var(--color-off-white);
   padding-left: calc(var(--space-lg) + 4px);
}

.nav__dropdown-link--active {
   font-weight: 700;
}

.header__cta {
   display: flex;
   align-items: center;
   gap: var(--space-md);
   flex-shrink: 0;
}

.nav-toggle {
   display: none;
   flex-direction: column;
   gap: 5px;
   background: none;
   border: none;
   cursor: pointer;
   padding: var(--space-sm);
   z-index: 1001;
}

.nav-toggle__bar {
   display: block;
   width: 24px;
   height: 2px;
   background: var(--color-dark);
   border-radius: 2px;
   transition: all var(--transition-base);
}

.nav-toggle.active .nav-toggle__bar:nth-child(1) {
   transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .nav-toggle__bar:nth-child(2) {
   opacity: 0;
}

.nav-toggle.active .nav-toggle__bar:nth-child(3) {
   transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
   position: relative;
   background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-primary-light) 100%);
   color: var(--color-white);
   overflow: hidden;
   min-height: 85vh;
   display: flex;
   align-items: center;
}

.hero::before {
   content: '';
   position: absolute;
   inset: 0;
   background: radial-gradient(circle at 20% 80%, rgba(232, 163, 23, 0.15) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
   pointer-events: none;
}

.hero::after {
   content: '';
   position: absolute;
   bottom: 0;
   left: 0;
   right: 0;
   height: 120px;
   background: linear-gradient(to top, var(--color-white) 0%, transparent 100%);
   pointer-events: none;
}

.hero__geo {
   position: absolute;
   border: 2px solid rgba(255, 255, 255, 0.08);
   border-radius: var(--radius-lg);
   pointer-events: none;
}

.hero__geo--1 {
   width: 300px;
   height: 300px;
   top: -80px;
   right: -60px;
   transform: rotate(15deg);
}

.hero__geo--2 {
   width: 200px;
   height: 200px;
   bottom: 60px;
   left: -40px;
   transform: rotate(-20deg);
   border-radius: var(--radius-full);
}

.hero__inner {
   position: relative;
   z-index: 1;
   display: grid;
   grid-template-columns: 1.1fr 0.9fr;
   gap: var(--space-3xl);
   align-items: center;
   padding: var(--space-4xl) 0;
}

.hero__content {
   max-width: 600px;
}

.hero__badge {
   display: inline-flex;
   align-items: center;
   gap: var(--space-sm);
   padding: 0.4em 1em;
   background: rgba(255, 255, 255, 0.12);
   border: 1px solid rgba(255, 255, 255, 0.2);
   border-radius: var(--radius-full);
   font-size: var(--text-xs);
   font-weight: 700;
   letter-spacing: 0.1em;
   text-transform: uppercase;
   margin-bottom: var(--space-xl);
   color: var(--color-secondary-light);
   backdrop-filter: blur(8px);
}

.hero__badge-dot {
   width: 6px;
   height: 6px;
   border-radius: 50%;
   background: var(--color-secondary);
   animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

   0%,
   100% {
      opacity: 1;
      transform: scale(1);
   }

   50% {
      opacity: 0.5;
      transform: scale(1.5);
   }
}

.hero__title {
   font-size: var(--text-5xl);
   color: var(--color-white);
   margin-bottom: var(--space-lg);
   line-height: 1.08;
}

.hero__title em {
   font-style: normal;
   color: var(--color-secondary-light);
}

.hero__subtitle {
   font-size: var(--text-lg);
   color: rgba(255, 255, 255, 0.75);
   margin-bottom: var(--space-2xl);
   line-height: 1.7;
   max-width: 500px;
}

.hero__actions {
   display: flex;
   gap: var(--space-md);
   flex-wrap: wrap;
   margin-bottom: var(--space-3xl);
}

.hero__stats {
   display: flex;
   gap: var(--space-2xl);
}

.hero__stat-number {
   font-family: var(--font-display);
   font-size: var(--text-3xl);
   color: var(--color-white);
   line-height: 1;
   display: block;
}

.hero__stat-label {
   font-size: var(--text-xs);
   color: rgba(255, 255, 255, 0.55);
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: 0.08em;
   margin-top: 4px;
   display: block;
}

.hero__visual {
   position: relative;
   display: flex;
   justify-content: center;
}

.hero__card {
   background: rgba(255, 255, 255, 0.07);
   backdrop-filter: blur(16px);
   border: 1px solid rgba(255, 255, 255, 0.15);
   border-radius: var(--radius-xl);
   padding: var(--space-2xl);
   max-width: 400px;
   width: 100%;
}

.hero__card-title {
   font-family: var(--font-display);
   font-size: var(--text-xl);
   color: var(--color-white);
   margin-bottom: var(--space-lg);
   text-align: center;
}

.hero__card-permisos {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: var(--space-md);
}

.hero__permiso {
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: var(--space-sm);
   padding: var(--space-lg) var(--space-md);
   background: rgba(255, 255, 255, 0.08);
   border: 1px solid rgba(255, 255, 255, 0.12);
   border-radius: var(--radius-md);
   color: var(--color-white);
   text-decoration: none;
   transition: all var(--transition-base);
   text-align: center;
}

.hero__permiso:hover {
   background: rgba(255, 255, 255, 0.16);
   transform: translateY(-4px);
   color: var(--color-white);
   border-color: var(--color-secondary-light);
   box-shadow: var(--shadow-xl), 0 0 20px rgba(232, 163, 23, 0.2);
}

.hero__permiso img {
   transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter var(--transition-base);
}

.hero__permiso:hover img {
   transform: translateY(-8px) scale(1.15);
   filter: drop-shadow(0 15px 20px rgba(0, 0, 0, 0.25));
}

/* BIGGER ICONS in hero */
.hero__permiso-icon {
   font-size: 2.8rem;
   line-height: 1;
}

.hero__permiso-name {
   font-family: var(--font-display);
   font-size: var(--text-lg);
}

.hero__permiso-desc {
   font-size: var(--text-xs);
   color: rgba(255, 255, 255, 0.6);
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
   padding: var(--space-2xl) 0;
   background: var(--color-off-white);
   border-bottom: 1px solid var(--color-gray-200);
}

.trust-bar__inner {
   display: flex;
   align-items: center;
   justify-content: center;
   gap: var(--space-3xl);
   flex-wrap: wrap;
}

.trust-bar__item {
   display: flex;
   align-items: center;
   gap: var(--space-sm);
   color: var(--color-gray-500);
   font-size: var(--text-sm);
   font-weight: 600;
}

/* BIGGER trust icons */
.trust-bar__item svg {
   width: 32px;
   height: 32px;
   color: var(--color-primary);
}

.trust-bar__img {
   height: 48px;
   width: auto;
   border-radius: var(--radius-sm);
}

/* ============================================================
   SERVICIOS GRID - BIGGER ICONS
   ============================================================ */
.servicios__grid {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
   gap: var(--space-xl);
   margin-top: var(--space-2xl);
}

.servicio-card {
   background: var(--color-white);
   border-radius: var(--radius-lg);
   padding: var(--space-2xl);
   border: 1px solid var(--color-gray-200);
   transition: all var(--transition-base);
   text-decoration: none;
   color: inherit;
   display: flex;
   flex-direction: column;
   position: relative;
   overflow: hidden;
}

.servicio-card::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   height: 3px;
   background: var(--color-primary);
   transform: scaleX(0);
   transform-origin: left;
   transition: transform var(--transition-base);
}

.servicio-card:hover::before {
   transform: scaleX(1);
}

.servicio-card:hover {
   box-shadow: var(--shadow-lg);
   transform: translateY(-4px);
   border-color: transparent;
}

/* BIGGER service card icons */
.servicio-card__icon {
   width: 72px;
   height: 72px;
   display: flex;
   align-items: center;
   justify-content: center;
   border-radius: var(--radius-lg);
   background: linear-gradient(135deg, rgba(27, 77, 143, 0.08), rgba(27, 77, 143, 0.03));
   color: var(--color-primary);
   font-size: 2.2rem;
   margin-bottom: var(--space-lg);
   transition: all var(--transition-base);
}

.servicio-card:hover .servicio-card__icon {
   background: var(--color-primary);
   color: var(--color-white);
   transform: scale(1.05);
}

.servicio-card__badge {
   position: absolute;
   top: var(--space-lg);
   right: var(--space-lg);
}

.servicio-card__title {
   font-size: var(--text-xl);
   margin-bottom: var(--space-sm);
}

.servicio-card__desc {
   color: var(--color-gray-500);
   font-size: var(--text-sm);
   flex: 1;
   margin-bottom: var(--space-lg);
}

.servicio-card__link {
   display: inline-flex;
   align-items: center;
   gap: 6px;
   font-size: var(--text-sm);
   font-weight: 700;
   color: var(--color-primary);
   transition: gap var(--transition-fast);
}

.servicio-card:hover .servicio-card__link {
   gap: 10px;
   color: var(--color-primary-light);
}

.servicio-card__link svg {
   width: 16px;
   height: 16px;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
   background: var(--color-off-white);
}

.about__grid {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: var(--space-3xl);
   align-items: center;
}

.about__image-wrapper {
   position: relative;
}

.about__image {
   border-radius: var(--radius-xl);
   width: 100%;
   aspect-ratio: 4/3;
   object-fit: cover;
   background: var(--color-gray-200);
}

.about__image-accent {
   position: absolute;
   bottom: -16px;
   right: -16px;
   width: 120px;
   padding: var(--space-lg);
   background: var(--color-secondary);
   border-radius: var(--radius-lg);
   text-align: center;
   color: var(--color-dark);
   font-weight: 800;
   box-shadow: var(--shadow-lg);
}

.about__image-accent-number {
   font-family: var(--font-display);
   font-size: var(--text-3xl);
   line-height: 1;
}

.about__image-accent-text {
   font-size: var(--text-xs);
   text-transform: uppercase;
   letter-spacing: 0.05em;
   margin-top: 2px;
}

.about__features {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: var(--space-md);
   margin-top: var(--space-xl);
}

.about__feature {
   display: flex;
   align-items: flex-start;
   gap: var(--space-sm);
   padding: var(--space-md);
   background: var(--color-white);
   border-radius: var(--radius-md);
   border: 1px solid var(--color-gray-200);
}

/* BIGGER feature icons */
.about__feature-icon {
   width: 40px;
   height: 40px;
   display: flex;
   align-items: center;
   justify-content: center;
   border-radius: var(--radius-sm);
   background: rgba(27, 77, 143, 0.08);
   color: var(--color-primary);
   flex-shrink: 0;
}

.about__feature-icon svg {
   width: 20px;
   height: 20px;
}

.about__feature-text {
   font-size: var(--text-sm);
   font-weight: 600;
   color: var(--color-gray-700);
}

/* ============================================================
   IMAGE GALLERY (3 images from original)
   ============================================================ */
.gallery__grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: var(--space-xl);
   margin-top: var(--space-2xl);
}

.gallery__item {
   border-radius: var(--radius-lg);
   overflow: hidden;
   position: relative;
   aspect-ratio: 4/3;
}

.gallery__item img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   transition: transform var(--transition-slow);
}

.gallery__item:hover img {
   transform: scale(1.05);
}

.gallery__item-overlay {
   position: absolute;
   bottom: 0;
   left: 0;
   right: 0;
   padding: var(--space-lg);
   background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
   color: white;
}

.gallery__item-title {
   font-family: var(--font-display);
   font-size: var(--text-lg);
}

/* ============================================================
   PROCESO
   ============================================================ */
.proceso__steps {
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: var(--space-xl);
   margin-top: var(--space-2xl);
   counter-reset: step;
}

.proceso__step {
   text-align: center;
   counter-increment: step;
   position: relative;
   padding-top: var(--space-2xl);
}

.proceso__step::before {
   content: counter(step, decimal-leading-zero);
   font-family: var(--font-display);
   font-size: var(--text-4xl);
   color: rgba(27, 77, 143, 0.08);
   position: absolute;
   top: 0;
   left: 50%;
   transform: translateX(-50%);
   line-height: 1;
}

/* BIGGER step icons */
.proceso__step-icon {
   width: 76px;
   height: 76px;
   display: flex;
   align-items: center;
   justify-content: center;
   margin: 0 auto var(--space-lg);
   border-radius: var(--radius-full);
   background: var(--color-primary);
   color: var(--color-white);
   font-size: 1.8rem;
   position: relative;
   z-index: 1;
}

.proceso__step-icon svg {
   width: 32px;
   height: 32px;
}

.proceso__step-title {
   font-size: var(--text-lg);
   margin-bottom: var(--space-sm);
}

.proceso__step-text {
   font-size: var(--text-sm);
   color: var(--color-gray-500);
   line-height: 1.6;
}

.proceso__step:not(:last-child)::after {
   content: '';
   position: absolute;
   top: calc(var(--space-2xl) + 38px);
   left: calc(50% + 46px);
   width: calc(100% - 92px);
   height: 2px;
   background: var(--color-gray-200);
   z-index: 0;
}

/* ============================================================
   CURSOS - BIGGER ICONS
   ============================================================ */
.cursos__grid {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
   gap: var(--space-xl);
   margin-top: var(--space-2xl);
}

.curso-card {
   background: var(--color-white);
   border-radius: var(--radius-lg);
   overflow: hidden;
   border: 1px solid var(--color-gray-200);
   transition: all var(--transition-base);
   text-decoration: none;
   color: inherit;
   display: block;
}

.curso-card:hover {
   box-shadow: var(--shadow-lg);
   transform: translateY(-4px);
   border-color: transparent;
}

.curso-card__header {
   padding: var(--space-xl) var(--space-xl) var(--space-lg);
   background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
   color: var(--color-white);
}

.curso-card__icon {
   font-size: 2.8rem;
   margin-bottom: var(--space-sm);
}

.curso-card__title {
   font-family: var(--font-display);
   font-size: var(--text-xl);
   color: var(--color-white);
}

.curso-card__body {
   padding: var(--space-xl);
}

.curso-card__desc {
   color: var(--color-gray-500);
   font-size: var(--text-sm);
   margin-bottom: var(--space-lg);
}

.curso-card__meta {
   display: flex;
   align-items: center;
   gap: var(--space-md);
   flex-wrap: wrap;
}

.curso-card__tag {
   display: inline-flex;
   align-items: center;
   gap: 4px;
   font-size: var(--text-xs);
   font-weight: 600;
   color: var(--color-gray-500);
}

.curso-card__tag svg {
   width: 16px;
   height: 16px;
   color: var(--color-primary);
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
   background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
   color: var(--color-white);
   border-radius: var(--radius-xl);
   padding: var(--space-3xl);
   text-align: center;
   position: relative;
   overflow: hidden;
}

.cta-banner::before {
   content: '';
   position: absolute;
   width: 400px;
   height: 400px;
   border: 2px solid rgba(255, 255, 255, 0.06);
   border-radius: 50%;
   top: -200px;
   right: -100px;
   pointer-events: none;
}

.cta-banner__title {
   font-size: var(--text-3xl);
   color: var(--color-white);
   margin-bottom: var(--space-md);
   position: relative;
   z-index: 1;
}

.cta-banner__text {
   font-size: var(--text-lg);
   color: rgba(255, 255, 255, 0.75);
   margin-bottom: var(--space-xl);
   max-width: 600px;
   margin-left: auto;
   margin-right: auto;
   position: relative;
   z-index: 1;
}

.cta-banner__actions {
   display: flex;
   gap: var(--space-md);
   justify-content: center;
   flex-wrap: wrap;
   position: relative;
   z-index: 1;
}

/* ============================================================
   CONTACTO
   ============================================================ */
.contacto__grid {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: var(--space-3xl);
   margin-top: var(--space-2xl);
}

.contacto__info-cards {
   display: flex;
   flex-direction: column;
   gap: var(--space-lg);
}

.contacto__card {
   display: flex;
   align-items: flex-start;
   gap: var(--space-lg);
   padding: var(--space-xl);
   background: var(--color-white);
   border-radius: var(--radius-lg);
   border: 1px solid var(--color-gray-200);
   transition: all var(--transition-base);
}

.contacto__card:hover {
   box-shadow: var(--shadow-md);
   border-color: var(--color-primary);
}

/* BIGGER contact icons */
.contacto__card-icon {
   width: 56px;
   height: 56px;
   display: flex;
   align-items: center;
   justify-content: center;
   border-radius: var(--radius-md);
   background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
   color: var(--color-white);
   flex-shrink: 0;
}

.contacto__card-icon svg {
   width: 26px;
   height: 26px;
}

.contacto__card-label {
   font-size: var(--text-xs);
   font-weight: 700;
   text-transform: uppercase;
   letter-spacing: 0.1em;
   color: var(--color-gray-400);
   margin-bottom: 4px;
}

.contacto__card-value {
   font-size: var(--text-base);
   font-weight: 600;
   color: var(--color-dark);
}

.contacto__card-value a {
   color: var(--color-dark);
}

.contacto__card-value a:hover {
   color: var(--color-primary);
}

.contacto__map {
   border-radius: var(--radius-xl);
   overflow: hidden;
   background: var(--color-gray-200);
   min-height: 400px;
   border: 1px solid var(--color-gray-200);
}

.contacto__map iframe {
   width: 100%;
   height: 100%;
   min-height: 400px;
   border: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
   background: var(--color-dark);
   color: var(--color-gray-400);
   padding-top: var(--space-4xl);
}

.footer__grid {
   display: grid;
   grid-template-columns: 1.5fr 1fr 1fr 1fr;
   gap: var(--space-2xl);
}

.footer__brand {
   max-width: 320px;
}

.footer__logo {
   display: flex;
   align-items: center;
   gap: var(--space-sm);
   margin-bottom: var(--space-lg);
   text-decoration: none;
}

.footer__logo-img {
   height: 40px;
   filter: brightness(0) invert(1);
}

.footer__logo-text {
   font-family: var(--font-display);
   font-size: var(--text-lg);
   color: var(--color-white);
}

.footer__desc {
   font-size: var(--text-sm);
   line-height: 1.7;
   margin-bottom: var(--space-xl);
}

.footer__social {
   display: flex;
   gap: var(--space-sm);
}

.footer__social a {
   display: flex;
   align-items: center;
   justify-content: center;
   width: 36px;
   height: 36px;
   border-radius: var(--radius-full);
   background: rgba(255, 255, 255, 0.06);
   color: var(--color-gray-400);
   transition: all var(--transition-fast);
}

.footer__social a:hover {
   background: var(--color-secondary);
   color: var(--color-dark);
   transform: translateY(-2px);
}

.footer__social svg {
   width: 16px;
   height: 16px;
}

.footer__heading {
   font-family: var(--font-body);
   font-size: var(--text-sm);
   font-weight: 700;
   color: var(--color-white);
   text-transform: uppercase;
   letter-spacing: 0.1em;
   margin-bottom: var(--space-xl);
}

.footer__links {
   display: flex;
   flex-direction: column;
   gap: var(--space-sm);
}

.footer__link {
   font-size: var(--text-sm);
   color: var(--color-gray-400);
   transition: all var(--transition-fast);
}

.footer__link:hover {
   color: var(--color-white);
   padding-left: 4px;
}

.footer__bottom {
   margin-top: var(--space-3xl);
   padding: var(--space-xl) 0;
   border-top: 1px solid rgba(255, 255, 255, 0.08);
   display: flex;
   justify-content: space-between;
   align-items: center;
   flex-wrap: wrap;
   gap: var(--space-md);
   font-size: var(--text-xs);
}

.footer__legal {
   display: flex;
   gap: var(--space-lg);
   flex-wrap: wrap;
}

.footer__legal a {
   color: var(--color-gray-500);
   transition: color var(--transition-fast);
}

.footer__legal a:hover {
   color: var(--color-white);
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
   background: var(--color-off-white);
   border-bottom: 1px solid var(--color-gray-200);
   padding: var(--space-md) 0;
}

.breadcrumb__inner {
   display: flex;
   align-items: center;
   gap: var(--space-sm);
   flex-wrap: wrap;
}

.breadcrumb__link {
   font-size: var(--text-sm);
   font-weight: 500;
   color: var(--color-primary);
   transition: color var(--transition-fast);
}

.breadcrumb__link:hover {
   color: var(--color-primary-light);
}

.breadcrumb__sep {
   display: flex;
   align-items: center;
   color: var(--color-gray-300);
}

.breadcrumb__sep svg {
   width: 14px;
   height: 14px;
}

.breadcrumb__current {
   font-size: var(--text-sm);
   color: var(--color-gray-500);
   font-weight: 500;
}

/* ============================================================
   INTERNAL PAGE HERO
   ============================================================ */
.page-hero {
   background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
   color: var(--color-white);
   padding: var(--space-3xl) 0;
   position: relative;
   overflow: hidden;
}

.page-hero::before {
   content: '';
   position: absolute;
   width: 500px;
   height: 500px;
   border: 2px solid rgba(255, 255, 255, 0.04);
   border-radius: 50%;
   bottom: -300px;
   right: -100px;
   pointer-events: none;
}

.page-hero__inner {
   display: flex;
   align-items: center;
   gap: var(--space-2xl);
}

.page-hero__icon {
   font-size: 4rem;
   flex-shrink: 0;
   line-height: 1;
   background: rgba(255, 255, 255, 0.12);
   width: 100px;
   height: 100px;
   display: flex;
   align-items: center;
   justify-content: center;
   border-radius: var(--radius-xl);
   border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-hero__image-icon {
   width: 260px;
   height: 260px;
   object-fit: contain;
   padding: 1.5rem;
   background: linear-gradient(145deg, #ffffff, #f4f7f6);
   border-radius: 24px;
   border: 1px solid rgba(255, 255, 255, 0.9);
   /* Triple shadow para un look premium: 
      1. Aro translúcido alrededor
      2. Sombra principal suave
      3. Sombra interna de iluminación */
   box-shadow:
      0 0 0 8px rgba(255, 255, 255, 0.15),
      0 20px 40px rgba(0, 0, 0, 0.15),
      inset 0 2px 10px rgba(255, 255, 255, 1);
   flex-shrink: 0;
   position: relative;
   z-index: 2;
   transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.page-hero__image-icon:hover {
   transform: translateY(-8px) scale(1.02);
   box-shadow:
      0 0 0 10px rgba(255, 255, 255, 0.25),
      0 30px 50px rgba(0, 0, 0, 0.2),
      inset 0 2px 10px rgba(255, 255, 255, 1);
}

.page-hero__title {
   font-size: var(--text-4xl);
   color: var(--color-white);
   margin-bottom: var(--space-sm);
}

.page-hero__desc {
   font-size: var(--text-lg);
   color: rgba(255, 255, 255, 0.75);
   margin-bottom: 0;
   max-width: 640px;
}

.page-hero__meta {
   display: flex;
   align-items: center;
   gap: var(--space-lg);
   flex-wrap: wrap;
   margin-top: var(--space-md);
}

.page-hero__meta .curso-card__tag {
   color: rgba(255, 255, 255, 0.75);
}

.page-hero__meta .curso-card__tag svg {
   color: var(--color-secondary-light);
}

/* ============================================================
   PAGE LAYOUT (content + sidebar)
   ============================================================ */
.page-layout {
   display: grid;
   grid-template-columns: 1fr 300px;
   gap: var(--space-3xl);
   align-items: start;
}

.page-content {
   min-width: 0;
}

.page-content__img {
   width: 100%;
   border-radius: var(--radius-xl);
   object-fit: cover;
   aspect-ratio: 16/7;
   margin-bottom: var(--space-2xl);
   box-shadow: var(--shadow-md);
}

.page-content__body {
   color: var(--color-gray-600);
   line-height: 1.8;
}

.page-content__body h2 {
   font-size: var(--text-2xl);
   color: var(--color-dark);
   margin-top: var(--space-2xl);
   margin-bottom: var(--space-md);
   padding-bottom: var(--space-sm);
   border-bottom: 2px solid var(--color-gray-200);
}

/* ── Avisos Destacados / Promociones ── */
.course-highlight {
   background: linear-gradient(135deg, rgba(232, 163, 23, 0.1) 0%, rgba(232, 163, 23, 0.05) 100%);
   border-left: 4px solid var(--color-secondary);
   padding: var(--space-lg);
   border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
   margin-bottom: var(--space-xl);
}

.course-highlight h1,
.course-highlight h2,
.course-highlight h3,
.course-highlight h4 {
   margin-top: 0;
   color: var(--color-dark);
}

.course-highlight p:last-child {
   margin-bottom: 0;
}

.page-content__body h2:first-child {
   margin-top: 0;
}

.page-content__body p {
   margin-bottom: var(--space-md);
}

.page-content__body ul {
   list-style: none;
   margin: var(--space-md) 0 var(--space-lg);
}

.page-content__body ul li {
   position: relative;
   padding-left: var(--space-xl);
   margin-bottom: var(--space-sm);
   line-height: 1.7;
}

.page-content__body ul li::before {
   content: '';
   position: absolute;
   left: 0;
   top: 11px;
   width: 7px;
   height: 7px;
   border-radius: 50%;
   background: var(--color-secondary);
}

/* ── Ordered list: pasos numerados modernos ── */
.page-content__body>ol {
   list-style: none;
   margin: var(--space-xl) 0 var(--space-2xl);
   counter-reset: steps;
   display: flex;
   flex-direction: column;
   gap: var(--space-sm);
}

.page-content__body>ol>li {
   counter-increment: steps;
   display: grid;
   grid-template-columns: 2.4rem auto 1fr;
   column-gap: var(--space-md);
   align-items: center;
   background: var(--color-white);
   border: 1px solid var(--color-gray-200);
   border-radius: var(--radius-lg);
   padding: var(--space-lg) var(--space-xl) var(--space-lg) var(--space-md);
   transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.page-content__body>ol>li:hover {
   border-color: rgba(27, 77, 143, 0.25);
   box-shadow: var(--shadow-md);
}

/* Columna 1 – círculo numerado */
.page-content__body>ol>li::before {
   content: counter(steps);
   display: flex;
   align-items: center;
   justify-content: center;
   width: 2.2rem;
   height: 2.2rem;
   border-radius: 50%;
   background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
   color: white;
   font-family: var(--font-body);
   font-size: var(--text-sm);
   font-weight: 800;
   box-shadow: 0 3px 8px rgba(27, 77, 143, 0.3);
   flex-shrink: 0;
   align-self: center;
}

/* Columna 2 – título en negrita */
.page-content__body>ol>li>strong:first-of-type {
   font-size: var(--text-sm);
   font-weight: 700;
   color: var(--color-dark);
   white-space: nowrap;
   align-self: center;
   border-right: 1px solid var(--color-gray-200);
   padding-right: var(--space-md);
}

/* Columna 3 – descripción */
.page-content__body>ol>li>span {
   font-size: var(--text-sm);
   color: var(--color-gray-600);
   line-height: 1.7;
   align-self: center;
}

.page-content__body>ol>li>span a {
   color: var(--color-primary);
   text-decoration: underline;
   text-underline-offset: 3px;
}

/* ── Listas anidadas dentro de los pasos numerados ── */
.page-content__body>ol>li ul {
   grid-column: 3;
   margin: var(--space-sm) 0 0 0;
   padding-left: 0;
}

.page-content__body>ol>li ul li {
   grid-column: span 3;
   display: list-item;
   list-style: none;
   /* usamos el pseudo-elemento de ul li genérico si lo hay, o lo definimos aquí */
   background: transparent;
   border: none;
   box-shadow: none;
   padding: 0 0 0 var(--space-xl);
   margin-bottom: var(--space-xs);
}

.page-content__body>ol>li ul li:hover {
   box-shadow: none;
   border-color: transparent;
}

.page-content__body>ol>li ul li::before {
   content: '';
   position: absolute;
   left: 0;
   top: 11px;
   width: 6px;
   height: 6px;
   border-radius: 50%;
   background: var(--color-primary);
   box-shadow: none;
   color: transparent;
   font-size: 0;
}


/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
   position: sticky;
   top: calc(var(--header-height) + var(--space-xl));
   display: flex;
   flex-direction: column;
   gap: var(--space-lg);
}

.sidebar__block {
   background: var(--color-white);
   border-radius: var(--radius-lg);
   padding: var(--space-xl);
   border: 1px solid var(--color-gray-200);
}

.sidebar__block--cta {
   background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
   border-color: transparent;
   display: flex;
   flex-direction: column;
   gap: var(--space-sm);
}

.sidebar__block--cta .sidebar__cta-text {
   color: rgba(255, 255, 255, 0.85);
   font-size: var(--text-sm);
   font-weight: 600;
   margin-bottom: var(--space-sm);
}

.sidebar__title {
   font-family: var(--font-body);
   font-size: var(--text-sm);
   font-weight: 700;
   color: var(--color-dark);
   text-transform: uppercase;
   letter-spacing: 0.08em;
   margin-bottom: var(--space-lg);
   padding-bottom: var(--space-sm);
   border-bottom: 2px solid var(--color-gray-200);
}

.sidebar__nav {
   display: flex;
   flex-direction: column;
   gap: 2px;
}

.sidebar__link {
   display: flex;
   align-items: center;
   gap: var(--space-sm);
   padding: var(--space-sm) var(--space-md);
   border-radius: var(--radius-md);
   font-size: var(--text-sm);
   font-weight: 500;
   color: var(--color-gray-600);
   transition: all var(--transition-fast);
   text-decoration: none;
}

.sidebar__link:hover {
   background: var(--color-off-white);
   color: var(--color-primary);
}

.sidebar__link--active {
   background: rgba(27, 77, 143, 0.07);
   color: var(--color-primary);
   font-weight: 700;
}

.sidebar__link-icon {
   font-size: 1.2em;
   flex-shrink: 0;
}

/* ── Enlaces útiles card ──────────────────────────────── */
.sidebar__block--links {
   background: linear-gradient(135deg, rgba(27, 77, 143, 0.06) 0%, rgba(27, 77, 143, 0.03) 100%);
   border: 1px solid rgba(27, 77, 143, 0.14);
   border-left: 4px solid var(--color-primary);
}

.sidebar__link--external {
   justify-content: flex-start;
   color: var(--color-gray-700);
}

.sidebar__link--external .sidebar__link-text {
   flex: 1;
}

.sidebar__link--external .sidebar__external-icon {
   width: 12px;
   height: 12px;
   flex-shrink: 0;
   opacity: 0.5;
   transition: opacity var(--transition-fast);
}

.sidebar__link--external:hover {
   background: rgba(27, 77, 143, 0.08);
   color: var(--color-primary);
}

.sidebar__link--external:hover .sidebar__external-icon {
   opacity: 1;
}


/* ============================================================
   WHATSAPP + COOKIE
   ============================================================ */
.whatsapp-float {
   position: fixed;
   bottom: 24px;
   right: 24px;
   z-index: 999;
   width: 60px;
   height: 60px;
   display: flex;
   align-items: center;
   justify-content: center;
   background: #25D366;
   color: white;
   border-radius: var(--radius-full);
   box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
   transition: all var(--transition-base);
   text-decoration: none;
}

.whatsapp-float:hover {
   transform: scale(1.1);
   box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
   color: white;
}

.whatsapp-float svg {
   width: 30px;
   height: 30px;
}

.cookie-banner {
   position: fixed;
   bottom: 0;
   left: 0;
   right: 0;
   background: var(--color-dark);
   color: var(--color-gray-300);
   padding: var(--space-lg) 0;
   z-index: 9999;
   box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
   transform: translateY(100%);
   transition: transform var(--transition-slow);
}

.cookie-banner.active {
   transform: translateY(0);
}

.cookie-banner__inner {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: var(--space-xl);
   flex-wrap: wrap;
}

.cookie-banner__text {
   font-size: var(--text-sm);
   flex: 1;
   min-width: 200px;
}

.cookie-banner__text a {
   color: var(--color-secondary);
   text-decoration: underline;
}

.cookie-banner__actions {
   display: flex;
   gap: var(--space-sm);
   flex-shrink: 0;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.animate-on-scroll {
   opacity: 0;
   transform: translateY(24px);
   transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
   opacity: 1;
   transform: translateY(0);
}

.stagger-children>*:nth-child(1) {
   transition-delay: 0.05s;
}

.stagger-children>*:nth-child(2) {
   transition-delay: 0.1s;
}

.stagger-children>*:nth-child(3) {
   transition-delay: 0.15s;
}

.stagger-children>*:nth-child(4) {
   transition-delay: 0.2s;
}

.stagger-children>*:nth-child(5) {
   transition-delay: 0.25s;
}

.stagger-children>*:nth-child(6) {
   transition-delay: 0.3s;
}

/* ============================================================
   HEADER CART ICON
   ============================================================ */
.header__cart {
   position: relative;
   display: flex;
   align-items: center;
   justify-content: center;
   width: 40px;
   height: 40px;
   border-radius: var(--radius-full);
   color: var(--color-dark);
   transition: all var(--transition-fast);
   text-decoration: none;
}

.header__cart:hover {
   background: var(--color-off-white);
   color: var(--color-primary);
}

.header__cart-badge {
   position: absolute;
   top: 0;
   right: -2px;
   min-width: 18px;
   height: 18px;
   padding: 0 5px;
   border-radius: var(--radius-full);
   background: var(--color-accent);
   color: white;
   font-size: 11px;
   font-weight: 700;
   display: flex;
   align-items: center;
   justify-content: center;
   line-height: 1;
}

/* ============================================================
   ALERT
   ============================================================ */
.alert {
   padding: var(--space-md) var(--space-lg);
   border-radius: var(--radius-md);
   font-size: var(--text-sm);
   font-weight: 500;
}

.alert--success {
   background: rgba(46, 204, 113, 0.1);
   border: 1px solid rgba(46, 204, 113, 0.3);
   color: #1a7a42;
}

/* ============================================================
   TIENDA — PRODUCT GRID
   ============================================================ */
.tienda-grid {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
   gap: var(--space-xl);
}

.tienda-card {
   background: var(--color-white);
   border-radius: var(--radius-lg);
   border: 1px solid var(--color-gray-200);
   overflow: hidden;
   transition: all var(--transition-base);
   position: relative;
   display: flex;
   flex-direction: column;
}

.tienda-card:hover {
   box-shadow: var(--shadow-lg);
   transform: translateY(-4px);
   border-color: var(--color-primary-light);
}

.tienda-card--destacado {
   border-color: var(--color-secondary);
   box-shadow: 0 0 0 2px var(--color-secondary), var(--shadow-md);
}

.tienda-card__badge {
   position: absolute;
   top: var(--space-md);
   right: var(--space-md);
   background: var(--color-secondary);
   color: var(--color-dark);
   font-size: 12px;
   font-weight: 700;
   padding: 4px 12px;
   border-radius: var(--radius-full);
   z-index: 2;
   letter-spacing: 0.02em;
}

.tienda-card__img-wrap {
   aspect-ratio: auto;
   background: var(--color-primary-dark);
   overflow: hidden;
}

.tienda-card__img {
   width: 100%;
   height: auto;
   max-height: 240px;
   object-fit: contain;
   transition: transform var(--transition-slow);
}

.tienda-card:hover .tienda-card__img {
   transform: scale(1.06);
}

.tienda-card__img-placeholder {
   width: 100%;
   height: 100%;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 4rem;
   background: linear-gradient(135deg, var(--color-off-white), rgba(27, 77, 143, 0.05));
}

.tienda-card__body {
   padding: var(--space-lg) var(--space-xl) var(--space-xl);
   display: flex;
   flex-direction: column;
   flex: 1;
}

.tienda-card__name {
   font-size: var(--text-lg);
   font-family: var(--font-display);
   color: var(--color-dark);
   margin-bottom: var(--space-xs);
}

.tienda-card__desc {
   font-size: var(--text-sm);
   color: var(--color-gray-500);
   line-height: 1.6;
   margin-bottom: var(--space-md);
   flex: 1;
   display: flex;
   flex-direction: column;
   gap: 6px;
}

.tienda-card__list-item {
   display: flex;
   align-items: flex-start;
   gap: 8px;
   line-height: 1.4;
}

.tienda-card__list-item svg {
   flex-shrink: 0;
   margin-top: 2px;
}

.tienda-card__desc strong {
   display: block;
   margin-top: var(--space-xs);
   color: var(--color-dark);
   font-size: 0.9em;
}

.tienda-card__list-item--exclude {
   color: var(--color-gray-500);
   font-size: 0.76em;
   /* Make excluded items slightly smaller */
}

/* Make the 'NO INCLUYE' strong tag also slightly smaller if it follows the includes */
.tienda-card__desc strong:nth-of-type(2) {
   font-size: 0.72em;
   color: var(--color-gray-600);
}

.tienda-card__price {
   font-size: var(--text-2xl);
   font-weight: 800;
   color: var(--color-primary);
   margin-bottom: var(--space-md);
   font-family: var(--font-body);
}

.tienda-card__form {
   margin-top: auto;
}

.btn--block {
   display: block;
   width: 100%;
   text-align: center;
}

.btn--cart {
   display: flex;
   align-items: center;
   justify-content: center;
   gap: var(--space-sm);
}

.btn--cart svg {
   width: 1.8em;
   height: 1.8em;
   stroke-width: 2.5;
}

/* Fix button overflow at medium viewport (2-col grid but narrow cards) */
@media (min-width: 481px) and (max-width: 640px) {
   .btn--cart {
      font-size: 0.7rem;
      padding: 0.7em 1em;
      gap: 4px;
   }

   .btn--cart svg {
      width: 1.4em;
      height: 1.4em;
   }
}

/* --- Cart Button Loading State --- */
.btn__icon-loading {
   display: none !important;
}

@keyframes icon-spin {
   to {
      transform: rotate(360deg);
   }
}

.animate-spin {
   animation: icon-spin 1s linear infinite;
}

.btn--loading .btn__icon-default {
   display: none !important;
}

.btn--loading .btn__icon-loading {
   display: flex !important;
}

/* --- AJAX Add-to-Cart Animations --- */

/* Shake animation for the product card */
@keyframes tienda-shake {

   0%,
   100% {
      transform: translateX(0);
   }

   10%,
   50%,
   90% {
      transform: translateX(-4px);
   }

   30%,
   70% {
      transform: translateX(4px);
   }
}

.tienda-card--shake {
   animation: tienda-shake 0.5s ease-in-out;
}

/* Pulse animation for the navbar cart icon */
@keyframes cart-pulse {
   0% {
      transform: scale(1);
   }

   20% {
      transform: scale(1.35);
   }

   40% {
      transform: scale(0.9);
   }

   60% {
      transform: scale(1.2);
   }

   80% {
      transform: scale(0.95);
   }

   100% {
      transform: scale(1);
   }
}

.header__cart--pulse {
   animation: cart-pulse 0.8s ease;
}

.header__cart--pulse svg {
   stroke: var(--color-secondary);
   transition: stroke 0.3s;
}

/* Pop animation for the badge counter */
@keyframes badge-pop {
   0% {
      transform: scale(0.3);
      opacity: 0;
   }

   50% {
      transform: scale(1.4);
      opacity: 1;
   }

   100% {
      transform: scale(1);
      opacity: 1;
   }
}

.header__cart-badge--pop {
   animation: badge-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================================
   CARRITO — CART PAGE
   ============================================================ */
.carrito-table-wrap {
   overflow-x: auto;
   border-radius: var(--radius-lg);
   border: 1px solid var(--color-gray-200);
   margin-bottom: var(--space-xl);
}

.carrito-table {
   width: 100%;
   border-collapse: collapse;
}

.carrito-table thead {
   background: var(--color-off-white);
}

.carrito-table th {
   padding: var(--space-md) var(--space-lg);
   font-size: var(--text-xs);
   font-weight: 700;
   text-transform: uppercase;
   letter-spacing: 0.08em;
   color: var(--color-gray-500);
   text-align: left;
   border-bottom: 2px solid var(--color-gray-200);
}

.carrito-table td {
   padding: var(--space-lg);
   border-bottom: 1px solid var(--color-gray-100);
   vertical-align: middle;
}

.carrito-table__producto {
   display: flex;
   align-items: center;
   gap: var(--space-md);
   min-width: 250px;
}

.carrito-table__img-wrap {
   width: 60px;
   height: 60px;
   border-radius: var(--radius-md);
   overflow: hidden;
   background: var(--color-off-white);
   flex-shrink: 0;
}

.carrito-table__img-wrap img {
   width: 100%;
   height: 100%;
   object-fit: cover;
}

.carrito-table__img-placeholder {
   width: 100%;
   height: 100%;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 1.5rem;
}

.carrito-table__cat {
   display: block;
   font-size: var(--text-xs);
   color: var(--color-gray-400);
   margin-top: 2px;
}

.carrito-qty-form {
   display: flex;
   align-items: center;
   gap: 0;
   justify-content: center;
}

.carrito-qty-btn {
   width: 32px;
   height: 32px;
   border: 1px solid var(--color-gray-200);
   background: var(--color-white);
   color: var(--color-dark);
   font-size: var(--text-base);
   font-weight: 600;
   cursor: pointer;
   display: flex;
   align-items: center;
   justify-content: center;
   transition: all var(--transition-fast);
}

.carrito-qty-btn:first-child {
   border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.carrito-qty-btn:last-child {
   border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.carrito-qty-btn:hover {
   background: var(--color-primary);
   color: white;
   border-color: var(--color-primary);
}

.carrito-qty-val {
   width: 40px;
   height: 32px;
   display: flex;
   align-items: center;
   justify-content: center;
   border-top: 1px solid var(--color-gray-200);
   border-bottom: 1px solid var(--color-gray-200);
   font-weight: 600;
   font-size: var(--text-sm);
   background: var(--color-off-white);
}

.carrito-remove-btn {
   width: 32px;
   height: 32px;
   border: none;
   background: none;
   color: var(--color-gray-400);
   font-size: var(--text-base);
   cursor: pointer;
   border-radius: var(--radius-sm);
   transition: all var(--transition-fast);
   display: flex;
   align-items: center;
   justify-content: center;
}

.carrito-remove-btn:hover {
   background: rgba(214, 48, 49, 0.1);
   color: var(--color-accent);
}

.carrito-footer {
   display: flex;
   justify-content: space-between;
   align-items: center;
   flex-wrap: wrap;
   gap: var(--space-xl);
   padding: var(--space-xl) 0;
}

.carrito-footer__total {
   display: flex;
   align-items: baseline;
   gap: var(--space-md);
   font-size: var(--text-lg);
   color: var(--color-gray-500);
}

.carrito-footer__amount {
   font-size: var(--text-3xl);
   font-weight: 800;
   color: var(--color-dark);
}

.carrito-footer__actions {
   display: flex;
   gap: var(--space-md);
   align-items: center;
}

.carrito-empty {
   text-align: center;
   padding: var(--space-4xl) 0;
}

.carrito-empty__icon {
   font-size: 5rem;
   margin-bottom: var(--space-lg);
   opacity: 0.3;
}

.carrito-empty__title {
   font-size: var(--text-2xl);
   color: var(--color-dark);
   margin-bottom: var(--space-sm);
}

.carrito-empty__text {
   color: var(--color-gray-500);
   margin-bottom: var(--space-xl);
}

.btn--outline {
   background: transparent;
   border: 2px solid var(--color-gray-300);
   color: var(--color-gray-600);
}

.btn--outline:hover {
   border-color: var(--color-primary);
   color: var(--color-primary);
   background: rgba(27, 77, 143, 0.04);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
   .hero__inner {
      grid-template-columns: 1fr;
      text-align: center;
   }

   .hero__subtitle {
      margin-left: auto;
      margin-right: auto;
   }

   .hero__actions {
      justify-content: center;
   }

   .hero__stats {
      justify-content: center;
   }

   .hero__visual {
      display: none;
   }

   .about__grid {
      grid-template-columns: 1fr;
   }

   .about__image-wrapper {
      max-width: 600px;
      margin: 0 auto;
   }

   .proceso__steps {
      grid-template-columns: repeat(2, 1fr);
   }

   .proceso__step:not(:last-child)::after {
      display: none;
   }

   .contacto__grid {
      grid-template-columns: 1fr;
   }

   .footer__grid {
      grid-template-columns: 1fr 1fr;
   }

   .page-content__grid {
      grid-template-columns: 1fr;
   }

   .page-layout {
      grid-template-columns: 1fr;
   }

   .sidebar {
      position: static;
   }

   .gallery__grid {
      grid-template-columns: 1fr 1fr;
   }
}

@media (max-width: 768px) {
   :root {
      --header-height: 64px;
   }

   .top-bar {
      display: none;
   }

   .nav-toggle {
      display: flex;
   }

   .nav {
      position: fixed;
      top: 0;
      right: 0;
      bottom: 0;
      width: 85%;
      max-width: 360px;
      background: var(--color-white);
      padding: calc(var(--header-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
      box-shadow: var(--shadow-xl);
      transform: translateX(100%);
      transition: transform var(--transition-slow);
      overflow-y: auto;
      z-index: 999;
   }

   .nav.open {
      transform: translateX(0);
   }

   .nav__list {
      flex-direction: column;
      align-items: stretch;
   }

   .nav__link {
      padding: var(--space-md) 0;
      font-size: var(--text-base);
      border-bottom: 1px solid var(--color-gray-100);
   }

   .nav__dropdown {
      position: static;
      opacity: 1;
      visibility: visible;
      transform: none;
      box-shadow: none;
      border: none;
      padding: 0 0 0 var(--space-lg);
      display: none;
   }

   .nav__item.dropdown-open .nav__dropdown {
      display: block;
   }

   .nav-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.5);
      z-index: 998;
      opacity: 0;
      visibility: hidden;
      transition: all var(--transition-base);
   }

   .nav-overlay.active {
      opacity: 1;
      visibility: visible;
   }

   .header__cta .btn {
      display: none;
   }

   .hero {
      min-height: auto;
   }

   .hero__stats {
      flex-direction: column;
      gap: var(--space-lg);
      align-items: center;
   }

   .servicios__grid {
      grid-template-columns: 1fr;
   }

   .about__features {
      grid-template-columns: 1fr;
   }

   .tienda-grid {
      grid-template-columns: repeat(2, 1fr);
   }

   .proceso__steps {
      grid-template-columns: 1fr;
   }

   .cursos__grid {
      grid-template-columns: 1fr;
   }

   .cta-banner {
      padding: var(--space-2xl) var(--space-lg);
   }

   .footer__grid {
      grid-template-columns: 1fr;
      gap: var(--space-2xl);
   }

   .footer__bottom {
      flex-direction: column;
      text-align: center;
   }

   .footer__legal {
      justify-content: center;
   }

   .gallery__grid {
      grid-template-columns: 1fr;
   }

   .page-hero__icon {
      width: 70px;
      height: 70px;
      font-size: 2.6rem;
   }
}

@media (max-width: 750px) {
   .page-hero__inner {
      flex-direction: column;
      align-items: center;
      text-align: center;
   }

   .page-content__body>ol>li {
      grid-template-columns: 2.4rem 1fr;
      align-items: start;
   }

   .page-content__body>ol>li>strong:first-of-type {
      border-right: none;
      padding-right: 0;
      white-space: normal;
   }

   .page-content__body>ol>li>span {
      grid-column: 1 / -1;
      margin-top: var(--space-sm);
   }

   .page-content__body>ol>li ul {
      grid-column: 1 / -1;
   }
}

@media (max-width: 480px) {
   .hero__actions {
      flex-direction: column;
      align-items: stretch;
   }

   .hero__actions .btn {
      width: 100%;
   }

   .trust-bar__inner {
      flex-direction: column;
      gap: var(--space-lg);
   }

   .cta-banner__actions {
      flex-direction: column;
      align-items: center;
   }

   .tienda-grid {
      grid-template-columns: 1fr;
   }

   .carrito-footer {
      flex-direction: column;
      align-items: stretch;
      text-align: center;
   }

   .carrito-footer__actions {
      flex-direction: column;
   }

   .carrito-footer__total {
      justify-content: center;
   }
}

/* ============================================================
   IMPRESIÓN — PRINT STYLES
   ============================================================ */
@media print {
   body {
      background: white !important;
      color: black !important;
   }

   /* Hide Layout Elements */
   header,
   .topbar,
   .navbar,
   footer,
   .whatsapp-float,
   .cookie-banner,
   .hero,
   .hide-on-print,
   button:not(.btn-print) {
      display: none !important;
   }

   /* Adjust Container */
   main {
      padding: 0 !important;
      margin: 0 !important;
   }

   .section {
      padding: 0 !important;
   }

   .container {
      max-width: 100% !important;
      padding: 0 !important;
      margin: 0 !important;
   }

   /* Adjust Cards and Shadows */
   div[style*="box-shadow"] {
      box-shadow: none !important;
      border: 1px solid #ccc !important;
      padding: 0 !important;
      margin-top: 0 !important;
   }

   /* Adjust Typography and Spacing */
   h1,
   h2,
   h3,
   h4,
   h5,
   h6 {
      color: black !important;
      page-break-after: avoid;
   }

   table {
      width: 100% !important;
      border-collapse: collapse !important;
   }

   th,
   td {
      border-bottom: 1px solid #ddd !important;
      padding: 8px !important;
   }

   th {
      background-color: #f9f9f9 !important;
      color: black !important;
      -webkit-print-color-adjust: exact;
      print-color-adjust: exact;
   }

   /* Force background colors to print for badges */
   div[style*="background: #fef9c3"] {
      border: 1px solid #ccc !important;
      background: #fef9c3 !important;
      -webkit-print-color-adjust: exact;
      print-color-adjust: exact;
   }
}