/* Entre Patas - Pet Friendly Travel Website */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@700&family=Roboto:wght@400;500&display=swap');

:root {
  /* Entre Patas Official Brand Colors - DO NOT MODIFY */
  /* Source: Entre Patas - Manual Gráfico.pdf */

  /* Colores Primarios */
  --primary-color-cafe: #4B1E0E;      /* Color Primario Café - RGB(75, 30, 14) */
  --primary-color-arena: #E8D7C4;     /* Color Primario Arena - RGB(232, 215, 196) */

  /* Colores Secundarios - Use sparingly as accents */
  --secondary-color-peru: #CE8744;    /* Color Secundario Perú - RGB(206, 135, 68) */
  --secondary-color-viridian: #496C65; /* Color Secundario Viridián - RGB(73, 108, 101) */

  /* Text Colors */
  --text-dark: #4B1E0E;
  --text-light: #666;
  --text-white: #ffffff;

  /* Legacy support */
  --primary-color: #4B1E0E;
  --secondary-color: #E8D7C4;
  --accent-color: #CE8744;
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
  height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-dark);
  height: 100%;
}

main {
  min-height: 100vh;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/images/hero-dog.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@keyframes backgroundShift {
  0% { 
    background-position: 0% 0%, 100% 100%, 50% 50%, 0% 50%; 
  }
  50% { 
    background-position: 100% 50%, 0% 0%, 80% 20%, 100% 50%; 
  }
  100% { 
    background-position: 0% 0%, 100% 100%, 50% 50%, 0% 50%; 
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(75, 30, 14, 0.4), rgba(75, 30, 14, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(1px);
  z-index: 2;
}

.hero-content {
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 20px;
  z-index: 3;
  position: relative;
}

.hero-title {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-search {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 10px;
}

.search-input {
  flex: 1;
  padding: 15px 20px;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  outline: none;
}

.search-btn {
  padding: 15px 30px;
  background: var(--secondary-color-peru);
  color: white;
  border: none;
  border-radius: 50px;
  font-family: 'Roboto', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-btn:hover {
  background: var(--primary-color-cafe);
  transform: translateY(-2px);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-arrow {
  animation: bounce 2s infinite;
  color: white;
  font-size: 2rem;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Section Titles */
.section-title {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color-cafe);
  margin-bottom: 3rem;
}

/* Category Cards */
.category-card {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

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

.category-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.category-card h3 {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  color: var(--primary-color-cafe);
  margin-bottom: 1rem;
}

.category-card p {
  color: var(--text-light);
  margin: 0;
}

/* Place Cards */
.place-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.place-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.place-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.place-content {
  padding: 1.5rem;
}

.place-content h4 {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.place-location {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.place-rating {
  color: var(--secondary-color-peru);
  font-weight: 600;
}

/* Blog Cards */
.blog-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.blog-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-content {
  padding: 1.5rem;
}

.blog-date {
  color: var(--secondary-color-peru);
  font-family: 'Roboto', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.blog-content h4 {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 1rem;
}

.blog-content p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.blog-link {
  color: var(--secondary-color-peru);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.blog-link:hover {
  color: var(--primary-color-cafe);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero-search {
    flex-direction: column;
  }
  
  .search-input,
  .search-btn {
    width: 100%;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

/* Form Focus States */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--secondary-color-peru);
}

/* Navbar Styles */
.navbar {
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.navbar-brand {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color-cafe) !important;
}

.nav-link {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  color: var(--primary-color-cafe) !important;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--secondary-color-peru) !important;
}

.dropdown-item {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  color: var(--text-dark);
  transition: background-color 0.3s ease;
}

.dropdown-item:hover {
  background-color: var(--primary-color-arena);
  color: var(--primary-color-cafe);
}

/* Footer Styles */
.footer {
  background-color: var(--primary-color-cafe);
  color: var(--text-white);
  padding: 2rem 0;
  margin-top: 2rem;
}

.footer a {
  color: var(--primary-color-arena);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--secondary-color-peru);
}

/* Paw Print Pattern Decorations */
.paw-pattern {
  position: relative;
  overflow: hidden;
}

.paw-pattern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 30%, var(--secondary-color-peru) 8px, transparent 8px),
    radial-gradient(circle at 60% 70%, var(--secondary-color-viridian) 6px, transparent 6px),
    radial-gradient(circle at 80% 20%, var(--secondary-color-peru) 4px, transparent 4px);
  background-size: 120px 120px, 180px 180px, 200px 200px;
  opacity: 0.1;
  pointer-events: none;
}

/* Button Styles */
.btn-primary-brand {
  background-color: var(--secondary-color-peru);
  border-color: var(--secondary-color-peru);
  color: white;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary-brand:hover {
  background-color: var(--primary-color-cafe);
  border-color: var(--primary-color-cafe);
  color: white;
  transform: translateY(-2px);
}

.btn-secondary-brand {
  background-color: var(--secondary-color-viridian);
  border-color: var(--secondary-color-viridian);
  color: white;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-secondary-brand:hover {
  background-color: var(--primary-color-cafe);
  border-color: var(--primary-color-cafe);
  color: white;
  transform: translateY(-2px);
}

/* Content Section after Hero */
.content-section {
  padding: 4rem 0;
}

.main-content-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 2.5rem;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 3rem;
}

/* Feature Icons Section */
.feature-icon {
  margin-bottom: 1.5rem;
}

.icon-circle {
  width: 80px;
  height: 80px;
  background-color: var(--secondary-color-peru);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.icon-circle:hover {
  background-color: var(--primary-color-cafe);
  transform: scale(1.1);
}

.icon-circle i {
  font-size: 2rem;
  color: white;
}

.feature-icon + h5 {
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.feature-icon + h5 + p {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  color: var(--text-light);
  line-height: 1.6;
}

/* CTA Button - Solo para página principal (hero section) */
.btn-cta-hero {
  background-color: var(--secondary-color-peru);
  border-color: var(--secondary-color-peru);
  color: white;
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  padding: 15px 40px;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
}

.btn-cta-hero:hover {
  background-color: var(--primary-color-cafe);
  border-color: var(--primary-color-cafe);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(75, 30, 14, 0.3);
}

/* Blog Section */
.blog-preview-section {
  background-color: #f8f9fa;
  padding: 4rem 0;
}

.blog-section-title {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--text-dark);
  letter-spacing: 1px;
  margin-bottom: 3rem;
}

.blog-preview-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.blog-preview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.blog-preview-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-preview-content {
  padding: 1.5rem;
}

.blog-preview-content h5 {
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.blog-preview-content p {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Background sections */
.bg-brand-arena {
  background-color: var(--primary-color-arena);
}

.bg-brand-cafe {
  background-color: var(--primary-color-cafe);
  color: var(--text-white);
}

.bg-brand-viridian {
  background-color: var(--secondary-color-viridian);
  color: var(--text-white);
}

/* Modal de Registro Styles */
.signup-modal {
  border-radius: 16px;
  border: none;
  box-shadow: 0 10px 60px rgba(0, 0, 0, 0.3);
  max-width: 500px;
}

.signup-modal .modal-body {
  padding: 2rem 2rem;
  position: relative;
}

.btn-close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #999;
  cursor: pointer;
  z-index: 10;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
}

.btn-close-modal:hover {
  color: #333;
  transform: rotate(90deg);
}

.signup-modal .modal-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  font-size: 1.75rem;
  color: #2c2c2c;
  margin-bottom: 0.5rem;
}

.signup-modal .text-center p {
  font-size: 0.95rem;
  color: #666;
}

.signup-modal .text-primary {
  color: var(--secondary-color-peru) !important;
  text-decoration: none;
  font-weight: 600;
}

.signup-modal .text-primary:hover {
  color: var(--primary-color-cafe) !important;
  text-decoration: underline;
}

.signup-input {
  padding: 0.875rem 1rem;
  font-size: 0.95rem;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  transition: all 0.3s ease;
  background-color: #fafafa;
}

.signup-input:focus {
  border-color: var(--secondary-color-peru);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(206, 135, 68, 0.15);
  outline: none;
}

.signup-input::placeholder {
  color: #999;
  font-size: 0.9rem;
}

.btn-signup {
  background-color: var(--secondary-color-peru);
  color: white;
  border: none;
  padding: 0.875rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-signup:hover {
  background-color: var(--primary-color-cafe);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(206, 135, 68, 0.3);
}

.divider {
  position: relative;
  text-align: center;
  margin: 1.5rem 0;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #e0e0e0;
}

.divider span {
  position: relative;
  background-color: white;
  padding: 0 15px;
  color: #999;
  font-size: 0.9rem;
  font-weight: 500;
}


.signup-modal .small {
  font-size: 0.8rem;
  line-height: 1.4;
}

.signup-modal .small a {
  color: var(--secondary-color-peru);
  text-decoration: none;
}

.signup-modal .small a:hover {
  color: var(--primary-color-cafe);
  text-decoration: underline;
}

/* Botones OAuth con iconos */
.btn-oauth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  transition: all 0.2s ease;
  text-decoration: none;
  background-color: white;
}

.btn-oauth:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.btn-oauth i {
  font-size: 1.1rem;
}

/* Google */
.btn-google-oauth {
  color: #4285f4;
  border-color: #4285f4;
}

.btn-google-oauth:hover {
  background-color: #4285f4;
  color: white;
}

/* Facebook */
.btn-facebook-oauth {
  color: #1877f2;
  border-color: #1877f2;
}

.btn-facebook-oauth:hover {
  background-color: #1877f2;
  color: white;
}

/* Microsoft */
.btn-microsoft-oauth {
  color: #00a4ef;
  border-color: #00a4ef;
}

.btn-microsoft-oauth:hover {
  background-color: #00a4ef;
  color: white;
}

/* Twitter */
.btn-twitter-oauth {
  color: #1da1f2;
  border-color: #1da1f2;
}

.btn-twitter-oauth:hover {
  background-color: #1da1f2;
  color: white;
}

/* Apple */
.btn-apple-oauth {
  color: #000000;
  border-color: #000000;
}

.btn-apple-oauth:hover {
  background-color: #000000;
  color: white;
}

/* Login Modal Styles - Similar al signup modal */
.login-modal {
  border-radius: 16px;
  border: none;
  box-shadow: 0 10px 60px rgba(0, 0, 0, 0.3);
  max-width: 500px;
}

.login-modal .modal-body {
  padding: 2rem 2rem;
  position: relative;
}

.login-modal .modal-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  font-size: 1.75rem;
  color: #2c2c2c;
  margin-bottom: 0.5rem;
}

.login-modal .text-center p {
  font-size: 0.95rem;
  color: #666;
}

.login-modal .text-primary {
  color: var(--secondary-color-peru) !important;
  text-decoration: none;
  font-weight: 600;
}

.login-modal .text-primary:hover {
  color: var(--primary-color-cafe) !important;
  text-decoration: underline;
}

.login-modal .small {
  font-size: 0.8rem;
  line-height: 1.4;
}

.login-modal .small a {
  color: var(--secondary-color-peru);
  text-decoration: none;
}

.login-modal .small a:hover {
  color: var(--primary-color-cafe);
  text-decoration: underline;
}

/* Responsive adjustments for modal */
@media (max-width: 576px) {
  .signup-modal .modal-body,
  .login-modal .modal-body {
    padding: 1.25rem 1rem;
  }

  .signup-modal .modal-title,
  .login-modal .modal-title {
    font-size: 1.35rem;
  }

  .btn-oauth {
    font-size: 0.8rem;
    padding: 0.45rem 0.75rem;
  }

  .btn-oauth i {
    font-size: 1rem;
  }
}

/* Login Card Styles - Página de Login */
.login-card {
  background: white;
  border-radius: 16px;
  border: none;
  box-shadow: 0 10px 60px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 100%;
  padding: 2rem 2rem;
  position: relative;
}

.btn-close-card {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #999;
  cursor: pointer;
  z-index: 10;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
}

.btn-close-card:hover {
  color: #333;
  transform: rotate(90deg);
}

.login-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  font-size: 1.75rem;
  color: #2c2c2c;
  margin-bottom: 0.5rem;
}

.login-card .text-center p {
  font-size: 0.95rem;
  color: #666;
}

.login-card .text-primary {
  color: var(--secondary-color-peru) !important;
  text-decoration: none;
  font-weight: 600;
}

.login-card .text-primary:hover {
  color: var(--primary-color-cafe) !important;
  text-decoration: underline;
}

.login-input {
  padding: 0.875rem 1rem;
  font-size: 0.95rem;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  transition: all 0.3s ease;
  background-color: #fafafa;
}

.login-input:focus {
  border-color: var(--secondary-color-peru);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(206, 135, 68, 0.15);
  outline: none;
}

.login-input::placeholder {
  color: #999;
  font-size: 0.9rem;
}

.btn-login {
  background-color: var(--secondary-color-peru);
  color: white;
  border: none;
  padding: 0.875rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-login:hover {
  background-color: var(--primary-color-cafe);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(206, 135, 68, 0.3);
}

.login-card .small {
  font-size: 0.8rem;
  line-height: 1.4;
}

.login-card .small a {
  color: var(--secondary-color-peru);
  text-decoration: none;
}

.login-card .small a:hover {
  color: var(--primary-color-cafe);
  text-decoration: underline;
}

/* Responsive adjustments for login card */
@media (max-width: 576px) {
  .login-card {
    padding: 1.5rem 1.25rem;
    margin: 1rem;
  }

  .login-title {
    font-size: 1.35rem;
  }
}

/* Confirmation Modal Styles - Modal de confirmación de email */
.confirmation-text {
  color: #666;
  font-size: 1rem;
}

.confirmation-alert {
  background-color: #FFF8F0;
  border-left: 4px solid var(--secondary-color-peru);
  border-radius: 6px;
  padding: 1rem;
}

.confirmation-alert-title {
  color: #333;
  font-weight: 500;
  font-size: 0.9rem;
}

.confirmation-alert-list {
  color: #666;
  font-size: 0.85rem;
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

.confirmation-alert-list li {
  margin-bottom: 0.25rem;
}

/* Estilos modernos para errores de validación */
#signupErrors {
  background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
  border: none;
  border-left: 4px solid #dc3545;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.1);
}

#signupErrors .error-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: #721c24;
  font-size: 0.9rem;
  line-height: 1.4;
}

#signupErrors .error-item:not(:last-child) {
  border-bottom: 1px solid rgba(220, 53, 69, 0.1);
}

#signupErrors .error-item i {
  color: #dc3545;
  font-size: 1rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

#signupErrors .error-item span {
  flex: 1;
  font-weight: 500;
}

/* Validación personalizada moderna */
.custom-error-message {
  color: #dc3545;
  font-size: 0.8rem;
  margin-top: 0.35rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  animation: fadeInDown 0.3s ease-out;
}

.custom-error-message::before {
  content: "⚠";
  font-size: 0.9rem;
}

/* Estados de input */
.input-error {
  border-color: #dc3545 !important;
  background-color: #fff5f5 !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15) !important;
  animation: shake 0.3s ease-in-out;
}

.input-error:focus {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important;
}

.input-success {
  border-color: #28a745 !important;
  background-color: #f0fff4 !important;
}

.input-success:focus {
  border-color: #28a745 !important;
  box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.15) !important;
}

/* Animaciones */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Estilos para modal de confirmación de email */
.email-display-box {
  background: #FFF8F0;
  border-left: 4px solid #CE8744;
  padding: 1rem;
  border-radius: 8px;
  color: #4B1E0E;
  font-size: 0.95rem;
  text-align: center;
  word-break: break-all;
}

.email-display-box i {
  color: #CE8744;
  margin-right: 0.5rem;
}

.tips-box {
  background: #E8F4FD;
  border-left: 4px solid #0D6EFD;
  padding: 1rem;
  border-radius: 8px;
}

.tips-box ul {
  color: #555;
  margin-bottom: 0;
}

.tips-box li {
  margin-bottom: 0.25rem;
}

.tips-box i {
  color: #FFC107;
}

/* Estilo para mensaje de error en confirmación de email */
.error-message-box {
  background: #F8D7DA;
  border-left: 4px solid #dc3545;
  padding: 1rem;
  border-radius: 8px;
  color: #721c24;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.error-message-box i {
  color: #dc3545;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.error-message-box span {
  flex: 1;
  font-weight: 500;
}
/* ===================================
   Chatbot Flotante
   =================================== */

#chatbot-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.chatbot-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color-cafe) 0%, var(--secondary-color-peru) 100%);
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(75, 30, 14, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.chatbot-toggle i {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.chatbot-window {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 380px;
  height: 500px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.3s ease;
}

.chatbot-window.active {
  display: flex;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chatbot-header {
  background: linear-gradient(135deg, var(--primary-color-cafe) 0%, var(--secondary-color-peru) 100%);
  color: white;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-header h6 {
  margin: 0;
  font-weight: 600;
}

.chatbot-header small {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
}

.chatbot-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

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

.chatbot-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: #F8F9FA;
}

.chatbot-message {
  margin-bottom: 16px;
  display: flex;
  gap: 12px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color-cafe) 0%, var(--secondary-color-peru) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

.user-message .message-avatar {
  background: var(--secondary-color-viridian);
  order: 1;
}

.message-content {
  flex: 1;
  background: white;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.user-message .message-content {
  background: var(--primary-color-arena);
  text-align: right;
}

.message-content p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.message-content p + p {
  margin-top: 8px;
}

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

.chatbot-input {
  flex: 1;
  border: 2px solid var(--primary-color-arena);
  border-radius: 24px;
  padding: 10px 16px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.chatbot-input:focus {
  border-color: var(--secondary-color-peru);
}

.chatbot-send-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color-cafe) 0%, var(--secondary-color-peru) 100%);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.chatbot-send-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(75, 30, 14, 0.3);
}

.chatbot-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chatbot-footer {
  padding: 8px 20px;
  background: #F8F9FA;
  border-top: 1px solid #E0E0E0;
  text-align: center;
}

.chatbot-footer small {
  font-size: 0.75rem;
  color: #6C757D;
}

/* Responsive */
@media (max-width: 480px) {
  .chatbot-window {
    width: calc(100vw - 40px);
    height: calc(100vh - 120px);
    bottom: 90px;
    right: 20px;
  }
}
