/*
 * ══════════════════════════════════════════════════════════════════════════
 *  CANTABRICRAFT — CSS Principal del Child Theme
 *  Fuente de verdad: código React de Horizons (src/components + src/pages)
 *  Versión: 1.0.0
 * ══════════════════════════════════════════════════════════════════════════
 *
 *  ÍNDICE
 *  ──────
 *  1.  Variables CSS (design tokens)
 *  2.  Reset / Base
 *  3.  Tipografía base
 *  4.  Layout — Contenedor
 *  5.  WavePattern SVG (.cc-wave)
 *  6.  Botones (.cc-btn-*)
 *  7.  Secciones (.cc-section)
 *  8.  Header (.cc-header)
 *  9.  Footer (.cc-footer)
 *  10. Hero (.cc-hero)
 *  11. ProductCard (.cc-product-card)
 *  12. Animaciones de entrada (.cc-fade-in)
 */


/* ══════════════════════════════════════════════════════════════════════════
   1. VARIABLES CSS
   Extraídas directamente de los archivos .jsx de Horizons.
   No modificar sin revisar la fuente de verdad.
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  /* ── Sistema 1 — Header, Home, páginas principales ───────────────────── */
  /* Fuente: Header.jsx, Footer.jsx, HomePage.jsx, AboutPage.jsx, etc.     */
  --cc-navy:         #0a3d62;  /* bg-[#0a3d62]  — fondo hero CTA, textos */
  --cc-navy-mid:     #1a5f7a;  /* bg-[#1a5f7a]  — hover botones, footer  */
  --cc-accent:       #2a7fa8;  /* bg-[#2a7fa8]  — iconos, badges, líneas  */
  --cc-light:        #e8f4f8;  /* bg-[#e8f4f8]  — fondo iconos, inputs   */
  --cc-bg:           #F7F7F5;  /* bg-[#F7F7F5]  — fondo páginas princip. */
  --cc-bg-alt:       #F5F1E8;  /* bg-[#F5F1E8]  — fondo tienda/producto  */
  --cc-text:         #537696;  /* text-[#537696]— cuerpo texto secundario */
  --cc-header-bg:    #1f2f44;  /* bg-[#1f2f44]  — header, hero tienda    */

  /* ── Sistema 2 — ProductCard, ProductDetailPage ──────────────────────── */
  /* Fuente: ProductCard.jsx, ProductDetailPage.jsx, ProductGallery.jsx    */
  --cc-dark:         #1f2f44;  /* bg-[#1f2f44]  — tarjetas producto       */
  --cc-dark-hover:   #2c425e;  /* hover:bg-[#2c425e]                      */

  /* ── Tipografías ─────────────────────────────────────────────────────── */
  /* Sistema 1 */
  --font-title:      'Cinzel', Georgia, serif;
  --font-body:       'Montserrat', system-ui, sans-serif;
  /* Sistema 2 */
  --font-product-title: 'Playfair Display', Georgia, serif;
  --font-product-body:  'Lato', system-ui, sans-serif;

  /* ── Sombras ─────────────────────────────────────────────────────────── */
  --shadow-sm:   0 1px 2px rgba(0,0,0,.08);
  --shadow-md:   0 4px 6px -1px rgba(0,0,0,.10), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg:   0 10px 15px -3px rgba(0,0,0,.10), 0 4px 6px -2px rgba(0,0,0,.05);
  --shadow-xl:   0 20px 25px -5px rgba(0,0,0,.10), 0 10px 10px -5px rgba(0,0,0,.04);
  --shadow-2xl:  0 25px 50px -12px rgba(0,0,0,.25);

  /* ── Radios ──────────────────────────────────────────────────────────── */
  --radius-sm:  0.375rem;  /* rounded */
  --radius-md:  0.75rem;   /* rounded-xl */
  --radius-lg:  1rem;      /* rounded-2xl */
  --radius-full: 9999px;   /* rounded-full */

  /* ── Transiciones ────────────────────────────────────────────────────── */
  --transition: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* ── Contenedor ──────────────────────────────────────────────────────── */
  --cc-container-max: 1280px;
  --cc-container-px:  1rem;
}

@media (min-width: 640px)  { :root { --cc-container-px: 1.5rem; } }
@media (min-width: 1024px) { :root { --cc-container-px: 2rem;   } }


