/* =============================================
   SANJUÁN PODOLOGÍA AVANZADA - ESTILOS GLOBALES
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400&display=swap');

/* ---- CSS VARIABLES ---- */
:root {
  --color-orange: #eb6516;
  --color-orange-dark: #f16e43;
  --color-orange-hover: #ff6947;
  --color-black: #000000;
  --color-white: #ffffff;
  --color-gray-light: #f5f5f5;
  --color-gray-medium: #ededed;
  --color-gray-dark: #3a3a3a;
  --color-gray-text: #9b9b9b;
  --color-border: #dddddd;
  --font-primary: 'Montserrat', sans-serif;
  --max-width: 1240px;
  --transition: all 0.2s linear;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.857;
  color: var(--color-black);
  background-color: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-orange);
  text-decoration: none;
  transition: var(--transition);
}

a:hover { color: var(--color-orange-hover); }

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

ul { list-style: none; }

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-black);
  margin: 0;
}

h1 { font-size: 4.667rem; }
h2 { font-size: 2.667rem; line-height: 1.3; }
h3 { font-size: 1.6rem; line-height: 1.4; }

/* ---- LAYOUT ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 35px;
}

.section-pad {
  padding: 80px 0;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 30px;
  font-family: var(--font-primary);
  font-size: 0.933rem;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-orange);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-orange-hover);
  color: var(--color-white);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-orange);
  border: 2px solid var(--color-orange);
}

.btn-outline:hover {
  background-color: var(--color-orange);
  color: var(--color-white);
}

.btn-sm {
  padding: 8px 22px;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ============================================
   HEADER / NAVEGACIÓN
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: var(--color-white);
  box-shadow: 0 1px 10px rgba(0,0,0,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  padding: 8px 0;
  gap: 20px;
}

/* Logo */
.site-logo img {
  height: 108px;
  width: auto;
  object-fit: contain;
}

/* Nav */
.main-nav ul {
  display: flex;
  gap: 0;
  align-items: center;
}

.main-nav .menu-link {
  display: inline-block;
  padding: 0 1em;
  color: var(--color-black);
  font-size: 0.867rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: var(--transition);
  text-transform: uppercase;
  line-height: 1;
}

.main-nav .menu-link:hover,
.main-nav .menu-item.active .menu-link {
  color: var(--color-orange);
}

/* Mobile toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--color-black);
  transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #1a1a1a;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../wp-content/uploads/2019/07/fondo_cabecera-e1563459483963.jpg.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.55;
}

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  padding: 60px 0;
}

.hero-tagline {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.05;
  margin-bottom: 30px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
  animation: fadeInUp 0.8s ease both;
}

.hero-cta {
  animation: fadeIn 0.8s ease 0.5s both;
}

.hero-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.85);
  font-size: 0.933rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-orange);
  transition: var(--transition);
}

.hero-cta-link:hover {
  color: var(--color-white);
}

.hero-cta-link svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
}

.hero-cta .btn {
  padding: 14px 32px;
  font-size: 0.867rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* Info cards at bottom of hero */
.hero-info-bar {
  position: absolute;
  left: 0;
  top: 65.5%;
  transform: translateY(-50%);
  z-index: 3;
  width: 100%;
  background: transparent;
  animation: slideInRight 0.8s ease 0.3s both;
}

.hero-info-cards {
  display: flex;
  gap: 0;
  width: 100%;
}

.hero-info-spacer {
  flex: 1;
}

.hero-info-card {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 32px 45px;
}

.hero-info-card.hero-info-text {
  background: rgba(255, 255, 255, 0.82);
}

.hero-info-card.hero-info-address {
  gap: 18px;
  background: var(--color-white);
}

.hero-info-card h3 {
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--color-black);
  margin-bottom: 0;
}

.hero-info-card h3 strong {
  font-weight: 800;
}

