/* =======================================
   STYLES.CSS OPTIMIZADO - MR CONSTRUCTOR
   ✅ 100% RESPONSIVE - Todas las resoluciones
   ======================================= */

/* ==== VARIABLES DE COLOR CONSOLIDADAS ==== */
:root {
  /* Paleta principal café/marrón */
  --color-brown: #8B4513;
  --color-brown-dark: #6B3410;
  --color-brown-light: #A0522D;
  
  /* Grises del sistema */
  --color-gray-dark: #2C2C2C;
  --color-gray: #5A5A5A;
  --color-gray-light: #8E8E8E;
  --color-gray-lighter: #BFBFBF;
  --color-gray-bg: #F5F5F5;
  
  /* Blancos y neutros */
  --color-white: #FFFFFF;
  --color-white-soft: #FAFAFA;
  --color-white-warm: #FFF8F5;
  
  /* Estados del sistema */
  --color-success: #28a745;
  --color-warning: #ffc107;
  --color-danger: #dc3545;
  --color-info: #17a2b8;
  
  /* Dimensiones del navbar - RESPONSIVE */
  --navbar-height-desktop: 110px;
  --navbar-height-tablet: 100px;
  --navbar-height-mobile: 80px;
  
  /* Efectos visuales */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
  
  /* Transiciones */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Radios */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;
}

/* ==== ESTILOS BASE ==== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--color-white);
  color: var(--color-gray-dark);
  line-height: 1.6;
  padding-top: var(--navbar-height-desktop);
  margin: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--color-gray-dark);
  margin-bottom: 1rem;
  line-height: 1.2;
}

a {
  text-decoration: none;
  transition: var(--transition-normal);
  color: inherit;
}

/* ==== CLASES DE UTILIDAD ==== */
.accent { color: var(--color-brown); }
.accent-strong { 
  color: var(--color-brown); 
  font-weight: 800; 
}
.accent-text { color: var(--color-brown); }

.highlight {
  background: linear-gradient(120deg, var(--color-brown), var(--color-brown-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-brown { color: var(--color-brown) !important; }
.bg-brown { background-color: var(--color-brown) !important; }
.border-brown { border-color: var(--color-brown) !important; }

/* Estados de hover */
.hover-lift:hover {
  transform: translateY(-3px);
  transition: var(--transition-normal);
}

.hover-shadow:hover {
  box-shadow: var(--shadow-lg);
  transition: var(--transition-normal);
}

.hover-scale:hover {
  transform: scale(1.02);
  transition: var(--transition-normal);
}

/* ==== TÍTULOS DE SECCIÓN ==== */
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
  position: relative;
  color: var(--color-gray-dark);
  text-align: center;
}

.section-title::after {
  content: '';
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-brown), var(--color-brown-dark));
  display: block;
  margin: 20px auto;
  border-radius: 2px;
}

.section-description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--color-gray);
  margin-bottom: 2rem;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ==== CARRUSEL HERO OPTIMIZADO Y RESPONSIVE ==== */
.hero-carousel-section {
  margin-top: calc(-1 * var(--navbar-height-desktop));
  padding-top: var(--navbar-height-desktop);
  position: relative;
  overflow: hidden;
}

#mainCarousel {
  position: relative;
  width: 100%;
  height: 600px;
}

.carousel-slide-container {
  position: relative;
  height: 600px;
  overflow: hidden;
}

.carousel-slide-container .container {
  position: relative;
  z-index: 3;
}

.carousel-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  transition: transform 0.8s ease;
}

.carousel-item.active .carousel-bg-image {
  transform: scale(1.05);
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.4) 100%);
  z-index: 2;
  pointer-events: none;
}

.carousel-content-wrapper {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--color-white);
  animation: slideInUp 1s ease-out;
  padding: 2rem 0;
  max-width: 100%;
}

/* Badge del carousel */
.carousel-badge-new {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--color-brown), var(--color-brown-dark));
  color: var(--color-white);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px rgba(139, 69, 19, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
  width: fit-content;
}

.badge-text-new {
  font-weight: 700;
}

.carousel-main-title {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: 1rem;
  text-shadow: 0 4px 8px rgba(0,0,0,0.6);
  max-width: 95%;
  word-wrap: break-word;
}