/* ══════════════════════════════════════════════════════════════════════════
   2. RESET / BASE
   Mínimo necesario — Astra ya aplica un reset base.
   ══════════════════════════════════════════════════════════════════════════ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}


/* ══════════════════════════════════════════════════════════════════════════
   3. TIPOGRAFÍA BASE
   ══════════════════════════════════════════════════════════════════════════ */

body {
  font-family: var(--font-body);
  color: var(--cc-navy);
  background-color: var(--cc-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Tracking (letter-spacing) equivalentes a Tailwind */
.cc-tracking-wide    { letter-spacing: 0.025em; }
.cc-tracking-wider   { letter-spacing: 0.05em; }
.cc-tracking-widest  { letter-spacing: 0.1em; }


/* ══════════════════════════════════════════════════════════════════════════
   4. LAYOUT — CONTENEDOR
   Equivalente a .container de Horizons (Tailwind: mx-auto px-4 max-w-6xl)
   ══════════════════════════════════════════════════════════════════════════ */

.cc-container {
  width: 100%;
  max-width: var(--cc-container-max);
  margin-inline: auto;
  padding-inline: var(--cc-container-px);
}


/* ══════════════════════════════════════════════════════════════════════════
   5. WAVEPATTERN SVG
   Equivalente directo de WavePattern.jsx.
   Renderizado por cc_wave_pattern() en helpers.php.
   ══════════════════════════════════════════════════════════════════════════ */

.cc-wave {
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 10;
  pointer-events: none;
}

.cc-wave--bottom {
  bottom: 0;
}

.cc-wave--top {
  top: 0;
  transform: rotate(180deg);
}

.cc-wave__svg {
  display: block;
  width: calc(100% + 1.3px);
  height: 50px;
}

@media (min-width: 768px) {
  .cc-wave__svg {
    height: 70px;
  }
}


/* ══════════════════════════════════════════════════════════════════════════
   6. BOTONES
   Extraídos de los distintos .jsx. Ver sección 2 del plan de migración.
   ══════════════════════════════════════════════════════════════════════════ */

/* Base compartida */
.cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-title);
  font-weight: 400;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  padding: 0.75rem 2rem;
  font-size: 1.125rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  line-height: 1;
  text-decoration: none;
}

/* Primario claro — hero "Ver colección" */
.cc-btn--light {
  background-color: var(--cc-light);
  color: var(--cc-navy);
  border-color: transparent;
  box-shadow: var(--shadow-xl);
  font-weight: 700;
}
.cc-btn--light:hover {
  background-color: #ffffff;
  box-shadow: var(--shadow-2xl);
  transform: scale(1.05);
}

/* Primario navy — "Conoce nuestra historia" */
.cc-btn--navy {
  background-color: var(--cc-navy);
  color: #ffffff;
}
.cc-btn--navy:hover {
  background-color: var(--cc-navy-mid);
  box-shadow: var(--shadow-xl);
}

/* Outline navy — "Explorar todo" */
.cc-btn--outline {
  background-color: transparent;
  color: var(--cc-navy-mid);
  border-color: var(--cc-navy-mid);
}
.cc-btn--outline:hover {
  background-color: var(--cc-navy-mid);
  color: #ffffff;
}

/* Producto dark — ficha producto, ProductCard */
.cc-btn--dark {
  background-color: var(--cc-dark);
  color: #ffffff;
  font-family: var(--font-product-title);
  border-radius: 2px;
  letter-spacing: 0.1em;
  box-shadow: var(--shadow-xl);
}
.cc-btn--dark:hover {
  background-color: var(--cc-dark-hover);
  box-shadow: var(--shadow-2xl);
}

/* Blanco — CTA sobre fondo oscuro */
.cc-btn--white {
  background-color: #ffffff;
  color: var(--cc-navy);
  font-weight: 700;
  box-shadow: var(--shadow-xl);
}
.cc-btn--white:hover {
  background-color: var(--cc-light);
  box-shadow: var(--shadow-2xl);
  transform: translateY(-2px);
}

/* Pill/redondo — para CTA de personalización */
.cc-btn--pill {
  border-radius: var(--radius-full);
  padding: 0.75rem 3rem;
}


/* ══════════════════════════════════════════════════════════════════════════
   7. SECCIONES (.cc-section)
   Utilidad base para bloques de página.
   ══════════════════════════════════════════════════════════════════════════ */

.cc-section {
  position: relative;
  overflow: hidden;
}

