@font-face {
  font-family: 'Noah Text Black';
  src: url('assets/Noah Text Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: 'Montserrat';
  src: url('assets/Montserrat-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
}

:root {
  --primary: #4a4f54;
  --primary-dark: #4B4F54;
  --primary-light: #b5e1e3;
  --accent: #fff176;
  --accent-dark: #fdd835;
  --text: #1a1a1a;
  --text-light: #6f7378;
  --bg: #ffffff;
  --bg-soft: #f8faf8;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.8);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.1);
  --radius: 16px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modern Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: 'Noah Text Black', sans-serif;
  color: var(--primary-dark);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 300;
}

.text-center {
  text-align: center;
}

.section-padding {
  padding: 100px 5%;
}

/* Buttons */
.btn {
  display: inline-flex;
  text-align: center;
  line-height: 1.1;
  align-items: center;
  justify-content: center;
  padding: 1rem 1rem;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
  white-space: normal;
}

.btn-primary {
  background: #00afaa;
  color: var(--white);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background: #6ac9c9;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: var(--transition);
  background: rgba(231, 245, 245, 0.8);
  backdrop-filter: blur(10px);
}

header.sticky {
  padding: 1rem 5%;
  box-shadow: var(--shadow);
}

.logo {
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.60rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-name {
  font-family: 'Noah Text Black', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
}

.logo-tagline {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  opacity: 12;
  text-transform: uppercase;
  letter-spacing: 9px;
}

.nav-links {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links img {
  height: 70px;
  width: auto;
  display: block;
}

.nav-instagram:hover {
  transform: translateY(-2px);
  filter: brightness(1.2);
}

/* Menu Toggle (Hamburger) */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
  padding: 5px;
}

.menu-toggle span {
  display: block;
  width: 30px;
  height: 3px;
  background: var(--primary);
  border-radius: 10px;
  transition: var(--transition);
  transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Parallax Background (Persistent) */
.parallax-bg-left {
  position: fixed;
  left: -250px;
  top: 0%;
  width: 1000px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.3;
}

.parallax-bg-left img {
  width: 200%;
  height: auto;
  filter: grayscale(1) brightness(0.8);
}

/* WhatsApp Float - enhanced version */
#simple-chat-button--container {
  position: fixed;
  bottom: 50px;
  right: 20px;
  z-index: 999999999;
  display: flex;
  align-items: center;
  gap: 10px;
}

#simple-chat-button--button {
  display: block;
  position: relative;
  text-decoration: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #00afaa;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='white' d='M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-5.5-2.8-23.2-8.5-44.2-27.1-16.4-14.6-27.4-32.7-30.6-38.2-3.2-5.6-.3-8.6 2.5-11.3 2.5-2.5 5.5-6.5 8.3-9.7 2.8-3.3 3.7-5.6 5.5-9.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 13.2 5.8 23.5 9.2 31.5 11.8 14 4.5 26.9 3.8 37 2.3 11.2-1.7 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 34px;
  box-shadow: 0 6px 8px 2px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease-in-out;
  transform: scale(1);
}

#simple-chat-button--button:hover {
  background-color: #128c7e;
  transform: scale(1.1);
  box-shadow: 0 8px 12px 3px rgba(0, 0, 0, 0.2);
}

#simple-chat-button--text {
  background-color: #fff;
  border-radius: 5px;
  padding: 8px 12px;
  color: #000;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  order: -1;
  pointer-events: none;
}

#simple-chat-button--button:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: 50%;
  animation: scb-shockwave 2s infinite;
  background-color: #6ac9c9;
  z-index: -1;
}

@keyframes scb-shockwave {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* Sections */
section {
  position: relative;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 5% 60px;
  background: var(--primary-light);
  overflow: hidden;
  position: relative;
  /* Contain absolute background */
}

.hero::before {
  content: '';
  position: absolute;
  top: 9%;
  left: -10%;
  width: 170%;
  height: 220%;
  background-image: url('https://firebasestorage.googleapis.com/v0/b/veterinaria-web-c71b9.firebasestorage.app/o/ICONOS%2Fpajaro-21.svg?alt=media&token=697ff79b-8641-432a-9f9b-5500bf411522');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left center;
  opacity: 0.8;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, black 60%, transparent 100%);
  mask-image: linear-gradient(to right, black 60%, transparent 100%);
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
  /* Above background ::before */
  max-width: 1300px;
  margin: 0 auto;
}

