/* Estilos personalizados */
:root {
    --primary-color: #d63384;
    --secondary-color: #6f42c1;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
}

body {
    padding-top: 76px; /* Para compensar el navbar fijo */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.heart-icon {
    color: #d63384;
    margin-right: 10px;
    font-size: 24px;
}

.text-muted {
    color: rgb(157,137,123) !important;
}

.gradient-primary {
    width: 100%;
    height: 50vh;
    background: linear-gradient(135deg, hsl(340 85% 65%), hsl(45 100% 85%));
    color: #fff;
    padding-top: 80px; /* deja hueco para el navbar fijo */
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* Asegurar que el dropdown de Google Places aparezca sobre los modales */
  .pac-container {
    z-index: 10000 !important;
    }

.hero-section {
    width: 100%;
    height: 100vh; /* ocupa toda la altura de la ventana */
    background: linear-gradient(135deg, hsla(340, 85%, 65%, 0.7) 0%, hsla(45, 100%, 85%, 0.7) 50%, hsla(340, 85%, 75%, 0.7) 100%),
                url('../img/hero-wedding.jpg') 
                no-repeat center center / cover;
    background-size: cover; /* escala la imagen al ancho y alto del contenedor */
    color: #fff;
    padding-top: 80px; /* deja hueco para el navbar fijo */
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.hero-section .hero-content {
    color: white;
    max-width: 1200px;
    padding: 0 20px; /* margen interno para pantallas pequeñas */
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
}

.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 2rem 0 #d63384;
}

/* Desactiva efecto hover para las cards del bot */
.no-hover-card:hover {
    transform: none !important;
    box-shadow: none !important;
}

.card-title {
    font-weight: 600;
    color: var(--dark-color);
}

.card-fixed {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card-fixed-title {
    font-weight: 600;
    color: var(--dark-color);
}

.pricing-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 1rem;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0.5rem 2rem 0 #d63384;
}

.pricing-card .card-header h5 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-card .card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Hace que el cuerpo ocupe el espacio restante */
}

.pricing-card .card-body .text-center.mt-auto {
    margin-top: auto; /* Empuja el botón hacia abajo */
}

.pricing-card .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.pricing-card ul li {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.pricing-card ul li i {
    font-size: 1.2rem;
}

/* Borde del card resaltado */
.highlighted-card {
    border: 3px solid var(--primary-color);
    border-radius: 0.5rem;
    position: relative;
}

/* Etiqueta "Más popular" arriba y centrada */
.most-popular-label {
    position: absolute;
    top: -15px; /* fuera del card */
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.9rem;
    z-index: 10;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar {
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
}

.navbar-nav .nav-item {
    margin-left: 1rem;  /* margen izquierdo entre items */
    margin-right: 1rem; /* margen derecho */
}

.navbar-nav .nav-link {
    padding: 0.5rem 1rem; /* ajusta el padding interno si quieres */
    margin: 0 1.5rem; /* separa los items horizontalmente */
}

.nav-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.nav-link.disabled i.fa-lock {
    color: #dc3545;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

a.btn.btn-primary:hover,
button.btn.btn-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid #fff;
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: var(--primary-color);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.accordion-button.collapsed{
    border-color: var(--primary-color) !important;
}

.accordion-button:focus {
    border-color: var(--primary-color) !important;
}

.accordion-button:not(.collapsed) {
    color: var(--bs-accordion-active-color);
    background-color:  rgb(245 6 115 / 50%) !important;
    box-shadow: inset 0 calc(-1 * var(--bs-accordion-border-width)) 0 var(--bs-accordion-border-color);
}


.btn-whatsapp {
    background-color: #075e54 !important;
    border-color: #075e54 !important;
    color: white !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus,
.btn-whatsapp:active {
    background-color: #128c7e !important;
    border-color: #128c7e !important;
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}


.bg-primary-custom {
    background-color: var(--primary-color);
}

.bg-primary-whatsapp {
    background-color: #075e54; /* verde WhatsApp */
    color: white;
}

.badge {
    font-size: 0.8rem;
}
.badge.bg-info {
    background-color: rgb(245 6 115 / 50%) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        height: 80vh;
        text-align: center;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
}

.custom-label {
    top: -1rem; /* Ajusta verticalmente */
    left: 0.5rem; /* Ajusta horizontalmente */
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.85rem;
    white-space: nowrap; /* Evita que el texto haga wrap */
}

.testimonios-carousel {
  flex-wrap: nowrap;
  scroll-behavior: smooth; /* animación suave */
  scroll-behavior: smooth;
  gap: 1rem;
  padding-bottom: 1rem;
}

.testimonial-card {
  min-width: 30%; /* 3 tarjetas visibles en desktop */
  max-width: 30%;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.testimonial-card .card-body {
  padding: 1.5rem;
}

.testimonial-card .card-text {
  font-style: italic;
  color: #444;
}

.testimonial-card .card-subtitle {
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 600;
}

/* Carrusel de ejemplos */
.ejemplos-carousel {
    flex-wrap: nowrap;
    scroll-behavior: smooth;
}

.ejemplo-card {
    min-width: 300px;
    max-width: 350px;
    border-radius: 12px;
    transition: transform 0.3s;
}

.ejemplo-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background-color: #f8f9fa; /* color de fondo si quedan espacios */
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.ejemplo-card:hover {
    transform: scale(1.05);
}

.ejemplo-card img {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    height: 200px;
    object-fit: cover;
}

/* ✨ Animación visual al terminar el conteo */
.counter-animate {
  display: inline-block;
  transition: all 0.4s ease-out;
}

.counter-animate.visible {
  transform: scale(3.15);
  opacity: 1;
}

.counter-animate:not(.visible) {
  opacity: 0.9;
  transform: scale(1);
}

/* Estilo WhatsApp Chat */
.whatsapp-chat {
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 600px; /* Altura máxima fija */
}

.chat-messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 12px 8px;
  background-color: #EFEAE2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23d9d9d9' fill-opacity='0.08'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3Cpath d='M6 5V0H5v5H0v1h5v94h1V6h94V5H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  display: flex;
  flex-direction: column;
  min-height: 400px;
  max-height: 500px; /* Altura máxima del área de mensajes */
}

/* Asegura que el contenedor del chat use flexbox correctamente en todas las pantallas */
.whatsapp-chat .card-body {
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  height: auto;
  overflow: hidden; /* Importante para que funcione el scroll */
}

/* En móviles, ajustamos el área de mensajes para que ocupe el espacio restante */
@media (max-width: 992px) {
  .whatsapp-chat {
    max-height: 500px;
  }
  
  .chat-messages-container {
    min-height: 300px;
    max-height: 400px;
  }
}

/* Asegura que el footer del chat esté pegado al fondo sin márgenes extra */
.whatsapp-chat .card-footer {
  padding: 8px !important;
  margin: 0;
  border-top: 1px solid #e0e0e0;
}

.whatsapp-chat .input-group {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
}

.whatsapp-chat .form-control {
    flex: 1;
    min-width: 0; /* ¡Importante! Evita que el input se expanda más allá del contenedor */
    border-radius: 20px 0 0 20px !important;
    border: 1px solid #cccccc;
    padding: 8px 16px !important;
    box-sizing: border-box;
}

/* El contenedor de mensajes debe crecer para llenar el espacio disponible */
.chat-messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background-color: #ECE5DD;
  display: flex;
  flex-direction: column;
  /* Asegura que no se desborde */
  min-height: 0;
}

.whatsapp-chat .btn-whatsapp {
    flex-shrink: 0; /* Evita que el botón se encoja demasiado */
    width: auto;
    min-width: 44px; /* Tamaño mínimo táctil recomendado */
    height: 100%;
    min-height: 40px;
    padding: 8px 12px !important;
    border-radius: 0 20px 20px 0 !important;
    border: none !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-bubble {
  position: relative;
  max-width: 75%;
  padding: 12px 16px 24px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.4;
  word-wrap: break-word;
  margin-bottom: 12px;
}

.chat-bubble.user {
  background-color: #DCF8C6;
  border-top-right-radius: 0;
  align-self: flex-end;
  margin-left: auto;
}

.chat-bubble.bot {
  background-color: #fff;
  border-top-left-radius: 0;
  align-self: flex-start;
  margin-right: auto;
  border: 1px solid #e2e8f0;
}

.chat-bubble.bot.error {
  background-color: #ffe6e6;
  border-color: #ffcccc;
  color: #d32f2f;
}

.message-text {
  display: block;
  color: #222;
}

.message-time {
  position: absolute;
  bottom: 6px;
  right: 10px;
  font-size: 0.7rem;
  color: #666;
}

/* Área de chat similar a WhatsApp */
#chatArea {
  background-color: #ECE5DD;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Loading indicator con estilo coherente */
.loading-indicator {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0,0,0,0.3);
  border-radius: 50%;
  border-top-color: #000;
  animation: spin 1s ease-in-out infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-control, .form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(214, 51, 132, 0.25);
}

.form-label {
  margin-bottom: 0.5rem;
  color: #343a40;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .chat-messages-container {
    height: 400px;
    max-height: 50vh;
  }
  
  .card-body {
    padding: 16px !important;
  }
  
  .form-control, .form-select {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
  }
}

/* Scroll personalizado - Pantalla Pruebalo */
.chat-messages-container::-webkit-scrollbar {
  width: 6px;
}
.chat-messages-container::-webkit-scrollbar-track {
  background: transparent;
}
.chat-messages-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

/* Estilo para tarjeta de plan seleccionada */
.plan-card.plan-selected {
  border: 3px solid var(--primary-color) !important;
  border-radius: 0.5rem;
}

/* Cursor de puntero al pasar sobre las tarjetas */
.plan-card {
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.plan-card:hover {
  box-shadow: 0 0.25rem 0.75rem rgba(214, 51, 132, 0.2);
}

.stars i {
  color: var(--primary-color);
}

/* ========== ESTILOS MEJORADOS PARA REGISTRO ========== */

.register-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.register-page .form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.register-page .form-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.register-page .form-header .accent {
    color: var(--primary-color);
}

.register-page .form-header p {
    color: #6c757d;
    font-size: 1.1rem;
}



.register-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1000px;
    width: 95%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.register-visual {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.register-form-container {
    padding: 3rem;
}


.register-visual {
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-content {
    text-align: center;
    width: 100%;
    padding: 2rem;
}

.visual-content img {
    max-width: 100%;
    max-height: 250px; /* Altura máxima controlada */
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 1rem auto 0;
}

/* Para pantallas más grandes */
@media (min-width: 1200px) {
    .visual-content img {
        max-height: 280px;
    }
}

.register-visual h2 {
    font-size: 1.9rem;
    margin-bottom: 0.5rem;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.register-visual p {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* === FIX BARRA CONTRASEÑA - FORZADO === */
/* Reemplaza los estilos existentes de password-strength */
.password-strength {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    margin: 8px 0;
    overflow: hidden;
    width: 100%;
}

.strength-bar {
    height: 100%;
    width: 0%;
    background: #cbd5e0;
    border-radius: 3px;
    transition: width 0.3s ease, background 0.3s ease;
}

.strength-bar.weak {
    width: 25%;
    background: #e53e3e;
}

.strength-bar.medium {
    width: 60%;
    background: #d69e2e;
}

.strength-bar.strong {
    width: 100%;
    background: #38a169;
}

.password-requirements {
    font-size: 0.75rem;
    color: #718096;
    margin-top: 0.5rem;
    min-height: 1.2rem;
}

/* Responsive: ocultar visual en móviles */
@media (max-width: 768px) {
    .register-visual {
        display: none;
    }
}

/* Mensajes de éxito y error */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
}

.alert.error {
    background-color: #fed7d7;
    border-color: #feb2b2;
    color: #c53030;
}

.alert.success {
    background-color: #c6f6d5;
    border-color: #9ae6b4;
    color: #276749;
}

.login-link {
    text-align: center;
    margin-top: 1.5rem;
    color: #718096;
}

.login-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.login-link a:hover {
    text-decoration: underline;
}

/* Estados del formulario */
.form-control.error {
    border-color: #fc8181;
    background: #fff5f5;
}

.form-control.success {
    border-color: #48bb78;
    background: #f0fff4;
}

/* Loading state */
.btn-registro.loading {
    position: relative;
    color: transparent;
}

.btn-registro.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-right-color: transparent;
    animation: spin 0.8s linear infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .register-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
    }
    
    .register-visual {
        padding: 2rem;
        text-align: center;
    }
    
    .register-form-container {
        padding: 2rem;
    }
    
    .form-header h1 {
        font-size: 1.75rem;
    }
    
    .visual-content h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .register-form-container {
        padding: 1.5rem;
    }
    
    .form-header h1 {
        font-size: 1.5rem;
    }
    
    .visual-content h2 {
        font-size: 1.5rem;
    }
}

/* Estilos adicionales para las tabs */
.nav-tabs .nav-link {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem 0.375rem 0 0 !important;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    background-color: #e9ecef;
    color: #343a40;
}

.nav-tabs .nav-link.active {
    background-color: #fff !important;
    border-bottom-color: transparent !important;
    color: var(--primary-color) !important;
    box-shadow: 0 -2px 0 var(--primary-color) inset;
}

.nav-tabs {
    border-bottom: 1px solid #dee2e6;
}

.tab-content {
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem;
}

.card.no-hover-card {
    box-shadow: none;
    border: none;
}

/* Estilos para el modal de cookies */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
}

.modal-content {
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    background: white;
    max-width: 500px;
    width: 90%;
    margin: 0 auto;
}

.modal-header {
    padding-bottom: 0.5rem;
}

.modal-body {
    padding: 1rem 0;
}

.modal-footer {
    padding-top: 0;
    flex-wrap: wrap;
}

/* Desactivar efecto hover para todas las cards del modal */
.modal-content .card {
    transition: none;
}

.modal-content .card:hover {
    transform: none;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.modal-btn-primary {
    border-radius: 8px;
    padding: 12px 0px;
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.2s ease;
    flex: 1;
    min-width: 90px;
    min-height: 45px;   
}

.modal-btn-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    color: #fff !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

.form-check-input {
    transform: scale(1.5); /* 1.5 = 150% del tamaño original */
    margin-left: 0.5rem;   /* opcional: ajustar separación */
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.modal-body .border {
  border-color: #dee2e6 !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}



.btn-outline-secondary {
    color: #212529;
    border-color: #dee2e6;
    background: white;
    transition: all 0.2s ease;
 }

.btn-outline-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

/* ---- Ajustes de la ilustración dentro del registro ---- */

/* Aseguramos que el contenedor visual tenga una altura máxima razonable */
.register-visual {
    max-height: 500px; /* o calc(100vh - 100px) si prefieres relativo */
    overflow: hidden;
    padding: 2rem 1rem; /* ajustamos padding para no forzar el tamaño */
}

/* Reforzamos el control de la imagen */
.register-visual img {
    width: 100%;
    max-width: 300px; /* un poco más generoso, pero controlado */
    height: auto;
    max-height: 300px; /* límite absoluto */
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Si quieres que la ilustración permanezca en la parte inferior del contenedor visual (alineación inferior) */
.register-visual .visual-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* llevar al fondo */
    height: 100%;
    z-index: 2;
}

/* Opcional: si quieres que la ilustración se superponga un poco al borde inferior */
.register-visual img {
    margin-bottom: -10px;
}

/* En pantallas medianas o pequeñas, esconder visual */
@media (max-width: 768px) {
    .register-visual {
        display: none;
    }
}


/* Título y texto */
.register-visual h2 {
    font-size: 1.9rem;
    margin-bottom: 0.5rem;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.register-visual p {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* ========== ESTILOS PARA PÁGINA DE VERIFICACIÓN ========== */
.verification-main {
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f9f0ff 0%, #e6f3ff 100%);
    padding: 2rem 1rem;
}

.verification-container {
    max-width: 500px;
    width: 100%;
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid #f0f0f0;
}

.verification-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
    display: block;
}

.verification-container h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.verification-message {
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
    border: 2px solid transparent;
}

.verification-message.success {
    background: linear-gradient(135deg, #c6f6d5 0%, #9ae6b4 100%);
    color: #276749;
    border-color: #48bb78;
}

.verification-message.warning {
    background: linear-gradient(135deg, #fef5e7 0%, #fbd38d 100%);
    color: #744210;
    border-color: #ed8936;
}

.verification-message.error {
    background: linear-gradient(135deg, #fed7d7 0%, #feb2b2 100%);
    color: #c53030;
    border-color: #fc8181;
}

.verification-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.verification-button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    min-width: 160px;
}

.verification-button.primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.verification-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(214, 51, 132, 0.3);
}

.verification-button.secondary {
    background: transparent;
    color: var(--dark-color);
    border: 2px solid #e2e8f0;
}

.verification-button.secondary:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .verification-container {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .verification-container h1 {
        font-size: 2rem;
    }
    
    .verification-icon {
        font-size: 3rem;
    }
    
    .verification-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .verification-button {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .verification-container {
        padding: 1.5rem 1rem;
    }
    
    .verification-container h1 {
        font-size: 1.75rem;
    }
    
    .verification-message {
        padding: 1rem;
        font-size: 1rem;
    }
}

/* ======== FOOTER STYLES ======== */

footer {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  padding: 2.5rem 0;
  text-align: center;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
  position: relative;
  z-index: 10;
}

footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

footer h5 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

footer p {
  margin: 0.5rem 0;
  color: rgba(255,255,255,0.9);
}

footer a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.2s ease;
}

footer a:hover {
  color: #ffe6f0;
  transform: translateY(-2px);
}

footer .social-icons {
  margin-top: 1.5rem;
}

footer .social-icons a {
  display: inline-block;
  margin: 0 0.5rem;
  color: #fff;
  font-size: 1.5rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

footer .social-icons a:hover {
  transform: scale(1.2);
  color: #ffd1e8;
}

/* Línea divisoria superior suave */
.footer-divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.25);
  margin: 2rem 0;
}

/* Derechos de autor */
footer .copyright {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  margin-top: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  footer {
    padding: 2rem 1rem;
    text-align: center;
  }
  
  footer .social-icons a {
    font-size: 1.3rem;
    margin: 0 0.4rem;
  }
}

/* ========== ESTILOS MEJORADOS PARA LOGIN ========== */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    padding: 2rem 1rem;
}

/* Reutilizamos los estilos del registro pero adaptamos para login */
.login-page .register-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1000px;
    width: 95%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.login-page .register-visual {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-page .visual-content {
    text-align: center;
    width: 100%;
    padding: 2rem;
    z-index: 2;
}

.login-page .visual-content h2 {
    font-size: 1.9rem;
    margin-bottom: 0.5rem;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.login-page .visual-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.login-page .visual-content img {
    max-width: 100%;
    max-height: 250px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 1rem auto 0;
}

.login-page .register-form-container {
    padding: 3rem;
}

.login-page .form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-page .form-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.login-page .form-header .accent {
    color: var(--primary-color);
}

.login-page .form-header p {
    color: #6c757d;
    font-size: 1.1rem;
}

/* Opciones del formulario */
.login-page .form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.login-page .form-check {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.login-page .form-check-input {
    margin-right: 0.5rem;
    transform: scale(1.1);
}

.login-page .form-check-label {
    color: #495057;
    font-size: 0.9rem;
}

.login-page .forgot-password {
    text-align: right;
}

.login-page .forgot-password a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.login-page .forgot-password a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Alertas específicas para login */
.login-page .alert.warning {
    background: linear-gradient(135deg, #fef5e7 0%, #fbd38d 100%);
    border: 1px solid #f6ad55;
    color: #744210;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.login-page .alert.success {
    background: linear-gradient(135deg, #c6f6d5 0%, #9ae6b4 100%);
    border: 1px solid #48bb78;
    color: #276749;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.login-page .alert.error {
    background: linear-gradient(135deg, #fed7d7 0%, #feb2b2 100%);
    border: 1px solid #fc8181;
    color: #c53030;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

/* Enlace de registro */
.login-page .register-link {
    text-align: center;
    margin-top: 1.5rem;
    color: #718096;
}

.login-page .register-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.login-page .register-link a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Responsive para login */
@media (max-width: 768px) {
    .login-page .register-visual {
        display: none;
    }
    
    .login-page .register-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
    }
    
    .login-page .register-form-container {
        padding: 2rem;
    }
    
    .login-page .form-header h1 {
        font-size: 1.75rem;
    }
    
    .login-page .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .login-page .forgot-password {
        text-align: left;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .login-page .register-form-container {
        padding: 1.5rem;
    }
    
    .login-page .form-header h1 {
        font-size: 1.5rem;
    }
    
    .login-page .visual-content h2 {
        font-size: 1.5rem;
    }
}

/* Estados del formulario */
.login-page .form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(214, 51, 132, 0.1);
}

/* Loading state para el botón de login */
.login-page .btn-registro.loading {
    position: relative;
    color: transparent;
}

.login-page .btn-registro.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-right-color: transparent;
    animation: spin 0.8s linear infinite;
}
/* ========== ESTILOS PARA DASHBOARD ========== */

/* Eliminamos el padding-top del body para el dashboard */
body.dashboard-body {
    padding-top: 0;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* Desactivar efecto hover para todas las cards del dashboard */
.dashboard-content .card {
    transition: none;
}

.dashboard-content .card:hover {
    transform: none;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

/* Sidebar de navegación */
.dashboard-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    background: white;
    border-right: 1px solid #e5e7eb;
    z-index: 1000;
    overflow-y: auto;
    transition: width 0.3s ease;
}

/* Sidebar colapsado - solo iconos */
.dashboard-sidebar.collapsed {
    width: 80px;
}

.dashboard-sidebar.collapsed .sidebar-logo span,
.dashboard-sidebar.collapsed .sidebar-section-title,
.dashboard-sidebar.collapsed .sidebar-nav-item span {
    opacity: 0;
    visibility: hidden;
    width: 0;
    overflow: hidden;
}

.dashboard-sidebar.collapsed .sidebar-logo {
    justify-content: center;
}

.dashboard-sidebar.collapsed .sidebar-logo .heart-icon {
    margin-right: 0;
}

.dashboard-sidebar.collapsed .sidebar-nav-item {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

.dashboard-sidebar.collapsed .sidebar-nav-item i {
    margin-right: 0;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

.sidebar-logo .heart-icon {
    font-size: 28px;
    margin-right: 10px;
}

.sidebar-section-title {
    padding: 1.5rem 1.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #9ca3af;
    letter-spacing: 0.05em;
}

.sidebar-nav {
    padding: 0.5rem 0;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.5rem;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.sidebar-nav-item i {
    width: 20px;
    margin-right: 12px;
    font-size: 1.1rem;
}

.sidebar-nav-item:hover {
    background-color: #f9fafb;
    color: var(--primary-color);
}

.sidebar-nav-item.active {
    background-color: rgba(214, 51, 132, 0.08);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 600;
}
/* Estilos para elementos de menú deshabilitados */
.sidebar-nav-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.sidebar-nav-item.disabled:hover {
    background-color: transparent;
    color: #6b7280;
}

/* Estilos para botones deshabilitados en el dashboard */
.btn.disabled,
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Tooltip opcional para explicar por qué está deshabilitado */
.sidebar-nav-item.disabled[data-toggle="tooltip"] {
    cursor: help;
    pointer-events: auto;
}

/* Mejora visual para items deshabilitados */
.sidebar-nav-item.disabled i {
    opacity: 0.4;
}

.sidebar-nav-item.disabled span {
    opacity: 0.4;
}


/* Contenedor principal del dashboard */
.dashboard-main {
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
}

/* Cuando el sidebar está colapsado */
.dashboard-main.sidebar-collapsed {
    margin-left: 80px;
}

/* Barra superior */
.dashboard-topbar {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 100;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-left .btn-toggle-sidebar {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s ease;
}

.topbar-left .btn-toggle-sidebar:hover {
    color: var(--primary-color);
}

.topbar-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.topbar-countdown {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(214, 51, 132, 0.1), rgba(111, 66, 193, 0.1));
    border-radius: 8px;
}

.countdown-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.countdown-days {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.countdown-text {
    font-size: 0.875rem;
    color: #6b7280;
}

.topbar-user .btn-user-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.topbar-user .btn-user-menu:hover {
    background-color: #f9fafb;
}

.topbar-user .btn-user-menu i.fa-user-circle {
    font-size: 1.75rem;
    color: var(--primary-color);
}

.topbar-user .user-name {
    font-weight: 500;
    color: var(--dark-color);
}

.topbar-user .fa-chevron-down {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Contenido del dashboard */
.dashboard-content {
    flex: 1;
    padding: 2rem;
}

.dashboard-welcome h1 {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.dashboard-welcome p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Tarjeta de progreso */
.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.progress-bar {
    background-color: var(--primary-color);
}

.progress-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.progress-title i {
    font-size: 1.5rem;
}

.progress-title h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: var(--dark-color);
}

.progress-percentage {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.progress-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-outline-secondary {
    border-color: #dee2e6;
    color: var(--dark-color);
}

.btn-outline-secondary:hover {
    background-color: #f8f9fa;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Tarjetas de estadísticas - SIN efecto hover */
.stat-card {
    transition: none;
}

.stat-card:hover {
    transform: none;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.stat-card .card-body {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
}

.stat-icon {
    width: 30px;
    height: 30px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 1.2rem;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.stat-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.stat-description {
    font-size: 0.7rem;
    color: #9ca3af;
    margin: 0;
}

/* Actividad reciente */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.activity-item {
    display: flex;
    gap: 1rem;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(214, 51, 132, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary-color);
}

.activity-content {
    flex: 1;
}

.activity-text {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.activity-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #9ca3af;
}

.activity-user {
    color: #6b7280;
}

.activity-separator {
    color: #d1d5db;
}

.activity-time {
    color: #9ca3af;
}

/* Acciones pendientes */
.pending-actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pending-action-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background-color: rgba(255, 243, 205, 0.3);
    border-radius: 8px;
    border-left: 4px solid #f39c12;
}

.pending-content {
    flex: 1;
}

.pending-title {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.pending-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
        width: 260px;
    }

    .dashboard-sidebar.collapsed {
        transform: translateX(-100%);
        width: 260px;
    }

    .dashboard-sidebar.mobile-open {
        transform: translateX(0);
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    }

    .dashboard-main {
        margin-left: 0;
    }

    .dashboard-main.sidebar-collapsed {
        margin-left: 0;
    }

    .topbar-countdown {
        display: none;
    }
}

@media (max-width: 768px) {
    .dashboard-content {
        padding: 1.5rem;
    }

    .dashboard-topbar {
        padding: 1rem;
    }

    .dashboard-welcome h1 {
        font-size: 1.5rem;
    }

    .stat-card .card-body {
        flex-direction: column;
        text-align: center;
    }

    .progress-actions {
        flex-direction: column;
    }

    .progress-actions .btn {
        width: 100%;
    }

    .pending-action-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .pending-action-item .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .topbar-user .user-name {
        display: none;
    }

    .countdown-text {
        display: none;
    }
}