/* ---- VARIABLES DE COLOR Y FUENTES ---- */
:root {
  --color-fondo: #121212;
  --color-tarjeta: #1e1e1e;
  --color-primario: #c40081;
  --color-primario-hover: #ff00a0;
  --color-secundario: #00b4d8;
  --color-secundario-hover: #0096c7;
  --color-texto: #f5f5f5;
  --color-texto-secundario: #a7a7a7;
  --fuente-principal: 'Montserrat', sans-serif;
  --sombra: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ---- ESTILOS GENERALES ---- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--fuente-principal);
  background-color: var(--color-fondo);
  color: var(--color-texto);
  line-height: 1.6;
  overflow-x: hidden; 
}

h1, h2, h3 {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--color-primario);
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primario), transparent);
}

main {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

section {
  padding: 5rem 0;
}

/* ---- ENCABEZADO ---- */
header {
  text-align: center;
  padding: 4rem 2rem 8rem;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), var(--color-fondo);
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.header-logo-container-left,
.header-logo-container-right {
  position: absolute;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
  background-position: center;
}

.header-logo-container-left { 
  background-image: url('logo_furious.png');
  top: 2.5rem;
  left: -4rem;
  width: 800px;
  height: 800px;
}

.header-logo-container-right { 
  background-image: url('logo_infinity.png');
  top: 2.5rem;
  right: -2.5rem;
  width: 800px;
  height: 800px;
}

.header-content {
  position: relative;
  z-index: 1;
}

.header-content h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  font-weight: 900;
  line-height: 1.2;
}

.tagline {
  font-size: 1.5rem;
  color: var(--color-texto);
  max-width: 700px;
  margin: 0 auto 3rem auto;
  font-weight: 400;
}

.header-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

button {
  border: none;
  border-radius: 50px;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.primary-btn {
  background-color: var(--color-primario);
  color: white;
}

.primary-btn:hover {
  background-color: var(--color-primario-hover);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(196, 0, 129, 0.4);
}

.secondary-btn {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.secondary-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

/* ---- SECCIÓN SHOWREEL ---- */
.showreel-section {
  padding: 0;
  margin-top: -100px;
  position: relative;
  z-index: 1;
}

.video-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--sombra);
  position: relative;
}