.hero-content {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 2s forwards 0.2s;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-light);
  margin: 1.5rem 0 2.5rem;
  max-width: 600px;
}

.hero-btns {
  display: flex;
  gap: 1rem;
}

.hero-btns .btn {
  padding: 0.8rem 1.6rem;
  font-size: 0.95rem;
}

.hero-btns .btn-primary,
.hero-btns .btn-secondary {
  background: #00afaa;
  border-color: #00afaa;
}

.hero-btns .btn-primary:hover,
.hero-btns .btn-secondary:hover {
  background: #008f8a;
  border-color: #008f8a;
}

.hero-image {
  position: relative;
  opacity: 0;
  animation: heroImageFade 2s ease-out forwards 0.98s;
}

.hero-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-shape {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: var(--accent);
  border-radius: 50%;
  z-index: -1;
}

/* Benefits */
.benefits {
  background: var();
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: -80px auto 0;
  padding: 3rem;
  position: relative;
  z-index: 10;
}

.benefit-card {
  background: var(--white);
  padding: 3rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.benefit-card h3 {
  margin-bottom: 1rem;
}

.benefit-icon {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  height: 60px;
}

.benefit-icon img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

/* Services */
.services {
  background: var(--bg-soft);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  align-items: stretch;
}

.service-card {
  background: var(--white);
  padding: 2.2rem 1.5rem;
  border-radius: var(--radius);
  transition: var(--transition);
  color: inherit;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
}

.service-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  min-height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.service-card.card-consulta {
  background-color: #00afaa;
  color: white;
}

.service-card.card-hospital {
  background-color: #6ac9c9;
  color: white;
}

.service-card.card-cirugia {
  background-color: #cc70ad;
  color: white;
}

.service-card.card-desparasitacion {
  background-color: #cf9cc1;
  color: white;
}

.service-card.card-urgencias {
  background-color: #a7c440;
  color: white;
}

.service-card.card-domicilio {
  background-color: #c1dc87;
  color: white;
}

.service-card[class*="card-"] p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.service-card:hover .service-icon img {
  transform: scale(1.1);
}

.service-icon {
  width: 75px;
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
}

.service-icon img {
  width: 75px;
  height: 75px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

/* Agenda */
.agenda {
  background: var(--bg-soft);
}

.agenda-container {
  max-width: auto;
  margin: 0 auto;
}

.agenda-iframe-wrapper {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 3rem 0;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Gallery */
.gallery-container {
  position: relative;
  margin-top: 3rem;
  padding: 0 60px;
}

.gallery-grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 1.5rem;
  padding: 1rem 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.gallery-grid::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  flex: 0 0 calc(25% - 1.125rem);
  scroll-snap-align: center;
  height: 300px;
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
}

@media (max-width: 992px) {
  .gallery-item {
    flex: 0 0 calc(50% - 0.75rem);
  }
}

@media (max-width: 600px) {
  .gallery-item {
    flex: 0 0 100%;
  }

  .gallery-container {
    padding: 0 40px;
  }
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--white);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: var(--shadow);
  cursor: pointer;
  z-index: 10;
  font-size: 1.2rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-nav:hover {
  background: #00afaa;
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.gallery-nav.prev {
  left: 0;
}

.gallery-nav.next {
  right: 0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Blog Carousel */
.blog-container {
  position: relative;
  margin-top: 3rem;
  padding: 0 60px;
}

.blog-grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 2.3rem;
  padding: 1rem 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.blog-grid::-webkit-scrollbar {
  display: none;
}

.blog-card {
  flex: 0 0 calc(33.333% - 1.53rem);
  scroll-snap-align: start;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

@media (max-width: 992px) {
  .blog-card {
    flex: 0 0 calc(50% - 1.15rem);
  }
}

@media (max-width: 768px) {
  .blog-card {
    flex: 0 0 100%;
  }

  .blog-container {
    padding: 0 40px;
  }
}

.blog-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--white);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: var(--shadow);
  cursor: pointer;
  z-index: 10;
  font-size: 1.2rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-nav:hover {
  background: #00afaa;
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.blog-nav.prev {
  left: 0;
}

.blog-nav.next {
  right: 0;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.blog-img {
  height: 350px;
  background: var(--primary-light);
}

.blog-content {
  padding: 2rem;
}

.blog-content h4 {
  margin-bottom: 1rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: #ffffff;
  line-height: 1.2;
}

.blog-content p {
  color: rgba(255, 255, 255, 0.9);
}

/* Blog card individual background colors */
.blog-card-1 .blog-content {
  background: #6ac9c9;
}

.blog-card-2 .blog-content {
  background: #cc70ad;
}

.blog-card-3 .blog-content {
  background: #a7c440;
}

.blog-link {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  transition: var(--transition);
}

.blog-link:hover {
  color: #ffffff;
  letter-spacing: 0.03em;
}

/* Blog Skeleton Loader */
.skeleton-shimmer {
  background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

.skeleton-line {
  border-radius: 6px;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.blog-skeleton .blog-img {
  background: #e0e0e0 !important;
}

/* Blog Empty State */
.blog-empty-state {
  text-align: center;
  padding: 5rem 2rem;
  margin-top: 3rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 2px dashed rgba(0, 0, 0, 0.08);
}

.blog-empty-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.blog-empty-state h3 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  color: var(--primary-dark);
}

.blog-empty-state p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 450px;
  margin: 0 auto;
}

/* ─── Blog Article Overlay ─── */
.blog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  z-index: 10000;
  background: var(--white);
  overflow-y: auto;
  overflow-x: hidden;
  animation: overlaySlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes overlaySlideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.blog-overlay-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 1rem 5%;
}

.blog-overlay-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: #00afaa;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: var(--transition);
}

.blog-overlay-back:hover {
  background: rgba(0, 175, 170, 0.08);
  color: #008f8a;
}

.blog-overlay-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 5%;
}

/* Article Loader */
.blog-article-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}

.blog-loader-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(0, 175, 170, 0.15);
  border-top-color: #00afaa;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Article Hero */
.blog-article-hero {
  margin: 2rem -5%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 500px;
}

.blog-article-hero img {
  width: 100%;
  height: 100%;
  max-height: 500px;
  object-fit: cover;
}

.blog-article-wrapper {
  padding: 2.5rem 0 5rem;
}

.blog-article-meta {
  margin-bottom: 1rem;
}

.blog-article-date {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
  padding: 0.4rem 1rem;
  background: var(--bg-soft);
  border-radius: 50px;
}

.blog-article-title {
  font-family: 'Noah Text Black', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--primary-dark);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.blog-article-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid rgba(0, 0, 0, 0.06);
}

/* Image Gallery */
.blog-article-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.blog-article-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.blog-article-gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ─── Rich Text Content (Quill output) ─── */
.blog-article-richtext,
.blog-article-richtext * {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none !important;
  -webkit-hyphens: none !important;
  -ms-hyphens: none !important;
}

.blog-article-richtext h1 {
  font-size: 2rem;
  margin: 2rem 0 1rem;
}

.blog-article-richtext h2 {
  font-size: 1.6rem;
  margin: 1.8rem 0 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(0, 0, 0, 0.06);
}

.blog-article-richtext h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 1.5rem 0 0.6rem;
}