/* Rellenos estándar de Horizons */
.cc-section--py {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.cc-section--py-lg {
  padding-top: 8rem;
  padding-bottom: 8rem;
}

/* Textura de puntos — usada en header, CTA, footer */
.cc-texture-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(255, 255, 255, 0.5) 1px,
    transparent 0
  );
  background-size: 24px 24px;
  opacity: 0.1;
}

/* Desenfoque decorativo circular */
.cc-blur-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
}

/* Encabezados de sección */
.cc-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background-color: var(--cc-light);
  border-radius: var(--radius-full);
  color: var(--cc-accent);
  margin-bottom: 1.5rem;
}

.cc-section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cc-accent);
  margin-bottom: 0.75rem;
}

.cc-section-title {
  font-family: var(--font-title);
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--cc-navy);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.cc-section-subtitle {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--cc-text);
  line-height: 1.7;
  max-width: 40rem;
  margin-inline: auto;
}

/* Sección Tesoros del Mar */
.cc-section--featured {
  background-color: var(--cc-bg);
  padding-top: 6rem;
  padding-bottom: 8rem;
}

.cc-section--featured .cc-section__head {
  text-align: center;
  margin-bottom: 3rem;
}

/* Sección About preview */
.cc-section--about {
  background-color: #ffffff;
  padding-top: 6rem;
  padding-bottom: 6rem;
}

/* Sección CTA personalización */
.cc-section--cta {
  background-color: var(--cc-navy);
  padding-top: 6rem;
  padding-bottom: 6rem;
  text-align: center;
}

.cc-section--cta__inner {
  position: relative;
  z-index: 1;
  max-width: 48rem; /* max-w-3xl equivalente — Horizons: max-w-3xl mx-auto */
  margin-inline: auto;
}

.cc-section--cta .cc-section-title {
  color: #ffffff;
}

.cc-section--cta .cc-section-subtitle {
  color: var(--cc-light);
  margin-bottom: 0;
}

.cc-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: var(--cc-accent);
  margin-bottom: 1.5rem;
}


/* ══════════════════════════════════════════════════════════════════════════
   8. HEADER (.cc-header)
   Basado en Header.jsx — Sistema 1: Cinzel + Montserrat, bg #1f2f44 sticky.
   ══════════════════════════════════════════════════════════════════════════ */

.cc-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--cc-header-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  /* overflow visible (por defecto) — necesario para que los dropdowns sean visibles.
     .cc-texture-dots usa inset:0 y no desborda el header. */
}

/* Textura de puntos del header — Horizons: 20px 20px opacity-10 */
.cc-header .cc-texture-dots {
  background-size: 20px 20px; /* Horizons usa 20px; el global usa 24px */
}

.cc-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

/* Logo */
.cc-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

/* Especificidad elevada (0-3-0) para superar .woocommerce-page img (0-2-1) de WooCommerce */
.cc-header .cc-logo .cc-logo__img {
  height: 1.75rem; /* h-7 de Tailwind = 28px */
  width: auto;
  max-width: none; /* anula max-width:100% de Astra/WooCommerce */
}

.cc-logo__text {
  font-family: var(--font-title);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.1em; /* tracking-widest de Tailwind = 0.1em */
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1;
}

/* Navegación desktop */
.cc-nav {
  display: none;
}

@media (min-width: 1024px) {
  .cc-nav {
    display: flex;
    align-self: stretch; /* el nav ocupa los 4.5rem de altura del header */
  }
}

