/* ==========================================================================
   Nabil Osteopathy & Physiotherapy — Main Stylesheet
   Warm Therapeutic Aesthetic
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Sans:wght@400;500;600;700&display=swap');

/* ==========================================================================
   1. Custom Properties
   ========================================================================== */

:root {
  --nl-cream: #f5f0eb;
  --nl-cream-dark: #e8ddd3;
  --nl-terracotta: #b85c38;
  --nl-brown-dark: #3d2c1e;
  --nl-brown-mid: #6b5544;
  --nl-brown-light: #8b6f5a;
  --nl-white: #faf8f4;
  --nl-wa-green: #25D366;
  --nl-shadow-sm: 0 2px 8px rgba(61, 44, 30, .06);
  --nl-shadow-md: 0 6px 20px rgba(61, 44, 30, .08);
  --nl-shadow-lg: 0 12px 32px rgba(61, 44, 30, .12);
  --nl-radius: 12px;
  --nl-radius-lg: 16px;
}

/* ==========================================================================
   2. Reset + Base
   ========================================================================== */

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

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

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--nl-brown-dark);
  background-color: var(--nl-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background-color: var(--nl-terracotta);
  color: var(--nl-white);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color .3s ease;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ==========================================================================
   3. Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--nl-brown-dark);
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  margin-bottom: .75rem;
}

h3 {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  margin-bottom: .5rem;
}

p {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: var(--nl-brown-mid);
  line-height: 1.7;
  margin-bottom: 1rem;
}

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

.subtitle {
  font-family: 'DM Sans', sans-serif;
  color: var(--nl-brown-light);
  font-size: .9rem;
  letter-spacing: 1px;
}

.quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--nl-brown-dark);
  line-height: 1.5;
}

/* Decorative line under section headings */
.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.section-heading::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background-color: var(--nl-terracotta);
  margin: 1rem auto 0;
}

/* ==========================================================================
   4. Layout
   ========================================================================== */

.container {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: rgba(232, 221, 211, 0.5);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* ==========================================================================
   5. Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .85rem 2rem;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .3s ease;
  min-height: 44px;
  gap: .5rem;
}

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

.btn-primary:hover {
  background-color: #a04f2e;
  border-color: #a04f2e;
  transform: translateY(-1px);
  box-shadow: var(--nl-shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--nl-terracotta);
  border-color: var(--nl-terracotta);
}

.btn-secondary:hover {
  background-color: var(--nl-terracotta);
  color: var(--nl-white);
  transform: translateY(-1px);
  box-shadow: var(--nl-shadow-md);
}

.btn-wa {
  background-color: var(--nl-wa-green);
  color: #fff;
  border-color: var(--nl-wa-green);
}

.btn-wa:hover {
  background-color: #1fb855;
  border-color: #1fb855;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, .25);
}

/* ==========================================================================
   6. Cards
   ========================================================================== */

.card {
  background-color: var(--nl-white);
  border-radius: var(--nl-radius-lg);
  padding: 2rem;
  box-shadow: var(--nl-shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}

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

/* ==========================================================================
   7. Tags / Pills
   ========================================================================== */

.tag {
  display: inline-block;
  background-color: var(--nl-cream-dark);
  color: var(--nl-brown-mid);
  border-radius: 20px;
  padding: .4rem 1rem;
  font-size: .85rem;
  font-weight: 500;
  line-height: 1.4;
}

/* ==========================================================================
   8. Timeline
   ========================================================================== */

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--nl-terracotta);
}

.timeline-item {
  position: relative;
  padding-left: 1.5rem;
  padding-bottom: 2rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: .35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--nl-terracotta);
  border: 2px solid var(--nl-cream);
  transform: translateX(-5px);
}

.timeline-year {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--nl-terracotta);
  margin-bottom: .25rem;
}

.timeline-text {
  font-family: 'DM Sans', sans-serif;
  color: var(--nl-brown-mid);
  font-size: .95rem;
  line-height: 1.6;
}