.blog-article-richtext p {
  margin-bottom: 1.2rem;
}

.blog-article-richtext img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5rem 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.blog-article-richtext ul,
.blog-article-richtext ol {
  padding-left: 1.8rem;
  margin-bottom: 1.2rem;
}

.blog-article-richtext li {
  margin-bottom: 0.5rem;
  list-style: disc;
}

.blog-article-richtext ol li {
  list-style: decimal;
}

.blog-article-richtext blockquote {
  border-left: 4px solid #00afaa;
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: rgba(0, 175, 170, 0.04);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--text-light);
}

.blog-article-richtext a {
  color: #00afaa;
  text-decoration: underline;
  text-decoration-color: rgba(0, 175, 170, 0.3);
  text-underline-offset: 3px;
  transition: var(--transition);
}

.blog-article-richtext a:hover {
  color: #008f8a;
  text-decoration-color: #008f8a;
}

.blog-article-richtext pre {
  background: #2d3436;
  color: #dfe6e9;
  padding: 1.2rem 1.5rem;
  border-radius: 12px;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.blog-article-richtext strong {
  font-weight: 700;
  color: var(--primary-dark);
}

.blog-article-richtext em {
  font-style: italic;
}

/* Responsive Article */
@media (max-width: 768px) {
  .blog-article-hero {
    margin: 1rem -5%;
    max-height: 300px;
    border-radius: 0;
  }

  .blog-article-hero img {
    max-height: 300px;
  }

  .blog-article-wrapper {
    padding: 1.5rem 0 3rem;
  }

  .blog-article-title {
    font-size: 1.8rem;
  }

  .blog-article-subtitle {
    font-size: 1.05rem;
  }

  .blog-article-richtext {
    font-size: 1rem;
  }

  .blog-article-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .blog-article-gallery img {
    height: 150px;
  }
}

/* About */
.about {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
}

.about-img img {
  border-radius: var(--radius-lg);
}

.about-content h2 {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 2rem;
}

.about-content p {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-soft);
  margin-bottom: 2rem;
}

