:root {
  --brand: #E36414;
  --brand-light: #F97316;
  --brand-dark: #C2410C;
  --whatsapp: #25D366;
  --text: #0F172A;
  --text-light: #475569;
  --text-muted: #475569;
  --bg: #FFFFFF;
  --bg-soft: #F8FAFC;
  --bg-card: #FFFFFF;
  --border: #E2E8F0;
  --shadow: rgba(15,23,42,0.1);
  --shadow-lg: rgba(15,23,42,0.15);
  --gradient-brand: linear-gradient(135deg,#F97316 0%,#E36414 100%);
  --gradient-overlay: linear-gradient(135deg,rgba(15,23,42,0.9) 0%,rgba(30,41,59,0.8) 100%);
  
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  
  --container-max-width: 1200px;
  --container-gutter: 24px;
  --grid-gutter: 2rem;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

.service-image {
  margin-top: 1rem;
  text-align: center;
}

.service-img {
  max-width: 100%;
  height: auto;
  max-height: 200px;
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
}

.service-caption {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  font-style: italic;
}

.leak-repair-img {
  max-width: 70%;
  height: auto;
  max-height: 200px;
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
}

.leak-repair-caption {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
  font-style: italic;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg-soft);
  font-weight: 400;
  letter-spacing: -0.01em;
  padding-top: 80px;
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-gutter);
}

h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1.25rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-brand);
  border-radius: 2px;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin-bottom: 1rem;
  font-weight: 700;
}

p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: var(--space-sm);
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

.logo:hover {
  color: var(--brand);
  transform: scale(1.02);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-md);
}