.video-placeholder {
  background: linear-gradient(135deg, #2b2b2b, #1a1a1a);
  height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.video-placeholder:hover {
  background: linear-gradient(135deg, #3b3b3b, #2a2a2a);
}

.video-placeholder i {
  font-size: 5rem;
  color: var(--color-primario);
  margin-bottom: 1.5rem;
}

.video-placeholder p {
  font-size: 1.2rem;
  letter-spacing: 2px;
  color: var(--color-texto-secundario);
}

/* ---- SECCIÓN SERVICIOS (MODIFIED) ---- */
.services-section {
  padding-top: 6rem;
}

.services-section h2 {
  text-align: center;
  margin-bottom: 4rem;
}

.service-entry {
  display: flex;
  flex-direction: row;
  gap: 2.5rem;
  margin-bottom: 5rem;
  background-color: var(--color-tarjeta);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: var(--sombra);
  align-items: flex-start;
}

/* El ":nth-child(even)" debe ir después del estilo base para que pueda sobrescribirlo */
.service-entry:nth-child(even) {
  flex-direction: row-reverse;
}


.service-details {
  flex: 1; 
  height: auto;
  min-width: 300px; 
  display: flex; 
  flex-direction: column; 
  align-items: flex-start; 
  text-align: left; 
}

.service-details i {
  font-size: 2.5rem;
  color: var(--color-primario);
  margin-bottom: 1.25rem;
  display: block;
}

.service-details h3 {
  font-size: 1.7rem;
  margin-bottom: 0.75rem;
  color: var(--color-texto);
  text-transform: uppercase;
  line-height: 1.3;
}

.service-details p {
  color: var(--color-texto-secundario);
  font-size: 1rem;
  flex-grow: 1;
  line-height: 1.65;
  /* PROPIEDADES PARA EVITAR EL TRUNCAMIENTO */
  white-space: normal; 
  overflow: visible; 
  text-overflow: clip; 
}

.service-carousel-wrapper {
  flex: 1.5;
  min-width: 0;
  position: relative;
}

/* ---- GENERAL CAROUSEL STYLES (APPLIES TO SERVICE CAROUSELS) ---- */
.carousel-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 10px;
  box-sizing: border-box;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
  box-sizing: border-box;
  flex-shrink: 0;
}

.carousel-slide img {
  width: 100%;
  height: 350px;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  color: white;
  padding: 0.8rem;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  box-sizing: border-box;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(196, 0, 129, 0.6);
  color: white;
  border: none;
  padding: 0.7rem 0.9rem;
  cursor: pointer;
  font-size: 1.4rem;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  z-index: 10;
  box-sizing: border-box;
  min-width: 40px; 
  text-align: center; 
}

.carousel-button:hover {
  background-color: var(--color-primario);
}

.carousel-button.prev {
  left: 10px;
}

.carousel-button.next {
  right: 10px;
}

.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active, .dot:hover {
  background-color: var(--color-primario);
  transform: scale(1.15);
}

/* ---- SECCIÓN EQUIPO ---- */
.team-section {
  text-align: center;
  position: relative;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.team-member {
  background-color: var(--color-tarjeta);
  padding: 2.5rem 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.team-member::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--color-primario), var(--color-secundario));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-member:hover::before {
  opacity: 1;
}

.team-member img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--color-primario);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.enol-photo {
  object-position: 50% 40%;
}

.lucia-photo {
  object-position: 50% 40%;
}

.dani-photo {
  object-position: 50% 20%;
}

.alvaro-photo {
  object-position: 50% 20%;
}

.team-member:hover img {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(196, 0, 129, 0.3);
}

.team-member h3 {
  font-size: 1.5rem;
  margin-bottom: 0.2rem;
}

.team-member p {
  color: var(--color-texto-secundario);
  font-size: 1rem;
  margin-bottom: 0;
}

.team-member .bio {
  font-size: 0.95rem;
  color: var(--color-texto-secundario);
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  line-height: 1.5;
  min-height: 3rem;
  text-align: center;
  flex-grow: 1;
}

.social-links-visible {
  margin-top: auto;
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 80%;
  margin-bottom: 0;
  padding-bottom: 0.5rem;
}

.social-links-visible a {
  color: var(--color-texto-secundario);
  font-size: 1.5rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-links-visible a:hover {
  color: var(--color-primario-hover);
  transform: translateY(-3px);
}

/* --- FOOTER GENERAL --- */
footer {
    background-color: #0a0a0a;
    padding: 4rem 0 0;
    margin-top: 4rem;
    color: var(--color-texto); /* Color de texto por defecto para el footer */
}

.footer-content {
    display: grid;
    /* Las columnas se autoajustan y se apilan si el minmax no se cumple */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem; /* Aumento el espacio entre columnas */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-column {
    text-align: left; /* Alineación por defecto para columnas */
}

.footer-contact h3,
.footer-social h3,
.footer-horario h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--color-primario);
    text-transform: uppercase; /* Para que los títulos de sección destaquen */
    letter-spacing: 0.05em;
}

/* --- CONTACTO --- */
.footer-contact p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start; /* Alinea íconos y texto al inicio */
    gap: 0.8rem; /* Espacio entre icono y texto */
    font-size: 0.95rem;
}

.footer-contact i {
    color: var(--color-primario);
    font-size: 1.1rem;
    flex-shrink: 0; /* Evita que el icono se encoja */
    margin-top: 0.15rem; /* Pequeño ajuste para alinear con el texto */
}

.footer-contact p a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact p a:hover {
    color: var(--color-primario-hover);
}

/* --- MAPA --- */
.map-container {
    position: relative;
    padding-bottom: 75%; /* Relación de aspecto 4:3 para el mapa */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    width: 100%; /* Ocupa el 100% del ancho de su columna por defecto */
    margin-top: 1.5rem; /* Espacio superior para separarlo del contacto */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Sombra sutil para el mapa */
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 10px;
}

