:root {
    /* Paleta de colores tierra y bienestar - INTENSIFICADA */
    --purpura-principal: #3d2d5f;
    --purpura-oscuro: #2a1f3d;
    --purpura-claro: #9375d4;
    --verde-agua: #8B7355; /* Reemplazado por --tierra-marron */
    --verde-agua-claro: #D4C4B0; /* Reemplazado por --tierra-beige */
    --verde-agua-oscuro: #725f47; /* Reemplazado por un marrón más oscuro */
    --tierra-beige: #D4C4B0;
    --tierra-arena: #E8DCC4;
    --tierra-marron: #8B7355;
    --rosa-lotus: #f0a8d4;
    --dorado: #d4af5e;
    --blanco: #FFFFFF;
    --blanco-roto: #FAF8F5;
    --negro-suave: #2D2D2D;
    --gris-neutro: #E5E7EB;

    --font-serif: 'Cormorant Garamond', serif;
    --font-sans-serif: 'Raleway', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans-serif);
    background-color: var(--blanco-roto);
    color: var(--negro-suave);
    line-height: 1.8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    letter-spacing: 0.3px;
}

main {
    flex: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    color: var(--purpura-principal);
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

h1 {
    font-size: 2.1rem;
}

h2 {
    font-size: 1.8rem;
}

h3 {
    font-size: 1.4rem;
}

h4 {
    font-size: 1.2rem;
}

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

a:hover,
a:focus {
    color: var(--verde-agua-oscuro);
    text-decoration: none;
}

.header-top .btn-outline-light {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.8);
    background: transparent;
    box-shadow: none;
}

.header-top .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--purpura-principal);
    border-color: rgba(255, 255, 255, 0.9);
}

.header-top .d-flex.gap-2 {
    gap: 0.4rem !important;
}

/* Scrollbar más delgada y discreta (sólo en navegadores que lo soportan) */
body {
    scrollbar-width: thin;
    scrollbar-color: rgba(61, 45, 95, 0.35) rgba(255, 255, 255, 0.4);
}

body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.4);
}

body::-webkit-scrollbar-thumb {
    background: rgba(61, 45, 95, 0.45);
    border-radius: 10px;
}

body::-webkit-scrollbar-thumb:hover {
    background: rgba(61, 45, 95, 0.65);
}

/* === HEADER === */
.header-top {
    background: linear-gradient(135deg, var(--purpura-principal) 0%, var(--purpura-oscuro) 100%);
    color: var(--blanco);
    padding: 0.6rem 0;
    box-shadow:
        0 4px 20px rgba(107, 81, 168, 0.3),
        0 0 40px rgba(107, 81, 168, 0.1);
}

.logo-container img {
    max-height: clamp(48px, 6vw, 64px);
    max-width: 100%;
    height: auto;
    width: auto;
    object-fit: contain;
    display: block;
}

.navbar {
    background-color: rgba(219, 216, 206, 0.92);
    border-bottom: 2px solid #d0cbbf;
    padding: 0.6rem 0;
}

.navbar .nav-link {
    color: var(--purpura-principal);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--verde-agua);
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--verde-agua);
    transition: width 0.3s ease;
}

.navbar .nav-link:hover::after {
    width: 80%;
}

.navbar .input-group {
    max-width: 260px;
    border-radius: 12px;
    background-color: #f7f3ef;
    overflow: hidden;
}

.navbar .form-control {
    border: 1px solid var(--tierra-beige);
    border-right: none;
    border-radius: 12px 0 0 12px;
    font-size: 0.9rem;
    padding: 0.5rem 0.9rem;
    background-color: transparent;
}

.navbar .form-control:focus {
    box-shadow: 0 0 0 0.1rem rgba(61, 45, 95, 0.2);
    border-color: var(--purpura-principal);
}

.navbar .btn-outline-primary {
    border-radius: 0 12px 12px 0;
    padding: 0.5rem 0.9rem;
    border-width: 1px;
    border-left: none;
    background-color: var(--purpura-principal);
    color: var(--blanco);
}

.navbar .btn-outline-primary:hover {
    background-color: var(--purpura-oscuro);
    color: var(--blanco);
}