/* Lista de primer nivel — flex horizontal */
.cc-nav__list {
  display: flex;
  align-items: stretch; /* permite que los li tomen la altura completa */
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Cada ítem de primer nivel se extiende a toda la altura del header
   y actúa como contexto de posicionamiento para su dropdown */
.cc-nav__list > li {
  position: relative;
  display: flex;
  align-items: center; /* centra el enlace verticalmente dentro del li */
}

/* Enlace de primer nivel */
.cc-nav__list > li > a {
  font-family: var(--font-title);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.cc-nav__list > li > a:hover,
.cc-nav__list > li > a:focus-visible {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.7);
}

/* Estado activo WordPress: solo color, sin línea inferior permanente */
.cc-nav__list > li.current-menu-item > a,
.cc-nav__list > li.current-menu-ancestor > a,
.cc-nav__list > li.current-menu-parent > a {
  color: #ffffff;
}

/* Indicador ▾ en ítems con hijos */
.cc-nav__list > .menu-item-has-children > a::after {
  content: " ▾";
  font-size: 0.7em;
  opacity: 0.72;
  letter-spacing: 0;
}

/* ── Dropdown (sub-menu) — desktop ─────────────────────────────────────── */

/* Oculto por defecto; position absolute relativo al li padre */
.cc-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%; /* justo bajo el borde inferior del li, que mide 4.5rem */
  left: 0;
  min-width: 13rem;
  background-color: var(--cc-header-bg);
  border-top: 2px solid var(--cc-accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 200;
  list-style: none;
  margin: 0;
  padding: 0.375rem 0;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

/* Mostrar al hacer hover o al recibir foco de teclado */
.cc-nav .menu-item-has-children:hover > .sub-menu,
.cc-nav .menu-item-has-children:focus-within > .sub-menu {
  display: block;
}

/* Separador entre ítems del dropdown */
.cc-nav .sub-menu > li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* Enlace del dropdown */
.cc-nav .sub-menu > li > a {
  display: block;
  padding: 0.625rem 1.25rem;
  font-family: var(--font-title);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
  text-decoration: none;
  border-bottom: none;
  transition: color var(--transition), background-color var(--transition);
}

.cc-nav .sub-menu > li > a:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.07);
  border-bottom-color: transparent;
}

/* Acciones del header (carrito + hamburger) */
.cc-nav__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Botón carrito */
.cc-cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition);
  text-decoration: none;
  padding: 0.25rem;
}

.cc-cart-btn:hover {
  color: #ffffff;
}

.cc-cart-count {
  position: absolute;
  top: -0.375rem;
  right: -0.375rem;
  min-width: 1.25rem;  /* h-5 w-5 de Horizons = 20px */
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--cc-accent);
  color: #ffffff;
  font-family: var(--font-title); /* Cinzel — igual que Horizons */
  font-size: 0.625rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: 2px solid var(--cc-navy); /* border-2 border-[#0a3d62] de Horizons */
  padding: 0 0.25rem;
  line-height: 1;
}

/* Hamburger (solo visible en móvil) */
.cc-mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2rem;
  height: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .cc-mobile-menu-toggle {
    display: none;
  }
}

.cc-mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

/* Hamburger → X al abrir */
.cc-mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.cc-mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.cc-mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Menú móvil desplegable */
.cc-mobile-menu {
  background-color: var(--cc-header-bg);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}

.cc-mobile-menu.is-open {
  max-height: 700px; /* ampliado para acomodar subitems expandidos */
  opacity: 1;
}

@media (min-width: 1024px) {
  .cc-mobile-menu {
    display: none !important;
  }
}

/* Lista principal del panel móvil */
.cc-mobile-menu__list {
  list-style: none;
  margin: 0;
  padding: 0.5rem 1.5rem 1.5rem;
}

/* Separador entre ítems de primer nivel */
.cc-mobile-menu__list > li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cc-mobile-menu__list > li:last-child {
  border-bottom: none;
}

/* Enlace de primer nivel en móvil */
.cc-mobile-menu__list > li > a {
  display: block;
  padding: 0.875rem 0;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 400;
  text-decoration: none;
  transition: color var(--transition);
}

.cc-mobile-menu__list > li > a:hover {
  color: #ffffff;
}

/* Sub-ítems en el panel móvil — visibles inline, indentados */
.cc-mobile-menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cc-mobile-menu .sub-menu > li {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cc-mobile-menu .sub-menu > li > a {
  display: block;
  padding: 0.5rem 0 0.5rem 1.5rem;
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--font-title);
  font-size: 0.875rem;
  font-weight: 400;
  text-decoration: none;
  transition: color var(--transition);
}

.cc-mobile-menu .sub-menu > li > a:hover {
  color: rgba(255, 255, 255, 0.9);
}


/* ══════════════════════════════════════════════════════════════════════════
   9. FOOTER (.cc-footer)
   Basado en Footer.jsx — gradiente #0a3d62 → #1a5f7a, 4 columnas.
   ══════════════════════════════════════════════════════════════════════════ */

.cc-footer {
  position: relative;
  overflow: hidden; /* contiene el .cc-texture-dots absoluto */
  background: linear-gradient(to bottom right, var(--cc-navy), var(--cc-navy-mid)); /* Horizons: gradient-to-br */
  color: rgba(255, 255, 255, 0.7);
}

/* Textura de puntos del footer — Horizons: opacity-5, 24px (más sutil que header) */
.cc-footer .cc-texture-dots {
  background-size: 24px 24px;
  opacity: 0.05;
}

