* {
  outline: none !important;
}

:root {
  --color-primary:        #00817e;   /* Teal institucional */
  --color-primary-dark:   #005f5d;   
  --color-primary-light:  #f0fcfc;   
  --color-accent:         #C9956A;   
  --color-gold:           #f1c40f;   /* Dorado para estrellas */
  --color-bg-soft:        #f8f9fa;
  --color-white:          #ffffff;
  --color-text:           #2d3436;   
  --color-text-muted:     #636e72;
  --shadow-soft:          0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-medium:        0 8px 30px rgba(0, 0, 0, 0.08);
  --radius-sm:            8px;
  --radius-md:            12px;
  --radius-lg:            20px;
  --radius-pill:          50px;
}

/* Tipografía */
body {
  font-family: 'Lato', sans-serif;
  color: var(--color-text);
  background-color: var(--color-white);
  font-size: 15px;
  line-height: 1.6;
}

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

a:hover, a:focus {
  color: var(--color-primary-dark);
  text-decoration: none;
}

.full-description, .rich-text-content { 
  font-size: 15px !important; 
  line-height: 1.8 !important; 
  color: #444 !important;
  font-family: 'Lato', sans-serif !important;
}

/* Forzar reseteo de estilos inline que vienen de la DB */
.full-description *, .rich-text-content * {
  font-family: 'Lato', sans-serif !important;
  font-size: 15px !important;
  line-height: 1.8 !important;
}

/* Manejo de títulos dentro de la descripción */
.full-description h1, .full-description h2, .full-description h3,
.rich-text-content h1, .rich-text-content h2, .rich-text-content h3 {
  font-family: 'Raleway', sans-serif !important;
  color: var(--color-primary-dark) !important;
  margin-top: 25px !important;
  margin-bottom: 15px !important;
}

/* Estilo especial para el link de WhatsApp / Grupo de estudio */
.full-description a[href*="chat.whatsapp.com"], 
.rich-text-content a[href*="chat.whatsapp.com"] {
  display: inline-block;
  background: #25D366 !important;
  color: #fff !important;
  padding: 12px 25px;
  border-radius: var(--radius-pill);
  text-decoration: none !important;
  font-weight: 700 !important;
  margin-top: 20px;
  font-size: 0 !important; /* Escondemos el texto original */
  color: transparent !important; /* Por si las moscas */
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1 !important;
}

/* Ocultar cualquier cosa que esté adentro del link (span, b, etc) */
.full-description a[href*="chat.whatsapp.com"] *,
.rich-text-content a[href*="chat.whatsapp.com"] * {
  font-size: 0 !important;
  color: transparent !important;
  text-decoration: none !important;
}

.full-description a[href*="chat.whatsapp.com"]::before,
.rich-text-content a[href*="chat.whatsapp.com"]::before {
  content: "\f232"; /* Icono WhatsApp */
  font-family: "FontAwesome";
  font-size: 18px !important;
  margin-right: 10px;
  color: #fff !important;
  display: inline-block;
  vertical-align: middle;
}

.full-description a[href*="chat.whatsapp.com"]::after,
.rich-text-content a[href*="chat.whatsapp.com"]::after {
  content: "Unirme al Grupo";
  font-size: 14px !important;
  color: #fff !important;
  display: inline-block;
  vertical-align: middle;
}

.full-description a[href*="chat.whatsapp.com"]:hover,
.rich-text-content a[href*="chat.whatsapp.com"]:hover {
  background: #34e073 !important; /* Verde más iluminado */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  color: #fff !important;
}

h1, h2, h3, h4, h5 {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-top: 0;
}

/* Espaciado General */
.container {
  padding-left: 20px;
  padding-right: 20px;
}

section, .section-padding {
  padding: 80px 0;
}

/* Botones estilo Stitch */
.btn {
  border-radius: var(--radius-pill);
  padding: 12px 28px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: none;
  border: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 129, 126, 0.2);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 129, 126, 0.3);
}