/* ==========================================================================
   9. Header
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  background: rgba(61, 44, 30, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color .3s ease, box-shadow .3s ease, padding .3s ease;
}

.header.scrolled {
  background: var(--nl-white);
  backdrop-filter: none;
  box-shadow: var(--nl-shadow-sm);
  padding: .7rem 0;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header .logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--nl-white);
  text-decoration: none;
  line-height: 1.2;
  margin-left: -0.5rem;
}

.header .logo:hover {
  color: var(--nl-terracotta);
}

.header.scrolled .logo {
  color: var(--nl-brown-dark);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  font-weight: 500;
  color: rgba(250, 248, 244, 0.85);
  text-decoration: none;
  transition: color .3s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--nl-white);
}

.header.scrolled .nav-links a {
  color: var(--nl-brown-mid);
}

.header.scrolled .nav-links a:hover {
  color: var(--nl-terracotta);
}

.nav-links a.active {
  color: var(--nl-terracotta);
  font-weight: 600;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--nl-terracotta);
  border-radius: 1px;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  padding: 0;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--nl-white);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease, background-color .3s ease;
}

.header.scrolled .hamburger span {
  background-color: var(--nl-brown-dark);
}

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

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

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

/* Mobile Navigation */
.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 999;
  background-color: var(--nl-cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility .4s ease;
}

.nav-mobile.open {
  opacity: 1;
  visibility: visible;
}

.nav-mobile a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--nl-brown-dark);
  text-decoration: none;
  transition: color .3s ease;
}

.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--nl-terracotta);
}

/* ==========================================================================
   10. Hero
   ========================================================================== */

.hero {
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 7rem 0 4rem;
  overflow: hidden;
}

.hero-home {
  min-height: 90vh;
  padding: 0;
}

.hero-content {
  max-width: 700px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 {
  color: var(--nl-brown-dark);
  margin-bottom: .75rem;
}

.hero .subtitle {
  color: var(--nl-brown-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: .85rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  justify-content: center;
}

/* Hero background image support */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(245, 240, 235, .85) 0%,
    rgba(245, 240, 235, .7) 50%,
    rgba(245, 240, 235, .95) 100%
  );
}

/* ==========================================================================
   11. Footer
   ========================================================================== */

.footer {
  background-color: var(--nl-brown-dark);
  color: var(--nl-cream);
  padding: 4rem 0 2rem;
}

.footer h4 {
  color: var(--nl-cream);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.footer p {
  color: rgba(245, 240, 235, .7);
  font-size: .9rem;
}

.footer a {
  color: var(--nl-cream);
  text-decoration: none;
  transition: color .3s ease;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer-grid ul {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.footer-grid ul a {
  font-size: .9rem;
  color: rgba(245, 240, 235, .7);
}

.footer-grid ul a:hover {
  color: var(--nl-terracotta);
}

.footer-bottom {
  border-top: 1px solid rgba(245, 240, 235, .1);
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  font-size: .8rem;
  color: rgba(245, 240, 235, .5);
}

/* ==========================================================================
   12. WhatsApp Floating Button
   ========================================================================== */

.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--nl-wa-green);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, .35);
  transition: transform .3s ease, box-shadow .3s ease;
  animation: wa-pulse 2s infinite;
  text-decoration: none;
}

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

.wa-float svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

@keyframes wa-pulse {
  0% {
    box-shadow: 0 4px 16px rgba(37, 211, 102, .35);
  }
  50% {
    box-shadow: 0 4px 24px rgba(37, 211, 102, .55);
  }
  100% {
    box-shadow: 0 4px 16px rgba(37, 211, 102, .35);
  }
}

/* ==========================================================================
   13. Animations — Reveal on Scroll
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children animation */
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ==========================================================================
   14. Course Cards (Formacion page)
   ========================================================================== */

.course-card {
  display: flex;
  flex-direction: column;
  background-color: var(--nl-white);
  border-radius: var(--nl-radius-lg);
  overflow: hidden;
  box-shadow: var(--nl-shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--nl-shadow-lg);
}

