html,
body {
  overflow-x: hidden;
}

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

  font-family: "Roboto", sans-serif;
}

/* Header */
/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 5%;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  background-color: #ffffff; /* White background always */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* Subtle shadow always */
}

.header.scrolled {
  padding: 0.8rem 5%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Slightly stronger shadow on scroll */
}

.header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.menu-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2rem;
  margin: 0;
}

.menu-item a {
  color: #334155;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.menu-item a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #09f;
  transition: width 0.3s ease;
}

.menu-item a:hover::after {
  width: 100%;
}

.menu-item.active a {
  color: #09f;
}

.menu-item.active a::after {
  width: 100%;
}

/* Pulse Animation */
@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(9, 153, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(9, 153, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(9, 153, 255, 0);
  }
}

.menu-item .nav-button {
  padding: 0.7rem 1.8rem;
  background: linear-gradient(135deg, #09f 0%, #0066cc 100%);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px;
  color: #fff;
  border: none;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(9, 153, 255, 0.3);
  transition: all 0.3s ease;
  animation: pulse-glow 2s infinite;
}

.nav-button:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(9, 153, 255, 0.5);
  background: linear-gradient(135deg, #007acc 0%, #09f 100%);
  color: #ffffff;
  animation: none; /* Stop pulsing on hover */
}

.menu-item .nav-button::after {
  display: none; /* Remove underline for button */
}

/*Hero*/

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100%;
  background-color: #f4f4f4;
}

.hero-content {
  display: grid;
  /* ESCRITORIO: 2 columnas iguales (Texto | Imagen) */
  grid-template-columns: 1fr 1fr;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  width: 90%; /* Para que no pegue con los bordes */
  max-width: 1200px;
}

/* --- ESTILOS DEL TEXTO --- */
.hero-title {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 0 3rem 0 3rem;
  height: auto;
}

.hero-title-direction {
  color: #09f;
  font-weight: 700;
  font-size: 1.2rem;
}

.hero-title h2 {
  font-size: 2.5rem; /* Un poco más grande para impacto */
  font-weight: 700;
  color: rgb(5, 0, 78);
  line-height: 1.2;
}

.hero-title span {
  font-weight: 700;
  color: #09f;
}

.hero-text {
  font-size: 1rem;
  color: rgb(70, 70, 70);
  line-height: 1.6;
}

/* --- ESTILOS DE LA IMAGEN --- */
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 3rem;
}

.hero-image img {
  width: 100%; /* Responsive: que se adapte al contenedor */
  max-width: 450px; /* Pero que no crezca infinito */
  height: auto;
  border-radius: 15px;
  box-shadow: 1px 10px 20px rgba(0, 0, 0, 0.6); /* Estética extra */
}

.hero-button {
  display: flex;
  gap: 3rem;
  text-decoration: none;
}

.hero-button a {
  text-decoration: none;
}
.hero-button-reserva,
.hero-button-nuestros {
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  height: 60px;
  width: 180px;
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.whatsapp-float img {
  width: 28px;
  height: 28px;
}

/* --- ESTILOS DE LOS SERVICIOS --- */
/* Contenedor principal */

.container h2 {
  text-align: center;
  margin-top: 3rem;
}
.services-content {
  padding: 80px 20px;
  text-align: center;
}

.services-content h2 {
  font-size: 2.5rem;
  color: #1e293b;
  margin-bottom: 10px;
}

.services-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem; /* Espacio entre tarjetas */
  max-width: 900px; /* Limitamos el ancho para forzar el 2x2 */
  margin: 0 auto;
  padding: 2rem;
}

/* Tarjeta individual */
.services-item {
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 2.5rem;
  /* Calculamos el ancho para que entren 2 por fila restando el gap */
  width: calc(50% - 1.25rem);
  min-width: 300px; /* Para que no se rompa en pantallas chicas */
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid #f1f5f9;
}

/* Efecto al pasar el mouse */
.services-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border-color: #007bff;
}

/* Títulos de las tarjetas */
.services-item h3 {
  font-size: 1.5rem;
  color: #0f172a;
  margin: 20px 0 15px 0;
}

/* Texto de descripción */
.services-item p {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1; /* Empuja el botón hacia abajo */
}

/* Botón "Ver más" */
.services-item .btn-ver-mas {
  background-color: #007bff;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  width: 100%;
  text-align: center;
  transition: background 0.3s;
}

.services-item .btn-ver-mas:hover {
  background-color: #0056b3;
}