/* === BOTONES UNIFICADOS === */
.btn-brand,
.btn-violeta-glow,
.btn-agua-glow,
.btn-verde-agua,
.btn-purpura,
.btn-outline-tierra,
.btn-outline-primary,
.btn-outline-violeta,
.btn-service-info {
    font-family: var(--font-sans-serif);
    font-weight: 600;
    border-radius: 10px;
    padding: 0.75rem 1.6rem;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    text-transform: none;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(61, 45, 95, 0.12);
    border: 2px solid transparent;
}

.btn-brand:hover,
.btn-violeta-glow:hover,
.btn-agua-glow:hover,
.btn-verde-agua:hover,
.btn-purpura:hover,
.btn-outline-tierra:hover,
.btn-outline-primary:hover,
.btn-outline-violeta:hover,
.btn-service-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(61, 45, 95, 0.18);
}

.btn-brand-sm,
.btn-violeta-glow.btn-sm,
.btn-agua-glow.btn-sm,
.btn-verde-agua.btn-sm,
.btn-purpura.btn-sm,
.btn-outline-tierra.btn-sm,
.btn-outline-primary.btn-sm,
.btn-outline-violeta.btn-sm,
.btn-service-info.btn-sm {
    padding: 0.55rem 1.3rem;
    font-size: 0.9rem;
}

.btn-brand-lg,
.btn-violeta-glow.btn-lg,
.btn-agua-glow.btn-lg,
.btn-verde-agua.btn-lg,
.btn-purpura.btn-lg,
.btn-outline-tierra.btn-lg,
.btn-outline-primary.btn-lg,
.btn-outline-violeta.btn-lg,
.btn-service-info.btn-lg {
    padding: 0.95rem 2rem;
    font-size: 1rem;
}

.btn-brand-primary,
.btn-violeta-glow,
.btn-purpura,
.btn-verde-agua {
    background: var(--purpura-principal);
    color: var(--blanco);
    border-color: var(--purpura-principal);
    box-shadow: 0 8px 24px rgba(61, 45, 95, 0.22);
}

.btn-brand-primary:hover,
.btn-violeta-glow:hover,
.btn-purpura:hover,
.btn-verde-agua:hover {
    background: var(--purpura-oscuro);
    border-color: var(--purpura-oscuro);
    color: var(--blanco);
}

.btn-brand-secondary,
.btn-outline-tierra,
.btn-service-info {
    background: var(--tierra-arena);
    color: var(--tierra-marron);
    border-color: var(--tierra-arena);
    box-shadow: 0 6px 18px rgba(139, 115, 85, 0.18);
}

.btn-brand-secondary:hover,
.btn-outline-tierra:hover,
.btn-service-info:hover {
    background: var(--tierra-beige);
    border-color: var(--tierra-beige);
    color: var(--purpura-principal);
}

.btn-brand-ghost,
.btn-agua-glow,
.btn-outline-primary,
.btn-outline-violeta {
    background: rgba(61, 45, 95, 0.05);
    color: var(--purpura-principal);
    border-color: var(--purpura-principal);
    box-shadow: 0 4px 14px rgba(61, 45, 95, 0.12);
}

.btn-brand-ghost:hover,
.btn-agua-glow:hover,
.btn-outline-primary:hover,
.btn-outline-violeta:hover {
    background: var(--purpura-principal);
    color: var(--blanco);
    border-color: var(--purpura-principal);
}

.btn-primary {
    background-color: var(--purpura-principal);
    border-color: var(--purpura-principal);
}

.btn-primary:hover {
    background-color: var(--purpura-oscuro);
    border-color: var(--purpura-oscuro);
}

/* Hero dual-tone buttons (violeta + beige) */
.btn-hero-primary {
    background: rgba(61, 45, 95, 0.9);
    color: var(--tierra-arena);
    border-color: var(--tierra-arena);
    box-shadow: 0 6px 18px rgba(61, 45, 95, 0.22);
    border-width: 1px;
}

.btn-hero-primary:hover {
    background: rgba(42, 31, 61, 0.95);
    color: var(--tierra-arena);
    border-color: var(--tierra-arena);
}

.btn-hero-secondary {
    background: rgba(232, 220, 196, 0.9);
    color: var(--purpura-principal);
    border-color: var(--purpura-principal);
    box-shadow: 0 6px 18px rgba(139, 115, 85, 0.18);
    border-width: 1px;
}