/* Inputs y Formularios */
.form-control {
  border-radius: var(--radius-md);
  border: 1px solid #e1e8eb;
  padding: 12px 15px;
  height: auto;
  box-shadow: none;
  background-color: #fff;
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(0, 129, 126, 0.05);
}

/* Tarjetas (Cards) */
.product-thumb {
  background: var(--color-white);
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  margin-bottom: 30px;
  padding: 0;
}

.product-thumb:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-medium);
}

/* Registro Simplificado */
#account-register .form-horizontal .form-group {
  margin-bottom: 25px;
}

#account-register .well {
  background: var(--color-bg-soft);
  border: none;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: none;
}

/* Top Bar Refinement */
#top {
  background-color: var(--color-bg-soft);
  border-bottom: none; /* Eliminamos línea gris */
  padding: 6px 0;
  font-size: 12px; /* Más delicado */
}

#top a, #top .btn-link {
  color: var(--color-primary) !important;
  text-decoration: none !important;
  font-family: 'Lato', sans-serif;
  transition: all 0.3s ease;
  font-weight: 400;
}

#top a:hover, #top .btn-link:hover {
  color: var(--color-primary-dark) !important;
  text-shadow: 0 0 1px rgba(0, 129, 126, 0.2);
}

#top .list-inline { margin-bottom: 0; display: flex; align-items: center; justify-content: flex-end; }
#top .list-inline i { margin-right: 2px; font-size: 13px; }
#top .list-inline > li { padding-left: 5px; padding-right: 5px; }

@media (max-width: 767px) {
  #top .list-inline > li { padding-left: 3px; padding-right: 3px; }
  #top .list-inline span.hidden-xs { display: none !important; } /* Forzamos ocultar texto */
}

/* Currency Dropdown Zen */
#top .dropdown-menu {
  border-radius: var(--radius-md);
  border: none;
  box-shadow: var(--shadow-medium);
  padding: 10px 0;
  min-width: 150px;
}

#top .dropdown-menu li {
  text-align: left !important;
}

#top .dropdown-menu button {
  text-align: left !important;
  padding: 8px 20px !important;
  width: 100%;
  font-family: 'Lato', sans-serif !important;
  font-weight: 400 !important;
  color: var(--color-text) !important;
  font-size: 14px !important;
  border: none;
  background: none;
}

#top .dropdown-menu button:hover {
  background-color: var(--color-primary-light) !important;
  color: var(--color-primary) !important;
}

/* Main Navigation Menu Zen */
#menu {
  background-color: var(--color-white);
  border-top: none;
  border-bottom: none;
  margin-top: 15px;
  margin-bottom: 0;
  min-height: 40px;
  box-shadow: none;
}

@media (max-width: 767px) {
  #menu {
    background-color: var(--color-primary); /* Fondo Teal para el botón de categorías */
    border-radius: var(--radius-sm);
    margin: 10px 15px;
  }
  
  #menu .navbar-header {
    background-color: var(--color-primary);
    border-radius: var(--radius-sm);
  }
  
  #menu .navbar-toggle {
    margin-right: 15px;
    color: #fff;
    border: none;
    background: none;
  }
  
  #menu .navbar-toggle .fa-bars {
    font-size: 20px;
  }
  
  #menu .navbar-collapse {
    background-color: #fff; /* Las categorías se ven sobre blanco al bajar */
    border: none;
    box-shadow: var(--shadow-medium);
  }
}

#menu .navbar-nav {
  float: none;
  display: flex;
  justify-content: flex-start;
  flex-wrap: nowrap; /* En escritorio 1 fila */
}

@media (max-width: 767px) {
  #menu .navbar-nav {
    display: block !important; /* En móvil vertical */
    width: 100%;
  }
  
  #menu .navbar-nav > li {
    width: 100%;
    display: block !important;
  }
}

