:root {
  --verde-oscuro: #1e5826;
  --verde-hover: #16691f;
  --dorado: #bfa76f;
  --cafe: #9a4d1f;
  --beige-claro: #f0e9d2;
  --gris-texto: #444;
  --blanco: #fff;
  --fuente-primaria: "Poppins", sans-serif;
  --fuente-secundaria: "Georgia", serif;
}

/* ------------------------------ */
/* Estilos Globales */
/* ------------------------------ */

body {
  font-family: var(--fuente-primaria);
  background-color: #fdfaf6;
  color: #333;
}

h1, h2, h3, .main-title {
  font-weight: 700;
  color: var(--verde-oscuro);
}

.lead {
  font-size: 1.25rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.mx-2 {
  margin: 0 10px;
}

/* ------------------------------ */
/* Navbar */
/* ------------------------------ */

.navbar {
  background: linear-gradient(135deg, var(--verde-oscuro), var(--cafe));
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
  max-height: 55px;
}

.navbar-nav .nav-link {
  color: #f8f5f0;
  font-weight: 600;
  padding: 0.5rem 1rem;
}

.navbar-nav .nav-link:hover {
  color: #ffc107;
}

.navbar .dropdown-toggle {
  font-weight: 600;
  color: var(--blanco) !important;
}

.navbar .dropdown-toggle:hover {
  color: #2d8539 !important;
}

.icono-redondo {
    width: 50px;
    height: 70px;
    border-radius: 50% 50% 60% 60% / 1% 1% 100% 100%; 
    border: 2px solid #0a3116; /* Opcional */
    box-shadow: 0 0 5px rgba(151, 250, 106, 0.5); /* Opcional */
    background: #fff;
    object-fit: cover;
    /* Opcional: para centrar el logo dentro de la gota */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ------------------------------ */
/* Botones */
/* ------------------------------ */

.btn-success {
  background-color: var(--verde-oscuro);
  border: none;
  font-weight: 600;
}

.btn-success:hover {
  background-color: var(--verde-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-outline-success {
  border-color: var(--verde-oscuro);
  color: var(--verde-oscuro);
}

.btn-outline-success:hover {
  background-color: var(--verde-oscuro);
  color: var(--blanco);
}

.btn-danger {
  background-color: var(--cafe);
  border-color: var(--dorado);
  color: var(--blanco);
}

.btn-danger:hover {
  background-color: var(--dorado);
  border-color: var(--dorado);
  color: var(--verde-oscuro);
}

/* ------------------------------ */
/* Dropdown */
/* ------------------------------ */

.dropdown-menu {
  background-color: var(--beige-claro);
  border: 1px solid var(--dorado);
  border-radius: 5px;
  min-width: 200px;
}

.dropdown-item {
  color: var(--verde-oscuro);
  font-weight: 500;
  padding: 10px 15px;
  transition: background-color 0.3s, color 0.3s;
}

.dropdown-item:hover {
  background-color: var(--dorado);
  color: var(--blanco);
}

/* ------------------------------ */
/* SecciÃ³n Bienvenida */
/* ------------------------------ */

.bienvenida-section {
  background-color: var(--beige-claro);
  border-top: 5px solid var(--cafe);
  border-bottom: 5px solid var(--verde-oscuro);
}

.main-title {
  font-size: 4rem;
}

.main-subtitle {
  font-size: 1.5rem;
  margin-top: 15px;
  color: #333;
}
.contacto-hero {
  background: linear-gradient(to right, var(--verde-oscuro), var(--cafe));
  min-height: 40vh;
  padding: 4rem 2rem;
  color: var(--blanco);
  text-align: center;
  position: relative;
  animation: fadeInDown 1.5s ease;
}

.contacto-hero h1 {
  font-size: 3rem;
  font-family: var(--fuente-secundaria);
  color: var(--blanco);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.contacto-hero .lead {
  font-size: 1.25rem;
  font-weight: 400;
  opacity: 0.95;
  margin-top: 1rem;
}
.card-contacto {
  border: 2px solid var(--dorado);
  border-radius: 10px;
  background-color: var(--beige-claro);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.card-contacto h2 {
  color: var(--verde-oscuro);
}

.contact-info i {
  color: var(--verde-oscuro);
}

.contacto-icono-red:hover {
  color: var(--dorado);
  transform: scale(1.1);
  transition: all 0.3s ease;
}



/* ------------------------------ */
/* Registro y Formularios */
/* ------------------------------ */

.titulo-encabezado {
  font-size: 2rem;
  font-weight: 700;
  color: var(--blanco);
  margin-bottom: 0.5rem;
}

.subtitulo-registro {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--blanco);
  opacity: 0.95;
}


.card, .tarjeta-registro {
  border-radius: 10px;
  border: 2px solid var(--dorado);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-header h3 {
  font-weight: 700;
}

input.form-control,
select.form-select {
  border: 1px solid var(--dorado);
}

input.form-control:focus,
select.form-select:focus {
  border-color: #198754;
  box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

select.form-select option {
  padding: 10px;
  font-size: 15px;
}

select.form-select optgroup {
  background-color: #e9f5ec;
  font-weight: bold;
  color: #198754;
}

.encabezado-degradado {
  background: linear-gradient(to right, var(--verde-oscuro), var(--cafe));
  padding: 1.25rem 1.5rem;
  border-radius: 10px 10px 0 0;
  color: var(--blanco);
}

.fondo-registro {
  background-color: var(--beige-claro);
  padding: 2rem;
  border-radius: 0 0 10px 10px;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.imagen-plan {
  width: 100%;
  height: auto;
  max-height: 100%; /* puedes ajustar este valor a tu gusto */
  object-fit: contain;
  border: 2px solid var(--dorado);
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.plan-opcion input[type="radio"]:checked + .imagen-plan {
  transform: scale(1.05);
  box-shadow: 0 0 10px var(--verde-oscuro);
  border-color: var(--verde-oscuro);
}


/* ------------------------------ */
/* Tarjetas de Animal */
/* ------------------------------ */

.tarjeta-animal.mejorada {
  border: 2px solid #e5d2ab;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  background: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.enlace-tarjeta:hover .tarjeta-animal.mejorada {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.tarjeta-animal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e5826;
}

.precio-animal {
  font-size: 1rem;               /* MÃ¡s grande */
  font-weight: 700;                /* MÃ¡s grueso */
  color: var(--blanco);            /* Color texto blanco para contraste */
  margin-bottom: 2rem;         /* Espacio entre precio y botÃ³n */
  background-color: var(--cafe);   /* Fondo cafÃ© oscuro */
  padding: 12px 24px;              /* Espaciado cÃ³modo */
  border-radius: 12px;             /* Bordes redondeados */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25); /* Sombra para profundidad */
  display: inline-block;           /* Ajusta tamaÃ±o al contenido */
  text-transform: uppercase;       /* MayÃºsculas para destacar */
  letter-spacing: 1.5px;           /* Espaciado entre letras para elegancia */
  transition: background-color 0.3s ease, color 0.3s ease;
}

.precio-animal:hover {
  background-color: var(--dorado); /* Cambia fondo al dorado al pasar el mouse */
  color: var(--verde-oscuro);      /* Texto verde oscuro */
  cursor: default;
}

.tarjeta-animal-img-wrapper {
  width: 100%;
  height: 210px;
  overflow: hidden;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tarjeta-animal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.tarjeta-animal.mejorada:hover .tarjeta-animal-img {
  transform: scale(1.04);
}


.tarjeta-animal.mejorada:hover .tarjeta-animal-img {
  transform: scale(1.04);
}

.enlace-tarjeta {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.enlace-tarjeta:hover .tarjeta-animal {
  transform: scale(1.02);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

.main-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--verde-oscuro);
  white-space: normal;       
  overflow: visible;        
  text-overflow: unset;
}

.section-content {
  overflow-wrap: break-word; 
  white-space: pre-line;
}

/* ------------------------------ */
/* Carrusel */
/* ------------------------------ */

.carousel-item img,
.carousel-item video {
  border-radius: 12px;
}

.carousel-controls-below {
  width: 100%;
}

.carousel-indicators {
  margin-bottom: 1.5rem !important;
  position: static !important;
  justify-content: center;
}

.carousel-indicators [data-bs-target] {
  width: 30px;
  height: 1px;
  border-radius: 4px;
  background-color: var(--dorado);
  border: 2px solid var(--verde-oscuro);
  opacity: 0.6;
  transition: background 0.3s, opacity 0.3s;
  margin: 0 4px;
}

.carousel-indicators .active {
  background-color: var(--verde-oscuro);
  opacity: 1;
  border-color: var(--dorado);
}

.boton-carrusel {
  background: linear-gradient(135deg, var(--verde-oscuro), var(--cafe));
  color: var(--blanco);
  font-weight: 600;
  border: none;
  border-radius: 25px;
  padding: 10px 20px;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.boton-carrusel:hover {
  background: var(--dorado);
  color: var(--verde-oscuro);
  transform: scale(1.05);
}

/* ------------------------------ */
/* Explora SecciÃ³n */
/* ------------------------------ */

.seccion-explora {
  background-color: var(--beige-claro);
  padding: 3rem 2rem;
  border: 2px solid var(--dorado);
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.titulo-seccion-explora {
  font-size: 2.25rem;
  color: var(--verde-oscuro);
}

.subtitulo-seccion-explora {
  font-size: 1.25rem;
  color: var(--gris-texto);
  max-width: 800px;
  margin: 0 auto;
}
/* ------------------------------ */
/* Tablas */
/* ------------------------------ */

.tabla-personalizada {
  border: 2px solid var(--dorado);
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: visible !important;
  text-align: center;
}

.tabla-personalizada thead th {
  background: linear-gradient(to right, var(--verde-oscuro), var(--cafe));
  color: var(--blanco);
  font-weight: 600;
  border: none;
}

.tabla-personalizada tbody td {
  border-color: #e9dcbf;
}

.tabla-personalizada tbody tr:hover {
  background-color: #f9f5e9;
  transition: background-color 0.3s ease;
}

.btn-outline-cafe {
  color: var(--cafe);
  border: 2px solid var(--cafe);
  font-weight: 600;
  background-color: transparent;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-outline-cafe:hover {
  background-color: var(--cafe);
  color: var(--blanco);
}

.table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
}


.table .dropdown-menu {
    position: absolute !important;
    z-index: 1050 !important;
}

/* ------------------------------ */
/* Estilos Panel de AdministraciÃ³n */
/* ------------------------------ */

.admin-panel {
  background-color: #fffdf8;
  padding: 2rem;
  border-radius: 12px;
  border: 2px dashed var(--dorado);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  animation: fadeInUp 1.2s ease;
}

.admin-panel h2 {
  font-size: 2rem;
  font-weight: bold;
  color: var(--verde-oscuro);
  margin-bottom: 2rem;
  border-bottom: 3px solid var(--dorado);
  display: inline-block;
  padding-bottom: 0.3rem;
}

.admin-panel .table th, 
.admin-panel .table td {
  vertical-align: middle;
}

.admin-panel .badge {
  font-size: 0.95rem;
  padding: 6px 12px;
}

.admin-panel .dropdown-toggle {
  background-color: transparent;
  border: none;
  font-size: 1.1rem;
  color: var(--verde-oscuro);
}

.admin-panel .dropdown-menu {
  border: 1px solid var(--verde-oscuro);
  animation: fadeIn 0.3s ease-in-out;
}

.admin-panel .dropdown-item {
  font-size: 0.95rem;
}

.admin-panel .alert {
  font-size: 1rem;
  font-weight: 500;
}

.admin-panel .btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
}

.divider {
  height: 4px;
  background: linear-gradient(to right, var(--verde-oscuro), var(--cafe));
  border: none;
  width: 80%;
  margin: 0 auto;
}

.admin-icon i {
  transition: transform 0.3s ease;
}
.admin-icon:hover i {
  transform: scale(1.15);
}

.tarjeta-estadistica {
  border: 2px solid var(--dorado);
  border-radius: 12px;
  background-color: var(--beige-claro);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tarjeta-estadistica:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.pagination .page-item .page-link {
  color: var(--verde-oscuro);
  font-weight: 600;
  border: 1px solid var(--dorado);
  margin: 0 5px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.pagination .page-item.active .page-link {
  background-color: var(--verde-oscuro);
  color: var(--blanco);
  border-color: var(--verde-oscuro);
}

.pagination .page-item .page-link:hover {
  background-color: var(--dorado);
  color: var(--blanco);
  border-color: var(--verde-oscuro);
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
}



/* ------------------------------ */
/* Animaciones */
/* ------------------------------ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animar-entrada {
  animation: fadeInUp 1s ease;
}

.animate-fade-in {
  animation: fadeIn 1s ease-in-out;
}

.encabezado-degradado {
  animation: fadeInDown 1.5s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------------------------------ */
/* Responsive */
/* ------------------------------ */

@media (max-width: 991px) {
  .section-title { font-size: 2rem; }
  .precio-animal { font-size: 1.2rem; margin-bottom: 30px; }
  .list-group-item { font-size: 1.2rem; }
  .section-content { font-size: 1.2rem; }
}

@media (max-width: 767px) {
  .tarjeta-animal-img-wrapper {
    height: 300px;
  }
}

.celda-id {
    min-width: 150px;
    white-space: nowrap;
    overflow: visible;
    text-overflow: unset;
}