.hero-info-card .icon-map-wrap {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border: 2px solid var(--color-orange);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-info-card .icon-map {
  width: 22px;
  height: 22px;
  fill: var(--color-orange);
}

.hero-info-card .address-title {
  font-size: 0.933rem;
  font-weight: 700;
  color: var(--color-black);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

.hero-info-card .address-lines {
  font-size: 0.8rem;
  color: #333;
  line-height: 1.5;
  margin-bottom: 0;
}

/* ============================================
   QUOTE / INTRO SECTION
   ============================================ */
.quote-section {
  padding: 80px 0 60px;
  text-align: center;
  background: var(--color-white);
}

.quote-text {
  font-size: 1.4rem;
  font-weight: 400;
  font-style: italic;
  color: var(--color-black);
  max-width: 700px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

.quote-divider {
  width: 60px;
  height: 3px;
  background-color: var(--color-orange);
  margin: 20px auto;
}

.quote-author {
  font-size: 0.867rem;
  font-weight: 600;
  color: var(--color-gray-text);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ============================================
   NOSOTROS / ABOUT SECTION
   ============================================ */
.about-section {
  padding: 80px 0;
  background: var(--color-gray-light);
}

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

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 4px;
}

.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background-color: var(--color-orange);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: 800;
  box-shadow: 0 4px 20px rgba(235,101,22,0.4);
}

.about-badge .years {
  font-size: 1.8rem;
  line-height: 1;
}

.about-badge .years-text {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

.about-content h2 {
  margin-bottom: 20px;
  font-size: 2.2rem;
}

.about-content h2 strong {
  color: var(--color-orange);
  font-weight: 800;
}

.about-content p {
  color: #444;
  line-height: 1.8;
  margin-bottom: 1.5em;
}

.about-stats {
  display: flex;
  gap: 30px;
  margin: 30px 0;
  flex-wrap: wrap;
}

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

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-orange);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ============================================
   SERVICES / TRATAMIENTOS SECTION
   ============================================ */
.services-section {
  padding: 80px 0;
  background: var(--color-white);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  margin-bottom: 15px;
  font-size: 2.2rem;
}

.section-header .divider {
  width: 50px;
  height: 2px;
  background-color: var(--color-orange);
  margin: 15px auto;
}

.section-header p {
  color: #555;
  max-width: 600px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.service-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.service-card-inner {
  position: relative;
  height: 320px;
  overflow: hidden;
}

.service-card-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card-inner img {
  transform: scale(1.05);
}

.service-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 30%, rgba(0,0,0,0.2) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 24px;
  transition: var(--transition);
}

.service-card:hover .service-overlay {
  background: linear-gradient(to top, rgba(235,101,22,0.9) 30%, rgba(235,101,22,0.4) 100%);
}

.service-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-desc {
  font-size: 0.867rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
  margin-bottom: 0;
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.3s ease;
}

.service-card:hover .service-desc {
  transform: translateY(0);
  opacity: 1;
}

.services-cta {
  text-align: center;
  margin-top: 40px;
}

/* ============================================
   TRATAMIENTOS DETALLE SECTION (alternating)
   ============================================ */
.treatment-row {
  padding: 70px 0;
  background: var(--color-white);
}

.treatment-row:nth-child(even) {
  background: var(--color-gray-medium);
}

.treatment-row-inner {
  display: grid;
  grid-template-columns: minmax(260px, 460px) 1fr;
  gap: 70px;
  align-items: start;
}

.treatment-image {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.treatment-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.treatment-row:hover .treatment-image img {
  transform: scale(1.02);
}

.treatment-content {
  padding: 0;
}

.treatment-content h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-black);
  text-align: center;
  margin-bottom: 20px;
}

.treatment-content p {
  font-size: 0.933rem;
  color: #444;
  line-height: 1.8;
  text-align: left;
  margin-bottom: 1.2em;
}

.treatment-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
}

