/* ===================================
   HOME PAGE STYLES
   =================================== */

/* Offset para compensar header sticky */
#manos,
#cuerpo,
#hogar,
#cabello {
    scroll-margin-top: 6.25rem;
}

/* Sections General */
section {
    padding: var(--space-xl) 0; /* Changed to 0 horizontal padding, handled by container */
   
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

section.hero {
    padding: 0;
    max-width: 100%;
    margin: 0;
}

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

.hero-image {
    width: 100%;
    max-width: 100%;
    object-fit: cover;
    display: block;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
}

.hero-title {
    font-family: 'Brush Script MT', 'Bradley Hand', cursive;
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
    text-shadow: 0.125rem 0.125rem 0.5rem rgba(0, 0, 0, 0.5);
    font-weight: var(--font-weight-normal);
}

.hero-subtitle {
    font-size: var(--font-sm);
    letter-spacing: 0.125rem;
    text-transform: uppercase;
    font-weight: var(--font-weight-semibold);
    text-shadow: 0.0625rem 0.0625rem 0.25rem rgba(0, 0, 0, 0.5);
}

.hero-text-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.45) 60%, rgba(0,0,0,0.2) 100%);
    padding: 0 var(--space-md);
}

.hero-kicker {
    font-size: var(--font-base);
    letter-spacing: 0.0625rem;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
}

.hero-text-overlay h1 {
    font-size: clamp(var(--font-xl), 5vw, var(--font-2xl));
    letter-spacing: 0.0625rem;
    margin-bottom: var(--space-sm);
}

.hero-sub {
    font-size: var(--font-base);
    max-width: 38.75rem;
}

.hero-text {
    position: absolute;
    font-family: 'Brush Script MT', cursive;
    font-size: 4rem;
    color: rgb(24, 24, 24);
    bottom: 0;
    text-shadow: 0.125rem 0.125rem 0.25rem rgba(0, 0, 0, 0.3);
    text-align: end;
    z-index: 10;
}

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

.hero-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    flex: 1;
}

.hero-carousel {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease-in-out;
}

.hero-image {
    width: 100%;
    min-width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Hero Carousel Buttons */
.hero-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
    color: #333;
}

.hero-carousel-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.hero-prev-btn {
    left: 1rem;
}

.hero-next-btn {
    right: 1rem;
}