/* Iconos */
.services-icon {
  background: #e0f2fe;
  padding: 15px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .services-item {
    width: 100%;
  }
}

/* --- ESTILOS DE LAS INSTALACIONES --- */

.instalaciones {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100%;
  background-color: #f4f4f4;
  margin-top: 5rem;
}

.instalaciones-content {
  margin: 3rem;
}

/* --- NUEVO CARRUSEL --- */

.carousel-container {
  position: relative;
  height: 480px; /* Ajuste para asegurar que se vea bien */
  width: 90%;
  margin: 0 auto;
  max-width: 800px;
}

.carousel-track-container {
  background-color: transparent;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.carousel-track {
  padding: 0;
  margin: 0;
  list-style: none;
  position: relative;
  height: 100%;
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  display: flex; /* Para centrar la imagen si es necesario */
  justify-content: center;
  align-items: center;
  background-color: #f4f4f4;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cambiado de contain a cover para llenar el slide */
  border-radius: 12px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.7);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  font-size: 1.5rem;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.carousel-btn:hover {
  background: rgba(9, 153, 255, 0.9);
  color: #fff;
}

.prev-btn {
  left: -50px; /* Fuera del contenedor */
}

.next-btn {
  right: -50px;
}

/* Dots Navegación */
.carousel-nav {
  display: flex;
  justify-content: center;
  padding: 10px 0;
  gap: 15px;
  margin-top: 1rem;
}

.carousel-indicator {
  border: none;
  width: 12px;
  height: 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  cursor: pointer;
}

.carousel-indicator.current-slide {
  background: #09f;
}

/* --- TESTIMONIOS --- */

.testimonials-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: auto;
  width: 100%;
  background-color: #f8fafc; /* Lighter slightly blue-ish gray */
  padding: 5rem 1rem;
  margin-top: 0;
}

.testimonials-content h2 {
  font-size: 2.5rem;
  color: #1e293b;
  margin-bottom: 3rem;
  text-align: center;
  font-weight: 700;
}

.testimonials-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  max-width: 1200px;
  width: 100%;
}

.testimonials-item {
  background: #ffffff;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Softer shadow */
  flex: 1 1 300px;
  max-width: 380px;
  min-width: 280px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border: 1px solid #f1f5f9;
}

.testimonials-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e0f2fe; /* Light blue border */
}