.course-card-date {
  padding: 1.5rem 2rem;
  border-left: 4px solid var(--nl-terracotta);
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
}

.course-card-date .day {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--nl-terracotta);
  line-height: 1;
}

.course-card-date .month {
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem;
  color: var(--nl-brown-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.course-card-info {
  padding: 1.5rem 2rem;
  flex: 1;
}

.course-card-info h3 {
  margin-bottom: .5rem;
}

.course-card-info p {
  font-size: .9rem;
  margin-bottom: 1rem;
}

.course-card-info .btn {
  font-size: .85rem;
  padding: .6rem 1.5rem;
}

/* ==========================================================================
   15. Specialty Cards (Terapias page)
   ========================================================================== */

.specialty-card {
  background-color: var(--nl-white);
  border-radius: var(--nl-radius-lg);
  padding: 2rem;
  box-shadow: var(--nl-shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}

.specialty-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--nl-shadow-lg);
}

.specialty-card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--nl-terracotta);
}

.specialty-card-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--nl-terracotta);
  fill: none;
  stroke-width: 1.5;
}

.specialty-card h3 {
  margin-bottom: .5rem;
}

.specialty-card p {
  font-size: .9rem;
  margin-bottom: 1rem;
}

.specialty-card ul {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.specialty-card ul li {
  font-size: .9rem;
  color: var(--nl-brown-mid);
  padding-left: 1.2rem;
  position: relative;
}

.specialty-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--nl-terracotta);
}

/* ==========================================================================
   16. Miscellaneous Components
   ========================================================================== */

/* Decorative horizontal rule */
.divider {
  width: 60px;
  height: 2px;
  background-color: var(--nl-terracotta);
  border: none;
  margin: 2rem 0;
}

.divider-center {
  margin-left: auto;
  margin-right: auto;
}

/* Image with rounded corners */
.img-rounded {
  border-radius: var(--nl-radius-lg);
  overflow: hidden;
}

.img-rounded img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Testimonial */
.testimonial {
  text-align: center;
  padding: 2rem;
}

.testimonial .quote {
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  color: var(--nl-brown-dark);
}

.testimonial-role {
  font-size: .8rem;
  color: var(--nl-brown-light);
}