.carousel-sub-title {
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-white);
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
  max-width: 95%;
}

.highlight-accent {
  color: var(--color-brown);
  background: linear-gradient(135deg, var(--color-brown), var(--color-brown-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.carousel-description-text {
  font-size: clamp(0.875rem, 2vw, 1rem);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  max-width: 95%;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.carousel-buttons-group {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.btn-carousel-primary,
.btn-carousel-secondary {
  background: linear-gradient(135deg, var(--color-brown), var(--color-brown-dark));
  border: none;
  color: var(--color-white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  transition: var(--transition-normal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(139, 69, 19, 0.4);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  min-height: 44px;
  justify-content: center;
  cursor: pointer;
}

.btn-carousel-secondary {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
}

.btn-carousel-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-brown-light), var(--color-brown));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.btn-carousel-primary:hover::before {
  opacity: 1;
}

.btn-carousel-primary:hover,
.btn-carousel-secondary:hover {
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 69, 19, 0.5);
  text-decoration: none;
}

.btn-carousel-secondary:hover {
  background: var(--color-white);
  color: var(--color-gray-dark);
  border-color: var(--color-white);
}

.carousel-features-list {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.feature-item-carousel {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-white);
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.95;
}

.feature-item-carousel i {
  color: var(--color-brown);
  font-size: 0.9rem;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

/* Controles del carrusel */
.carousel-control-prev,
.carousel-control-next {
  width: 44px;
  height: 44px;
  background: rgba(139, 69, 19, 0.8);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: var(--transition-normal);
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.9;
  backdrop-filter: blur(10px);
  z-index: 4;
  cursor: pointer;
}

.carousel-control-prev { left: 15px; }
.carousel-control-next { right: 15px; }

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: var(--color-brown);
  border-color: var(--color-brown);
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 20px;
  height: 20px;
  background-size: 20px 20px;
}

/* Indicadores del carrusel */
.carousel-indicators {
  bottom: 20px;
  z-index: 4;
  margin: 0;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  margin: 0 4px;
  transition: var(--transition-normal);
  padding: 0;
  cursor: pointer;
}

.carousel-indicators button.active {
  background: var(--color-brown);
  border-color: var(--color-brown);
  transform: scale(1.2);
  box-shadow: 0 0 15px rgba(139, 69, 19, 0.5);
}

/* Animaciones del contenido */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==== CATEGORÍAS DESTACADAS ==== */
.categorias-destacadas {
  background: var(--color-white);
  padding: 60px 0;
}

.categoria-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-normal);
  border: 2px solid transparent;
  height: 100%;
}

.categoria-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-brown);
}

.categoria-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--color-brown), var(--color-brown-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--color-white);
  font-size: 1.75rem;
  box-shadow: var(--shadow-md);
}

.categoria-card h4 {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--color-gray-dark);
  margin-bottom: 1rem;
}

.categoria-card p {
  color: var(--color-gray);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

.btn-categoria {
  background: var(--color-brown);
  border: none;
  color: var(--color-white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: var(--transition-normal);
  text-decoration: none;
  display: inline-block;
  min-height: 44px;
}

.btn-categoria:hover {
  background: var(--color-brown-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  text-decoration: none;
}

/* ==== SECCIÓN CÓMO FUNCIONA ==== */
.como-funciona {
  background-color: var(--color-gray-bg);
  padding: 60px 0;
}

.step-card {
  background-color: var(--color-white);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  transition: all 0.3s ease;
  border: 1px solid var(--color-gray-lighter);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(139, 69, 19, 0.1), transparent);
  transition: left 0.5s ease;
}

.step-card:hover::before {
  left: 100%;
}

.step-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--color-brown-light);
}

.icon-circle {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--color-brown), var(--color-brown-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--color-white);
  font-size: 1.6rem;
  box-shadow: 0 8px 20px rgba(139, 69, 19, 0.3);
}

.step-card h5 {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  margin-bottom: 15px;
  color: var(--color-gray-dark);
  text-align: center;
}

.step-card p {
  color: var(--color-gray);
  font-size: 0.95rem;
  text-align: center;
  line-height: 1.6;
}