#menu .navbar-nav > li > a {
  color: var(--color-text) !important;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px; /* Más chico para que entre en 1 fila */
  letter-spacing: 0.5px;
  padding: 12px 15px; /* Menos padding */
  background: none !important;
  transition: all 0.3s ease;
}

#menu .navbar-nav > li > a:hover {
  color: var(--color-primary) !important;
}

#menu .dropdown-menu {
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-medium);
  padding: 20px;
}

#menu .dropdown-inner ul li a {
  color: var(--color-text-muted) !important;
  font-size: 14px;
  padding: 8px 0;
  display: block;
}

#menu .dropdown-inner ul li a:hover {
  color: var(--color-primary) !important;
  padding-left: 5px;
}

#menu .see-all {
  display: block;
  margin-top: 15px;
  font-weight: 700;
  color: var(--color-primary) !important;
  border-top: 1px solid #eee;
  padding-top: 10px;
}

#logo img {
  max-height: 55px; /* Un poco más chico y delicado */
  width: auto;
  transition: transform 0.3s ease;
}

/* Buscador Minimalista */
#search {
  margin-bottom: 0;
  width: 100%; /* Forzamos ancho total */
  position: relative;
}

#search .form-control {
  background: #fdfdfd;
  border: 1px solid #f1f1f1;
  border-radius: var(--radius-pill);
  padding: 10px 50px 10px 25px; /* Más espacio a la derecha para la lupa */
  font-size: 14px;
  height: 42px;
  width: 100% !important; /* Forzamos expansión */
  box-shadow: none !important;
}

#search .input-group-btn {
  position: absolute;
  right: 10px; /* Más adentro para que no se escape en móvil */
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

@media (max-width: 767px) {
  #search {
    width: 94%; /* Un poco menos de ancho en móvil para margen */
    margin: 0 auto;
  }
}

#search .btn-default {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 18px;
  padding: 5px 15px;
  box-shadow: none !important;
}

#search .btn-default:hover {
  color: var(--color-primary-dark);
}

/* Carrito Delicado */
#cart > button {
  background-color: #f1f1f1;
  border: none;
  border-radius: var(--radius-pill);
  padding: 8px 25px;
  color: var(--color-text);
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 13px;
  transition: all 0.3s ease;
  height: 42px;
}

@media (max-width: 767px) {
  .mobile-cart-wrapper #cart {
    width: 100%;
  }
  
  .mobile-cart-wrapper #cart > button {
    background-color: #333; /* Fondo oscuro como la referencia */
    color: #fff;
    width: 100%;
    border-radius: var(--radius-sm);
    margin-top: 5px;
  }
  
  .mobile-cart-wrapper #cart .fa-shopping-cart {
    color: #fff;
  }
}

#cart > button:hover {
  background-color: #e5e5e5;
}

#cart .fa-shopping-cart {
  margin-right: 10px;
  color: var(--color-primary);
}

#cart .dropdown-menu {
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-medium);
  margin-top: 10px;
  min-width: 380px; /* Más ancho para evitar que se corte */
  padding: 20px;
}

#cart .dropdown-menu table {
  margin-bottom: 15px;
}

#cart .dropdown-menu .table-striped {
  border-bottom: 1px solid #eee;
}

#cart .dropdown-menu td {
  padding: 10px 5px !important;
  vertical-align: middle !important;
  border: none !important;
}

#cart .dropdown-menu .text-left a {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  display: block;
  margin-bottom: 5px;
  color: var(--color-primary);
}

#cart .dropdown-menu .btn-danger {
  background-color: #e74c3c;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  transition: all 0.3s ease;
}

#cart .dropdown-menu .btn-danger:hover {
  background-color: #c0392b;
  transform: rotate(90deg);
}

#cart .dropdown-menu .table-bordered {
  background: var(--color-bg-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

#cart .dropdown-menu .table-bordered td {
  padding: 8px 15px !important;
  font-size: 14px;
}