.btn-hero-secondary:hover {
    background: rgba(212, 196, 176, 0.95);
    color: var(--purpura-principal);
    border-color: var(--purpura-principal);
}

/* === PARTÍCULAS FLOTANTES === */
.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: floatParticle 20s infinite ease-in-out;
}

/* Partículas individuales con diferentes tamaños, colores y tiempos */
.particle-1 {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(232, 180, 212, 0.4), transparent);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 18s;
    box-shadow: 0 0 40px rgba(232, 180, 212, 0.6);
}

.particle-2 {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(141, 203, 192, 0.3), transparent);
    top: 60%;
    left: 80%;
    animation-delay: 3s;
    animation-duration: 22s;
    box-shadow: 0 0 60px rgba(141, 203, 192, 0.5);
}

.particle-3 {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(147, 117, 212, 0.4), transparent);
    top: 30%;
    left: 70%;
    animation-delay: 6s;
    animation-duration: 16s;
    box-shadow: 0 0 30px rgba(147, 117, 212, 0.6);
}

.particle-4 {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(201, 169, 97, 0.3), transparent);
    top: 80%;
    left: 20%;
    animation-delay: 2s;
    animation-duration: 20s;
    box-shadow: 0 0 50px rgba(201, 169, 97, 0.5);
}

.particle-5 {
    width: 70px;
    height: 70px;
    background: radial-gradient(circle, rgba(168, 229, 216, 0.4), transparent);
    top: 20%;
    left: 40%;
    animation-delay: 8s;
    animation-duration: 19s;
    box-shadow: 0 0 35px rgba(168, 229, 216, 0.6);
}

.particle-6 {
    width: 90px;
    height: 90px;
    background: radial-gradient(circle, rgba(124, 92, 190, 0.35), transparent);
    top: 50%;
    left: 15%;
    animation-delay: 4s;
    animation-duration: 21s;
    box-shadow: 0 0 45px rgba(124, 92, 190, 0.5);
}

.particle-7 {
    width: 110px;
    height: 110px;
    background: radial-gradient(circle, rgba(232, 180, 212, 0.3), transparent);
    top: 70%;
    left: 60%;
    animation-delay: 7s;
    animation-duration: 17s;
    box-shadow: 0 0 55px rgba(232, 180, 212, 0.5);
}

.particle-8 {
    width: 85px;
    height: 85px;
    background: radial-gradient(circle, rgba(111, 180, 165, 0.4), transparent);
    top: 40%;
    left: 90%;
    animation-delay: 5s;
    animation-duration: 23s;
    box-shadow: 0 0 42px rgba(111, 180, 165, 0.6);
}

@keyframes floatParticle {
    0% {
        transform: translate(0, 0) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    50% {
        transform: translate(-30px, -80px) scale(1.1);
        opacity: 0.8;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translate(20px, -150px) scale(0.7);
        opacity: 0;
    }
}

/* === HERO SECTION === */
.hero-section {
    background-image: url('../img/hero-home.jpg');
    background-size: cover;
    background-position: center;
    width: 100%;
    padding: 2rem 0 0.5rem 0; /* Updated padding */
    min-height: 50vh; /* Updated min-height */
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(89, 67, 142, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 5;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 120%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(232, 180, 212, 0.06), transparent 70%);
    pointer-events: none;
    animation: float 20s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -10%;
    width: 100%;
    height: 200%;
    background: radial-gradient(ellipse at 70% 50%, rgba(141, 203, 192, 0.12), transparent 60%);
    pointer-events: none;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-15px) translateX(15px);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: var(--blanco);
    padding: 1.5rem;
}

.hero-section h1 {
    color: var(--blanco);
    font-family: var(--font-serif);
    font-size: 2.1rem;
    margin-bottom: 1.25rem;
    text-shadow: 1px 2px 12px rgba(0, 0, 0, 0.3);
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: 1.6;
}

.hero-section p {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    color: var(--blanco-roto);
    line-height: 1.8;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.2);
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-quick-links {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.75);
    color: var(--purpura-principal);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.hero-quick-links a {
    color: var(--purpura-principal);
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 0 0.35rem;
    font-weight: 600;
}

.hero-quick-links a:hover {
    color: var(--purpura-oscuro);
}

.hero-quick-links .separator {
    color: var(--purpura-claro);
    margin: 0 0.35rem;
}