/* Contact form base styles */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: .9rem;
  font-weight: 500;
  color: var(--nl-brown-dark);
  margin-bottom: .4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .75rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  color: var(--nl-brown-dark);
  background-color: var(--nl-white);
  border: 1px solid var(--nl-cream-dark);
  border-radius: 8px;
  outline: none;
  transition: border-color .3s ease, box-shadow .3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--nl-terracotta);
  box-shadow: 0 0 0 3px rgba(184, 92, 56, .1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Map container */
.map-container {
  border-radius: var(--nl-radius-lg);
  overflow: hidden;
  box-shadow: var(--nl-shadow-sm);
}

.map-container iframe {
  width: 100%;
  height: 350px;
  border: none;
  display: block;
}

/* ==========================================================================
   17. Responsive — Tablet (768px+)
   ========================================================================== */

@media (min-width: 768px) {

  .grid-2 {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .grid-3 {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .nav-links {
    display: flex;
  }

  .hamburger {
    display: none;
  }

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

  .course-card {
    flex-direction: row;
  }

  .course-card-date {
    min-width: 120px;
    text-align: center;
    border-left: none;
    border-right: 4px solid var(--nl-terracotta);
  }

  h1 {
    margin-bottom: 1.25rem;
  }

  .hero p {
    font-size: 1.15rem;
  }
}

/* ==========================================================================
   18. Responsive — Desktop (1024px+)
   ========================================================================== */

@media (min-width: 1024px) {

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

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .hero-home .container {
    display: flex;
    align-items: center;
    gap: 3rem;
  }

  .hero-home .hero-content {
    text-align: left;
    margin: 0;
  }

  .hero-home .hero-ctas {
    justify-content: flex-start;
  }

  .hero-home .hero-image {
    flex: 0 0 45%;
  }

  .map-container iframe {
    height: 450px;
  }
}

/* ==========================================================================
   19. Responsive — Large screens (1280px+)
   ========================================================================== */

@media (min-width: 1280px) {

  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .section {
    padding: 6rem 0;
  }
}

/* ==========================================================================
   20. Print styles
   ========================================================================== */

@media print {
  .header,
  .wa-float,
  .nav-mobile,
  .hamburger {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
  }

  body {
    color: #000;
    background: #fff;
  }

  .card,
  .specialty-card,
  .course-card {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
}

/* ==========================================================================
   21. SVG Wave Section Dividers
   ========================================================================== */

.wave-divider {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-top: -2px;
  margin-bottom: -2px;
}
.wave-divider svg {
  display: block;
  width: 100%;
  height: 120px;
}
.wave-divider-flip { transform: rotate(180deg); }

/* ==========================================================================
   22. Organic Blob Decorations
   ========================================================================== */

.blob-decoration {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   23. Image with Overlay
   ========================================================================== */

.img-overlay-container {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}
.img-overlay-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.img-overlay-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(61,44,30,0.3) 100%);
}

/* ==========================================================================
   24. Hero with Background Image
   ========================================================================== */

.hero-home {
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 90vh;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(61,44,30,0.75) 0%, rgba(107,85,68,0.6) 50%, rgba(184,92,56,0.4) 100%);
  z-index: 0;
}
.hero-home .container { position: relative; z-index: 1; }
.hero-home h1 { color: #faf8f4; text-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.hero-home .subtitle { color: rgba(250,248,244,0.85); }
.hero-home p { color: rgba(250,248,244,0.7); }

/* ==========================================================================
   25. Section with Background Image
   ========================================================================== */

.section-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.section-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(245,240,235,0.92);
}
.section-bg .container { position: relative; z-index: 1; }

/* ==========================================================================
   26. Floating Decorative Line
   ========================================================================== */

.deco-line {
  width: 60px;
  height: 3px;
  background: var(--nl-terracotta);
  border-radius: 2px;
  margin: 1.5rem auto;
}

/* ==========================================================================
   27. Photo Card
   ========================================================================== */

.photo-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(61,44,30,0.1);
}
.photo-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.photo-card:hover img { transform: scale(1.05); }

/* ==========================================================================
   28. Subtle Grain Texture
   ========================================================================== */

.grain {
  position: relative;
}
.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   29. Mosaic / Geometric Pattern Textures
   ========================================================================== */

/* Flowing ribbons pattern — organic asymmetric curves */
.pattern-ribbons::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='500' height='150' viewBox='0 0 500 150' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 75 C80 20, 160 130, 250 75 S420 20, 500 75' fill='none' stroke='%23b85c38' stroke-width='1.5' opacity='0.07'/%3E%3Cpath d='M0 95 C100 40, 180 140, 280 85 S430 30, 500 95' fill='none' stroke='%236b5544' stroke-width='1' opacity='0.05'/%3E%3C/svg%3E");
  background-size: 500px 150px;
  pointer-events: none;
  z-index: 0;
}

/* Ribbons variant 2 — offset for visual variety */
.pattern-ribbons-2::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='600' height='180' viewBox='0 0 600 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 90 C120 30, 240 150, 360 90 S540 30, 600 90' fill='none' stroke='%23b85c38' stroke-width='1.2' opacity='0.06'/%3E%3Cpath d='M0 120 C80 60, 200 160, 320 100 S480 50, 600 110' fill='none' stroke='%236b5544' stroke-width='0.8' opacity='0.04'/%3E%3Cpath d='M0 50 C150 10, 300 100, 450 60 S550 30, 600 50' fill='none' stroke='%23c9a96e' stroke-width='0.6' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 600px 180px;
  pointer-events: none;
  z-index: 0;
}

/* Gradient accent strips between sections */
.gradient-strip {
  height: 6px;
  background: linear-gradient(90deg, var(--nl-cream) 0%, var(--nl-terracotta) 50%, var(--nl-cream) 100%);
  opacity: 0.4;
}