.treatment-divider {
  width: 2px;
  height: 50px;
  background-color: var(--color-orange);
  flex-shrink: 0;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  padding: 80px 0;
  background-image: linear-gradient(to right, rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
    url('../wp-content/uploads/2019/07/fondo_cabecera-e1563459483963.jpg.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
}

.cta-banner h2 {
  color: var(--color-white);
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.cta-banner p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 30px;
}

/* ============================================
   EQUIPO / TEAM SECTION
   ============================================ */
.team-section {
  padding: 80px 0;
  background: var(--color-white);
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.team-row-break {
  flex-basis: 100%;
  width: 0;
  height: 0;
  margin: 0;
}

.team-card {
  flex: 0 1 340px;
  text-align: center;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.team-card:hover {
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}

.team-card-image {
  height: 280px;
  overflow: hidden;
}

.team-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}

.team-card:hover .team-card-image img {
  transform: scale(1.03);
}

.team-card-info {
  padding: 24px 20px;
}

.team-card-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 6px;
}

.team-card-info .role {
  font-size: 0.8rem;
  color: var(--color-orange);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-bottom: 12px;
}

.team-card-info p {
  font-size: 0.867rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ============================================
   NUESTRO CENTRO / CLINIC SECTION
   ============================================ */
.clinic-section {
  padding: 80px 0;
  background: var(--color-gray-light);
}

.clinic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.clinic-content h2 {
  margin-bottom: 20px;
}

.clinic-content p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 1.5em;
}

.clinic-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 30px 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  background-color: var(--color-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 18px;
  height: 18px;
  fill: white;
}

.feature-text h4 {
  font-size: 0.933rem;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 4px;
}

.feature-text p {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0;
  line-height: 1.4;
}

.clinic-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  height: 500px;
}

.clinic-gallery .gallery-img {
  overflow: hidden;
  border-radius: 4px;
}

.clinic-gallery .gallery-img:first-child {
  grid-row: span 2;
}

.clinic-gallery .gallery-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.clinic-gallery .gallery-img:hover img {
  transform: scale(1.05);
}

/* ============================================
   PHOTO GALLERY GRID (nuestro-centro.html)
   ============================================ */
.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.photo-gallery-grid a {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4 / 3;
}

.photo-gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.photo-gallery-grid a:hover img {
  transform: scale(1.06);
}

/* ============================================
   CLINIC PHOTO CAROUSEL (nuestro-centro.html)
   ============================================ */
.clinic-carousel {
  position: relative;
  overflow: hidden;
}

.clinic-carousel-track {
  display: flex;
}

.clinic-carousel-slide {
  flex: 0 0 calc((100% - 2 * 16px) / 3);
  margin-right: 16px;
  aspect-ratio: 4 / 3;
}

.clinic-carousel-slide a {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 4px;
}

.clinic-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.clinic-carousel-slide a:hover img {
  transform: scale(1.06);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  border: none;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--color-orange);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.carousel-arrow:hover {
  background: var(--color-orange);
  color: var(--color-white);
}

.carousel-arrow.prev { left: 12px; }
.carousel-arrow.next { right: 12px; }

/* ============================================
   LIGHTBOX (fullscreen image viewer with nav)
   ============================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9998;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 10px;
}

.lightbox .lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: none;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.lightbox .lightbox-arrow:hover {
  background: var(--color-orange);
}

.lightbox .lightbox-arrow.prev { left: 20px; }
.lightbox .lightbox-arrow.next { right: 20px; }

@media (max-width: 600px) {
  .lightbox .lightbox-arrow { width: 40px; height: 40px; font-size: 1.5rem; }
  .lightbox-close { top: 10px; right: 12px; font-size: 1.8rem; }
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
  padding: 80px 0;
  background: var(--color-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 10px;
}

.contact-info .subtitle {
  color: var(--color-gray-text);
  margin-bottom: 30px;
  font-size: 0.933rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
}

.contact-item-icon {
  width: 45px;
  height: 45px;
  background-color: var(--color-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.contact-item-text h4 {
  font-size: 0.933rem;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 3px;
}

.contact-item-text p,
.contact-item-text a {
  font-size: 0.933rem;
  color: #555;
  margin-bottom: 0;
  line-height: 1.5;
}

.contact-item-text a:hover {
  color: var(--color-orange);
}

.hours-table {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
}

.hours-table tr {
  border-bottom: 1px solid var(--color-border);
}

.hours-table td {
  padding: 8px 0;
  font-size: 0.867rem;
}

.hours-table td:first-child {
  color: #333;
  font-weight: 600;
}

.hours-table td:last-child {
  color: #666;
  text-align: right;
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--color-gray-light);
  padding: 40px;
  border-radius: 8px;
}

.contact-form-wrapper h3 {
  margin-bottom: 25px;
  font-size: 1.3rem;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #333;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: var(--font-primary);
  font-size: 0.933rem;
  color: #333;
  background: var(--color-white);
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-orange);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

/* Map */
.map-container {
  margin-top: 60px;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================
   BLOG SECTION
   ============================================ */
.blog-section {
  padding: 80px 0;
  background: var(--color-gray-light);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 40px;
}

.blog-card {
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.blog-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.blog-card-image {
  display: block;
  height: 200px;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-content {
  padding: 24px 20px;
}

.blog-card-date {
  font-size: 0.75rem;
  color: var(--color-orange);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 8px;
}

.blog-card-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 12px;
  line-height: 1.4;
}

.blog-card-content p {
  font-size: 0.867rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}

.blog-card-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-orange);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.blog-card-link:hover {
  gap: 10px;
}

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
  position: relative;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #1a1a1a;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.5;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.page-hero-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--color-white);
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
}

.breadcrumb a,
.breadcrumb span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
}