/* ==== SECCIÓN POR QUÉ ELEGIR ==== */
.porque-elegir {
  background: linear-gradient(135deg, var(--color-gray-dark) 0%, #3a3a3a 100%);
  color: var(--color-white);
  padding: 60px 0;
  position: relative;
}

.porque-elegir::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%238B4513" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.porque-elegir .container {
  position: relative;
  z-index: 2;
}

.porque-elegir .section-title {
  color: var(--color-white);
}

.porque-elegir .section-title::after {
  background: linear-gradient(90deg, var(--color-white), rgba(255, 255, 255, 0.8));
}

.card-elegir {
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  transition: all 0.3s ease;
  height: 100%;
  text-align: center;
}

.card-elegir:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--color-brown-light);
}

.card-elegir .icon-circle {
  background: linear-gradient(135deg, var(--color-brown), var(--color-brown-dark));
  margin-bottom: 25px;
}

.card-elegir h5 {
  color: var(--color-white);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  margin-bottom: 15px;
}

.card-elegir p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==== SECCIÓN CTA ==== */
.cta-section {
  background: linear-gradient(135deg, var(--color-brown), var(--color-brown-dark));
  color: var(--color-white);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%23ffffff" stroke-width="0.5" opacity="0.1"/></svg>');
  animation: rotate 60s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.cta-section .container {
  position: relative;
  z-index: 2;
}

.cta-section h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 20px;
  color: var(--color-white);
}

.cta-subtext {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-cta {
  background: var(--color-white);
  color: var(--color-brown);
  border: 2px solid var(--color-white);
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  margin: 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-cta:hover {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

/* ==== BOTONES GLOBALES ==== */
.btn-brown {
  background: linear-gradient(135deg, var(--color-brown), var(--color-brown-dark));
  border: none;
  color: var(--color-white);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-brown:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 69, 19, 0.4);
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-brown-dark), var(--color-brown));
}