.about-link {
  display: inline-block;
  color: #00afaa;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.2rem;
  transition: var(--transition);
}

.about-link:hover {
  transform: translateX(8px);
  color: #008f8a;
}

/* Equipo Section */
.equipo-section {
  display: block;
  background: var(--white);
}

.equipo-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1000px;
  margin: 3rem auto 0;
}

.equipo-info h3 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.equipo-info p {
  font-size: 1.15rem;
  color: var(--text-light);
  line-height: 1.7;
}

.equipo-img img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

@media (max-width: 992px) {
  .equipo-layout {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .equipo-img {
    max-width: 600px;
    margin: 0 auto;
  }
}

/* Contact */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info-item {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.contact-info-item h4 {
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
}

.contact-info-item p {
  font-size: 1.15rem;
  color: var(--text-soft);
}

.contact-info-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.contact-form {
  background: #a3a5a8;
  padding: 3rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form .btn {
  background-color: #cc70ad;
  border-color: #cc70ad;
  color: white;
}

.contact-form .btn:hover {
  background-color: #b55a96;
  border-color: #b55a96;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

/* Footer */
footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 80px 5% 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  opacity: 0.8;
}

.footer-links a:hover {
  opacity: 1;
  padding-left: 5px;
}

.footer-instagram {
  display: inline-block;
  vertical-align: middle;
}

.footer-instagram img {
  height: 50px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  transition: var(--transition);
}

.footer-instagram:hover img {
  transform: translateY(-3px);
  opacity: 0.8;
}

.footer-bottom {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.6;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroImageFade {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(15px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero::before {
    width: 200%;
    height: 180%;
    left: -20%;
    top: 5%;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-container,
  .about,
  .contact-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero-image {
    max-width: 600px;
    margin: 0 auto;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
  }

  .nav-links .nav-instagram img {
    height: 80px;
  }

  .logo-name {
    font-size: 1.6rem;
  }

  .logo-tagline {
    font-size: 0.8rem;
    letter-spacing: 4px;
  }

  .logo img {
    height: 60px !important;
  }

  header {
    padding: 1rem 5%;
  }

  .nav-cta .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero::before {
    width: 300%;
    height: 150%;
    left: -100%;
    top: -10%;
    opacity: 0.5;
  }
}

@media (max-width: 768px) {
  .hero-content {
    padding-top: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .section-padding {
    padding: 60px 5%;
  }
}

@media (max-width: 480px) {
  .hero::before {
    display: none;
    /* Hide on very small screens to avoid clutter */
  }

  .parallax-bg-left,
  .static-bg-left {
    display: none;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* === AGENDA MOBILE FULLSCREEN === */
.agenda-close-btn {
  display: none;
}

@media (max-width: 768px) {

  /* Ocultar la sección de agenda en el flujo normal de móvil */
  .agenda,
  .agenda-container {
    display: contents;
  }

  .agenda-container>*:not(.agenda-iframe-wrapper) {
    display: none;
  }

  .agenda-iframe-wrapper {
    /* Estado por defecto: oculto */
    display: none;
  }

  .agenda-iframe-wrapper.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    /* Usar dvh para cubrir correctamente en Safari iOS */
    height: 100dvh;
    z-index: 99999;
    background: white;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }

  .agenda-iframe-wrapper.open iframe {
    flex: 1;
    width: 100%;
    height: 100%;
    border: none;
    /* Clave para permitir scroll en iOS */
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
  }

  /* Botón cerrar estilizado */
  .agenda-close-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: white;
    border: none;
    border-bottom: 1px solid #eee;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary, #4a7c59);
    /* usa el color primario de tu sitio */
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: left;
    flex-shrink: 0;
  }

  .agenda-close-btn::before {
    content: '←';
    font-size: 1.1rem;
  }

  .hide-mobile {
    display: none !important;
  }
}

/* About Expandable Section */
.about-more-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s ease;
}

.about-more-wrapper.expanded {
  grid-template-rows: 1fr;
}

.about-more-content {
  overflow: hidden;
}