/* Importació de la font Comfortaa */
/* Importació de la font Comfortaa */
@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300;400;500;600;700&display=swap');

:root {
  --font-heading: 'Futura', 'Futura PT', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Comfortaa', cursive, sans-serif;

  --bg-page: #f7f4ee;
  --bg-card: #ffffff;
  --bg-card-subtle: #f0ece3;
  
  --purple-primary: #3c096c;
  --purple-deep: #10002b;
  --purple-light: #6a0da0;
  --purple-logo-sub: #5a189a;
  
  /* Protagonisme intensificat per al Terracota */
  --color-terracotta: #B67957;
  --color-terracotta-hover: #9c6342;
  --color-terracotta-light: rgba(182, 121, 87, 0.16);
  --color-terracotta-border: rgba(182, 121, 87, 0.55);
  
  /* Marró més clar i càlid per al fons del correu inferior */
  --bg-email-soft: rgba(182, 121, 87, 0.08);

  --color-text: #221f20;
  --color-text-muted: #6b6566;
  --color-white: #ffffff;
  --border-color: rgba(182, 121, 87, 0.25);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-capsule: 30px;
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.img-responsive {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

h1, h2, h3, .hero-subtitle, .btn-title {
  font-family: var(--font-heading);
  text-transform: none;
  letter-spacing: 0.5px;
  color: var(--purple-primary);
}

.section-title {
  font-size: 2.3rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
  line-height: 1.25;
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 680px;
  margin: 0 auto;
  font-family: var(--font-body);
  font-weight: 400;
}

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

/* =============================================================
   HEADER ESTIL REFERÈNCIA (EXACTE)
============================================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(247, 244, 238, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  border-bottom: 1px solid var(--color-terracotta-border);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0;
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

/* Estil del text del logo amb colors combinats i traç fi */
.logo-text {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 300 !important;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.logo-db {
  color: var(--color-terracotta) !important;
  font-weight: 700;
}

.logo-espectacles {
  color: var(--purple-primary) !important;
  font-weight: 300;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
}

.nav-link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--color-terracotta);
}

/* Botó WhatsApp Càpsula Compacte */
.nav-btn {
  background-color: transparent !important;
  color: var(--color-terracotta) !important;
  border: 1px solid var(--color-terracotta) !important;
  padding: 0.45rem 1.15rem !important;
  border-radius: var(--radius-capsule) !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  width: auto !important;
  max-width: fit-content !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  transition: var(--transition) !important;
}

.nav-btn svg {
  width: 14px !important;
  height: 14px !important;
  fill: var(--color-terracotta) !important;
  transition: fill var(--transition) !important;
}

.nav-btn:hover {
  background-color: var(--color-terracotta) !important;
  border-color: var(--color-terracotta) !important;
  color: var(--color-white) !important;
}

.nav-btn:hover svg {
  fill: var(--color-white) !important;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: 1rem;
}

.mobile-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background-color: var(--color-terracotta);
  transition: var(--transition);
}

/* Hero */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 130px;
  padding-bottom: 70px;
  background: radial-gradient(circle at top center, rgba(182, 121, 87, 0.12) 0%, rgba(247, 244, 238, 1) 70%);
}

.hero-content {
  text-align: center;
  max-width: 820px;
  position: relative;
  z-index: 2;
}

.hero-brand-logo {
  margin-bottom: 1.5rem;
}

.hero-logo-img {
  max-width: 65px;
  height: auto;
}

.hero-subtitle {
  color: var(--color-terracotta);
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}

.hero-title {
  font-size: 3.2rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--purple-primary);
  font-weight: 700;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Botons Generals */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-family: var(--font-body);
  font-size: 0.88rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-whatsapp {
  background-color: var(--color-terracotta);
  color: var(--color-white);
  border: 1px solid var(--color-terracotta);
}