#cart .dropdown-menu p.text-right {
  margin-top: 15px;
  margin-bottom: 0;
}

#cart .dropdown-menu p.text-right a {
  padding: 10px 20px;
  font-size: 13px;
}

#cart .dropdown-menu p.text-right a strong {
  font-weight: 700;
}

#logo a:hover img {
  transform: scale(1.02);
}

#logo h1 a {
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -1px;
}

/* Checkout / Cart */
.cart-info {
  background: var(--color-bg-soft);
  border-radius: var(--radius-lg);
  padding: 30px;
}

/* Footer Premium */
footer {
  background: var(--color-primary-dark);
  color: #fff;
  padding: 80px 0 40px;
}

footer a {
  color: rgba(255, 255, 255, 0.8);
}

footer a:hover {
  color: var(--color-accent);
}

.footer-newsletter {
  margin-top: 60px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 40px;
}

.footer-newsletter h4 {
  font-family: 'Raleway', sans-serif;
  font-size: 18px;
  margin-bottom: 25px;
  letter-spacing: 1px;
}

.newsletter-form {
  max-width: 500px;
  margin: 0 auto 40px;
}

.newsletter-form .input-group {
  background: #fff;
  border-radius: var(--radius-pill);
  padding: 5px;
  display: flex;
}

.newsletter-form .form-control {
  border: none !important;
  box-shadow: none !important;
  background: transparent;
  height: 45px;
  padding-left: 25px;
  color: #333;
}

.btn-newsletter {
  background: #f1f1f1 !important; /* Color claro */
  color: #000 !important; /* Texto negro legible */
  border-radius: var(--radius-pill) !important;
  padding: 0 30px !important;
  height: 45px !important;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
  border: none !important;
  transition: all 0.3s ease;
}

.btn-newsletter:hover {
  background: #fff !important;
  transform: scale(1.02);
}

.copyright {
  text-align: center;
  margin-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}

/* Componentes de Cursos (Zen Style) */
.badge-premium-pill {
  background: var(--color-accent);
  color: #fff;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 10px;
}

/* Componentes de Cursos (Zen Style) */
.product-layout {
  margin-bottom: 30px;
  display: flex; /* Ayuda a que todas tengan la misma altura */
}

.course-card-zen, .product-thumb {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  width: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid #f1f1f1;
  overflow: hidden;
  text-align: left;
  padding: 0;
  margin: 0;
}

.course-card-zen:hover, .product-thumb:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
}