.hero-cta-group {
    margin-top: 0.75rem;
}

/* Botones de hero más delicados y discretos */
.hero-section .btn-brand-lg {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    border-radius: 10px;
    border-width: 1px;
    letter-spacing: 0.2px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* === SECCIONES === */
.section-title {
    color: var(--purpura-principal);
    font-size: 1.85rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    font-weight: 600;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--purpura-principal), var(--verde-agua));
    border-radius: 2px;
}

.section-subtitle {
    color: var(--tierra-marron);
    font-size: 1rem;
    margin-bottom: 2.5rem;
    font-weight: 400;
    letter-spacing: 0.2px;
}

/* === TARJETAS === */
.card-bienestar {
    background-color: var(--blanco);
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card-bienestar:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(107, 81, 168, 0.15);
}

.card-bienestar .card-header {
    background: linear-gradient(135deg, var(--verde-agua-claro), var(--verde-agua));
    color: var(--blanco);
    padding: 1.25rem;
    border: none;
}

.card-bienestar .card-body {
    padding: 1.75rem;
}

.card-bienestar .card-title {
    color: var(--purpura-principal);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--verde-agua-claro), var(--verde-agua));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
    color: var(--blanco);
    box-shadow: 0 6px 20px rgba(95, 191, 174, 0.25);
    transition: all 0.3s ease;
}

.card-bienestar:hover .icon-circle {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(95, 191, 174, 0.35);
}

/* === FEATURES === */
.feature-box {
    text-align: center;
    padding: 2rem 1.5rem;
    background-color: var(--blanco);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid var(--gris-neutro);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.feature-box:hover {
    border-color: var(--verde-agua);
    box-shadow: 0 8px 25px rgba(95, 191, 174, 0.15);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--verde-agua);
    margin-bottom: 1rem;
}

.feature-box h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.feature-box p {
    font-size: 0.9rem;
    color: var(--tierra-marron);
    margin-bottom: 1rem;
}

/* === TESTIMONIOS === */
.testimonio-card {
    background-color: var(--blanco);
    border-left: 4px solid var(--verde-agua);
    padding: 1.75rem;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.testimonio-card:hover {
    box-shadow: 0 6px 25px rgba(89, 67, 142, 0.1);
    transform: translateX(4px);
}

.testimonio-card .quote {
    font-style: italic;
    color: var(--negro-suave);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.7;
    font-weight: 400;
}

.testimonio-card .author {
    color: var(--purpura-principal);
    font-weight: 600;
    font-size: 0.9rem;
    font-family: var(--font-serif);
}

/* === FOOTER === */
footer {
    background: linear-gradient(135deg, var(--purpura-principal), var(--purpura-oscuro));
    color: var(--blanco);
    padding: 3rem 0 1rem;
    margin-top: 0;
    width: 100%;
    clear: both;
}

footer a {
    color: var(--tierra-beige);
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--verde-agua-claro);
}

.footer-social-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    transition: all 0.3s ease;
}

.footer-social-link svg {
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

.footer-social-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.footer-social-link--disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* === UTILIDADES === */
.bg-tierra-beige {
    background-color: var(--tierra-beige);
}

.bg-tierra-arena {
    background-color: var(--tierra-arena);
}

.bg-verde-agua-light {
    background-color: rgba(111, 180, 165, 0.1);
}

.text-purpura {
    color: var(--purpura-principal);
}

.text-primary {
    color: var(--purpura-principal) !important;
}

.text-verde-agua {
    color: var(--verde-agua);
}

.border-bottom {
    border-bottom-color: var(--tierra-beige) !important;
}

.border-top {
    border-top-color: var(--tierra-beige) !important;
}

/* === CONTACTO === */
.mapa-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.mapa-container iframe {
    filter: saturate(0.8);
    transition: filter 0.3s ease;
}

.mapa-container:hover iframe {
    filter: saturate(1);
}

.info-contacto-item {
    transition: transform 0.2s ease;
}

.info-contacto-item:hover {
    transform: translateX(5px);
}

.icon-contacto {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

/* === TIENDA === */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--negro-suave);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    background-color: transparent;
}

.category-item:hover {
    background-color: var(--verde-agua-light);
    color: var(--verde-agua);
    transform: translateX(5px);
}

.category-item.active {
    background-color: var(--verde-agua);
    color: var(--blanco);
}

