/* ==========================================================================
   TABLA DE CONTENIDO
   1. index.html
      1.1 banner
      1.2 quienes somos 
      1.3 pq elejirnos 
      1.4 servicios 
      1.5 herramientas 
      1.6 desarrolladores
      1.7 responsive de index.html
   2. inicion.php
   3. planes.php
   4. repositorio.php
   5. usuarios.php
   6. Consulta Nutricional.php
   7. Plan de Alimentación.php
   8. Seguimiento Nutricional.php
   9. Recetas Saludables.php
   10. Recordatorios.php
   11. Pagos.php
   12. Repositorio Logueado.php
   13. perfiluser.php
   14. Estilos Generales y Otros (Fuentes, Modales, Calendario, etc.)
   ========================================================================== */

/* ==========================================
   1. index.html
   ========================================== */

/* 1.1 banner - Sección de bienvenida */
.banner {
  background: linear-gradient(90deg, #76D1D2, #75bde0, #75bde0);
  border-radius: 30px;
  margin-left: 30px;
  margin-right: 30px;
  margin-top: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.btn_inicio {
  background-color: #6FBE4A;
  border: none;
  border-radius: 15px;
  font-size: 18px;
  font-family: 'titulo', serif;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: white;
  text-decoration: none;
  padding: 5px 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.btn_inicio:hover {
  background-color: #4b9e25;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.btn-form {
  background-color: #5eaf38;
  color: white;
}

.btn-form:hover {
  background-color: #4b9e25;
  color: white;
}

/* 1.2 quienes somos - Información de la empresa */
.content-quienes-somos {
  background-color: #f0f0f0 !important;
}

.fw-bol {
  color: #6FBE4A !important;
}

.contenedor {
  padding-bottom: 30px;
  padding-top: 30px;
}

.section-heading_1 {
  font-family: 'titulo', serif;
  color: white;
}

.medida {
  color: white;
}

p_1 {
  color: white;
}

/* 1.3 pq elejirnos - Beneficios */
.feature-box {
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important;
  transition: all 0.3s ease !important;
  height: 100%;
  background-color: #62c984;
}

.feature-box:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2) !important;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: var(--light);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* 1.4 servicios - Tarjetas de servicios */
.services {
  background-color: #f0f0f0;
}

.service-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  transition: all 0.3s;
  background: white;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.service-card-img {
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s;
}

.service-card:hover .service-card-img img {
  transform: scale(1.1);
}

.service-card .p-4 {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card .flex-grow-1 {
  flex-grow: 1;
}

/* 1.5 herramientas - Calculadora y test */
.calculator-form,
.quiz-form {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  padding: 2rem;
  height: 100%;
}

.calc-result-box {
  background-color: #f8f9fa;
  border-radius: 10px;
  padding: 2rem;
  margin-top: 2rem;
  display: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.form-check {
  padding-left: 1.5rem;
}

.form-check-input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.125rem;
  cursor: pointer;
  margin-right: 0.5rem;
  border-color: #6FBE4A;
}

.form-check-input:checked {
  background-color: #6FBE4A;
  border-color: #4b9e25;
}

.form-check-input:focus {
  border-color: #4b9e25;
  box-shadow: 0 0 0 0.25rem rgba(111, 190, 74, 0.25);
}

.form-check-label {
  cursor: pointer;
  color: #333;

}

.form-check-label:hover {
  border-color: #4b9e25;
}

.progress {
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar {
  transition: width 1s ease-in-out;
}

/* 1.6 desarrolladores - Tarjetas del equipo */
#diseniadores {
  background-color: #f0f0f0 !important;
}

.designer-card {
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  background-color: #ffffff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.designer-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.designer-card .card-img-wrapper {
  padding-top: 24px;
  position: relative;
}

.designer-card .card-img-top {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  background-color: #f4f4f4;
  border: 6px solid #6FBE4A;
}

.designer-card .card-img-overlay {
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.designer-card:hover .card-img-overlay {
  opacity: 1;
}

.btn_diseñadores {
  background-color: #6FBE4A;
  border: none;
  border-radius: 15px;
  font-size: 18px;
  font-family: 'titulo', serif;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: white;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  padding: 6px 14px;
}

.btn_diseñadores:hover {
  background-color: #4b9e25;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.designer-card .card-body {
  padding: 1.2rem 1rem 1.5rem;
}

.designer-card .text-muted {
  font-size: 0.85rem;
}

.social-icons-small i {
  font-size: 1.1rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.social-icons-small a:hover i {
  color: #4b9e25;
  transform: scale(1.15);
}

/* 1.7 responsive de index.html */
@media (max-width: 768px) {
  .banner {
    margin-left: 12px;
    margin-right: 12px;
    border-radius: 20px;
  }

  .btn {
    margin-bottom: 30px;
  }
.btn_inicio {
  margin-bottom: 25px;
  }
  .contenedor {
    width: 100%;
    margin: 0;
  }
}

/* ==========================================
   2. inicion.php
   ========================================== */
/* Header y Navbar de inicio */
.header-custom {
  color: #000;
  font-family: 'texto', serif;
  background-color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.logo-icon {
  width: 55px;
  height: auto;
  margin-left: 10px;
}

.logo-text {
  font-size: 2rem;
  font-weight: bold;
  float: left;
  color: #6FBE4A;
  font-family: 'titulo', serif;
}

.icono-salir {
  width: 35px;
}

nav ul li {
  font-size: 19px;
}

.navbar-dark .navbar-toggler-icon {
  filter: invert(60%) brightness(80%);
}

nav ul li a:hover,
nav ul li a:focus {
  color: #6FBE4A !important;
  outline: none;
}

#menuBtnDesktop,
#menuBtnMobile {
  padding: 6px 16px;
  border-radius: 50px;
  border: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex !important;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
}

.navbar-nav #menuBtnDesktop:hover,
.navbar-nav #menuBtnMobile:hover {
  background-color: #6FBE4A !important;
  color: #ffffff !important;
  border-color: #5da63f !important;
  box-shadow: 0 4px 12px rgba(111, 190, 74, 0.2);
}

/* ==========================================
   3. planes.php
   ========================================== */
.form-control-planes {
  max-width: 927px;
  margin: 0 auto 0px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-radius: 30px;
}

.tabla-planes {
  font-size: 1em;
  margin-bottom: 30px;
}

.plan-btn {
  border-radius: 999px;
  padding: 0.38rem 0.85rem;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.14s ease, box-shadow 0.14s ease, opacity 0.14s ease;
  border: none;
  cursor: pointer;
}

.plan-btn:active {
  transform: translateY(1px);
}

/* ==========================================
   4. repositorio.php
   ========================================== */
.plan-btn-edit {
  background: transparent;
  color: black;
  border: 1px solid #4b9e25;
}

.plan-btn-edit:hover {
  background: #4b9e25;
  color: #fff;
}

.plan-btn-choose {
  background-color: #6FBE4A;
  color: #fff;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.plan-btn-choose:hover {
  background-color: #4b9e25;
  filter: brightness(0.95);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(18, 136, 91, 0.4);
}

.plan-btn-delete {
  background: #ff6b6b;
  color: #fff;
}

.plan-btn-delete:hover {
  filter: brightness(0.93);
}

/* ==========================================
   5. usuarios.php
   ========================================== */
.form-control-usuarios {
  max-width: 925px;
  margin: 0 auto 0px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-radius: 30px;
}

.tabla-usuarios {
  font-size: 1em;
  margin-bottom: 30px;
}

/* ==========================================
   6. Consulta Nutricional.php
   ========================================== */
.form-control-consulta {
  max-width: 905px;
  margin: 0 auto 0px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-radius: 30px;
}

.tabla-consultas {
  font-size: 1em;
  margin-bottom: 30px;
}

/* ==========================================
   7. Plan de Alimentación.php
   ========================================== */
.form-control-plan {
  max-width: 940px;
  margin: 0 auto 0px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-radius: 30px;
}

/* ==========================================
   8. Seguimiento Nutricional.php
   ========================================== */
.form-control-seguimiento {
  max-width: 880px;
  margin: 0 auto 0px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-radius: 30px;
}

.tabla-seguimiento {
  font-size: 1em;
  margin-bottom: 30px;
}

/* ==========================================
   9. Recetas Saludables.php
   ========================================== */
.form-control-recetas {
  max-width: 926px;
  margin: 0 auto 0px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-radius: 30px;
}

.tabla-recetas {
  font-size: 1em;
  margin-bottom: 30px;
}

/* ==========================================
   10. Recordatorios.php
   ========================================== */
.form-control-recordatorios {
  max-width: 878px;
  margin: 0 auto 0px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-radius: 30px;
}

/* ==========================================
   11. Pagos.php
   ========================================== */
.tabla-pagos {
  font-size: 1em;
  margin-bottom: 30px;
}

.tabla-pagos td.estado-pagado {
  color: #28a745;
  font-weight: bold;
}

.tabla-pagos td.estado-pendiente {
  color: #dc3545;
  font-weight: bold;
}

/* ==========================================
   12. Repositorio Logueado.php
   ========================================== */
/* Comparte los estilos de repositorio.php (Sección 4) y los Generales */

/* ==========================================
   13. perfiluser.php
   ========================================== */
#profileBtnDesktop,
#profileBtnMobile {
  padding: 4px 12px;
  border-radius: 50px;
  border: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex !important;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
}

.navbar-nav #profileBtnDesktop:hover,
.navbar-nav #profileBtnMobile:hover {
  background-color: #6FBE4A !important;
  color: #ffffff !important;
  border-color: #5da63f !important;
  box-shadow: 0 4px 12px rgba(111, 190, 74, 0.2);
}

#profileBtnDesktop:hover img,
#profileBtnMobile:hover img {
  border-color: #ffffff !important;
}

.profile-dropdown {
  min-width: 240px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 25px 40px -12px rgba(111, 190, 74, 0.15);
  overflow: hidden;
  padding: 8px;
  position: absolute;
  top: calc(100% + 15px);
  right: 0;
  transform-origin: top right;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1200;
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  pointer-events: none;
  display: block;
}

.profile-dropdown.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.profile-dropdown .dropdown-item {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  color: #1e293b;
  text-decoration: none !important;
  border-radius: 12px;
  font-weight: 500;
  font-size: 1.05rem;
  transition: all 0.2s ease;
  margin-bottom: 2px;
}

.profile-dropdown .dropdown-item:last-child {
  margin-bottom: 0;
}

.profile-dropdown .dropdown-item:hover {
  background: rgba(111, 190, 74, 0.1);
  color: #6FBE4A;
  transform: translateX(4px);
}

.profile-dropdown .dropdown-item::before {
  font-size: 1.15rem;
  min-width: 25px;
  text-align: center;
}

.profile-dropdown .dropdown-item i {
  font-size: 1.15rem;
  width: 20px;
  text-align: center;
}

.profile-dropdown .logout-btn {
  color: #ef4444 !important;
  margin-top: 4px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
}

.profile-dropdown .logout-btn:hover {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626 !important;
}

.profile-dropdown a[href*="Inicio"]::before,
.profile-dropdown a[href="#Inicio"]::before,
.profile-dropdown a[href="/"]::before {
  content: '🏠';
}

.profile-dropdown a[href*="Usuarios"]::before {
  content: '👥';
}

.profile-dropdown a[href*="Consulta"]::before {
  content: '📅';
}

.profile-dropdown a[href*="Plan"]::before {
  content: '🥗';
}

.profile-dropdown a[href*="Seguimiento"]::before {
  content: '📈';
}

.profile-dropdown a[href*="Recordatorios"]::before {
  content: '🔔';
}

.profile-dropdown a[href*="Pagos"]::before {
  content: '💳';
}

.profile-dropdown a[href*="Repositorio Logueado"]::before,
.profile-dropdown a[href*="Repositorio"]::before,
.profile-dropdown a[href*="Recetas"]::before {
  content: '📖';
}

.profile-dropdown a[href*="Foro"]::before {
  content: '💬';
}

/* ==========================================
   14. Estilos Generales / Otros
   ========================================== */

/* Fuentes y Básicos */
@font-face {
  font-family: 'titulo';
  src: url('../fonts/Montserrat-Medium.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'texto';
  src: url('../fonts/Inter_18pt-Light.ttf') format('truetype');
  font-display: swap;
}

html,
body {
  overflow-x: hidden;
}

body {
  font-family: 'texto', sans-serif !important;
  padding-top: 70px;
}

p {
  font-family: 'texto', sans-serif !important;
  color: #6C757D;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'titulo', sans-serif !important;
}

h3 {
  font-family: 'titulo', sans-serif;
}

* {
  box-sizing: border-box;
}

/* Formularios Generales */
.form-floating>label {
  padding-left: 1.25rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(76, 175, 80, 0.25);
}

.form-control,
.form-select {
  border: 1px solid #6FBE4A;
  border-radius: 30px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control {
  max-width: 945px;
  margin: 0 auto 0px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.form-select {
  padding: 0.6rem 1rem;
  background-color: #fff;
}

.form-control:hover,
.form-select:hover {
  border-color: #4b9e25;
}

.form-control:focus {
  border-color: #4b9e25;
  box-shadow: 0 0 0 0.25rem rgba(111, 190, 74, 0.25);
}

/* Botones Generales */
.btn {
  border: none;
  border-radius: 15px;
  font-size: 18px;
  font-family: 'titulo', serif;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: white;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.btn-gradient {
  background: linear-gradient(135deg, #6FBE4A 0%, #5a9a3a 100%);
  color: white;
  border: none;
  border-radius: 15px;
  padding: 0.6rem 1.2rem;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(111, 190, 74, 0.25);
}

.btn-dan{
   background: linear-gradient(135deg, #c03333 0%, #9c2222 100%);
  color: white;
  border: none;
  border-radius: 15px;
  padding: 0.6rem 1.2rem;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(184, 23, 23, 0.25); 
}


.btn-dan:hover {
  background: linear-gradient(135deg,  #9c2222 0%,  #911919 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(172, 39, 39, 0.35);
  color: white;
}


.btn-gradient:hover {
  background: linear-gradient(135deg, #5a9a3a 0%, #4a7a2a 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(111, 190, 74, 0.35);
  color: white;
}


/* Tarjetas Generales y Sombras */
.shadow-green {
  box-shadow: 0 8px 32px rgba(46, 204, 113, 0.22);
}

.card-custom {
  box-shadow: 0 8px 32px rgba(46, 204, 113, 0.22);
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-custom:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

.card-img-custom {
  width: 200px;
  height: 200px;
  object-fit: cover;
}

.card-actions {
  z-index: 10;
}

.card-actions .btn {
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.card-actions .btn.btn-warning {
  color: #fff !important;
}

.card-actions .btn.btn-warning i {
  color: #fff !important;
}

.card-actions .btn.btn-danger {
  color: #fff !important;
}

.card-actions .btn.btn-danger i {
  color: #fff !important;
}

.card:has(.card-actions)>.card-body> :first-child {
  padding-right: 70px;
}

.card .card-body ul {
  padding-left: 1.15rem;
  margin-bottom: 0.8rem;
}

/* Títulos Generales */
.titulo-seccion {
  font-size: 3rem;
  font-family: 'titulo', serif;
  margin-bottom: -15px;
  font-weight: 700;
  background: linear-gradient(90deg, #27ae60 60%, #1da1b0 100%);
  width: 100%;
  color: black;
  border-radius: 20px;
  display: inline-block;
  text-shadow: 1px 1px 10px #fff;
}

.section-heading {
  font-family: 'titulo', serif;
  font-weight: 700;
}

.subtitulo-seccion {
  background: linear-gradient(90deg, #27ae60 60%, #1da1b0 100%);
  color: black;
  text-shadow: 1px 1px 10px #fff;
  border-radius: 20px;
  padding: 5px;
}

/* Tablas Generales */
table {
  width: 70%;
  border-collapse: collapse;
  margin: auto;
  background: #fff;
  box-shadow: 0 8px 32px rgba(46, 204, 113, 0.18), 0 3px 12px rgba(0, 0, 0, 0.13);
  border-radius: 8px;
  overflow: hidden;
}

.table th,
.table td {
  padding: 14px 12px;
  text-align: left;
}

.table th {
  background: transparent !important;
  color: #fff !important;
  font-weight: bold;
  font-size: 1.05em;
  border-bottom: none !important;
  border-top: none !important;
}

.table thead {
  background: linear-gradient(to right, #1da1b0, #107480e7) !important;
  border-bottom: none !important;
}

.table tr {
  border-bottom: 1px solid #e0e0e0;
}

thead,
thead *,
.table-success,
.table-success * {
  border-bottom: none !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
}

.table tbody tr:nth-child(even) {
  background: #f4fbf7;
}

.table tbody tr:hover {
  background: #eafaf1;
  transition: background 0.2s;
}

/* Modales y Transiciones Generales */
.modal-content {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  border-radius: 15px;
  border: none;
}

.modal-body .img-fluid {
  max-width: 180px;
  border-radius: 50%;
  border: 4px solid #4b9e25;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.modal-body .badge {
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 12px;
}

.transition {
  transition: all 0.3s ease;
}

/* Footer */
.footer {
  background-color: #263238;
  color: white;
  padding: 60px 0 0 0;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.15);
}

.footer-bottom {
  padding: 20px 0;
  background-color: #1c262b;
  margin-top: 40px;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: all 0.3s;
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
}

.footer-links a:hover {
  color: #27ae60;
  transform: translateX(5px);
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  margin-right: 10px;
  transition: all 0.3s;
  text-decoration: none;
}

.social-links a:hover {
  background-color: #27ae60;
  transform: translateY(-3px);
}

.footer-custom {
  background: #333;
  color: white;
}

/* Contacto Flotante, Msg */
#contact {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #28a745;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
  z-index: 997;
}

#contact:hover {
  background-color: #218838;
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

#recuadro {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#msg {
  background: white;
  padding: 25px 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  display: none;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  animation: aparecer 0.3s ease;
}

@keyframes aparecer {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

#msg h2 {
  margin-top: 0;
  text-align: center;
}

input,
textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  margin-top: 10px;
  border-radius: 6px;
  border: 1px solid #4b9e25;
  font-size: 14px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

input:focus,
textarea:focus {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  outline: none;
}

.enviar {
  width: 100%;
  padding: 12px;
  background: #28a745;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  font-size: 16px;
  margin-top: 15px;
}

.enviar:hover {
  background: #218838;
}

.cerrar {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  color: #777;
  cursor: pointer;
}

.cerrar:hover {
  color: #000;
}

#successMsg {
  display: none;
  color: green;
  margin-top: 12px;
  text-align: center;
  font-weight: bold;
}

/* Chatbot */
.chatbot-toggle {
  position: fixed;
  bottom: 110px;
  right: 30px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: white;
  border: 3px solid #27ae60;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1050;
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-toggle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chatbot-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.chatbot-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 380px;
  height: 550px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  z-index: 1051;
  overflow: hidden;
}

.chatbot-header {
  background: linear-gradient(135deg, #27ae60, #1da1b0);
  color: white;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-avatar {
  height: 55px;
  width: 55px;
  border-radius: 50%;
  border: 2px solid white;
  object-fit: cover;
}

.chatbot-name {
  display: flex;
  flex-direction: column;
}

.chatbot-name strong {
  font-size: 15px;
  line-height: 1.2;
}

.chatbot-name small {
  font-size: 11px;
  opacity: 0.9;
}

.chatbot-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.3s;
}

.chatbot-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: #f8f9fa;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chatbot-message {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  animation: messageSlide 0.3s ease-out;
}

@keyframes messageSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bot-message {
  flex-direction: row;
}

.bot-message .bot-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #27ae60;
}

.bot-message i {
  color: #27ae60;
  font-size: 24px;
  flex-shrink: 0;
}

.bot-message>div {
  background: white;
  padding: 12px 16px;
  border-radius: 12px 12px 12px 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  max-width: 75%;
}

.user-message {
  flex-direction: row-reverse;
}

.user-message>div {
  background: linear-gradient(135deg, #27ae60, #1da1b0);
  color: white;
  padding: 12px 16px;
  border-radius: 12px 12px 4px 12px;
  max-width: 75%;
}

.chatbot-input-container {
  display: flex;
  padding: 16px;
  background: white;
  border-top: 1px solid #e0e0e0;
  gap: 10px;
}

.chatbot-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 24px;
  outline: none;
  font-size: 14px;
  transition: border-color 0.3s;
}

.chatbot-input:focus {
  border-color: #27ae60;
}

.chatbot-send-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, #27ae60, #1da1b0);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: transform 0.2s;
}

.chatbot-send-btn:hover {
  transform: scale(1.1);
}

.typing-indicator>div {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #27ae60;
  animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {

  0%,
  60%,
  100% {
    transform: translateY(0);
  }

  30% {
    transform: translateY(-10px);
  }
}

@media (max-width: 768px) {
  #contact {
    width: 60px;
    height: 60px;
    right: 20px;
    bottom: 20px;
  }

  .chatbot-toggle {
    width: 60px;
    height: 60px;
    right: 20px;
    bottom: 95px;
  }

  .chatbot-container {
    width: calc(100% - 20px);
    right: 10px;
    bottom: 10px;
    height: calc(100vh - 100px);
    max-height: 550px;
  }
}

@media (max-width: 480px) {
  #contact {
    width: 55px;
    height: 55px;
    right: 15px;
    bottom: 15px;
  }

  #contact img {
    width: 35px;
  }

  .chatbot-toggle {
    width: 55px;
    height: 55px;
    right: 15px;
    bottom: 85px;
  }

  .chatbot-container {
    width: calc(100% - 10px);
    right: 5px;
    bottom: 5px;
    height: calc(100vh - 80px);
    max-height: 600px;
    border-radius: 12px;
  }
}

/* Premium Calendar / Toggle */
.view-toggle-premium {
  background: #f1f5f9;
  display: inline-flex;
  border: 1px solid #e2e8f0;
}

.btn-toggle {
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.3s;
}

.btn-toggle.active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.calendar-glass-wrapper {
  background: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

#calendar {
  color: #f1f5f9;
  padding: 10px;
}

.fc-theme-standard td,
.fc-theme-standard th {
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.fc-daygrid-day {
  transition: background 0.2s;
}

.fc-daygrid-day:hover {
  background: rgba(255, 255, 255, 0.02);
}

.fc-daygrid-day-number {
  font-size: 0.95rem;
  font-weight: 600;
  color: #94a3b8;
  padding: 12px !important;
  text-decoration: none !important;
}

.fc-col-header-cell {
  background: rgba(15, 23, 42, 0.5);
  padding: 15px 0 !important;
  border: none !important;
}

.fc-col-header-cell-cushion {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.5) !important;
  text-decoration: none !important;
}

.fc-toolbar-title {
  font-size: 1.4rem !important;
  font-weight: 800 !important;
  color: #fff;
  text-transform: capitalize;
}

.fc-button-primary {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 8px 16px !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  transition: all 0.3s !important;
  margin-right: 5px !important;
}

.fc-button-group {
  gap: 10px;
}

.fc-toolbar-chunk:nth-child(1) {
  display: flex;
  gap: 15px;
}

.fc-toolbar-chunk:nth-child(3) {
  display: flex;
  gap: 10px;
}

.fc-button-primary:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: #10b981 !important;
}

.fc-button-active {
  background: #10b981 !important;
  border-color: #10b981 !important;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3) !important;
}

.fc-daygrid-event-dot {
  display: none !important;
}

.fc-daygrid-day-top {
  display: flex;
  justify-content: flex-end;
  padding: 2px !important;
}

.fc-event-title {
  font-weight: 700;
  padding-left: 2px;
}

.fc-event {
  background: rgba(16, 185, 129, 0.25) !important;
  border: none !important;
  border-left: 4px solid #10b981 !important;
  border-radius: 4px !important;
  padding: 6px 12px !important;
  margin: 4px 6px !important;
  font-weight: 800 !important;
  font-size: 0.75rem !important;
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
  cursor: pointer;
}

.fc-v-event {
  border-left: 4px solid #10b981 !important;
}

.fc-event-title {
  display: none !important;
}

.fc-event-time {
  font-size: 0.85rem !important;
  font-weight: 800 !important;
  width: 100% !important;
  text-align: center !important;
  color: #10b981 !important;
  text-shadow: none !important;
}

.fc-event:hover {
  transform: translateX(4px);
  background: rgba(16, 185, 129, 0.2) !important;
  box-shadow: 0 6px 15px rgba(16, 185, 129, 0.2);
}

.fc-day-today {
  background: rgba(16, 185, 129, 0.03) !important;
}

.fc-day-today .fc-daygrid-day-number {
  background: #10b981;
  color: #fff !important;
  border-radius: 6px;
  padding: 4px 8px !important;
  margin: 8px;
}

@media (max-width: 768px) {
  .fc-toolbar {
    flex-direction: column !important;
    gap: 1rem;
  }

  .fc-toolbar-chunk:nth-child(2) {
    order: -1;
    text-align: center;
    width: 100%;
  }

  .fc-toolbar-chunk:nth-child(1),
  .fc-toolbar-chunk:nth-child(3) {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 5px;
  }

  .fc-button-primary {
    padding: 6px 12px !important;
    font-size: 0.8rem !important;
    flex-grow: 1;
  }

  .calendar-glass-wrapper {
    padding: 15px 10px !important;
  }

  .fc-event {
    margin: 1px !important;
    padding: 2px 4px !important;
    max-width: 95% !important;
    overflow: hidden !important;
  }

  .fc-event-time {
    font-size: 0.65rem !important;
    letter-spacing: -0.5px !important;
  }
}