@import url("https://fonts.googleapis.com/css2?family=Montserrat&display=swap");

html,
body {
  font-family: "Montserrat", sans-serif;
}

/* Base styles and resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: #f5f5f5;
  color: #333;
}

a {
  text-decoration: none;
  color: inherit;
}

.main-content {
  margin: 0;
  padding: 0;
}

/* Header styles */
.cba-header {
  background-color: #7a0026;
  color: white;
}

.header-content-wrapper {
  width: 100%;
}

.cba-banner {
  width: 100%;
  text-align: center;
}

.banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Navigation */
.header-nav-wrapper {
  background-color: #c59641;
  padding: 0.8rem 1rem;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 10;
  flex-direction: column;
  align-items: center;
}

.nav-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-bar a {
  color: white;
  font-weight: bold;
  padding: 0.1rem 1.2rem;
  border-radius: 8px;
  transition: background-color 0.3s;
  font-size: 20px;
  font-family: Montserrat;
}

.nav-bar a:hover {
  background-color: #8c5700;
}

.menu-toggle {
  display: none;
  background-color: #a96700;
  color: white;
  border: 1px solid white;
  padding: 0.6rem 1rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

/* Servicios */
.section-services {
  background-color: #fff;
  padding: 2rem 1rem;
  margin: 0 auto;
  max-width: 1200px;
  text-align: center;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  justify-items: center;
  align-items: start;
}

.icon-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.icon-item img {
  max-width: 160px;
  height: auto;
  transition: transform 0.3s ease;
}

.icon-item img:hover {
  transform: scale(1.05);
}

.icon-item p {
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

.icon-item .click-link {
  color: #7a0026;
  font-weight: bold;
  margin-top: 0.3rem;
  font-size: 0.9rem;
}

/* Banners */
.section-banner {
  margin: 0;
  padding: 0;
}

.full-width-banner {
  width: 100%;
  height: auto;
  display: block;
}

.section-banner-visitar .full-width-banner-visitar {
  display: block;
  width: 100%;
  padding-left: 20%;
  padding-right: 20%;
  margin-top: 1%;
}

@media screen and (max-width: 768px) {
  .section-banner-visitar .full-width-banner-visitar {
    padding-left: 0;
    padding-right: 0;
  }
}

.footer-visita {
  background-image: url("img/footer.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding: 4% 10%;
  position: relative;
  color: white;
  text-align: center;
}

.footer-visita::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}

.footer-visita-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.footer-columns {
  display: flex;
  width: 100%;
  max-width: 1200px;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: space-between;
}
@media (max-width: 768px) {
  .footer-visita {
    padding: 1.5rem 1rem !important;
  }
}

.footer-left,
.footer-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-left img,
.footer-right img {
  max-width: 100%;
  height: auto;
}

.footer-buttons {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-buttons button {
  background-color: #ffffffcc;
  border: none;
  padding: 0.5rem 1rem;
  color: #333;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.2s;
}

.footer-buttons button:hover {
  background-color: #ffffff;
}

/* ✅ Responsive: teléfono y tablet */
@media screen and (max-width: 768px) {
  .footer-columns {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-left,
  .footer-right {
    width: 100%;
    margin-bottom: 1rem;
  }

  .footer-buttons {
    justify-content: center;
  }
}

/* Footer */
#contacto {
  background-color: #791a38;
  color: white;
  text-align: center;
}

/* Responsive */
@media (max-width: 992px) {
  .icon-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .menu-toggle {
    display: block;
  }

  .nav-bar {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
  }

  .nav-bar.active {
    display: flex;
  }

  .nav-bar a {
    width: 90%;
    text-align: center;
    padding: 0.8rem;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .icon-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .icon-item img {
    max-width: 120px;
  }

  .icon-item p,
  .icon-item .click-link {
    font-size: 0.85rem;
  }
}
/* Add to your existing style.css */

.detail-page {
  /* Ensures the detail page content is also centered and has padding */
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.detail-section {
  text-align: center;
  max-width: 800px; /* Max width for content readability */
  margin: 0 auto;
}

.detail-icon {
  width: 120px; /* Larger icon for the detail page */
  height: auto;
  margin-bottom: 1.5rem;
}

.detail-title {
  font-size: 2.2rem;
  color: #7a0026; /* Dark red, consistent with your brand */
  margin-bottom: 2rem;
  text-align: center;
}

.detail-text-content {
  text-align: left; /* Align text content to the left */
  font-size: 1.1rem;
  line-height: 1.6;
  color: #444;
}

.detail-text-content h3 {
  font-size: 1.5rem;
  color: #a96700; /* Gold, consistent with your brand */
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
}

.detail-text-content ul {
  list-style: none; /* Remove default list bullets */
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.detail-text-content ul li {
  position: relative;
  padding-left: 25px; /* Space for custom bullet */
  margin-bottom: 0.5rem;
}

/* Custom bullet point for lists, you can replace with checkmark image if you have it */
.detail-text-content ul li::before {
  content: "•"; /* Or use an image: background-image: url('img/checkmark.png'); */
  color: #7a0026; /* Match brand color */
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

.detail-text-content .tagline {
  font-style: italic;
  text-align: center;
  margin-top: 2rem;
  color: #7a0026;
  font-weight: bold;
}

/* Responsive adjustments for detail pages */
@media (max-width: 768px) {
  .detail-page {
    padding: 1rem;
  }

  .detail-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  .detail-text-content {
    font-size: 1rem;
  }

  .detail-text-content h3 {
    font-size: 1.3rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
  }
}

.footer-buttons {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-buttons button {
  background-color: #c59641;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  font-family: "Montserrat", sans-serif;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.2s ease;
}

.footer-buttons button svg {
  fill: white;
}
.footer-buttons button:hover {
  background-color: #8c5700;
}

/* Botón flotante "Volver arriba" */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #c59641;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

#backToTop.visible {
  opacity: 1;
  visibility: visible;
}

#backToTop:hover {
  background-color: #b38638;
  transform: translateY(-3px);
}

#backToTop i {
  font-size: 20px;
}

/* Tooltip opcional */
#backToTop::after {
  content: "Volver arriba";
  position: absolute;
  right: 60px;
  white-space: nowrap;
  background: #333;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 14px;
  font-family: "Montserrat", sans-serif;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

#backToTop:hover::after {
  opacity: 1;
}

.flex-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  justify-content: center;
  margin-top: 1em;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 2em;
  max-width: 400px;
  flex: 1;
}

.contact-button {
  background-color: #2c7a7b;
  color: #fff;
  padding: 0.8em 2em;
  text-decoration: none;
  border-radius: 6px;
  display: inline-block;
  margin-top: 1em;
}

/* Registro de mascotas */

.registro-container {
  display: flex;
  flex-wrap: wrap; /* Permite que las columnas pasen a la siguiente línea en móvil */
  gap: 2rem; /* Espacio entre las columnas */
  align-items: flex-start; /* Alinea las columnas en la parte superior */
}

/* Estilo para cada columna */
.registro-columna {
  flex: 1; /* Permite que las columnas crezcan y ocupen el espacio */
  min-width: 300px; /* Ancho mínimo para evitar que se compriman demasiado */
  display: flex;
  flex-direction: column;
  gap: 2rem; /* Espacio entre las tarjetas de la columna derecha */
}

/* Centra el texto y el botón en la tarjeta de pasos */
.registro-columna.card {
  text-align: center;
}

/* Alinea a la izquierda el texto de las listas */
.registro-columna ol,
.registro-columna ul {
  text-align: left;
  display: inline-block; /* Ajusta el contenedor de la lista al texto */
  padding-left: 25px;
}

.registro-columna li {
  margin-bottom: 12px;
}
/* Animación de entrada para los botones */
.footer-buttons button,
.menu-toggle,
#backToTop {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

body.loaded .footer-buttons button,
body.loaded .menu-toggle,
body.loaded #backToTop {
  opacity: 1;
  transform: translateY(0);
}

.section-banner picture {
  display: inline-block;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-banner picture:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
@keyframes breathing {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.02);
    opacity: 0.97;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.header-nav-wrapper {
  background-color: #c59641 !important; /* Refuerzo de color de fondo */
}

.nav-bar a {
  color: white !important; /* Refuerzo de visibilidad */
}
body {
  background-color: white;
}

.recomendaciones-box,
.seccion-recomendaciones {
  background-color: white;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Estilos específicos para la página de registro */
.registro-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.registro-columna {
  flex: 1;
  min-width: 300px;
}

/* Estilos para las tarjetas */
.registro-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin-bottom: 2rem;
}

/* Estilos para móvil */
@media (max-width: 768px) {
  .registro-container {
    flex-direction: column;
  }

  .registro-columna {
    width: 100%;
  }

  .registro-card {
    padding: 1.5rem;
  }
}

/* Estilos generales para el contenido */
.detail-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.detail-title {
  color: #7a0026;
  margin-bottom: 1.5rem;
}

.contact-button {
  background-color: #c59641;
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 6px;
  display: inline-block;
  margin-top: 1rem;
  font-weight: bold;
  transition: background-color 0.3s;
}

.contact-button:hover {
  background-color: #8c5700;
}
/* Contenedor principal del registro */
.registro-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  align-items: stretch; /* Asegura que las columnas tengan la misma altura */
}

/* Columnas */
.registro-columna {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 2rem; /* Espacio entre tarjetas en la columna derecha */
}

/* Tarjeta izquierda (pasos) */
.registro-columna:first-child .registro-card {
  height: 100%; /* Ocupa toda la altura disponible */
  display: flex;
  flex-direction: column;
}

/* Contenido de la tarjeta izquierda */
.registro-steps-content {
  flex-grow: 1; /* Hace que el contenido ocupe el espacio disponible */
}

/* Botones */
.registro-card .contact-button {
  margin-top: auto; /* Empuja el botón hacia abajo */
  align-self: flex-start; /* Alinea el botón a la izquierda */
}

/* Ajustes para móvil */
@media (max-width: 768px) {
  .registro-container {
    flex-direction: column;
  }

  .registro-columna {
    gap: 1.5rem;
  }

  .registro-columna:first-child .registro-card {
    height: auto;
  }
}