.category-item.active:hover {
    background-color: var(--verde-agua-oscuro);
    transform: translateX(5px);
}

.product-card {
    background-color: var(--blanco);
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-14px) scale(1.02);
    box-shadow:
        0 20px 60px rgba(107, 81, 168, 0.3),
        0 0 40px rgba(147, 117, 212, 0.15);
}

.product-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background-color: var(--blanco);
    position: relative;
    z-index: 1;
}

.product-body h5 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    line-height: 1.3;
    color: var(--purpura-principal);
    font-weight: 600;
}

.product-body p {
    flex-grow: 1;
    margin-bottom: 1rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--tierra-beige);
}

.product-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    height: 250px;
    flex-shrink: 0;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.category-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--purpura-principal), var(--purpura-oscuro));
    color: var(--blanco);
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 4px 16px rgba(89, 67, 142, 0.3);
}

/* === BADGES DE STOCK === */
.stock-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.out-of-stock-badge {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: var(--blanco);
}

.low-stock-badge {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #2D2D2D;
}

.product-card.out-of-stock {
    opacity: 0.75;
}

.product-card.out-of-stock .product-image {
    filter: grayscale(50%);
}

.subcategory-mosaic {
    background: var(--blanco);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
}

.price-tag {
    font-family: 'Roboto', sans-serif; /* Fuente estándar, alta y legible para números */
    font-size: 1.6rem;
    font-weight: 700; /* Bold, pero no extra bold para que no se empaste */
    color: #1a1a1a;
    letter-spacing: normal; /* Elimina el espaciado extra que la hacía ver ancha */
}

.price-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
    min-width: 90px;
}

.price-wrap small {
    color: #555 !important; /* Más oscuro y legible */
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* === ESPACIADO ZEN === */
section.container {
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
}

.bg-verde-agua-light,
.bg-tierra-arena {
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
}

/* Mejoras adicionales */
.lead {
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0.2px;
    font-size: 1.05rem;
    color: var(--negro-suave);
}

p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Animaciones suaves para todo */
* {
    scroll-behavior: smooth;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1050;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
    color: #fff;
}

.whatsapp-float svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

/* === DETALLE DE SERVICIO === */
.service-intercambio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--tierra-arena) 0%, var(--tierra-beige) 100%);
    border-radius: 10px;
    border-left: 4px solid var(--verde-agua);
}

.intercambio-label {
    color: var(--tierra-marron);
    font-size: 1rem;
    font-weight: 500;
}

.intercambio-valor {
    color: var(--purpura-principal);
    font-size: 1.35rem;
    font-weight: 700;
    font-family: var(--font-serif);
}

/* === RESPONSIVE === */