.btn-outline-brown {
  border: 2px solid var(--color-brown);
  color: var(--color-brown);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  background: transparent;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-outline-brown:hover {
  background: var(--color-brown);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* ==== FOOTER ==== */
.site-footer {
  background: #828282;
  color: var(--color-white);
  padding: 3rem 0 1rem 0;
  margin-top: 0;
}

.footer-col-logo,
.footer-col-contact,
.footer-col-links {
  margin-bottom: 2rem;
}

.footer-logo {
  max-width: 180px;
  height: auto;
  margin-bottom: 1rem;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.6;
}

.site-footer h5 {
  color: var(--color-white);
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.accent-text {
  color: var(--color-white);
}

.btn-footer-cta {
  background: #6B3410;
  color: var(--color-white);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-height: 44px;
}

.btn-footer-cta:hover {
  background: #8B4513;
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(75, 47, 26, 0.4);
  text-decoration: none;
}

.footer-social {
  gap: 0.75rem;
  display: flex;
  flex-direction: column;
}

.social-item {
  color: var(--color-white);
  text-decoration: none;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.social-item:hover {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding-left: 0.5rem;
}

.social-item i {
  color: inherit;
  transition: all 0.3s ease;
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact-list li {
  color: rgba(255, 255, 255, 0.85);
  padding: 0.5rem 0;
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-contact-list i {
  color: var(--color-white);
  min-width: 1.25rem;
  font-size: 1rem;
  margin-top: 0.15rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--color-white);
  text-decoration: none;
  padding-left: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  margin-top: 2rem;
}

.footer-bottom small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

/* ==== SISTEMA DE NOTIFICACIONES TOAST ==== */
.toast-container {
  position: fixed;
  top: calc(var(--navbar-height-desktop) + 20px);
  right: 20px;
  z-index: 9999;
  max-width: 400px;
}

.notification-toast {
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border: none;
  margin-bottom: 15px;
  overflow: hidden;
  min-width: 350px;
  backdrop-filter: blur(10px);
}

.notification-toast.toast-success { border-left: 4px solid var(--color-success); }
.notification-toast.toast-error { border-left: 4px solid var(--color-danger); }
.notification-toast.toast-warning { border-left: 4px solid var(--color-warning); }
.notification-toast.toast-info { border-left: 4px solid var(--color-info); }

.toast-header-custom {
  background: transparent;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 15px 20px;
}

.toast-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-size: 12px;
  color: var(--color-white);
}

.toast-success .toast-icon { background: var(--color-success); }
.toast-error .toast-icon { background: var(--color-danger); }
.toast-warning .toast-icon { background: var(--color-warning); }
.toast-info .toast-icon { background: var(--color-info); }

.toast-title {
  font-weight: 600;
  color: var(--color-gray-dark);
  margin: 0;
  font-size: 14px;
}

.toast-body-custom {
  padding: 0 20px 15px 20px;
  color: var(--color-gray);
  font-size: 13px;
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  color: var(--color-gray-light);
  font-size: 18px;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
  cursor: pointer;
}

.toast-close:hover {
  color: var(--color-gray-dark);
  transform: scale(1.1);
}

/* ==== MODAL DE LOGIN ==== */
.login-modal .modal-content {
  border: none;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.modal-header-custom {
  background: linear-gradient(135deg, var(--color-brown), var(--color-brown-dark));
  color: var(--color-white);
  padding: 30px;
  text-align: center;
  border: none;
}

.modal-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: var(--color-white);
}

.modal-title-custom {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.modal-subtitle {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: 8px;
}

.modal-body-custom {
  padding: 40px;
  text-align: center;
}

.modal-body-custom h6 {
  color: var(--color-gray-dark);
  font-weight: 600;
  margin-bottom: 15px;
}

.modal-body-custom p {
  color: var(--color-gray);
  line-height: 1.6;
  margin-bottom: 30px;
}

.benefit-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  text-align: left;
}

.benefit-list li {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--color-gray);
}

.benefit-list li i {
  color: var(--color-brown);
  margin-right: 12px;
  width: 16px;
  text-align: center;
}

/* ==== SCROLLBAR PERSONALIZADO ==== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-gray-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-gray);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-brown);
}

/* ===== RESPONSIVE DESIGN - MÓVIL PRIMERO ===== */

/* Móvil extra pequeño (320px - 399px) */
@media (max-width: 399.98px) {
  body {
    padding-top: var(--navbar-height-mobile);
    font-size: 14px;
  }
  
  #mainCarousel,
  .carousel-slide-container {
    height: 350px;
  }
  
  .carousel-main-title {
    font-size: 1.5rem;
    line-height: 1.2;
  }
  
  .carousel-sub-title {
    font-size: 1rem;
  }
  
  .carousel-description-text {
    font-size: 0.8rem;
    margin-bottom: 1rem;
  }
  
  .carousel-badge-new {
    font-size: 0.65rem;
    padding: 0.4rem 0.8rem;
  }
  
  .btn-carousel-primary,
  .btn-carousel-secondary {
    padding: 0.65rem 1rem;
    font-size: 0.75rem;
    width: 100%;
    max-width: 100%;
  }
  
  .carousel-buttons-group {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .carousel-features-list {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .feature-item-carousel {
    font-size: 0.75rem;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: 36px;
    height: 36px;
  }
  
  .categoria-icon,
  .icon-circle {
    width: 55px;
    height: 55px;
    font-size: 1.4rem;
  }
  
  .categoria-card,
  .step-card,
  .card-elegir {
    padding: 1.25rem;
  }
  
  .toast-container {
    right: 10px;
    left: 10px;
    max-width: none;
  }
  
  .notification-toast {
    min-width: auto;
  }
}

/* Móvil pequeño (400px - 575px) */
@media (max-width: 575.98px) {
  body {
    padding-top: var(--navbar-height-mobile);
  }
  
  .hero-carousel-section {
    margin-top: calc(-1 * var(--navbar-height-mobile));
    padding-top: var(--navbar-height-mobile);
  }
  
  #mainCarousel,
  .carousel-slide-container {
    height: 400px;
  }
  
  .carousel-content-wrapper {
    padding: 1rem 0;
  }
  
  .categorias-destacadas,
  .como-funciona,
  .porque-elegir,
  .cta-section {
    padding: 40px 0;
  }
  
  .section-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }
  
  .section-description {
    font-size: 0.95rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-cta {
    width: 100%;
    max-width: 300px;
  }
  
  .site-footer {
    padding: 2rem 0 1rem 0;
  }
  
  .footer-col-logo,
  .footer-col-contact,
  .footer-col-links {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .footer-logo {
    margin: 0 auto 1rem;
  }
  
  .btn-footer-cta {
    display: block;
    width: fit-content;
    margin: 0 auto 1rem;
  }
  
  .footer-social {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
  }
  
  .modal-body-custom {
    padding: 30px 20px;
  }
}

/* Móvil grande y tablet pequeña (576px - 767px) */
@media (max-width: 767.98px) {
  #mainCarousel,
  .carousel-slide-container {
    height: 450px;
  }
  
  .carousel-control-prev { left: 10px; }
  .carousel-control-next { right: 10px; }
  
  .carousel-indicators { bottom: 15px; }
  
  .carousel-indicators button {
    width: 10px;
    height: 10px;
    margin: 0 3px;
  }
  
  .categoria-icon,
  .icon-circle {
    width: 65px;
    height: 65px;
    font-size: 1.6rem;
  }
}

/* Tablet (768px - 991px) */
@media (max-width: 991.98px) {
  body {
    padding-top: var(--navbar-height-tablet);
  }
  
  .hero-carousel-section {
    margin-top: calc(-1 * var(--navbar-height-tablet));
    padding-top: var(--navbar-height-tablet);
  }
  
  #mainCarousel,
  .carousel-slide-container {
    height: 500px;
  }
  
  .carousel-main-title {
    font-size: 2.2rem;
  }
  
  .carousel-sub-title {
    font-size: 1.3rem;
  }
  
  .carousel-description-text {
    font-size: 0.9rem;
    max-width: 400px;
  }
  
  .btn-carousel-primary,
  .btn-carousel-secondary {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .carousel-features-list {
    gap: 1rem;
  }
  
  .feature-item-carousel {
    font-size: 0.8rem;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: 45px;
    height: 45px;
  }
  
  .categorias-destacadas,
  .como-funciona,
  .porque-elegir,
  .cta-section {
    padding: 50px 0;
  }
  
  .toast-container {
    top: calc(var(--navbar-height-tablet) + 20px);
  }
}

/* Desktop pequeño (992px - 1199px) */
@media (max-width: 1199.98px) {
  #mainCarousel,
  .carousel-slide-container {
    height: 550px;
  }
  
  .carousel-main-title {
    font-size: 2.5rem;
  }
  
  .carousel-sub-title {
    font-size: 1.4rem;
  }
  
  .carousel-description-text {
    font-size: 0.95rem;
    max-width: 450px;
  }
  
  .carousel-features-list {
    gap: 1.25rem;
  }
}

/* Desktop grande (1200px+) */
@media (min-width: 1200px) {
  .container {
    max-width: 1400px;
  }
}

/* ==== ACCESIBILIDAD ==== */
.btn:focus,
.nav-link:focus,
.dropdown-item:focus {
  outline: 2px solid var(--color-brown);
  outline-offset: 2px;
}

*:focus-visible {
  outline: 2px solid var(--color-brown);
  outline-offset: 2px;
}

@media (prefers-contrast: high) {
  .carousel-overlay {
    background: rgba(0, 0, 0, 0.75);
  }
  
  .btn-carousel-secondary {
    border-width: 3px;
  }
  
  .carousel-indicators button {
    border-width: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .carousel-content-wrapper {
    animation: none;
  }
  
  .carousel-item .carousel-content-wrapper {
    animation: none;
  }
  
  .btn-carousel-primary:hover,
  .btn-carousel-secondary:hover {
    transform: none;
  }
  
  .carousel-control-prev:hover,
  .carousel-control-next:hover {
    transform: translateY(-50%);
  }
  
  .carousel-bg-image {
    transition: none;
  }
  
  .carousel-item.active .carousel-bg-image {
    transform: none;
  }
}

/* Optimización de renderizado */
.carousel-slide-container,
.carousel-bg-image,
.categoria-card,
.step-card,
.card-elegir {
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}