@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;800;900&display=swap');

/* ============================================
   GRAFICARTESANA — IonicTech
   Light editorial · Terracota · Glina + Futura + Fraunces
   ============================================ */

@font-face {
  font-family: 'Glina Script';
  src: url('fonts/Glina Script em..otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Futura Bold';
  src: url('fonts/Futura Bold.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg:         #f1e8d4;
  --main-color: #9a1915;
  --bg-warm:    #f4f0ea;
  --border:     #e2ddd6;
  --accent:     #9a1915;
  --text:       #2b2b2b;
  --text-muted: #7a746c;
  --text-dim:   #b5afa7;

  --font-display: 'Fraunces', serif;
  --fuente-glina: 'Glina Script', cursive;
  --font-body:    'Montserrat', 'Helvetica', sans-serif;
  --font-futura:  'Futura Bold', 'Futura', sans-serif;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* La fuente Glina Script no tiene ñ: ese carácter se pinta con un serif italic */
.ng {
  font-family: var(--font-display);
  font-style: italic;
}

/* Títulos Glina en Title Case -> todo en minúsculas (consistencia entre páginas) */
.porque-title,
.srv-section-title, .srv-row-title, .srv-art-band-title, .srv-art-card-title,
.srv-process-title, .srv-step-title, .srv-cta-title,
.sobre-title, .sobre-cta-title, .treb-contact-title {
  text-transform: lowercase;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
svg { display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea { font-family: inherit; }

/* ---- NAV ---- */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 1.2rem 3rem;
  transition: padding 0.3s var(--ease), box-shadow 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 12px rgba(154,25,21,0.08);
  padding: 0.9rem 3rem;
}
.nav-logo {
  font-family: var(--fuente-glina);
  font-size: 3rem;
  color: var(--main-color);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 101;
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 0.1rem;
  text-align: center;
}
.nav-logo-sub {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background-color: var(--main-color);
  color: var(--bg);
  padding: 4px 12px;
  border-radius: 50px;
  display: inline-block;
  align-self: center;
}
.nav-links { display: grid; grid-template-columns: repeat(3, auto); gap: 0.4rem; margin-left: auto; }
.nav-bottom { grid-column: 1 / -1; display: flex; justify-content: center; gap: 0.4rem; }
.nav-link {
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--fuente-glina);
  color: var(--bg);
  background: var(--main-color);
  padding: 0.35rem 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: opacity 0.2s;
}
.nav-link:hover { opacity: 0.8; }
.nav-link.active { opacity: 0.7; }
.nav-cta {
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--fuente-glina);
  color: var(--bg);
  background: var(--main-color);
  padding: 0.35rem 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.8; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  position: relative;
  z-index: 101;
}
.hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--main-color);
  transition: transform 0.3s var(--ease), opacity 0.2s;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---- PAGE HEADER (banda burdeos con título de página) ---- */
.page-header {
  background: var(--main-color);
  padding: 4rem 3rem 3rem;
  padding-top: calc(4rem + 5rem);
}
.page-header-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.page-header .display-title {
  color: var(--bg);
}

/* ---- HERO VISUAL ---- */
.hero-visual {
  width: 100%;
  padding-top: 5rem;
  line-height: 0;
}
.hero-visual .hero-img {
  display: block;
  width: 100%;
  height: auto;
  font-size: 0;
  color: transparent;
}
.hero-display-title {
  font-family: var(--font-display);
  text-align: center;
  letter-spacing: 0.06em;
}

/* ---- TAGLINE ---- */
.tagline-band {
  width: 100%;
  background: var(--main-color);
  padding: 2rem;
}
.display-title {
  font-family: var(--fuente-glina);
  font-size: clamp(2rem, 5vw, 5.5rem);
  color: var(--bg);
  line-height: 1.05;
  letter-spacing: 0.02em;
}
.tagline-section {
  text-align: center;
  background: var(--bg);
}
.tagline-sub-script {
  font-family: var(--fuente-glina);
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  color: var(--main-color);
  padding: 2rem;
  margin: 0;
  opacity: 0.85;
}

/* ---- MARQUEE ---- */
.marquee-strip {
  padding: 1.1rem 0;
  overflow: hidden;
  background: var(--main-color);
}
.marquee-track {
  display: inline-flex;
  gap: 2.5rem;
  white-space: nowrap;
  animation: marquee-scroll 28s linear infinite;
  font-family: var(--fuente-glina);
  font-size: 1.5rem;
  color: var(--bg);
  letter-spacing: 0.03em;
}
.marquee-track .sep { opacity: 0.4; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---- SEPARADOR MARQUEE ---- */
.marquee-sep {
  background: var(--bg);
  padding: 1.1rem 3rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.marquee-sep-line {
  flex: 1;
  height: 1px;
  background: var(--main-color);
  opacity: 0.18;
}
.marquee-sep-ornament {
  font-size: 0.9rem;
  color: var(--main-color);
  opacity: 0.55;
  line-height: 1;
}

/* ---- MAIN SECTIONS ---- */
.main-title {
  color: var(--main-color);
  font-family: var(--font-futura);
  font-size: clamp(1.6rem, 3vw, 3rem);
}

.main-text {

  color: var(--main-color);
  font-family: var(--font-futura);
  font-size: clamp(1.6rem, 0.5vw, 3rem);
}


/* --- PORQUE ELEGIR --- */

.porque-title{
  background: var(--main-color);
  padding: 4rem 3rem 3rem;
  font-family: var(--fuente-glina);
  font-size: clamp(2rem, 5vw, 5.5rem);
  color: var(--bg);
  line-height: 1.05;
  letter-spacing: 0.02em;
}


/* ---- SECTIONS ---- */
.section { padding: 7rem 3rem; border-top: 1px solid var(--border); }
.section--has-band { padding-top: 0; border-top: none; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-header { margin-bottom: 3.5rem; }

/* ---- SECTION BAND (título rojo full-width) ---- */
.section-band {
  background: var(--main-color);
  padding: 1.5rem 3rem;
  margin: 0 -3rem 3.5rem;
}
.section-band .section-label {
  color: rgba(241, 232, 212, 0.6);
  margin-bottom: 0.2rem;
}
.section-band .display-title {
  text-align: center;
  font-size: clamp(1.6rem, 3.5vw, 3rem);
  letter-spacing: 0.03em;
}
.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: var(--fuente-glina);
  font-weight: 700;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  line-height: 1.1;
  color: var(--text);
}
.section-title em { font-style: italic; color: var(--accent); }

/* ---- FOOTER ---- */
.footer {
  background: var(--bg-warm);
  padding: 0 3rem 2rem;
}

/* Separador ornamental superior */
.footer-ornament {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto 3.5rem;
  padding-top: 3rem;
}
.footer-ornament-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.footer-ornament-star {
  width: 18px;
  height: 18px;
  fill: var(--text-dim);
  flex-shrink: 0;
  animation: footer-star-spin 12s linear infinite;
}
@keyframes footer-star-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Grid principal */
.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 5rem;
  align-items: start;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

/* Columna brand */
.footer-col--brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}
.footer-stamp-link {
  display: block;
  width: 90px;
  height: 90px;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.footer-stamp-link:hover { transform: scale(1.07) rotate(8deg); }
.footer-stamp { width: 100%; height: 100%; }
.footer-stamp svg { width: 100%; height: 100%; }
.footer-studio-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* Columna contacto */
.footer-col--contact {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.footer-socials {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  letter-spacing: 0.01em;
  transition: color 0.2s var(--ease), gap 0.2s var(--ease);
}
.footer-social:hover { color: var(--accent); gap: 0.85rem; }
.social-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.footer-contact-info {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.75;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.footer-contact-info a { color: var(--text-muted); transition: color 0.2s; }
.footer-contact-info a:hover { color: var(--accent); }

/* Columna legal */
.footer-col--legal {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: flex-end;
}
.footer-legal-link {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.87rem;
  color: var(--text);
  letter-spacing: 0.01em;
  text-align: right;
  transition: color 0.2s, transform 0.2s var(--ease);
  display: block;
}
.footer-legal-link:hover { color: var(--accent); transform: translateX(-5px); }

/* Barra inferior */
.footer-bottom {
  max-width: 1100px;
  margin: 1.75rem auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: 0.76rem;
  color: var(--text-muted);
  letter-spacing: 0.025em;
}

/* IonicTech credit */
.powered-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.76rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  transition: color 0.25s;
  position: relative;
  overflow: hidden;
}
.powered-link::after {
  content: '';
  position: absolute;
  top: -10%;
  left: 0;
  width: 50%;
  height: 120%;
  background: linear-gradient(105deg, transparent 20%, rgba(250,204,21,0.7) 50%, transparent 80%);
  transform: translateX(-160%) skewX(-15deg);
  pointer-events: none;
}
.powered-link:hover::after { animation: lightning-sweep 0.45s ease forwards; }
@keyframes lightning-sweep {
  from { transform: translateX(-160%) skewX(-15deg); }
  to   { transform: translateX(300%) skewX(-15deg); }
}
.powered-bolt {
  display: inline-block;
  font-size: 0.92rem;
  opacity: 0;
  transform: scale(0.6) translateY(2px);
  transition: opacity 0.2s, transform 0.2s, filter 0.2s;
  filter: drop-shadow(0 0 4px #facc15);
}
.powered-link:hover { color: #facc15; }
.powered-link:hover .powered-bolt {
  opacity: 1;
  transform: scale(1.2) translateY(-1px);
  filter: drop-shadow(0 0 6px #facc15) drop-shadow(0 0 12px #f59e0b);
  animation: bolt-flash 0.4s ease forwards;
}
@keyframes bolt-flash {
  0%   { transform: scale(0.8) translateY(2px); opacity: 0.4; }
  40%  { transform: scale(1.4) translateY(-2px); opacity: 1; }
  70%  { transform: scale(1.1) translateY(-1px); }
  100% { transform: scale(1.2) translateY(-1px); opacity: 1; }
}

@keyframes menu-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- FADE ANIMATIONS ---- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ---- LANG SWITCH ---- */
.lang-switch {
  background: transparent;
  border: 1.5px solid var(--text-muted);
  color: var(--text-muted);
  font-family: "DM Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  flex-shrink: 0;
  margin-left: 1.5rem;
}
.lang-switch:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---- SECTION MARQUES ---- */
.section-marques {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  padding: 7rem 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 55vh;
}
.marques-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}
.marques-title {
  font-family: var(--fuente-glina);
  font-size: clamp(2.2rem, 5.5vw, 6.5rem);
  color: var(--main-color);
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---- DECORATIVE STARS ---- */
.deco-star {
  position: absolute;
  color: var(--main-color);
  pointer-events: none;
  z-index: 1;
}
.deco-star svg { width: 100%; height: 100%; fill: currentColor; }
.deco-star--xs { width: 48px;  height: 48px; }
.deco-star--sm { width: 88px;  height: 88px; }
.deco-star--md { width: 148px; height: 148px; }
.deco-star--lg { width: 210px; height: 210px; }

/* Marques section star positions */
.marques-star-1 { top: 9%;    left: 4%;   transform: rotate(15deg);  }
.marques-star-2 { top: 6%;    left: 12%;  transform: rotate(-22deg); }
.marques-star-3 { top: 6%;    right: 5%;  transform: rotate(28deg);  }
.marques-star-4 { bottom: 2%; left: 1%;   transform: rotate(-10deg); }
.marques-star-5 { bottom: 4%; left: 17%;  transform: rotate(22deg);  }
.marques-star-6 { bottom: 5%; right: 7%;  transform: rotate(-18deg); }

/* ---- SECTION DISSENY ---- */
.section-disseny {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  padding: 6rem 3rem;
  border-top: 1px solid var(--border);
}
.disseny-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: center;
}
.disseny-star-col {
  display: flex;
  align-items: center;
  justify-content: center;
}
.big-star {
  width: 100%;
  max-width: 400px;
  height: auto;
  fill: var(--main-color);
  display: block;
}
.disseny-text-col {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.disseny-heading {
  font-family: var(--font-futura);
  font-size: clamp(1.8rem, 3.2vw, 3.4rem);
  color: var(--main-color);
  line-height: 1.18;
  font-weight: 700;
}
.disseny-heading em { font-style: italic; }
.disseny-body {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.15vw, 1.15rem);
  color: var(--main-color);
  font-weight: 500;
  line-height: 1.8;
}
.disseny-body strong { font-weight: 800; }

.porque-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 3.5rem 3rem;
}
.porque-closing {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: var(--main-color);
  line-height: 1.75;
}

/* Disseny accent stars */
.disseny-star-1 { top: 10%;    right: 4%;  transform: rotate(18deg);  }
.disseny-star-2 { bottom: 14%; right: 8%;  transform: rotate(-12deg); }

/* Circular stamp badge */
.stamp-badge {
  position: absolute;
  bottom: 2.5rem;
  right: 3rem;
  width: 88px;
  height: 88px;
  color: var(--main-color);
  border: 2px solid var(--main-color);
  border-radius: 50%;
  padding: 5px;
  opacity: 0.75;
}
.stamp-badge svg { width: 100%; height: 100%; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .tagline-section { padding: 3.5rem 1.5rem 3rem; }
  #nav { padding: 1.25rem 1.5rem; justify-content: flex-end; }
  #nav.scrolled { padding: 1rem 1.5rem; }
  .nav-logo { font-size: 2.2rem; }
  .nav-logo-sub { font-size: 0.5rem; padding: 3px 9px; }
  .lang-switch { margin-left: 0; margin-right: 0.85rem; }
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--main-color);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.75rem;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-link, .nav-cta {
    font-size: 1.6rem;
    background: transparent;
    color: var(--bg);
    padding: 0.4rem 0.5rem;
    letter-spacing: 0.06em;
    transition: opacity 0.2s, transform 0.2s var(--ease);
  }
  .nav-link:hover, .nav-link.active { opacity: 0.7; }
  .nav-cta {
    border: 1.5px solid var(--bg);
    border-radius: 50px;
    padding: 0.65rem 2rem;
    margin-top: 0.5rem;
    transition: background 0.25s var(--ease), color 0.25s var(--ease);
  }
  .nav-cta:hover { background: var(--bg); color: var(--main-color); opacity: 1; }
  #nav:has(.nav-links.open) .nav-logo { color: var(--bg); }
  #nav:has(.nav-links.open) .nav-logo-sub { background: var(--bg); color: var(--main-color); }
  .nav-links.open { gap: 2.25rem; }
  .nav-links.open::before {
    content: '✦';
    font-size: 1.7rem;
    color: rgba(241, 232, 212, 0.55);
    margin-bottom: 0.5rem;
    animation: footer-star-spin 16s linear infinite;
  }
  .nav-links.open li { animation: menu-fade-in 0.45s var(--ease) both; }
  .nav-links.open li:nth-child(1) { animation-delay: 0.06s; }
  .nav-links.open li:nth-child(2) { animation-delay: 0.12s; }
  .nav-links.open li:nth-child(3) { animation-delay: 0.18s; }
  .nav-links.open li:nth-child(4) { animation-delay: 0.24s; }
  .hamburger { display: flex; }
  .section { padding: 4rem 1.25rem; }
  .section-band { margin: 0 -1.25rem 2.5rem; padding: 1.25rem 1.5rem; }
  .nav-bottom { flex-direction: column; align-items: center; }
  .footer { padding: 0 1.25rem 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-col--brand { flex-direction: row; align-items: center; gap: 1.25rem; }
  .footer-stamp-link { width: 72px; height: 72px; }
  .footer-col--legal { align-items: flex-start; }
  .footer-legal-link { text-align: left; }
  .footer-legal-link:hover { transform: translateX(5px); }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .section-marques { padding: 5rem 1.5rem; min-height: 0; }
  .section-marques .deco-star { opacity: 0.3; }
  .section-marques .deco-star--lg { width: 84px; height: 84px; }
  .section-marques .deco-star--md { width: 64px; height: 64px; }
  .section-marques .deco-star--sm { width: 52px; height: 52px; }
  .section-marques .deco-star--xs { width: 34px; height: 34px; }
  .marques-star-4 { bottom: 1%; left: -3%; }
  .marques-star-5 { bottom: 1%; left: auto; right: -3%; }
  .marques-star-2 { top: 3%; left: -2%; }
  .disseny-inner { grid-template-columns: 1fr; gap: 2rem; }
  .disseny-star-col { display: none; }
  .section-disseny { padding: 4rem 1.5rem; }
  .stamp-badge { bottom: 1.5rem; right: 1.5rem; width: 64px; height: 64px; }
  .porque-title { padding: 3rem 1.5rem 2.5rem; }
  .porque-content { padding: 2.5rem 1.5rem; }
}

@media (max-width: 480px) {
  .nav-logo { font-size: 1.9rem; }
  .tagline-band { padding: 1.5rem; }
  .tagline-section { padding: 2.5rem 1.25rem 2.25rem; }
  .marquee-track { font-size: 1.25rem; gap: 1.75rem; }
  .section-marques { padding: 4rem 1.25rem; }
  .section-disseny { padding: 3rem 1.25rem; }
  .disseny-text-col { gap: 1.2rem; }
  .porque-content { padding: 2rem 1.25rem; }
  .stamp-badge { display: none; }
}