/* --- SÍGUENOS --- */
.social-icons {
    display: flex;
    gap: 1.2rem; /* Aumento el espacio entre íconos */
}

.social-icons a {
    color: var(--color-texto);
    font-size: 1.8rem; /* Íconos un poco más grandes */
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: var(--color-primario);
    transform: translateY(-5px) scale(1.1); /* Efecto al pasar el ratón */
}

/* --- HORARIO DE ATENCIÓN (MEJORADO) --- */
.footer-horario ul {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 1rem;
}

.footer-horario li {
    display: flex; /* Para alinear icono, día y hora */
    align-items: center; /* Centra verticalmente los elementos */
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    padding: 0.4rem 0; /* Un poco de padding vertical */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08); /* Separador sutil */
    color: var(--color-texto);
}

.footer-horario li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.footer-horario li i {
    color: var(--color-primario);
    font-size: 1.1rem;
    margin-right: 0.8rem;
    width: 20px; /* Asegura un ancho fijo para el icono */
    text-align: center;
    flex-shrink: 0;
}

.footer-horario li span:first-of-type { /* Para el día (Lunes a Viernes:) */
    flex-grow: 1; /* Permite que el día ocupe el espacio necesario */
    margin-right: 0.5rem;
    font-weight: 500;
}

.footer-horario li span:last-of-type { /* Para la hora (16:00 - 22:00) */
    font-weight: 600;
    color: var(--color-texto-secundario);
    text-align: right; /* Alinea la hora a la derecha en su span */
}

.footer-horario .closed {
    color: #ff6b6b; /* Color de advertencia para "Cerrado" */
    font-weight: 700;
    text-transform: uppercase;
}

/* --- COPYRIGHT --- */
.copyright {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2.5rem;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    color: var(--color-texto-secundario);
}