/* Colored section accents */
.section-warm {
  background: linear-gradient(135deg, #f5f0eb 0%, #f0e6d8 50%, #ecddd0 100%);
}
.section-terracotta-soft {
  background: linear-gradient(180deg, rgba(184,92,56,0.06) 0%, rgba(184,92,56,0.02) 100%);
}

/* Large decorative circle */
.deco-circle {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1.5px solid rgba(184,92,56,0.12);
  pointer-events: none;
  z-index: 0;
}
.deco-circle-2 {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  border: 1px solid rgba(107,85,68,0.1);
  pointer-events: none;
  z-index: 0;
}

/* Decorative curved line accent */
.deco-curve {
  position: absolute;
  width: 300px;
  height: 150px;
  border: 2px solid rgba(184,92,56,0.1);
  border-radius: 50%;
  border-bottom: none;
  border-left: none;
  pointer-events: none;
  z-index: 0;
}

.mosaic, .pattern-dots, .pattern-waves, .pattern-hex {
  position: relative;
}
.mosaic > .container, .pattern-dots > .container, .pattern-waves > .container, .pattern-hex > .container {
  position: relative;
  z-index: 1;
}

/* ─── TESTIMONIOS ────────────────────────────────────────── */
.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 2rem auto 0;
}
.testimonio {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(184,92,56,0.15);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  box-shadow: 0 8px 24px rgba(61,44,30,0.06);
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonio:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(61,44,30,0.1);
}
.testimonio::before {
  content: '"';
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 5rem;
  color: rgba(184,92,56,0.15);
  line-height: 1;
  font-weight: 600;
}
.testimonio-stars {
  color: #c9a96e;
  font-size: 1.05rem;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.testimonio blockquote {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #5a4a37;
  margin: 0 0 1.5rem;
  border: none;
  padding: 0;
  position: relative;
  z-index: 1;
}
.testimonio-autor {
  border-top: 1px solid rgba(184,92,56,0.15);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
}
.testimonio-autor strong {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: #3d2c1e;
  font-weight: 600;
}
.testimonio-autor span {
  font-size: 0.8rem;
  color: #8b7a64;
  margin-top: 0.2rem;
}
@media (max-width: 768px) {
  .testimonios-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .testimonio {
    padding: 1.5rem 1.25rem;
  }
}

/* ─── FAQ ────────────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(184,92,56,0.15);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  transition: all 0.3s ease;
}
.faq-item[open] {
  background: rgba(255,255,255,0.92);
  border-color: rgba(184,92,56,0.35);
  box-shadow: 0 8px 24px rgba(61,44,30,0.06);
}
.faq-item summary {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  color: #3d2c1e;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 2rem;
  outline: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: #b85c38;
  font-weight: 300;
  transition: transform 0.3s ease;
  line-height: 1;
}
.faq-item[open] summary::after {
  content: '−';
  transform: translateY(-50%) rotate(180deg);
}
.faq-item p {
  margin-top: 1rem;
  color: #6b5a44;
  font-size: 0.95rem;
  line-height: 1.7;
  padding-top: 1rem;
  border-top: 1px solid rgba(184,92,56,0.12);
}
.faq-item p a {
  color: #b85c38;
  font-weight: 600;
  text-decoration: underline;
}

/* ─── ACCESIBILIDAD: Focus states ────────────────────────── */
*:focus {
  outline: none;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #b85c38;
  outline-offset: 3px;
  border-radius: 3px;
}
input:focus-visible,
textarea:focus-visible {
  outline-offset: 0;
  box-shadow: 0 0 0 3px rgba(184, 92, 56, 0.25);
  border-color: #b85c38;
}
.btn:focus-visible {
  outline-offset: 4px;
}
/* Skip link para accesibilidad teclado */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #3d2c1e;
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 9999;
  text-decoration: none;
  border-radius: 0 0 4px 0;
  font-weight: 600;
}
.skip-link:focus {
  top: 0;
}
