/* Mobile First */
*, *::before, *::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #f4f4f4;
  color: #333;
}

.header {
  background: linear-gradient(135deg, #d92332, #870000);
  padding: 3rem 1rem 5rem;
  text-align: center;
  position: relative;
  color: white;
}

.header img.logo {
  max-width: 60px;
  margin-bottom: 1rem;
}

.header-con-fondo {
  background-image: url('../imgs/Fondo remax.jpg');
  background-size: cover;
  background-position: center;
  height: 200px;
  position: relative;
}

.header-con-fondo::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.2);
}

.avatar-container {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 6px;
  border-radius: 50%;
  z-index: 3;
}

.avatar-container img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 12px var(--color-principal, #00f5ff);
  animation: avatarGlow 2.4s ease-in-out infinite alternate;
  opacity: 1;
}

@keyframes avatarGlow {
  from {
    box-shadow: 0 0 8px var(--color-principal, #00f5ff33), 0 0 14px var(--color-principal, #00f5ff22);
  }
  to {
    box-shadow: 0 0 16px var(--color-principal, #00f5ff66), 0 0 24px var(--color-principal, #00f5ff44);
  }
}

.perfil {
  background: white;
  margin: auto;
  padding: 6rem 1.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
  max-width: 500px;
  text-align: center;
  position: relative;
  top: -50px;
}

h1 {
  margin: 1rem 0 0.2rem;
  font-size: 1.3rem;
}

.cargo {
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.empresa {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 1rem;
}

.descripcion {
  font-size: 1rem;
  font-style: italic;
  color: #444;    
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
}

.descripcionsalto{

    white-space: pre-line;
  
}

.botones {
  margin-bottom: 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem;
}

.botones-gimnasio {
  margin-bottom: 1.5rem;
  padding: 0.5rem;

  display: flex;                 /* activa flexbox */
  justify-content: center;       /* centra horizontalmente */
  gap: 0.35rem;                  /* espacio entre los botones */
}

.boton {
  flex: 0 0 auto;
  background: var(--color-principal);
  min-width: 120px;
  color: white;
  padding: 0.55rem 1rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.boton:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.boton:active {
  transform: scale(0.97);
}

.info p {
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.formulario input,
.formulario textarea {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.95rem;
}

.formulario button {
  width: 100%;
  background: var(--color-principal);
  color: white;
  padding: 0.7rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
}

footer {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: #aaa;
  text-align: center;
}

/* Botón flotante */
.guardar-contacto {
  position: fixed;
  bottom: 1rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 999;
  pointer-events: none;
}

.boton-guardar {
  background: var(--color-principal);
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: background 0.2s ease;
  pointer-events: auto;
}

.mini-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

/* Intro animada */
.intro {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-principal, #d92332);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  text-align: center;
  font-size: 1.2rem;
  padding: 0 1.5rem;
  box-sizing: border-box;
  z-index: 9999;
  transition: opacity 1.5s ease;
}

.intro-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.info {
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.info-item {
  gap: 0.8rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  padding: 0.8rem 1rem;
  margin-bottom: 0.8rem;
  text-align: left;
}

.icon {
  font-size: 1.2rem;
  color: var(--color-principal);
  margin-top: 0.1rem;
}

.info-item a {
  color: var(--color-principal);
  text-decoration: none;
  font-weight: 500;
}

.redes {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin: 1.2rem 0;
  flex-wrap: wrap;
}
.redes a {
  font-weight: 600;
  color: var(--color-principal);
  font-size: 0.95rem;
  text-decoration: none;
}

.formulario {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  padding: 2rem 1.5rem;
  margin: 2rem auto;
  max-width: 500px;
}

/* Desktop Enhancements */
@media (min-width: 768px) {
  .header img.logo {
    max-width: 70px;
  }

  .avatar-container img {
    width: 120px;
    height: 120px;
  }

  .perfil {
    padding: 7rem 3rem 2.5rem;
  }

  h1 {
    font-size: 1.6rem;
  }

  .botones {
    gap: 0.75rem;
  }

  .boton {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
  }

  .descripcion,
  .info,
  .formulario input,
  .formulario textarea {
    font-size: 1rem;
    box-sizing: border-box;
    width: 100%;
  }
  
  .formulario button {
    font-size: 1.05rem;
    box-sizing: border-box;
    width: 100%;
  }

  .boton-guardar {
    font-size: 1.05rem;
    padding: 0.7rem 1.4rem;
  }

  .mini-avatar {
    width: 32px;
    height: 32px;
  }
}

.form-intro {
  background: #f7f7f7;
  padding: 1.5rem;
  border-radius: 16px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  text-align: left;
}

.form-intro h3 {
  margin-top: 0;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}

.form-intro p {
  font-size: 0.95rem;
  margin: 0;
  color: #666;
}
.loading-text {
  font-size: 1.2rem;
  font-weight: 500;
}

.dots span {
  animation: blink 1.4s infinite;
  opacity: 0;
}

.dots span:nth-child(1) {
  animation-delay: 0s;
}
.dots span:nth-child(2) {
  animation-delay: 0.2s;
}
.dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  0%   { opacity: 0; }
  50%  { opacity: 1; }
  100% { opacity: 0; }
}
.quienes-somos {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  margin: 2rem auto;
  max-width: 500px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  text-align: left;
}

.quienes-somos h2 {
  margin-top: 0;
  font-size: 1.2rem;
  color: var(--color-principal);
  text-align: center;
}

.quienes-somos p {
  font-size: 0.95rem;
  color: #444;
  margin: 0.5rem 0 0;
  text-align: center;
}
.ubicacion-box {
  margin-top: 2rem;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  text-align: left;
}

.ubicacion-box h2 {
  color: var(--color-principal);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  text-align: center;
}
.lista-perfiles {
  max-width: 500px;
  margin: 2rem auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  list-style: none;
}

.lista-perfiles h2 {
  text-align: center;
  color: var(--color-principal);
  margin-bottom: 1rem;
}

.lista-perfiles li {
  margin: 0.5rem 0;
  text-align: center;
}

.lista-perfiles a {
  color: var(--color-principal);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.lista-perfiles a:hover {
  color: #b81f2b;
  text-decoration: underline;
}
form label {
  display: block;
  font-weight: 600;
  margin: 1rem 0 0.4rem;
  color: #444;
  font-size: 0.95rem;
}

form input,
form textarea,
form select {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.95rem;
  box-sizing: border-box;
}

form button {
  margin-top: 1.5rem;
  padding: 0.7rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  background-color: var(--color-principal);
  color: white;
  cursor: pointer;
  transition: background 0.2s ease;
  width: 100%;
}

form button:hover {
  background-color: #b81f2b;
}

hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 3rem auto;
  max-width: 500px;
}
.redes-toggle .redes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.95rem;
}

.redes-desplegable {
  margin-top: 0.7rem;
  display: none;
  animation: fadeIn 0.3s ease;
  border-top: 1px solid #eee;
  padding-top: 0.5rem;
}

.redes-desplegable a {
  color: var(--color-principal);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.redes-desplegable a i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.redes-desplegable a:hover i {
  transform: scale(1.1);
}

.redes-desplegable a:hover {
  background: rgba(0, 245, 255, 0.05);
  border-radius: 8px;
  padding-left: 0.4rem;
}
.multiline {
  white-space: pre-line;
}

.mapa2 {
  padding-top: 18px;
}
.reviews-box {
  margin: 24px 0;
  padding: 16px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(0,0,0,.06);
}
.reviews-box h2 {
  margin-bottom: 12px;
}
.productos {
  margin: 2rem 0;
  text-align: center;
}

.productos-titulo {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-principal);
  margin-bottom: 1rem;
}

.productos-subtitulo {
  margin-top: 2rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #444;
}

.productos-lista {
  display: grid;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.producto-item {
  background: #f9f9f9;
  border: 1px solid #eee;
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  text-align: left;
  font-size: 1rem;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.producto-item i {
  color: var(--color-principal);
  font-size: 1.2rem;
}

.producto-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.producto-item.destacado {
  border: 1px solid var(--color-principal);
  background: #fff5f5;
}
.botones {
  display: flex;
  flex-wrap: nowrap;   /* ❌ no deja que bajen de línea */
  justify-content: center;
  gap: 0.6rem;
  overflow-x: auto;    /* ✅ si no entran, se puede scrollear horizontal */
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 0;
}

/* Solo botones dentro de body.perfil-previ */
body.perfil-previ .boton {
  flex: 0 0 auto;
  min-width: 90px;
  background: var(--color-principal);
  color: white;
  padding: 0.5rem 0.8rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Ajustes en mobile, solo en esta plantilla */
@media (max-width: 480px) {
  body.perfil-previ .boton {
    min-width: 80px;
    border-radius: 20px;
  }
}
.diferenciales p{
  justify-content: center;
}

.diferenciales{
  padding-bottom: 5px;
}
.carrusel {
  position: relative;
  max-width: 100%;
  margin: 1.5rem auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.carrusel-contenedor {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

.slide {
  min-width: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide img {
  width: 100%;
  display: block;
  border-radius: 20px;
}

.slide.activo {
  opacity: 1;
}

.controles {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  transform: translateY(-50%);
}

.controles span {
  cursor: pointer;
  font-size: 2rem;
  color: white;
  background: rgba(0,0,0,0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 50%;
  user-select: none;
  transition: background 0.3s;
}

.controles span:hover {
  background: rgba(0,0,0,0.6);
}

/* === BLOQUE PRESENTACIÓN DE EMPRESA === */
.bloque-presentacion {
  max-width: 900px;
}

.bloque-presentacion p {
  margin-bottom: 1.5rem;
}

.bloque-presentacion img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}
.bloque-presentacion img:hover {
  transform: scale(1.015);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
}

/* Ajuste responsive */
@media (max-width: 768px) {
  .bloque-presentacion {
    margin: 2rem 1rem;
    padding: 1.5rem;
  }
  .bloque-presentacion h2 {
    font-size: 1.3rem;
  }
}
/* --- SERVICIOS --- */

.servicios-section {
  width: 100%;
  margin-top: 25px;
}

.servicios-titulo {
  font-size: 28px;
  font-weight: 700;
  color: #1f1f1f;
  margin-bottom: 20px;
}

/* Tarjetas estilo Suite Ánima */
.servicio-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  margin-bottom: 12px;
  background: #ffffff;
  border-radius: 14px;
  text-decoration: none;
  transition: 0.25s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* Hover para sensación de botón */
.servicio-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Ícono */
.servicio-icon {
  font-size: 26px;
  color: #7ca034; /* Tu verde */
}

/* Texto del servicio */
.servicio-text {
  font-size: 17px;
  font-weight: 500;
  color: #1f1f1f;
}


.bloque-presentacion {
  padding: 20px 20px 20px 16px;
  border-left: 4px solid var(--color-principal, #222c65);
  background: rgba(0,0,0,0.03);
  border-radius: 10px;
  margin-top: 24px;
}

.bloque-presentacion h2 {
  margin: 0 0 8px 0;
  font-weight: 600;
}

.bloque-presentacion p {
  margin: 0 0 12px 0;
  line-height: 1.55;
  list-style: none !important;
}

.bloque-presentacion img.presentacion-img {
  margin-top: 12px;
  border-radius: 10px;
}