.cc-footer__body {
  padding-top: 5rem;
  padding-bottom: 3rem;
}

/* Grid 5 columnas: marca | navegación | información | contacto | síguenos */
.cc-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 640px) {
  .cc-footer__grid {
    grid-template-columns: repeat(3, 1fr); /* fila 1: marca/nav/legal, fila 2: contacto/social */
  }
}

@media (min-width: 1024px) {
  .cc-footer__grid {
    grid-template-columns: 2fr 1fr 1.25fr 1.25fr 0.75fr;
    gap: 2.5rem;
  }
}

/* Logo del footer */
.cc-footer__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

/* Especificidad elevada (0-3-0) para superar .woocommerce-page img (0-2-1) de WooCommerce */
.cc-footer .cc-footer__logo .cc-footer__logo-img {
  height: 1.75rem;
  width: auto;
  max-width: none; /* anula max-width:100% de Astra/WooCommerce */
}

.cc-footer__logo-text {
  font-family: var(--font-title);
  font-size: 1.25rem; /* text-xl de Horizons */
  letter-spacing: 0.05em;
  color: #ffffff;
  /* sin text-transform: Horizons footer usa "Cantabricraft" mixed case */
}

.cc-footer__desc {
  font-family: var(--font-title); /* Cinzel — igual que Horizons footer */
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  max-width: 22rem;
}

/* Títulos de columna */
.cc-footer__title {
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

/* Listas de enlaces */
.cc-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cc-footer__links li {
  margin-bottom: 0.625rem;
}

.cc-footer__links a {
  font-family: var(--font-title); /* Cinzel — igual que Horizons */
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color var(--transition);
}

.cc-footer__links a:hover {
  color: #ffffff;
}

/* Contacto */
.cc-footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.875rem;
}

.cc-footer__contact-item svg {
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: var(--cc-accent);
}

.cc-footer__contact-item a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color var(--transition);
}

.cc-footer__contact-item a:hover {
  color: #ffffff;
}

/* Redes sociales */
.cc-footer__social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.cc-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background-color: var(--cc-navy-mid); /* bg-[#1a5f7a] de Horizons */
  border: 1px solid rgba(42, 127, 168, 0.3); /* border-[#2a7fa8]/30 de Horizons */
  border-radius: var(--radius-full);
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all var(--transition);
}

.cc-footer__social-link:hover {
  background-color: var(--cc-accent); /* hover:bg-[#2a7fa8] de Horizons */
  border-color: var(--cc-accent);
  color: #ffffff;
}

/* Separador y pie */
.cc-footer__divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin: 0;
}

.cc-footer__bottom {
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: center;
}

@media (min-width: 768px) {
  .cc-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}

.cc-footer__copyright {
  font-family: var(--font-title); /* Cinzel — igual que Horizons */
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

.cc-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .cc-footer__legal {
    justify-content: flex-end;
  }
}

.cc-footer__legal a {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color var(--transition);
}

.cc-footer__legal a:hover {
  color: rgba(255, 255, 255, 0.8);
}


/* ══════════════════════════════════════════════════════════════════════════
   10. PÁGINAS A ANCHO COMPLETO
   Astra aplica max-width + margin auto a todos los hijos directos de
   .entry-content[data-ast-blocks-layout]. Cancelamos esa restricción
   para los contenedores raíz de la portada y Sobre Nosotros.
   El centrado del contenido interior lo gestiona .cc-container.
   ══════════════════════════════════════════════════════════════════════════ */

.entry-content[data-ast-blocks-layout] > #cc-main,
.entry-content[data-ast-blocks-layout] > #cc-sobre-nosotros {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}


/* ══════════════════════════════════════════════════════════════════════════
   11. HERO (.cc-hero)
   Basado en HomePage.jsx — h-screen, parallax bg-img, overlays.
   ══════════════════════════════════════════════════════════════════════════ */

.cc-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Contenedor del fondo (target del parallax JS) */
.cc-hero__bg {
  position: absolute;
  inset: 0;
}

/* La imagen es 120% de alto para que el parallax tenga margen de movimiento */
.cc-hero__bg-img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center;
  display: block;
  will-change: transform;
}

/* Overlay de color: rgba(#0a3d62, 0.60) */
.cc-hero__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(10, 61, 98, 0.6);
}

/* Gradiente de profundidad inferior */
.cc-hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    rgba(10, 61, 98, 0.8) 100%
  );
}