.nav-link {
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.hero {
  min-height: 85vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 140px 16px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-soft) 0%, #E2E8F0 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-overlay);
  opacity: 0.1;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  color: var(--text-light);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.btn-primary {
  display: inline-block;
  background: var(--gradient-brand);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 16px 32px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(227,100,20,0.3);
  min-height: 44px;
  min-width: 44px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(227,100,20,0.4);
  filter: brightness(1.05);
}

.btn-secondary {
  display: inline-block;
  background: white;
  color: #334155;
  border: 2px solid #334155;
  border-radius: 12px;
  padding: 16px 32px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  text-align: center;
  box-shadow: 0 2px 8px var(--shadow);
  min-height: 44px;
  min-width: 44px;
}

.btn-secondary:hover {
  background: #334155;
  border-color: #334155;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--shadow);
}

.section {
  padding: 80px 0;
  scroll-margin-top: 120px;
}

.section-alt {
  background: var(--bg);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.card {
  background: var(--bg-card);
  padding: 2.5rem 2rem;
  border-radius: 20px;
  box-shadow: 0 4px 24px var(--shadow);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 48px var(--shadow-lg);
  border-color: var(--brand);
}

.card h3 {
  color: var(--text);
  margin-bottom: 1rem;
  font-weight: 700;
}

.card p {
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px var(--shadow-lg);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.feature {
  padding: var(--space-md);
}

.feature h3 {
  color: var(--text);
  margin-bottom: var(--space-xs);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  max-width: 900px;
  margin: 0 auto;
}

.contact-info p {
  margin-bottom: var(--space-sm);
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(227,100,20,0.1);
}

.footer {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #F8FAFC;
  padding: 4rem 0 2rem;
  margin-top: 4rem;
  text-align: center;
}

.footer p {
  color: #CBD5E1;
  font-size: 0.95rem;
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.hero h1 {
  animation: fadeInUp 0.8s ease-out;
}

.hero .btn-primary {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  width: 28px;
  height: 20px;
  cursor: pointer;
  z-index: 100;
  background: none;
  border: none;
  padding: 0;
}

.mobile-menu-btn span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

.mobile-menu-btn span:nth-child(1) {
  margin-bottom: 5px;
}

.mobile-menu-btn span:nth-child(2) {
  margin-bottom: 5px;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  background: var(--brand);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
  background: var(--brand);
}

/* Service icons */
.service-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
  text-align: center;
}

/* WhatsApp link styling */
.whatsapp-link {
  color: var(--whatsapp);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px;
}

.whatsapp-link:hover {
  color: #128C7E;
  text-decoration: underline;
  text-shadow: 0 0 8px rgba(37,211,102,0.3);
}

/* Hero contact info */
.hero-contact {
  font-size: 1.125rem;
  color: var(--brand);
  font-weight: 600;
  margin-top: 1rem;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* Benefits section */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.benefit {
  text-align: center;
  padding: 1.5rem 1rem;
}

.benefit-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}


.benefit h3 {
  font-size: 1rem;
  margin-bottom: 0;
  color: var(--text);
}

/* Emergency section */
.emergency-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.emergency-text {
  font-size: 1.125rem;
  color: var(--text);
  margin-bottom: 1rem;
}

.emergency-action {
  font-size: 1.25rem;
  color: var(--brand);
  margin-bottom: 2rem;
}

.emergency-btn {
  font-size: 1.125rem;
  padding: 18px 36px;
}

/* Zones section */
.zones-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.zones-content p {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.zones-question {
  font-size: 1rem;
  color: var(--text-light);
}

/* Pricing section */
.pricing-content {
  max-width: 600px;
  margin: 0 auto;
}

.pricing-box {
  background: var(--bg-card);
  padding: 2.5rem 2rem;
  border-radius: 20px;
  box-shadow: 0 4px 24px var(--shadow);
  border: 2px solid var(--brand);
  text-align: center;
}

.pricing-box h3 {
  font-size: 1.5rem;
  color: var(--brand);
  margin-bottom: 1rem;
}

.pricing-box p {
  margin-bottom: 1rem;
}

/* Process section */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.step {
  text-align: center;
  padding: 1.5rem 1rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--gradient-brand);
  color: white;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.125rem;
  margin-bottom: 0;
}

/* Testimonials section */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.testimonial {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 24px var(--shadow);
  border-left: 4px solid var(--brand);
}

.testimonial p {
  font-size: 1.125rem;
  color: var(--text);
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial cite {
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 500;
}

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

.faq-item {
  background: var(--bg-card);
  padding: 1.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px var(--shadow);
  margin-bottom: 1rem;
  border-left: 4px solid var(--brand);
}

.faq-item h3 {
  font-size: 1.125rem;
  color: var(--brand);
  margin-bottom: 0.5rem;
}

.faq-item p {
  margin: 0;
  color: var(--text);
}

/* Final CTA section */
.final-cta {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: 20px;
  box-shadow: 0 8px 32px var(--shadow-lg);
  border: 2px solid var(--brand);
}

.cta-text {
  font-size: 1.25rem;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.cta-subtitle {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-whatsapp {
  background: var(--whatsapp);
  box-shadow: 0 4px 16px rgba(37,211,102,0.3);
}

.btn-whatsapp:hover {
  background: #128C7E;
  box-shadow: 0 8px 32px rgba(37,211,102,0.4);
}

@media (max-width: 820px) {
  .mobile-menu-btn {
    display: flex;
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 8px 0;
    background: rgba(255,255,255,0.98);
  }
  
  .nav-menu {
    position: fixed;
    top: 65px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 65px);
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 3rem 2rem;
    gap: 2rem;
    transition: left 0.4s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 4px 32px rgba(0,0,0,0.1);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-menu li {
    padding: 0;
  }
  
  .nav-link {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    padding: 1rem 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .nav-link:hover {
    background: var(--bg-soft);
    color: var(--brand);
    transform: translateX(8px);
  }
  
  .section {
    padding: 50px 0;
  }
  
  .hero {
    min-height: 70vh;
    padding: 100px 16px 60px;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero-subtitle {
    margin-bottom: 2rem;
  }
  
  .grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    place-items: center;
  }
  
  .card {
    padding: 2rem 1.5rem;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 16px;
    font-size: 16px;
    min-height: 44px;
  }
  
  .contact-form textarea {
    min-height: 120px;
  }
  
  .features {
    grid-template-columns: 1fr;
  }
  
  .service-icon {
    display: none;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .benefit {
    padding: 1.5rem;
    text-align: center;
  }
  
  .process-steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .testimonials {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  
  .cta-buttons .btn-primary,
  .cta-buttons .btn-secondary {
    width: 100%;
    max-width: 320px;
    padding: 18px 24px;
    font-size: 1.125rem;
  }
  
  .zones-content p {
    font-size: 1rem;
  }
  
  .emergency-text {
    font-size: 1rem;
  }
  
  .emergency-action {
    font-size: 1.125rem;
  }
  
  .emergency-btn {
    width: 100%;
    max-width: 320px;
    padding: 20px 24px;
    font-size: 1.125rem;
  }
  
  /* Mobile adjustments for service cards */
  .service-card {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem 0.5rem;
  }

  .service-card img {
    max-height: 150px;
    max-width: 85%;
    object-fit: contain;
    width: auto;
    height: auto;
    margin: 0 auto;
  }
  
  /* Center card content on mobile */
  .card {
    text-align: center;
  }
  
  .card h3 {
    text-align: center;
  }
  
  .card p {
    text-align: center;
  }
  
  .final-cta {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .pricing-box {
    padding: 2rem 1.5rem;
  }
  
  .testimonial {
    padding: 1.5rem;
  }
  
  .faq-item {
    padding: 0;
    margin-bottom: 0.75rem;
  }

  .faq-item summary {
    padding: 1rem 1.25rem;
    font-size: 1rem;
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .faq-item p {
    padding: 0 1.25rem 1.25rem;
    line-height: 1.6;
  }

  /* Asegurar botones touch-friendly */
  button, .btn, a[role="button"], .mobile-menu-btn {
    min-height: 48px;
    min-width: 48px;
  }

  .mobile-menu-btn {
    width: 48px;
    height: 48px;
  }

  .mobile-menu-btn span {
    width: 24px;
    height: 3px;
  }
}

.service-card {
  width: 100%;
  min-height: 200px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
}

.service-card img {
  max-width: 90%;
  max-height: 250px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  height: auto;
  width: auto;
}

/* Specific styling for reparacion-fugas image to make it larger on desktop */
@media (min-width: 769px) {
  .service-card img[src*="reparacion-fugas"] {
    max-width: 100%;
    max-height: 300px;
    object-fit: cover;
  }
}

/* SEO section mobile improvements */
.seo-links {
  padding: var(--space-xl) 0;
  background: var(--bg-soft);
}

.seo-links h2 {
  text-align: center;
  margin-bottom: var(--space-lg);
  color: var(--text);
}

@media (max-width: 768px) {
  .seo-links {
    padding: var(--space-lg) 0;
  }
  
  .seo-links h2 {
    font-size: 1.75rem;
    margin-bottom: var(--space-md);
  }
  
  .seo-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .seo-card {
    padding: 1rem;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .seo-card span {
    font-size: 1rem;
  }
}

/* Additional mobile optimizations for small devices */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .hero {
    min-height: 60vh;
    padding: 80px 16px 40px;
  }
  
  .hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-contact {
    font-size: 1rem;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .card {
    padding: 1.5rem 1rem;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .final-cta {
    padding: 1rem;
  }
  
  .cta-text {
    font-size: 1.125rem;
  }
  
  .service-card {
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.75rem 0.5rem;
  }
  
  .service-card img {
    max-height: 130px;
    max-width: 80%;
    object-fit: contain;
    width: auto;
    height: auto;
    margin: 0 auto;
  }
  
  .mobile-menu-btn {
    width: 24px;
    height: 18px;
  }
  
  .nav-menu {
    padding: 2rem 1rem;
    gap: 1.5rem;
  }
  
  .nav-link {
    font-size: 1.125rem;
    padding: 0.75rem 1.5rem;
  }
}

/* Sección SEO: fila de tarjetas */
.seo-links { padding: 3rem 1rem; background: #fffaf5; }
.seo-links h2 { 
  text-align: center; 
  margin: 0 0 1.5rem; 
  font-family: 'Poppins', sans-serif; 
  font-size: 1.75rem;
}

/* Grid responsivo */
.seo-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;            /* móvil */
}
@media (min-width: 700px) { .seo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px){ .seo-grid { grid-template-columns: repeat(5, 1fr); } }

/* Tarjeta clicable */
.seo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  padding: 1rem;
  text-align: center;
  background: #fff;
  color: #2c3e50;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.seo-card:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 6px 16px rgba(0,0,0,.12); 
  border-color: #e67e22; 
}
.seo-card:focus-visible { outline: 3px solid #e67e22; outline-offset: 3px; }

/* --- FIX móvil global para cards de servicios (sin tocar desktop) --- */
@media (max-width: 768px){
  /* contenedor con altura estable (4:3) */
  .card--img .service-card .media-box{
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: #f3f4f6;
  }
  .card--img .service-card .media-box::before{
    content: "";
    display: block;
    padding-top: 75%; /* 4:3 */
  }

  /* la imagen SIEMPRE visible y rellenando la caja */
  .card--img .service-card .media-box > img{
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;        /* <— antes teníamos contain */
    object-position: 50% 35%; /* ajusta el "encuadre" vertical si corta: 50% 20% o 50% 50% */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* por si algún estilo heredado ocultaba imágenes */
  .card img, .service-card img, .service-card picture { 
    display: block !important;
    visibility: visible !important;
  }
}

/* ===== SECCIÓN DE NOTICIAS ===== */
.news-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .news-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

.news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.news-image {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.news-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.news-content {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-date {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  display: block;
}

.news-content h3 {
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
}

.news-content h3 a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-content h3 a:hover {
  color: var(--brand);
}

.news-content p {
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: auto;
  flex: 1;
}

.read-more {
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
  margin-top: var(--space-sm);
  transition: color 0.3s ease;
  align-self: flex-start;
}

.read-more:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .news-image img {
    height: 180px;
  }
  
  .news-content {
    padding: var(--space-sm);
  }
}

/* ===== SECCIÓN BLOG ===== */
.blog-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.blog-header h1 {
  margin-bottom: var(--space-sm);
}

.blog-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  }
}

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.blog-image {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

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

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

.blog-content {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-date {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  display: block;
}

.blog-content h2 {
  margin: 0 0 1rem 0;
  line-height: 1.3;
  font-size: 1.25rem;
}

.blog-content h2 a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-content h2 a:hover {
  color: var(--brand);
}

.blog-content > p {
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: auto;
  flex: 1;
}

.blog-content .read-more {
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
  margin-top: var(--space-sm);
  transition: color 0.3s ease;
  align-self: flex-start;
}

.blog-content .read-more:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

/* Estado activo del enlace Blog en navegación */
.nav-link.active {
  color: var(--brand);
  background-color: var(--bg-soft);
  border-radius: var(--radius-sm);
}

@media (max-width: 768px) {
  .blog-image img {
    height: 200px;
  }
  
  .blog-content {
    padding: var(--space-sm);
  }
  
  .blog-content h2 {
    font-size: 1.125rem;
  }
}