/* Pantallas grandes (desktop) */
@media (min-width: 1200px) {
    .hero-section {
        padding: 5.5rem 0 5rem;
        min-height: 72vh;
    }

    .hero-section h1 {
        font-size: 2rem;
        max-width: 850px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-content {
        max-width: 900px;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Tablets y pantallas medianas */
@media (max-width: 991px) {
    .hero-section {
        padding: 3.5rem 0;
        min-height: 60vh;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    section.container {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .bg-verde-agua-light,
    .bg-tierra-arena {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .feature-box {
        padding: 1.5rem 1.25rem;
    }

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

/* Móviles */
    @media (max-width: 768px) {
    .hero-section {
        padding: 0 0; /* Set padding-top to 0 on mobile */
        min-height: 55vh;
    }
    .hero-section h1 {
        font-size: 1.2rem;
        line-height: 1.5;
        margin-bottom: 1.25rem;
    }

    .hero-content {
        padding: 1rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .hero-quick-links {
        font-size: 0.85rem;
    }

    .btn-violeta-glow.btn-lg,
    .btn-agua-glow.btn-lg {
        padding: 0.7rem 1.5rem;
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .logo-container img {
        max-height: 54px;
    }

    .header-top .btn-outline-light {
        padding: 0.35rem 0.6rem;
        font-size: 0.85rem;
        border-width: 1px;
    }

    section.container {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .bg-verde-agua-light,
    .bg-tierra-arena {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .feature-box {
        padding: 1.25rem 1rem;
        margin-bottom: 1rem;
    }

    .feature-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .feature-box h3 {
        font-size: 1.05rem;
    }

    .testimonio-card {
        padding: 1.25rem;
    }

    .testimonio-card .quote {
        font-size: 0.9rem;
    }

    .card-bienestar .card-body {
        padding: 1.25rem;
    }

    .card-bienestar .card-title {
        font-size: 1.1rem;
    }

    .icon-circle {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .lead {
        font-size: 1rem;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
        font-size: 28px;
    }

    /* Servicios en móvil */
    .service-image-wrapper {
        height: 200px;
    }

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

    .btn-service-info {
        padding: 0.35rem 0.9rem;
        font-size: 0.7rem;
    }

    .service-content {
        padding: 1rem;
    }

    .service-description {
        font-size: 0.85rem;
    }

    /* --- Mobile Navbar Icon Color and Size Adjustments --- */
    .navbar {
        padding: 0.3rem 0 !important; /* Reduce vertical padding of the entire navbar */
    }
    /* 1. Hamburger Icon (rayitas) - Bigger and more prominent */
    .navbar-toggler {
        border-color: rgba(61, 45, 95, 0.5) !important;
        padding: 0.2rem 0.6rem; /* Adjust horizontal padding to make it rectangular */
        width: auto; /* Allow width to adjust based on content and padding */
        background-color: var(--tierra-beige); /* Add a subtle background */
        border-radius: 8px; /* Give it some rounded corners */
    }
    .navbar-toggler-icon {
        /* SVG with the purple color #3d2d5f (61, 45, 95) */
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(61, 45, 95, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
        width: 1.8em !important; /* Increase SVG width */
        height: 1.8em !important; /* Increase SVG height */
    }


    /* 2. Cart Icon - A little bigger than before, but smaller than menu */
    .navbar .btn-outline-primary {
        background-color: transparent !important;
        border-color: transparent !important;
        box-shadow: none !important;
        color: var(--tierra-marron) !important;
        font-size: 1.2em !important; /* Increase font size of the button itself */
        padding: 0.2rem 0.75rem !important; /* Reduce padding for cart button */
    }
    .navbar .btn-outline-primary svg {
        color: var(--tierra-marron) !important; /* Keep color */
        width: 1.25em !important; /* Adjust SVG width for cart */
        height: 1.25em !important; /* Adjust SVG height for cart */
    }
}

/* Móviles pequeños */
    @media (max-width: 480px) {
    .hero-section {
        padding: 0 0; /* Set padding-top to 0 on mobile */
        min-height: 50vh;
    }
    .hero-section h1 {
        font-size: 1.1rem;
    }

    .d-flex.gap-4 {
        gap: 0.75rem !important;
    }

    .btn-violeta-glow.btn-lg,
    .btn-agua-glow.btn-lg {
        padding: 0.6rem 1.25rem;
        font-size: 0.8rem;
        width: 100%;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .section-title::after {
        width: 50px;
        height: 2px;
    }

    /* Servicios en móviles pequeños */
    .service-image-wrapper {
        height: 180px;
    }

    .service-title {
        font-size: 1.25rem;
    }

    .service-overlay {
        padding: 1.25rem;
    }
}

/* === TARJETA UNIFICADA (Universal Card) === */
.unified-card {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    background-color: var(--blanco);
    border: 1px solid var(--tierra-beige);
    height: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.unified-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(89, 67, 142, 0.15);
}

.unified-card-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

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

.unified-card-body {
    padding: 1.25rem;
}

.unified-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--purpura-principal);
    margin-bottom: 0.5rem;
}

.unified-card-description {
    color: var(--negro-suave);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.unified-card-link {
    color: var(--tierra-marron);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.unified-card-link:hover {
    color: var(--purpura-principal);
}

/* === CAJA DE INSTRUCCIONES DE USO (PAGINA DE PRODUCTO) === */
.alert-usage-instructions {
    background-color: var(--tierra-arena);
    border-left: 4px solid var(--verde-agua);
    padding: 1rem 1.25rem;
    border-radius: 8px;
}
.alert-usage-instructions .alert-heading,
.alert-usage-instructions svg {
    color: var(--verde-agua);
}

/* === CONTENIDO DE PÁGINAS DINÁMICAS (.page-content) === */
.page-content {
    line-height: 1.8;
    font-size: 1.05rem;
}
.page-content h2 {
    color: var(--purpura-principal);
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.page-content h3 {
    color: var(--verde-agua);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
.page-content p {
    margin-bottom: 1rem;
}
.page-content ul, .page-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}
.page-content a {
    color: var(--purpura-principal);
    text-decoration: underline;
}
.page-content a:hover {
    color: var(--verde-agua);
}

/* Ajuste para el menú horizontal de Flask-Admin */
.navbar-inverse .navbar-nav > li > a {
    padding-left: 12px !important; /* Reduce el relleno horizontal */
    padding-right: 12px !important;
}

/* Ajuste final para menú de admin horizontal */
.navbar-right.navbar-nav > li > a {
    padding-left: 10px;
    padding-right: 10px;
}

/* === ESTILOS ESPECÍFICOS PARA TARJETAS DE PROMOCIÓN === */
.unified-card--promotion .unified-card-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
}

.unified-card--promotion .unified-card-description {
    font-size: 1rem;
    color: var(--tierra-marron);
}

/* === Ajuste de Cabecera para Móviles === */
@media (max-width: 768px) {
    .header-top .d-flex.justify-content-between {
        flex-direction: column; /* Apila el logo y los botones */
        gap: 0.5rem; /* Espacio entre el logo y los botones */
        align-items: center; /* Centra los elementos apilados */
    }
    .header-top .d-flex.gap-2 { /* Targets the buttons container */
        width: 100%; /* Make button container full width */
        justify-content: center; /* Center the buttons within their container */
    }
}

/* Estilo sutil para botones de cabecera en móvil */
@media (max-width: 768px) {
    .header-top .btn-outline-light {
        background-color: transparent !important;
        border-color: transparent !important;
        color: var(--tierra-beige) !important;
        padding: 0.5rem 0.25rem;
        box-shadow: none !important;
    }
    .header-top .btn-outline-light:hover {
        color: var(--blanco) !important;
        background-color: transparent !important;
    }
}
/* Custom adjustments for new homepage layout */

/* Adjust hero section height to be more like a "long card" */
.hero-section {
    min-height: 50vh; /* Adjust as needed, e.g., 60vh, 50vh */
    padding: 4rem 0; /* Adjust padding for better look */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Styling for the new unified cards on the homepage */
.unified-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.unified-card-image {
    position: relative; /* For potential future overlays */
    background-color: var(--gris-neutro); /* Placeholder background */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purpura-principal);
    font-size: 1.5rem;
    font-weight: 600;
    background-size: cover; /* Ensure background image covers the area */
    background-position: center; /* Center the background image */
    border-radius: 12px 12px 0 0; /* Match unified-card border radius */
}

/* Ensure card body takes available space and has good padding */
.unified-card-body {
    padding: 1rem 1.5rem; /* Reduced vertical padding */
}

/* Specific text styling for new cards */
.unified-card-title {
    margin-bottom: 0.5rem;
    font-size: 1.4rem; /* Slightly larger */
    font-weight: 700;
}

.unified-card-description {
    font-size: 1rem; /* Slightly larger */
    color: var(--negro-suave);
    line-height: 1.6;
    text-align: center;
}

/* Responsive adjustments for cards */
@media (max-width: 767.98px) {
    .unified-card-image {
        height: 180px; /* Smaller height on mobile */
    }
    .unified-card-title {
        font-size: 1.25rem;
    }
    .unified-card-description {
        font-size: 0.95rem;
    }
}


/* Custom CSS for hero-text-content */
.hero-text-content {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    color: var(--blanco);
    max-width: 90%; /* Original desktop max-width */
}

.hero-text-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--blanco);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-text-content .lead {
    font-size: 1.25rem;
    color: var(--blanco-roto);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    max-width: 700px; /* This was an existing specific max-width for lead */
    margin-left: auto;
    margin-right: auto;
}

/* Responsive adjustments for hero text */
@media (max-width: 991px) {
    .hero-text-content h1 {
        font-size: 2rem;
    }
    .hero-text-content .lead {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .hero-text-content {
        max-width: 95%;
        padding: 0.75rem;
    }
    .hero-text-content h1 {
        font-size: 1.5rem;
    }
    .hero-text-content .lead {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-text-content h1 {
        font-size: 1.25rem;
    }
    .hero-text-content .lead {
        font-size: 0.9rem;
    }
}