/* Solo estilos del formulario*/
/* Tarjeta */
.card {
  border-radius: 20px !important;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  /* Transparencia */
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

/* Logo dentro del formulario */
.bg-light .fa {
  color: #28a745;
  transition: 0.3s ease;
}

.bg-light:hover .fa {
  color: #1b9e37;
  transform: scale(1.1);
}

/* Inputs (contenedor del grupo) */
.form-group {
  border: 1px solid #f8f9fa;
  border-radius: 12px;
  background: #f8f9fa;
  padding: 8px 10px;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideIn 0.8s forwards;
}

@keyframes fadeSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hover sobre el input */
.form-group:hover {
  border: 1px solid #28a745;
  background: #fff;
}

/* Cuando haces clic dentro */
.form-group:focus-within {
  border: 1px solid #28a745;
  box-shadow: 0 0 12px rgba(40, 167, 69, 0.4);
  background: #fff;
}


.form-group .fa {
  color: #999;
  margin-right: 8px;
  transition: 0.3s ease;
}


.form-group:focus-within .fa,
.form-group:hover .fa {
  color: #28a745;
  transform: scale(1.1);
}

/* Placeholders */
.form-control::placeholder {
  color: #aaa;
  transition: all 0.3s ease;
}

/* Placeholders cambian al pasar el mouse */
.form-group:hover .form-control::placeholder {
  color: #28a745;
}

/* Placeholders cambian en focus */
.form-control:focus::placeholder {
  color: #28a745;
  opacity: 0.7;
}

/* Botón */
.btn-primary {
  background: linear-gradient(45deg, #28a745, #218838);
  border: none;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
  transition: all 0.3s ease;
}


.btn-primary:hover {
  background: linear-gradient(45deg, #218838, #28a745);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(40, 167, 69, 0.5);
}

/* Texto amigable animado */
.friendly-text {
  animation: bounceIn 1s ease;
}

@keyframes bounceIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }

  50% {
    transform: scale(1.05);
    opacity: 1;
  }

  100% {
    transform: scale(1);
  }
}

.toggle-password {
  color: #999;
  transition: 0.3s ease;
}

.toggle-password:hover {
  color: #28a745;
}

/* Estilos del footer */
.footer {
  font-size: 0.85rem;
  padding: 20px 0;
  background: #222;
  color: #ccc;
  text-align: center;
}

.footer a {
  color: #28a745;
  text-decoration: none;
  transition: 0.3s;
}

.footer a:hover {
  color: #218838;
  text-decoration: underline;
}

.services-row+.services-row {
  margin-top: 2rem;
}

.services {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.services-row.justify-content-center {
  text-align: center;
}

.services {
  position: relative;
  margin-bottom: 60px;
}

.services-row {
  margin-bottom: 40px;
}

/*===================================== Perfil =========================================*/

/* Fondo completo para toda la página */
body {
  background: url('../images/bg_2.jpg') no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
}

/* Contenedor del perfil con fondo semi-transparente */
.profile-section {
  padding: 80px 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.profile-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Sidebar con gradiente azul-verde */
.profile-sidebar {
  background: linear-gradient(135deg, #17a2b8 0%, #28a745 100%);
  padding: 40px 30px;
  color: white;
  text-align: center;
  height: 100%;
}

.profile-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 5px solid white;
  margin: 0 auto 20px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  color: #17a2b8;
}

/* Contenido principal */
.profile-content {
  padding: 40px;
}

.section-title {
  color: #17a2b8;
  font-weight: 700;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e9ecef;
}

/* Grupos de información */
.info-group {
  margin-bottom: 25px;
  padding: 15px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.info-group:hover {
  background: #f8f9fa;
}

.info-label {
  font-weight: 600;
  color: #17a2b8;
  margin-bottom: 5px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  font-size: 16px;
  color: #495057;
  font-weight: 500;
}

/* Sección de mascotas */
.pets-section {
  margin-top: 40px;
}

.pet-card {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  gap: 15px;
}

.pet-photo {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.pet-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #e9ecef;
}

.no-photo {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  border: 2px dashed #dee2e6;
}

.pet-info {
  flex: 1;
}

.pet-info h5 {
  margin: 0 0 8px 0;
  color: #333;
  font-size: 18px;
}

.pet-info p {
  margin: 4px 0;
  color: #666;
  font-size: 14px;
}

.pet-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-edit,
.btn-delete {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-edit {
  background: #3498db;
  color: white;
}

.btn-edit:hover {
  background: #2980b9;
}

.btn-delete {
  background: #e74c3c;
  color: white;
}

.btn-delete:hover {
  background: #c0392b;
}

/* Botones */
.btn-edit-profile,
.btn-add-pet {
  background: white;
  color: #17a2b8;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-edit-profile:hover,
.btn-add-pet:hover {
  background: #138496;
  color: white;
  transform: translateY(-2px);
}

.btn-add-pet {
  background: linear-gradient(135deg, #17a2b8 0%, #28a745 100%);
  color: white;
  padding: 12px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px auto 0;
}

.btn-add-pet:hover {
  background: linear-gradient(135deg, #138496 0%, #218838 100%);
  box-shadow: 0 5px 15px rgba(23, 162, 184, 0.3);
}

.pet-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.btn-action {
  padding: 6px 15px;
  border-radius: 15px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  transition: all 0.3s ease;
}

.btn-edit-pet {
  background: #28a745;
  color: white;
}

.btn-edit-pet:hover {
  background: #218838;
  transform: translateY(-1px);
}

.btn-delete-pet {
  background: #dc3545;
  color: white;
}

.btn-delete-pet:hover {
  background: #c82333;
  transform: translateY(-1px);
}

/* Modales */
.modal-content {
  border-radius: 10px;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
  background: linear-gradient(135deg, #17a2b8 0%, #28a745 100%);
  color: white;
  border-radius: 10px 10px 0 0;
  border: none;
}

.modal-footer {
  border: none;
  border-radius: 0 0 10px 10px;
}

.btn-save {
  background: #28a745;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 600;
}

.btn-save:hover {
  background: #218838;
  color: white;
}

.btn-cancel {
  background: #6c757d;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 600;
}

.btn-cancel:hover {
  background: #5a6268;
  color: white;
}

.form-control {
  border-radius: 8px;
  border: 2px solid #e9ecef;
  padding: 10px 15px;
}

.form-control:focus {
  border-color: #17a2b8;
  box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
}

/* Responsive */
@media (max-width: 768px) {

  .profile-sidebar,
  .profile-content {
    padding: 30px 20px;
  }

  .pet-details {
    grid-template-columns: 1fr;
  }

  .pet-actions {
    justify-content: center;
  }
}

/*CALENDARIO */
.date-select input {
  background: #f9f9f9;
  font-weight: 500;
  padding: 10px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.date-select input:focus {
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, .25);
  /* verde */
}

.flatpickr-calendar {
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  font-family: 'Montserrat', sans-serif;
}

.flatpickr-day {
  border-radius: 6px;
  font-weight: 500;
}

.flatpickr-day:hover {
  background: #e6f7ee;
  border-color: #28a745;
  color: #28a745;
}

.flatpickr-day.today {
  background: #28a745;
  color: #fff;
  font-weight: bold;
}

.flatpickr-day.selected {
  background: #218838;
  color: #fff;
}

/* Estilos para las citas en perfil */
.cita-card {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  border-left: 4px solid #007bff;
}

.cita-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.cita-mascota {
  font-weight: bold;
  font-size: 1.1em;
  color: #333;
}

.estado-cita {
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8em;
  font-weight: bold;
}

.estado-pendiente {
  background: #fff3cd;
  color: #856404;
}

.estado-servicio {
  background: #cce7ff;
  color: #004085;
}

.estado-completada {
  background: #d4edda;
  color: #155724;
}

.estado-cancelada {
  background: #f8d7da;
  color: #721c24;
}

.cita-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cita-detalle {
  display: flex;
  align-items: center;
  gap: 5px;
}

.no-citas {
  text-align: center;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 10px;
}

/* Notificación de bienvenida SIMPLE */
.welcome-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 380px;
  max-width: 90%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  animation: slideInRight 0.5s ease-out;
  border-left: 5px solid #FFD700;
}

.notification-content {
  color: white;
  padding: 20px;
}

.notification-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.notification-header .fa-paw {
  font-size: 22px;
  margin-right: 10px;
  color: #FFD700;
}

.notification-header h4 {
  margin: 0;
  flex: 1;
  font-weight: 600;
  font-size: 18px;
}

.close-notification {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.close-notification:hover {
  background: rgba(255, 255, 255, 0.2);
}

.notification-body p {
  margin-bottom: 8px;
  line-height: 1.4;
  font-size: 14px;
}

.notification-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.btn-view-profile {
  background: #FFD700;
  color: #333;
  padding: 8px 15px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-view-profile:hover {
  background: #FFC400;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
  color: #333;
  text-decoration: none;
}

.btn-later {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-later:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Botón cancelar cita */
.cita-actions {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e9ecef;
  text-align: center;
}

.btn-cancelar-cita {
  background: #dc3545;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-cancelar-cita:hover {
  background: #c82333;
  transform: translateY(-1px);
}

/* Estados de citas */
.estado-cancelada {
  background: #f8d7da;
  color: #721c24;
}

.cita-cancelada {
  opacity: 0.7;
  background: #f8f9fa;
}

/* Animaciones */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.welcome-notification.hiding {
  animation: slideOutRight 0.5s ease-in forwards;
}

/* ===== CORRECCIONES PARA CONTENIDO DESBORDADO EN MÓVILES ===== */

/* Móviles pequeños (menos de 480px) */
@media (max-width: 480px) {

  /* EVITAR que el contenido se salga */
  .container {
    padding-left: 10px;
    padding-right: 10px;
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Perfil - evitar que se encimen */
  .profile-card {
    margin: 10px 5px;
    width: calc(100% - 10px);
  }

  .profile-sidebar,
  .profile-content {
    padding: 20px 10px;
  }

  /* Textos que se salen - forzar ajuste */
  .user-main h5,
  .pet-info h5,
  .section-title,
  .info-value,
  .cita-mascota {
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    padding: 0 5px;
  }

  /* Tarjetas de mascotas - evitar encimamiento */
  .pet-card {
    flex-direction: column;
    text-align: center;
    padding: 12px;
    margin-bottom: 12px;
    width: 100%;
    box-sizing: border-box;
  }

  .pet-info {
    width: 100%;
    padding: 0 5px;
  }

  .pet-actions {
    justify-content: center;
    margin-top: 10px;
    width: 100%;
  }

  /* Citas - evitar que se salgan */
  .cita-card {
    padding: 12px;
    margin-bottom: 12px;
    width: 100%;
    box-sizing: border-box;
  }

  .cita-info {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cita-detalle {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  /* Información personal - 2 columnas a 1 */
  .row .col-md-6 {
    width: 100%;
    margin-bottom: 15px;
  }

  /* Botones que se salen */
  .btn-add-pet,
  .btn-edit-profile,
  .btn-cancelar-cita {
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }

  /* Estados que se salen */
  .user-status,
  .estado-cita {
    font-size: 0.7em;
    padding: 3px 8px;
    display: inline-block;
    max-width: 100px;
    text-align: center;
  }
}

/* Tablets (menos de 768px) */
@media (max-width: 768px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .profile-card {
    margin: 15px;
  }

  /* 2 columnas a 1 columna en tablets */
  .row .col-md-6 {
    width: 100%;
  }

  /* Citas - 2 columnas en tablets */
  .cita-info {
    grid-template-columns: 1fr;
  }
}

/* Ajustes EXTRA para textos largos */
.user-main h5,
.pet-info h5,
.info-value,
.cita-mascota {
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
}

/* Forzar que nada se salga de la pantalla */
body {
  overflow-x: hidden;
  max-width: 100%;
}

.profile-section,
.profile-card,
.pet-card,
.cita-card {
  max-width: 100%;
  box-sizing: border-box;
}

/* Estilos para los nuevos campos */
.info-group {
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.info-label {
  font-weight: 600;
  color: #495057;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.info-value {
  color: #343a40;
  font-size: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}