.btn-whatsapp:hover {
  background-color: var(--color-terracotta-hover);
  border-color: var(--color-terracotta-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(182, 121, 87, 0.3);
}

.btn-email {
  background-color: transparent;
  color: var(--color-terracotta);
  border: 1px solid var(--color-terracotta);
}

.btn-email:hover {
  background-color: var(--color-terracotta-light);
  transform: translateY(-3px);
}

/* Seccions i Targetes */
.section {
  padding: 6rem 0;
}

.grid {
  display: grid;
  gap: 2.2rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-top: 3.5rem;
}

.card {
  background-color: var(--bg-card);
  padding: 2.8rem 2.2rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-terracotta-border);
  transition: var(--transition);
  box-shadow: 0 10px 25px rgba(182, 121, 87, 0.08);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-terracotta);
  box-shadow: 0 15px 35px rgba(182, 121, 87, 0.2);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--purple-primary);
}

.service-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.card-icon-svg {
  width: 50px;
  height: 50px;
  background-color: var(--color-terracotta);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(182, 121, 87, 0.3);
}

.card-icon-svg svg {
  width: 24px;
  height: 24px;
  fill: #ffffff;
}

/* Sobre Mi */
.about-section {
  background-color: rgba(255, 255, 255, 0.4);
  border-top: 1px solid var(--color-terracotta-border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(182, 121, 87, 0.2);
  border: 3px solid var(--color-terracotta);
}

.badge-experience {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background-color: var(--color-terracotta);
  color: var(--color-white);
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 8px 20px rgba(182, 121, 87, 0.3);
}

.badge-number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}

.badge-text {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.about-text p {
  margin-bottom: 1.1rem;
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

.about-text .lead {
  color: var(--color-terracotta);
  font-size: 1.15rem;
  font-weight: 600;
}

.certifications {
  margin-top: 2rem;
  display: flex;
  gap: 2rem;
}

.cert-item {
  border-left: 3px solid var(--color-terracotta);
  padding-left: 1.2rem;
}

.cert-year {
  color: var(--color-terracotta);
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

/* Ubicacions */
.location-section {
  background-color: var(--bg-card-subtle);
  border-top: 1px solid var(--color-terracotta-border);
  border-bottom: 1px solid var(--color-terracotta-border);
}

.locations-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 2.8rem;
}

.location-tag {
  background-color: var(--bg-card);
  border: 1px solid var(--color-terracotta-border);
  color: var(--color-text);
  padding: 0.6rem 1.3rem;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
}

.location-tag:hover {
  border-color: var(--color-terracotta);
  color: var(--color-terracotta);
  background-color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(182, 121, 87, 0.15);
}

/* FAQ */
.faq-accordion {
  max-width: 800px;
  margin: 3.5rem auto 0;
}

.faq-item {
  background-color: var(--bg-card);
  border-radius: var(--radius-sm);
  margin-bottom: 1.2rem;
  overflow: hidden;
  border: 2px solid var(--color-terracotta-border);
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  padding: 1.3rem 1.6rem;
  background: none;
  border: none;
  color: var(--purple-primary);
  font-size: 1.05rem;
  font-family: var(--font-heading);
  font-weight: 700;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.6rem;
  transition: max-height 0.35s ease, padding 0.35s ease;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding: 0 1.6rem 1.4rem;
}

.faq-icon {
  transition: var(--transition);
  font-size: 1.4rem;
  color: var(--color-terracotta);
  font-weight: bold;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--color-terracotta);
}

/* Contacte */
.contact-card-main {
  background-color: var(--bg-card);
  padding: 4.5rem 2.5rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-terracotta-border);
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 15px 35px rgba(182, 121, 87, 0.15);
}

.contact-desc {
  color: var(--color-text-muted);
  max-width: 620px;
  margin: 1rem auto 3rem;
  font-size: 1.02rem;
}

.direct-buttons-wrapper {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-action-btn {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 2.2rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition);
  min-width: 290px;
  text-align: left;
}