/* ---- DISEÑO RESPONSIVO ---- */
@media (max-width: 992px) { /* Medium screens / Tablets */
  section {
    padding: 3.5rem 1rem; 
  }

  h2 {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
  }
  h2::after {
    width: 60%; 
  }

  .header-content h1 {
    font-size: 3rem;
  }

  .tagline {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
  }

  .video-placeholder {
    height: 400px;
  }

  /* --- INICIO SOLUCIÓN PARA LOGOS DE FONDO EN 992px --- */
  .header-logo-container-left {
    width: 400px; 
    height: 400px;
    top: 5%; 
    left: -50px; 
    opacity: 0.4; 
    background-size: contain;
  }
  .header-logo-container-right {
    width: 400px; 
    height: 400px;
    top: auto; 
    bottom: 5%; 
    right: -20px; 
    opacity: 0.4; 
    background-size: contain;
  }
  /* --- FIN SOLUCIÓN PARA LOGOS DE FONDO EN 992px --- */

  /* SERVICIOS */
  .service-entry {
    flex-direction: column; 
    align-items: center;
    gap: 1.5rem; 
    margin-bottom: 3.5rem; 
    padding: 2rem; 
  }
  /* Desactiva el row-reverse en móvil para mantener el orden (detalles arriba, carrusel abajo) */
  .service-entry:nth-child(even) {
    flex-direction: column;
  }

  .service-details {
    max-width: 100%;
    text-align: center; 
    align-items: center; 
    margin-bottom: 1.5rem;
  }

  .service-details i {
    font-size: 3rem; 
  }

  .service-details h3 {
    font-size: 1.8rem; 
  }

  .service-details p {
    font-size: 0.95rem; 
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .service-carousel-wrapper {
    width: 100%;
    max-width: 600px; 
  }

  .carousel-slide img {
    height: 280px; 
  }

  
  /* CAMBIOS CLAVE PARA CARRUSEL EN TABLETS Y MÓVILES*/
  .carousel-button {
    padding: 0.7rem 0.9rem; /* Standardized padding */
    font-size: 1.4rem; /* Standardized font size */
    width: auto; /* Allow content to dictate width */
    height: auto; /* Allow content to dictate height */
  }

  .carousel-button.prev {
    left: 10px;
  }

  .carousel-button.next {
    right: 10px;
  }

  .carousel-dots {
    bottom: 5px; 
    gap: 6px; 
  }


  /* EQUIPO */
  .team-member img {
    width: 140px; 
    height: 140px;
  }

  .team-member .bio {
    font-size: 0.85rem; 
    min-height: 2.5rem; 
  }

  .team-member h3 {
    font-size: 1.4rem;
  }

  .team-member p {
    font-size: 0.85rem;
  }

  .social-links-visible a {
    font-size: 1.3rem; 
  }

  /* FOOTER */
  .footer-content {
    padding: 0 1.5rem; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
  }

  .footer-contact h3, 
  .footer-social h3, 
  .footer-horario h3 {
    font-size: 1.2rem;
  }
  
  .contact-map-container {
    flex-direction: column; 
    align-items: center; 
    gap: 1.5rem;
  }

  .contact-info {
    text-align: center; 
  }

  .footer-contact p {
    justify-content: center; 
  }

  .map-container {
    max-width: 500px; 
    padding-bottom: 60%; 
    margin: 0 auto;
  }

  .map-container iframe {
    height: 100%;
  }

  .footer-social .social-icons {
    justify-content: center; 
  }
}

@media (max-width: 768px) { /* Small screens / Landscape Phones */
  header {
    padding: 3rem 1rem 6rem;
    min-height: auto;
  }

  h2 {
    font-size: 1.8rem; 
    margin-bottom: 2rem;
  }
  h2::after {
    width: 50px; 
  }

  .header-content h1 {
    font-size: 2.2rem;
  }

  .tagline {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .header-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }

  button {
    width: 90%;
    max-width: 280px;
    padding: 0.8rem 2rem; 
    font-size: 0.9rem;
  }

  .video-placeholder {
    height: 300px;
  }

  .video-placeholder i {
    font-size: 4rem; 
  }

  .video-placeholder p {
    font-size: 1rem; 
  }

  section {
    padding: 3rem 1rem;
  }

  /* --- INICIO SOLUCIÓN PARA LOGOS DE FONDO EN 768px --- */
  .header-logo-container-left {
    width: 300px; 
    height: 300px;
    top: 0; 
    left: -40px; 
    transform: translateY(0%); 
    opacity: 0.4; 
    background-size: contain;
  }

  .header-logo-container-right {
    width: 300px; 
    height: 300px;
    top: auto; 
    bottom: 0; 
    right: -15px; 
    transform: translateY(0%); 
    opacity: 0.4; 
    background-size: contain;
  }
  /* --- FIN SOLUCIÓN PARA LOGOS DE FONDO EN 768px --- */

  /* SERVICIOS */
  .service-entry {
    padding: 1.5rem; 
    gap: 1rem; 
    margin-bottom: 3rem; 
  }

  .service-details i {
    font-size: 2.5rem; 
  }

  .service-details h3 {
    font-size: 1.5rem; 
  }

  .service-details p {
    font-size: 0.85rem;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .carousel-slide img {
    height: 300px; 
  }

  .carousel-button {
    padding: 0.7rem 0.9rem; 
    font-size: 1.4rem; 
    width: auto;
    height: auto;
  }

  .carousel-button.prev {
    left: 10px;
  }

  .carousel-button.next {
    right: 10px;
  }

  .carousel-dots {
    bottom: 2px; 
    gap: 4px; 
  }

  .slide-caption {
    font-size: 0.7rem; 
    padding: 0.5rem;
  }

  /* EQUIPO */
  .team-member img {
    width: 120px;
    height: 120px;
  }

  .team-member h3 {
    font-size: 1.3rem;
  }

  .team-member p {
    font-size: 0.8rem;
  }

  .team-member .bio {
    font-size: 0.8rem;
    min-height: 2.2rem;
  }

  .social-links-visible a {
    font-size: 1.2rem;
  }

  /* FOOTER */
  footer {
    padding-top: 3rem;
  }

  .footer-content {
    padding: 0 1rem;
    grid-template-columns: 1fr; 
    gap: 1.5rem
  }

  .footer-column {
    text-align: center; 
  }

  .footer-contact h3, 
  .footer-social h3, 
  .footer-horario h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .footer-contact p {
    font-size: 0.9rem;
    justify-content: center;
  }

  .social-icons {
    justify-content: center; 
  }

  .footer-horario li { 
    justify-content: center; 
    font-size: 0.95rem;
  }

  .footer-horario li span:first-of-type {
    flex-grow: 0; 
    margin-right: 0.5rem; 
  }
  .footer-horario li span:last-of-type {
    text-align: left; 
  }

  .map-container {
    width: 100%; 
    max-width: 400px;
    padding-bottom: 50%;
    margin: 0 auto;
  }

  .copyright {
    padding: 1.5rem 1rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) { /* Extra Small screens / Portrait Phones */
  h2 {
    font-size: 1.6rem;
    margin-bottom: 1.8rem;
  }
  h2::after {
    width: 40px;
  }

  .header-content h1 {
    font-size: 1.8rem;
  }

  .tagline {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .header-buttons {
    gap: 0.6rem;
  }

  button {
    padding: 0.7rem 1.5rem;
    font-size: 0.8rem;
  }

  .video-placeholder {
    height: 200px;
  }

  .video-placeholder i {
    font-size: 3rem;
  }

  .video-placeholder p {
    font-size: 0.85rem;
  }

  section {
    padding: 2.5rem 1rem; 
  }

  /* --- INICIO SOLUCIÓN PARA LOGOS DE FONDO EN 480px --- */
  .header-logo-container-left {
    width: 200px; 
    height: 200px;
    top: 0; 
    left: -30px; 
    transform: translateY(0%);
    opacity: 0.4; 
    background-size: contain;
  }

  .header-logo-container-right {
    width: 200px; 
    height: 200px;
    top: auto; 
    bottom: 0; 
    right: -15px; 
    transform: translateY(0%);
    opacity: 0.4; 
    background-size: contain;
  }
  /* --- FIN SOLUCIÓN PARA LOGOS DE FONDO EN 480px --- */

  /* SERVICIOS */
  .service-entry {
    padding: 1rem; 
    gap: 0.8rem;
    margin-bottom: 2.5rem;
  }

  .service-details i {
    font-size: 2rem;
    margin-bottom: 0.8rem;
  }

  .service-details h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
  }

  .service-details p {
    font-size: 0.8rem;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .carousel-slide img {
    height: 180px; 
  }

  .carousel-button {
    padding: 0.7rem 0.8rem; 
    font-size: 1.2rem; 
  }

  .carousel-button.prev {
    left: 5px; 
  }

  .carousel-button.next {
    right: 5px; 
  }

  .slide-caption {
    font-size: 0.75rem;
    padding: 0.6rem;
  }

  .dot {
    width: 8px;
    height: 8px;
    gap: 5px;
  }

  /* EQUIPO */
  .team-grid {
    grid-template-columns: 1fr; 
    gap: 2rem;
  }

  .team-member img {
    width: 100px;
    height: 100px;
  }

  .team-member h3 {
    font-size: 1.1rem;
  }

  .team-member p {
    font-size: 0.7rem;
  }

  .team-member .bio {
    font-size: 0.75rem;
    min-height: 1.8rem;
  }

  .social-links-visible {
    gap: 0.8rem;
    padding-top: 0.8rem;
  }

  .social-links-visible a {
    font-size: 1.1rem;
  }

  /* FOOTER */
  .footer-content {
    padding: 0 0.8rem;
  }

  .footer-contact h3, 
  .footer-social h3, 
  .footer-horario h3 {
    font-size: 1.1rem; 
  }
  
  .footer-contact p {
    font-size: 0.8rem;
  }

  .social-icons a {
    font-size: 1.3rem;
  }

  .map-container {
    max-width: 300px; 
    padding-bottom: 40%;
    margin: 0 auto;
  }

  .copyright {
    font-size: 0.8rem;
  }
}