/* Hero Carousel Indicators */
.hero-carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.indicator {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: background-color 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.indicator.active {
    background-color: rgba(255, 255, 255, 1);
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-carousel-btn {
        width: 2.5rem;
        height: 2.5rem;
    }

    .hero-prev-btn {
        left: 0.5rem;
    }

    .hero-next-btn {
        right: 0.5rem;
    }

    .hero-carousel-btn svg {
        width: 18px;
        height: 18px;
    }

    .hero-carousel-indicators {
        bottom: 0.75rem;
        gap: 0.5rem;
    }

    .indicator {
        width: 0.6rem;
        height: 0.6rem;
    }
}

@media (max-width: 480px) {
    .hero-carousel-btn {
        width: 2rem;
        height: 2rem;
    }

    .hero-prev-btn {
        left: 0.25rem;
    }

    .hero-next-btn {
        right: 0.25rem;
    }

    .hero-carousel-btn svg {
        width: 16px;
        height: 16px;
    }

    .indicator {
        width: 0.5rem;
        height: 0.5rem;
    }
}

/* Products Section */
.products-section {
    width: 100%;
    background-color: #ffffff;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.product-card {
    background: #ffffff;
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.3s;
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card:hover {
    transform: translateY(-0.3125rem);
}

.product-image {
    width: 100%;
    height: 20rem; /* var(--img-product) */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .4rem var(--space-md);
  
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-info {
    padding: 0 var(--space-sm);
    background: white;
}

.product-name {
    font-size: var(--font-sm);
    line-height: var(--line-height-normal);
    color: #333;
    font-weight: var(--font-weight-normal);
}

/* Refill Section */
.refill-section {
    width: 100%;
    background-color: #ffffff;
}

.refill-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.refill-card {
    border: 0.125rem solid #d0d0d0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: white;
    text-align: center;
    align-items: center;
    display: flex;
    width: 100%;
    flex-direction: column;
}

.refill-image {
    width: 100%;
   
    display: flex;
    align-items: center;
    justify-content: center;

}

.refill-image img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

.refill-info {
    padding: var(--space-md) 0;
    background: white;
}

.refill-name {
    font-size: 1.6rem;
    line-height: var(--line-height-normal);
    color: #333;
    font-weight: var(--font-weight-normal);
}

/* Refill 2L Section */
.refill-2l-section {
    width: 100%;
    background-color: #f5f5f5;
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.carousel-wrapper {
    overflow: hidden;
    flex: 1;
}

.refill-2l-grid {
    display: flex;
    width: 100%;
    transition: transform 0.3s ease;
}

.refill-2l-card {
    text-align: center;
    flex: 0 0 33.333%;
    max-width: 33.333%;
    padding: 0 var(--space-sm);
    box-sizing: border-box;
}

.refill-2l-circle {
    width: 12.5rem;
    height: 12.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    overflow: hidden;
}

.refill-2l-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.refill-2l-name {
    font-size: var(--font-sm);
    line-height: var(--line-height-normal);
    color: #333;
    font-weight: var(--font-weight-normal);
}

.carousel-btn {
    background: white;
    border: 0.125rem solid #333;
    border-radius: 50%;
    width: 3.125rem;
    height: 3.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: #333;
    color: white;
}

.carousel-btn:hover svg {
    stroke: white;
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-btn svg {
    stroke: #333;
    transition: stroke 0.3s;
}

/* Nuevos Productos Section */
.nuevos-productos-section {
    width: 100%;
    background-color: #ffffff;
    text-align: center;
}

.nuevos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.nuevo-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    text-align: center;
    padding: var(--space-lg) var(--space-md);
}

.nuevo-image {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.nuevo-image img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.nuevo-name {
    font-size: var(--font-base);
    line-height: var(--line-height-normal);
    color: #333;
    font-weight: var(--font-weight-normal);
}


/* Historia Section */
.historia-section {
    background: #e8e6e1;
    width: 100%;
}

.historia-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.historia-text {
    padding-right: var(--space-md);
}

.historia-title {
    font-size: 2.25rem;
    margin-bottom: var(--space-lg);
    font-weight: var(--font-weight-normal);
}

.mision,
.vision {
    margin-bottom: var(--space-lg);
}

.mision h3,
.vision h3 {
    font-size: var(--font-lg);
    margin-bottom: var(--space-sm);
    font-weight: var(--font-weight-semibold);
}

.mision p,
.vision p {
    font-size: var(--font-sm);
    line-height: var(--line-height-relaxed);
    color: #333;
    text-align: justify;
}

.historia-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.historia-image img {
    max-width: 100%;
    width: 60%;
    height: auto;
    object-fit: contain;
}

/* Compromiso Section */
.compromiso-section {
    position: relative;
    width: 100%;
    min-height: 31.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: var(--space-xl) 0;
}

.compromiso-bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;

}

.compromiso-content {
    position: relative;
    max-width: 50rem;
    padding: var(--space-lg) var(--space-xl);
    z-index: 1;
    text-align: center;
    margin: 0 auto;
}

.compromiso-content h2 {
    font-size: 2rem;
    margin-bottom: var(--space-md);
    font-weight: var(--font-weight-normal);
}

.compromiso-content p {
    font-size: var(--font-sm);
    line-height: var(--line-height-normal);
    color: #333;
    margin-bottom: var(--space-sm);
    text-align: justify;
}

/* CTA comprar */
.cta-comprar {
    background: #f5f1ed;
    margin: 0;
    width: 100%;
}

.cta-inner {
    max-width: 56.25rem;
    margin: 0 auto;
    text-align: center;
}

.cta-inner .section-title {
    text-align: center;
}

/* Formulario de Contacto */
.contacto-section {
    width: 100%;
    background-color: #ffffff;
}

.contacto-container {
    max-width: 50rem;
    margin: 0 auto;
}

.contacto-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.contacto-header .section-title {
    text-align: center;
    margin-bottom: var(--space-sm);
}

.contacto-description {
    font-size: var(--font-sm);
    line-height: var(--line-height-relaxed);
    color: #666;
    max-width: 43.75rem;
    margin: 0 auto;
}

.contacto-form {
    background: #f8f6f3;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: 0 0.625rem 1.875rem rgba(0,0,0,0.05);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-size: var(--font-sm);
    font-weight: var(--font-weight-semibold);
    color: #333;
    margin-bottom: var(--space-xs);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-sm);
    font-family: 'Georgia', serif;
    color: #333;
    background: white;
    border: 0.125rem solid #d0d0d0;
    border-radius: var(--radius-sm);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8b7355;
    box-shadow: 0 0 0 0.1875rem rgba(139, 115, 85, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group textarea {
    resize: vertical;
    min-height: 7.5rem;
}

.btn-enviar {
    display: inline-block;
    padding: 0.875rem 3rem;
    background: #333;
    color: white;
    font-size: var(--font-base);
    font-family: 'Georgia', serif;
    font-weight: var(--font-weight-semibold);
    border: 0.125rem solid #333;
    border-radius: var(--radius-sm);
    cursor: pointer;
    letter-spacing: 0.0625rem;
    transition: all 0.3s;
    width: 100%;
}

.btn-enviar:hover {
    background: #8b7355;
    border-color: #8b7355;
    transform: translateY(-0.125rem);
    box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.15);
}

.btn-enviar:active {
    transform: translateY(0);
}

/* Responsive Home */
@media (max-width: 768px) {
    .hero-text {
        font-size: 2.5rem;
        padding: var(--space-md);
        text-align: center;
        width: 100%;
        position: relative; /* Change from absolute to relative to avoid overlap if needed, or keep absolute but adjust */
        bottom: auto;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: var(--font-xl);
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    .hero-text-overlay {
        padding: var(--space-lg) var(--space-sm);
    }

    .contacto-form {
        padding: var(--space-md);
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .btn-enviar {
        padding: 0.875rem var(--space-md);
    }
    
    .historia-container {
        grid-template-columns: 1fr;
    }

    .historia-image img {
        width: 100%;
    }
    
    .nuevos-grid {
        grid-template-columns: 1fr;
    }
    
    .refill-grid {
        grid-template-columns: 1fr;
    }
    
    .refill-2l-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* Formula Section */
.formula-section {
    padding: var(--space-xxl) 0;
    width: 100%;
    min-height: 37.5rem;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.formula-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/doctor.jpg');
    background-size: cover;
    background-position: center right;
    transform: scaleX(-1);
    z-index: 0;
}

.formula-section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #FFFFFF 30%, rgba(255,255,255,0) 60%);
    z-index: 1;
}

.formula-container {
    width: 100%;
    position: relative;
    z-index: 2;
}

.formula-content {
    max-width: 37.5rem;
    padding-right: var(--space-lg);
}

.formula-subtitle {
    font-size: 1.5rem;
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-md);
    color: #000;
}

.formula-content p {
    margin-bottom: var(--space-md);
    line-height: var(--line-height-relaxed);
    color: #444;
}

@media (max-width: 768px) {
    .formula-section::before {
        background-position: center left;
    }

    .formula-section::after {
        background: linear-gradient(to bottom, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.7) 100%);
    }

    .formula-content {
        max-width: 100%;
        padding-right: 0;
        text-align: center;
    }

    .formula-content .section-title {
        text-align: center;
    }
}