.course-card-zen .image, .product-thumb .image {
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

.course-card-zen .image img, .product-thumb .image img {
  width: 100%;
  aspect-ratio: 493 / 410; /* Ajustamos un poco más la proporción */
  height: auto;
  object-fit: cover;
  object-position: center bottom; /* EMPUJA LA IMAGEN HACIA ABAJO para ocultar el banner teal de arriba */
  transform: scale(1.12); /* Aumentamos el zoom al 12% para que el banner de arriba "salte" fuera del cuadro */
  transition: transform 0.5s ease;
}

.course-card-zen .image, .product-thumb .image {
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}

.course-card-zen .caption, .product-thumb .caption {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-height: 180px; /* Altura fija para que todas sean iguales */
}

.course-card-zen h4, .product-thumb h4 {
  font-size: 14px;
  margin-top: 0;
  margin-bottom: 8px;
  height: 38px; /* Altura fija obligatoria */
  overflow: hidden;
  font-weight: 700;
  line-height: 1.3;
}

.product-thumb .caption p:not(.price) {
  font-size: 12px;
  color: #666;
  height: 45px; /* Altura fija para la descripción */
  overflow: hidden;
  margin-bottom: 10px;
  line-height: 1.4;
}

.course-card-zen h4 a, .product-thumb h4 a {
  color: var(--color-primary);
  text-decoration: none;
}

/* Valoraciones / Estrellas (Forzado Global) */
.rating i, 
.rating-zen i,
.product-thumb .rating i, 
.course-card-zen .rating i,
i.fa-star, 
i.fa-star-o {
  color: #f1c40f !important;
  font-size: inherit !important;
  margin: 0 1px !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: inline-block !important;
}

.rating {
  margin-bottom: 10px !important;
  display: block !important;
}

.course-card-zen .price, .product-thumb .price {
  font-size: 15px; /* Tamaño sutil */
  font-weight: 700;
  color: #333;
  margin-bottom: 5px;
  margin-top: auto;
}

.price-new {
  color: #a00 !important; /* Bordo fuerte para oferta */
  font-weight: 800;
}

.price-old {
  color: #999 !important; /* Gris claro */
  text-decoration: line-through;
  font-size: 12px;
  margin-left: 5px;
  font-weight: 400;
}

/* Botón Comprar en el Grid (Estilo Zen) */
.button-group {
  display: flex;
  border-top: 1px solid #f1f1f1;
  background: #fcfcfc;
}

.button-group button {
  width: 100%;
  border: none;
  background: none;
  padding: 10px;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.button-group button:hover {
  background: var(--color-primary-light);
}

/* Ocultamos Wishlist y Compare en el grid por ahora */
.button-group button + button {
  display: none;
}

/* Mobile First Adjustments */

/* --- AJUSTES FINALES BELLEZA BAIRES --- */

header {
  background: #fff;
  padding: 15px 0;
}

@media (max-width: 767px) {
  header {
    padding-top: 30px !important; /* Despegar logo del borde superior */
  }
  
  #logo img {
    max-height: 70px;
    margin-bottom: 20px;
  }
  
  .mobile-cart-wrapper #cart > button {
    background-color: #222 !important; /* Botón negro como en la referencia */
    border-radius: 4px !important;
    font-size: 14px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    height: 45px;
  }

}

/* Espaciado Global de Contenido y Botones */
.buttons {
  margin-bottom: 50px !important;
  display: block;
  overflow: hidden;
}

#content, #common-home {
  margin-bottom: 40px !important;
}

form {
  margin-bottom: 30px;
}

/* Buscador Desktop - Reducción leve */
@media (min-width: 768px) {
  #search {
    max-width: 90%; /* Reducimos un poco para despegar del carrito */
    margin-left: 0;
  }
}

/* Menú Móvil Vertical */
@media (max-width: 767px) {
  .navbar-collapse.in {
    display: block !important;
    height: auto !important;
    padding-bottom: 20px;
  }
  
  #menu .nav > li {
    border-bottom: 1px solid #f1f1f1;
  }
  
  #menu .nav > li > a {
    padding: 12px 20px !important;
    font-size: 14px !important;
    text-align: left;
  }
}

/* Paginación Zen */
.pagination {
  margin: 40px 0;
  display: flex;
  flex-wrap: nowrap; /* Evita que salte a otra línea */
  justify-content: flex-start;
}

.pagination > li > a, 
.pagination > li > span {
  color: var(--color-primary) !important;
  border: 1px solid #eee !important;
  padding: 5px 10px !important; /* Más compacto */
  font-weight: 700 !important;
  font-size: 12px !important; /* Un punto menos */
  transition: all 0.3s ease;
  background-color: #fff !important;
  margin: 0 1px !important; /* Margen mínimo */
  border-radius: var(--radius-sm) !important;
  white-space: nowrap;
}

.pagination > li > a:hover, 
.pagination > li > span:hover {
  background-color: var(--color-primary-light) !important;
  color: var(--color-primary-dark) !important;
  border-color: var(--color-primary) !important;
}

.pagination > .active > a, 
.pagination > .active > span, 
.pagination > .active > a:hover, 
.pagination > .active > span:hover, 
.pagination > .active > a:focus, 
.pagination > .active > span:focus {
  background-color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  color: #fff !important;
}

.pagination-result {
  color: var(--color-text-muted);
  font-size: 13px;
  margin-top: 10px;
}