.breadcrumb a:hover { color: var(--color-orange); }
.breadcrumb .sep { color: rgba(255,255,255,0.4); }
.breadcrumb .current { color: var(--color-white); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background-image: linear-gradient(to right, rgba(0,0,0,0.75), rgba(0,0,0,0.75)),
    url('../wp-content/uploads/2019/07/fondo_cabecera-e1563459483963.jpg.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 80px 0 30px;
  color: var(--color-white);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.social-link {
  width: 36px;
  height: 36px;
  background-color: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.social-link:hover {
  background-color: var(--color-orange);
}

.social-link svg {
  width: 16px;
  height: 16px;
  fill: white;
}

.footer-widget h4 {
  font-size: 0.933rem;
  font-weight: 700;
  color: var(--color-orange);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer-widget ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-widget ul li a {
  font-size: 0.867rem;
  color: rgba(255,255,255,0.75);
  transition: var(--transition);
}

.footer-widget ul li a:hover {
  color: var(--color-orange);
  padding-left: 5px;
}

.footer-widget .contact-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-widget .contact-line svg {
  width: 16px;
  height: 16px;
  fill: var(--color-orange);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-widget .contact-line span,
.footer-widget .contact-line a {
  font-size: 0.867rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}

.footer-widget .contact-line a:hover {
  color: var(--color-orange);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

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

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav .menu-link {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: color 0.2s ease;
}

.mobile-nav .menu-link:hover {
  color: var(--color-orange);
}

.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: white;
  font-size: 2rem;
  line-height: 1;
  padding: 10px;
}

/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */
.cookie-banner {
  display: none;
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 640px;
  margin: 0 auto;
  background: #1a1a1a;
  color: rgba(255,255,255,0.9);
  border-radius: 8px;
  padding: 22px 26px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  z-index: 1000;
}

.cookie-banner.visible { display: block; }

.cookie-banner p {
  font-size: 0.833rem;
  line-height: 1.6;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.8);
}

.cookie-banner a {
  color: var(--color-orange-dark);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-banner .btn-outline {
  color: var(--color-white);
  border-color: rgba(255,255,255,0.4);
}

.cookie-banner .btn-outline:hover {
  background-color: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.4);
  color: var(--color-white);
}

/* ============================================
   SIMPLE PAGE TITLE (inner pages without photo hero)
   ============================================ */
.page-title-block {
  padding: 150px 0 60px;
  text-align: center;
}

.page-title-block .eyebrow {
  display: block;
  font-size: 0.933rem;
  font-weight: 600;
  color: var(--color-orange);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.page-title-block h1 {
  font-size: 3.2rem;
}

/* ============================================
   SERVICES ICON GRID (homepage "Tratamientos Podológicos")
   ============================================ */
.services-icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
  margin-top: 30px;
}

.service-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.service-feature .feature-icon {
  width: 44px;
  height: 44px;
}

.service-feature .feature-icon svg {
  width: 20px;
  height: 20px;
}

.service-feature h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 6px;
}

.service-feature p {
  font-size: 0.867rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ============================================
   TESTIMONIAL SECTION
   ============================================ */
.testimonial-section {
  padding: 70px 0;
  background: var(--color-gray-light);
  text-align: center;
}

.testimonial-eyebrow {
  color: var(--color-gray-text);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0;
}

.testimonial-eyebrow + .testimonial-eyebrow {
  font-size: 1.6rem;
  color: var(--color-black);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 30px;
}

.testimonial-quote {
  max-width: 780px;
  margin: 0 auto 25px;
  font-size: 1.1rem;
  font-style: italic;
  color: #333;
  line-height: 1.8;
}

.testimonial-author {
  font-weight: 700;
  font-size: 0.933rem;
  color: var(--color-black);
  margin-bottom: 25px;
}

/* ============================================
   INSURANCE / PARTNER LOGOS STRIP
   ============================================ */
.insurance-logos {
  padding: 40px 0;
  border-top: 1px solid var(--color-border);
}

.insurance-logos-track {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.insurance-logos-grid {
  display: flex;
  align-items: center;
  gap: 60px;
  width: max-content;
  animation: logos-scroll 22s linear infinite;
}

.insurance-logos-track:hover .insurance-logos-grid {
  animation-play-state: paused;
}

.insurance-logos-grid img {
  max-height: 42px;
  width: auto;
  flex-shrink: 0;
  opacity: 0.65;
  filter: grayscale(100%);
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.insurance-logos-grid img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

@keyframes logos-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================
   CONTACT PHOTO LAYOUT (contacto.html)
   ============================================ */
.contact-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: stretch;
}

.contact-photo img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  border-radius: 4px;
}

.contact-photo-grid h1 {
  margin-bottom: 25px;
}

.privacy-toggle {
  display: inline-block;
  cursor: pointer;
  font-size: 0.867rem;
  color: #555;
  margin-bottom: 10px;
  user-select: none;
}

.privacy-toggle:hover { color: var(--color-orange); }

.privacy-details {
  display: none;
  font-size: 0.8rem;
  color: #666;
  line-height: 1.8;
  background: var(--color-gray-light);
  padding: 15px 18px;
  border-radius: 4px;
  margin-bottom: 18px;
}

.privacy-details.open { display: block; }

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 0.867rem;
  color: #555;
}

.checkbox-group input { width: auto; margin-top: 4px; }

/* ============================================
   LEGAL / COOKIES CONTENT
   ============================================ */
.legal-content {
  padding: 60px 0 90px;
  max-width: 900px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 2.6rem;
  margin-bottom: 35px;
}

.legal-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-orange);
  margin: 35px 0 12px;
}

.legal-content p {
  color: #444;
  line-height: 1.85;
  margin-bottom: 1.5em;
}

.legal-content ul {
  list-style: disc;
  margin: 0 0 1.5em 1.3em;
}

.legal-content li {
  color: #444;
  line-height: 1.7;
  margin-bottom: 6px;
}

.legal-content a { text-decoration: underline; }

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2em;
  font-size: 0.867rem;
}