/* Contenido centrado sobre los overlays */
.cc-hero__content {
  position: relative;
  z-index: 10;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* H1: "CANTABRICRAFT" — Cinzel, clamp 3rem–5rem */
.cc-hero__title {
  font-family: var(--font-title);
  font-size: clamp(2.75rem, 8vw, 6rem); /* max 8xl = 6rem — igual que Horizons lg:text-8xl */
  font-weight: 400;
  letter-spacing: 0.15em;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

/* Subtítulo — Montserrat, font-light, #e8f4f8 */
.cc-hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 300;
  color: var(--cc-light);
  line-height: 1.65;
  margin-bottom: 2.5rem;
  max-width: 34rem;
}

/* Pre-título "Artesanía Marina" — Horizons: mb-6 inline-block > h2 Cinzel text-xl #e8f4f8 tracking-[0.2em] uppercase border-b border-[#e8f4f8]/30 pb-2 */
.cc-hero__pretitle-wrap {
  display: inline-block;
  margin-bottom: 1.5rem; /* mb-6 */
}

.cc-hero__pretitle {
  font-family: var(--font-title);
  font-size: 1.25rem; /* text-xl */
  font-weight: 400;
  color: var(--cc-light); /* #e8f4f8 */
  letter-spacing: 0.2em; /* tracking-[0.2em] */
  text-transform: uppercase;
  border-bottom: 1px solid rgba(232, 244, 248, 0.3); /* border-[#e8f4f8]/30 */
  padding-bottom: 0.5rem; /* pb-2 */
  margin: 0;
  line-height: 1.4;
}

/* Título hero — ajuste responsive para viewports muy estrechos (< 480 px)
   El clamp base usa 2.75rem como mínimo, que a 390 px (~31 px de 8vw) desborda.
   Aquí se rebaja el mínimo a 1.75rem y el letter-spacing para que encaje. */
@media (max-width: 480px) {
  .cc-hero__title {
    font-size: clamp(1.75rem, 8vw, 2.75rem);
    letter-spacing: 0.08em;
  }
}


/* ══════════════════════════════════════════════════════════════════════════
   11. PRODUCT CARD (.cc-product-card)
   Basado en ProductCard.jsx — Sistema 2 (Playfair Display + Lato + #1f2f44)
   ══════════════════════════════════════════════════════════════════════════ */

.cc-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .cc-products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.cc-product-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
  color: inherit;
}

.cc-product-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.cc-product-card__link {
  display: block;
  text-decoration: none;
}

.cc-product-card__image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--cc-bg-alt);
}

.cc-product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.cc-product-card:hover .cc-product-card__image img {
  transform: scale(1.05);
}

.cc-product-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cc-product-card__category {
  font-family: var(--font-product-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cc-accent);
  margin-bottom: 0.375rem;
}

.cc-product-card__title {
  font-family: var(--font-product-title);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--cc-dark);
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.cc-product-card__title a {
  color: inherit;
  text-decoration: none;
}

.cc-product-card__title a:hover {
  color: var(--cc-accent);
}

.cc-product-card__price {
  font-family: var(--font-product-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--cc-dark);
  margin-top: auto;
  margin-bottom: 1rem;
}

/* Overrides para precios WooCommerce */
.cc-product-card__price .woocommerce-Price-amount {
  color: var(--cc-dark);
}

.cc-product-card__btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.6875rem 1rem;
  background-color: var(--cc-dark);
  color: #ffffff;
  font-family: var(--font-product-title);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  border: none;
  cursor: pointer;
  transition: background-color var(--transition), box-shadow var(--transition);
  text-decoration: none;
  border-radius: 2px;
}

.cc-product-card__btn:hover {
  background-color: var(--cc-dark-hover);
  box-shadow: var(--shadow-lg);
  color: #ffffff;
}


/* ══════════════════════════════════════════════════════════════════════════
   12. ANIMACIONES DE ENTRADA
   Equivalente a whileInView de Framer Motion en Horizons.
   Se activan añadiendo la clase .cc-fade-in al elemento y ejecutando
   el observer en cantabricraft.js.
   ══════════════════════════════════════════════════════════════════════════ */

.cc-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.cc-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cc-fade-in--left {
  transform: translateX(-30px);
}
.cc-fade-in--left.is-visible {
  transform: translateX(0);
}

.cc-fade-in--right {
  transform: translateX(30px);
}
.cc-fade-in--right.is-visible {
  transform: translateX(0);
}

