/* ============================================
   TRATAMIENTOS CAPILARES - SPECIFIC STYLES
   ============================================ */

/* Page Hero Section */
.page-hero {
    position: relative;
    padding: 140px 0 80px;
    background: var(--bg-white);
    overflow: hidden;
}

.hero-background-subtle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(97, 199, 202, 0.08) 0%, rgba(232, 247, 248, 0.4) 50%, #FFFFFF 100%);
    z-index: -1;
}

.hero-background-subtle::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(97, 199, 202, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.page-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-size: clamp(38px, 5vw, 56px);
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.page-subtitle {
    font-size: clamp(17px, 2vw, 20px);
    color: var(--text-gray);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
}

/* Introduction Section */
.intro-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.intro-text {
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-gray);
    margin: 0;
}

.intro-text strong {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Hair Treatments Section */
.hair-treatments-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.treatments-grid-detailed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 50px;
}

.treatment-item {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.treatment-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.treatment-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.treatment-item:hover::before {
    transform: scaleX(1);
}

.treatment-icon {
    width: 80px;
    height: 80px;
    background: rgba(97, 199, 202, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition);
}

.treatment-item:hover .treatment-icon {
    background: rgba(97, 199, 202, 0.2);
    transform: scale(1.1);
}

.treatment-name {
    font-size: 21px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 16px;
    line-height: 1.3;
}

.treatment-brief {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 24px;
    flex: 1;
    min-height: 68px;
}

.btn-treatment {
    background: transparent;
    color: var(--secondary-color);
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border: 2px solid var(--secondary-color);
    transition: var(--transition);
    display: inline-block;
}

.btn-treatment:hover {
    background: var(--secondary-color);
    color: var(--bg-white);
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(2, 104, 153, 0.3);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(97, 199, 202, 0.1) 0%, rgba(232, 247, 248, 0.5) 100%);
    position: relative;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(28px, 4vw, 38px);
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.cta-text {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 32px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta-primary {
    background: var(--secondary-color);
    color: var(--bg-white);
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 17px;
    transition: var(--transition);
    display: inline-block;
    box-shadow: 0 8px 24px rgba(2, 104, 153, 0.25);
}

.btn-cta-primary:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(97, 199, 202, 0.35);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablets */
@media (max-width: 1024px) {
    .treatments-grid-detailed {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 28px;
    }

    .treatment-item {
        padding: 32px 24px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .page-hero {
        padding: 120px 0 60px;
    }

    .intro-section {
        padding: 50px 0;
    }

    .hair-treatments-section {
        padding: 70px 0;
    }

    .treatments-grid-detailed {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .treatment-brief {
        min-height: auto;
    }

    .cta-section {
        padding: 60px 0;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .page-title {
        font-size: 32px;
    }

    .page-subtitle {
        font-size: 16px;
    }

    .intro-text {
        font-size: 15px;
    }

    .treatment-item {
        padding: 28px 20px;
    }

    .treatment-icon {
        width: 70px;
        height: 70px;
    }

    .treatment-icon svg {
        width: 42px;
        height: 42px;
    }

    .treatment-name {
        font-size: 19px;
    }

    .treatment-brief {
        font-size: 14px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.treatment-item {
    animation: fadeInUp 0.6s ease-out forwards;
}

.treatment-item:nth-child(1) { animation-delay: 0.05s; }
.treatment-item:nth-child(2) { animation-delay: 0.1s; }
.treatment-item:nth-child(3) { animation-delay: 0.15s; }
.treatment-item:nth-child(4) { animation-delay: 0.2s; }
.treatment-item:nth-child(5) { animation-delay: 0.25s; }
.treatment-item:nth-child(6) { animation-delay: 0.3s; }
.treatment-item:nth-child(7) { animation-delay: 0.35s; }
.treatment-item:nth-child(8) { animation-delay: 0.4s; }
.treatment-item:nth-child(9) { animation-delay: 0.45s; }

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .treatment-item {
        animation: none;
    }
}

/* ============================================
   HAIR GALLERY SECTION
   ============================================ */
.hair-gallery-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.hair-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.hair-gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hair-gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(97, 199, 202, 0.25);
}

.hair-gallery-image {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
}

.hair-gallery-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hair-gallery-item:hover .hair-gallery-image img {
    transform: scale(1.1);
}

.hair-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(2, 104, 153, 0.85) 0%,
        rgba(97, 199, 202, 0.75) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hair-gallery-item:hover .hair-gallery-overlay {
    opacity: 1;
}

.gallery-zoom-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transform: scale(0.8);
    transition: transform 0.4s ease;
    backdrop-filter: blur(4px);
}

.hair-gallery-item:hover .gallery-zoom-icon {
    transform: scale(1);
}

/* Gallery Responsive */
@media (max-width: 1024px) {
    .hair-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .hair-gallery-section {
        padding: 60px 0;
    }
    
    .hair-gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 40px;
    }
    
    .hair-gallery-item {
        border-radius: 12px;
    }
    
    .gallery-zoom-icon {
        width: 50px;
        height: 50px;
    }
    
    .gallery-zoom-icon svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .hair-gallery-grid {
        gap: 12px;
    }
    
    .hair-gallery-item {
        border-radius: 10px;
    }
    
    .gallery-zoom-icon {
        width: 44px;
        height: 44px;
    }
}