.btn-icon-svg {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.btn-whatsapp-large {
  background-color: rgba(60, 9, 108, 0.05);
  border: 2px solid var(--purple-primary);
}

.btn-whatsapp-large:hover {
  background-color: var(--purple-primary);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(60, 9, 108, 0.25);
}

.btn-whatsapp-large:hover .btn-title,
.btn-whatsapp-large:hover .btn-detail {
  color: var(--color-white);
}

.btn-whatsapp-large:hover .btn-icon-svg svg path {
  fill: #ffffff !important;
}

.btn-email-large {
  background-color: var(--bg-email-soft);
  border: 2px solid var(--color-terracotta);
}

.btn-email-large:hover {
  background-color: var(--color-terracotta);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(182, 121, 87, 0.3);
}

.btn-email-large:hover .btn-title,
.btn-email-large:hover .btn-detail {
  color: var(--color-white);
}

.btn-email-large:hover .btn-icon-svg svg path {
  fill: #ffffff !important;
}

.contact-action-btn .btn-text {
  display: flex;
  flex-direction: column;
}

.btn-title {
  color: var(--purple-primary);
  font-size: 1.05rem;
  font-weight: 700;
}

.btn-detail {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-family: var(--font-body);
}

/* Footer */
.footer {
  border-top: 1px solid var(--color-terracotta-border);
  padding: 3rem 0;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  background-color: var(--bg-card-subtle);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--color-terracotta);
}

/* =============================================================
   RESPONSIVE MÒBIL (ICONIFICAR WHATSAPP AL HEADER SENSE TOCAR HTML)
============================================================= */
@media (max-width: 900px) {
  .hero-title {
    font-size: 2.4rem;
  }

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

  /* 1. Amaguem el botó llarg de WhatsApp original que ve de la nav */
  .nav-menu .nav-btn {
    display: none !important;
  }

  /* 2. Creem la icona circular fixa a la capçalera al costat de l'hamburguesa */
  .header-container {
    position: relative;
  }

  .header-container::after {
    content: "";
    display: flex;
    position: absolute;
    right: 56px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: transparent;
    border: 1px solid var(--color-terracotta);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23B67957'%3E%3Cpath d='M.057 24l1.687-6.163c-1.041-1.804-1.588-3.849-1.587-5.946.003-6.556 5.338-11.891 11.893-11.891 3.181.001 6.167 1.24 8.413 3.488 2.245 2.248 3.481 5.236 3.48 8.414-.003 6.557-5.338 11.892-11.893 11.892-1.99-.001-3.951-.5-5.688-1.448l-6.305 1.654zm6.597-3.807c1.676.995 3.276 1.591 5.392 1.592 5.448 0 9.886-4.434 9.889-9.885.002-5.462-4.415-9.89-9.881-9.892-5.452 0-9.887 4.434-9.889 9.884-.001 2.225.651 3.891 1.746 5.634l-.999 3.648 3.742-.981zm11.387-5.464c-.074-.124-.272-.198-.57-.347-.297-.149-1.758-.868-2.031-.967-.272-.099-.47-.149-.669.149-.198.297-.768.967-.941 1.165-.173.198-.347.223-.644.074-.297-.149-1.255-.462-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.297-.347.446-.521.151-.172.2-.296.3-.495.099-.198.05-.372-.025-.521-.075-.148-.669-1.611-.916-2.206-.242-.579-.487-.501-.669-.51l-.57-.01c-.198 0-.52.074-.792.372s-1.04 1.016-1.04 2.479 1.065 2.876 1.213 3.074c.149.198 2.095 3.2 5.076 4.487.709.306 1.263.489 1.694.626.712.226 1.36.194 1.872.118.571-.085 1.758-.719 2.006-1.413.248-.695.248-1.29.173-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 18px 18px;
    z-index: 1002;
    cursor: pointer;
  }

  .nav-menu {
    position: fixed;
    top: 55px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 55px);
    background-color: var(--bg-page);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    margin-left: 0;
    transition: var(--transition);
    border-top: 1px solid var(--color-terracotta-border);
    z-index: 999;
  }

  .nav-menu.active {
    left: 0;
  }

  .mobile-toggle {
    display: block;
    z-index: 1003;
  }

  .direct-buttons-wrapper {
    flex-direction: column;
  }

  .contact-action-btn {
    width: 100%;
  }
}