.testimonial-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.testimonial-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.testimonial-stars {
  color: #f59e0b; /* Amber/Gold */
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.testimonials-text {
  color: #64748b;
  font-size: 1rem;
  line-height: 1.7;
  font-style: italic;
  margin: 0;
}

/* --- FOOTER CTA --- */
.footer-cta {
  background-color: #09f;
  padding: 4rem 1rem;
  text-align: center;
  color: white;
}

.footer-cta-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-cta h2 {
  font-size: 2.2rem;
  font-weight: 700;
}

.footer-cta p {
  font-size: 1.1rem;
  opacity: 0.9;
}

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

.footer-cta .btn {
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-cta .btn-primary {
  background-color: white;
  color: #09f;
}

.footer-cta .btn-primary:hover {
  background-color: #f0f9ff;
  transform: translateY(-2px);
}

.footer-cta .btn-outline-primary {
  border: 2px solid white;
  color: white;
}

.footer-cta .btn-outline-primary:hover {
  background-color: white;
  color: #09f;
}

/* --- MAIN FOOTER --- */
.footer-main {
  background-color: #1e293b;
  color: #cbd5e1;
  padding-top: 5rem;
  font-size: 0.95rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding: 0 2rem 4rem 2rem;
}

@media (min-width: 1024px) {
  .footer-container {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

.footer-col h3 {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 0.7rem;
}

.footer-col h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: #09f;
  border-radius: 2px;
}

.footer-brand p {
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #09f;
  transform: translateX(5px);
}

.footer-contact p {
  margin-bottom: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-contact strong {
  color: white;
}

.footer-hours {
  margin-top: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 8px;
}

.footer-hours h4 {
  color: white;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.footer-map .map-container {
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

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

.footer-bottom {
  background-color: #0f172a;
  text-align: center;
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-cta h2 {
    font-size: 1.8rem;
  }
}

/* --- RESPONSIVE (Móvil) --- */
@media screen and (max-width: 768px) {
  .hero {
    padding: 4rem 1rem 2rem; /* Espacio arriba para header, abajo para respiro */
    height: auto;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column; /* Columna */
    text-align: center;
    width: 100%;
    max-width: 500px;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: none;
    backdrop-filter: none;
    box-shadow: none;
    isolation: auto;
    gap: 2rem;
  }

  /* CAPA 1 y 2: Resetear imagen y overlay */
  .bg-circle {
    position: static; /* Volver al flujo normal */
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    order: 2; /* Imagen DESPUÉS del texto (que es orden natural si está segundo en HTML, pero aquí bg-circle es sibling de hero-content... espera) */
  }

  /* Resetear estilos de imagen */
  .hero-image {
    width: 100%;
    margin-top: 2rem;
  }

  .hero-image img {
    width: 100%;
    max-width: 350px;
    height: auto;
    object-fit: contain; /* No cover */
    filter: none; /* Quitar blur */
    border-radius: 15px; /* Restaurar borde bonito */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }

  /* Eliminar pseudo-elemento overlay */
  .hero-content::before {
    display: none;
  }

  /* Resetear estilos de texto */
  .hero-title h2 {
    color: rgb(5, 0, 78); /* Color original */
    text-shadow: none;
    font-size: 2rem;
  }

  .hero-text {
    color: rgb(70, 70, 70); /* Color original */
    font-weight: 400;
  }

  .hero-button {
    flex-direction: column; /* Botones uno debajo del otro en móvil */
    gap: 1rem;
    align-items: center;
    width: 100%;
  }

  .hero-button button {
    width: 100%;
    max-width: 300px;
  }
}
/* Menu Toggle (Hidden on desktop) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #09f;
  padding: 0.5rem;
}

/* Servicio HTML */
.hero-servicio {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 0 1.2rem 1.2rem;
  min-height: 60vh;
  background-color: #f4f4f4;
}
.container-servicio {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-content: center;
  min-height: 60vh;
  width: 100%;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("/assets/img/bg-servicio.png");
  background-size: cover;
  background-position: center center;
  border-radius: 15px;
  margin: 0;
}

.hero-servicio h2,
.hero-servicio p {
  text-align: center;
  color: #fff;
}

.hero-servicio h2 {
  font-size: 2.8rem;
  font-weight: 700;
}

.hero-servicio p {
  font-size: 1rem;
  font-weight: 400;
}

.btn-agendar {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  padding: 2rem 3rem;
}

.servicio-especialidades {
  display: flex;
  flex-direction: column;
}
.servicio-especialidades__hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 1rem;
  margin: 4rem 0 2rem 0;
}
.servicio-especialidades__hero h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: black;
}

/* Filter Navigation */
.servicio-especialidades__nav {
    margin-bottom: 6rem; /* Increased gap */
    padding: 0 1rem;
}

.servicio-especialidades__nav nav ul {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0;
    list-style: none;
}

@media screen and (max-width: 768px) {
    .servicio-especialidades__nav nav ul {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 10px;
        justify-content: flex-start; /* Align start for scrolling */
        padding-left: 1rem; /* Adjust padding */
        padding-right: 1rem;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap; /* No wrap for scrolling */
    }
}

/* Modern Pill Style Filters */
.filter-item {
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.filter-item:hover {
    color: #09f;
    background-color: #e0f2fe; /* Light blue tint */
    border-color: #bae6fd;
    transform: translateY(-2px);
}

.filter-item.active {
    background: linear-gradient(135deg, #09f 0%, #0077cc 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(9, 153, 255, 0.3);
    transform: translateY(-2px);
}

/* Service Cards Grid */
.cards-servicio {
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto 5rem auto;
}

.cards-servicio-todos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); /* Changed to auto-fill to prevent stretching */
    gap: 2.5rem;
    justify-content: center;
    margin: 0; /* Remove side margins that constrain width inside container */
    width: 100%;
}
/* Modern Card Style */
.card-list-servicios {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Soft, modern shadow */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy transition */
    display: flex;
    flex-direction: column;
    text-align: left; /* Align text left for cleaner look */
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    height: 100%; /* Fill grid cell */
}

.card-list-servicios:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-list-servicios img {
    width: 100%;
    aspect-ratio: 4/3; /* Consistent image ratio */
    object-fit: cover;
    border-radius: 0; /* Full bleed image */
    margin: 0;
    transition: transform 0.5s ease;
}

.card-list-servicios:hover img {
    transform: scale(1.05);
}

/* Card Content + Typography */
.card-list-servicios h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin: 1.2rem 1.5rem 0.5rem 1.5rem; /* Simulate padding */
    text-align: left;
}

.card-list-servicios p:nth-of-type(1) { /* Description paragraph */
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 1.5rem 1.5rem 1.5rem; /* Simulate padding */
    flex-grow: 1; /* Push button down */
    text-align: left;
}

.card-list-servicios p:nth-of-type(2) { /* Container for link */
    margin: 0 1.5rem 1.8rem 1.5rem; /* Bottom padding */
    text-align: left;
}

.card-list-servicios a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #09f;
    text-decoration: none;
    font-size: 1rem;
    transition: gap 0.3s ease;
}

.card-list-servicios a::after {
    content: '→';
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.card-list-servicios a:hover {
    gap: 0.8rem;
    color: #0077cc;
}

/* Animation Refinement */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

.card-list-servicios.hide {
  display: none;
}

/* Call to Action Section */
.servicio-especialidades__cta {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 24px;
    padding: 4rem 2rem;
    margin: 4rem 2rem;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.3);
}

.servicio-especialidades__cta h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.servicio-especialidades__cta p {
    color: #cbd5e1;
    font-size: 1.1rem;
    max-width: 600px;
}

.servicio-especialidades__cta-botones {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-cta-llamar, .btn-cta {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem; /* Slightly larger text */
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-cta-llamar {
    background-color: transparent;
    border: 2px solid rgba(255,255,255,0.2);
    color: white;
}

.btn-cta-llamar:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: white;
    color: white;
    transform: translateY(-2px);
}

.btn-cta {
    background-color: #09f;
    color: white;
    box-shadow: 0 4px 15px rgba(9, 153, 255, 0.4);
}

.btn-cta:hover {
    background-color: #0077cc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(9, 153, 255, 0.6);
    color: white;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .servicio-especialidades__cta {
        margin: 2rem 1rem;
        padding: 3rem 1.5rem;
    }
    
    .cards-servicio {
        padding: 0 1.5rem;
    }
    
    .servicio-especialidades__nav nav ul {
         /* Keep touch scrolling logic but modernize appearance */
         justify-content: flex-start;
         flex-wrap: nowrap;
         padding-bottom: 1rem; /* Space for scrollbar if any */
    }
}

/* --- CONTACT PAGE --- */
.contact-hero {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  position: relative;
  overflow: hidden;
  color: white;
  text-align: center;
  padding: 6rem 1rem;
  margin-bottom: 4rem;
}

/* Subtle pattern overlay */
.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 50%, rgba(9, 153, 255, 0.15) 0%, transparent 50%),
                      radial-gradient(circle at 80% 80%, rgba(9, 153, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.contact-hero-content {
    position: relative;
    z-index: 1;
}

.contact-hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-hero-content p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.contact-section {
  padding: 0 1rem 4rem 1rem;
}

.contact-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

/* Contact Info Side */
.contact-intro {
  margin-bottom: 2rem;
}

.contact-intro h2 {
  font-size: 2rem;
  color: #1e293b;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.contact-intro p {
  color: #64748b;
  line-height: 1.6;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  border: 1px solid #f1f5f9;
  transition: transform 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
}

.contact-icon {
  background-color: #e0f2fe;
  color: #09f;
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-details h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.3rem;
}

.contact-details p {
  color: #64748b;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Contact Form Side */
.contact-form-container {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
}

.modern-form h3 {
  font-size: 1.8rem;
  color: #1e293b;
  margin-bottom: 2rem;
  font-weight: 700;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #475569;
  font-weight: 500;
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 1rem;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  background-color: #f8fafc;
}

.form-control:focus {
  outline: none;
  border-color: #09f;
  box-shadow: 0 0 0 3px rgba(0, 153, 255, 0.1);
  background-color: white;
}

textarea.form-control {
  resize: vertical;
}

.btn-block {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border-radius: 10px;
}

/* Responsive */
@media screen and (max-width: 900px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-form-container {
    padding: 2rem;
  }
}

@media screen and (max-width: 768px) {
  .contact-hero h1 {
    font-size: 2.2rem;
  }

  /* Responsive Header Adjustments (from previous code) */
  .header {
    justify-content: space-between;
  }

  .navbar-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: #fff;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 5rem;
    transition: right 0.3s ease;
    z-index: 1000;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }

  .navbar-menu.active {
    right: 0;
  }

  .menu-list {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .menu-toggle {
    display: block;
  }
}