.legal-content table th,
.legal-content table td {
  border: 1px solid var(--color-border);
  padding: 8px 10px;
  text-align: left;
}

/* ============================================
   BLOG POST (single article)
   ============================================ */
.blog-post-header {
  padding: 150px 0 30px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.blog-post-header h1 {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.blog-post-meta {
  color: var(--color-gray-text);
  font-size: 0.867rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blog-post-image {
  max-width: 900px;
  margin: 0 auto 20px;
  padding: 0 35px;
}

.blog-post-image img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 6px;
}

.blog-post-audio {
  max-width: 900px;
  margin: 0 auto 20px;
  padding: 0 35px;
}

.blog-post-audio audio {
  width: 100%;
}

.legal-content.blog-post {
  padding-top: 20px;
}

.legal-content.blog-post h1 {
  font-size: 1.8rem;
}

.blog-post-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 900px;
  margin: 30px auto 0;
  padding-top: 25px;
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.blog-post-nav a {
  font-size: 0.867rem;
  font-weight: 600;
  color: var(--color-black);
}

.blog-post-nav a:hover { color: var(--color-orange); }

.blog-post-nav .next { margin-left: auto; text-align: right; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2rem; }
  .about-grid,
  .clinic-grid,
  .contact-grid { gap: 40px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .about-grid,
  .clinic-grid { grid-template-columns: 1fr; }
  .about-image { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .treatment-row-inner { grid-template-columns: 1fr; gap: 30px; }
  .services-icon-grid { grid-template-columns: 1fr 1fr; }
  .contact-photo-grid { grid-template-columns: 1fr; }
  .contact-photo img { min-height: 280px; }
  .clinic-carousel-slide { flex: 0 0 calc((100% - 16px) / 2); }
}

@media (max-width: 768px) {
  html { font-size: 14px; }
  .section-pad { padding: 60px 0; }
  .container { padding: 0 20px; }
  h1 { font-size: 2.8rem; }
  h2 { font-size: 1.8rem; }
  .hero-section { min-height: 70vh; }
  .hero-info-cards { flex-direction: column; margin-top: 0; }
  .hero-info-spacer { display: none; }
  .hero-info-card { padding: 22px 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .clinic-features { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .about-image img { height: 350px; }
  .clinic-gallery { height: 350px; }
  .clinic-carousel-slide { flex: 0 0 100%; }
  .carousel-arrow { width: 36px; height: 36px; font-size: 1.3rem; }
  .hero-tagline { font-size: 2.5rem; }
  .cta-banner { background-attachment: scroll; }
  .site-footer { background-attachment: scroll; }
  .hero-bg { background-attachment: scroll; }
  .page-hero { height: 220px; }
  .page-hero-content h1 { font-size: 2rem; }
  .page-title-block { padding: 120px 0 40px; }
  .page-title-block h1 { font-size: 2.2rem; }
  .blog-post-header { padding: 120px 0 30px; }
  .blog-post-header h1 { font-size: 1.8rem; }
  .services-icon-grid { grid-template-columns: 1fr; }
  .insurance-logos-grid { gap: 25px; }
  .legal-content { padding: 40px 0 60px; }
  .legal-content h1 { font-size: 2rem; }
}

@media (max-width: 480px) {
  .hero-tagline { font-size: 2rem; }
  .about-stats { justify-content: center; }
  .team-card { flex-basis: 100%; }
  .contact-form-wrapper { padding: 25px 20px; }
}
