/* ==========================================================================
   LA ROCHE-POSAY & L'ORÉAL GROUPE - RICH ARTICLE DESIGN SYSTEM
   Colorimetry: Luxury Champagne / Warm Greige (#cdc4ba)
   ========================================================================== */

:root {
   --primary-purple: #6e6358;
   --primary-dark: #2b2622;
   --purple-gradient: linear-gradient(135deg, #2b2622 0%, #4a423a 50%, #70655b 100%);
   --purple-glow: rgba(205, 196, 186, 0.4);
   --accent-violet: #cdc4ba;
   --accent-lavender: #eee9e2;
   --accent-rose: #cdc4ba;
   --expansion-red: #ed1d24;
   --text-dark: #221e1b;
   --text-muted: #6e6862;
   --bg-light: #f8f6f3;
   --bg-card: #ffffff;
   --font-main: 'Montserrat', sans-serif;
   --font-heading: 'Outfit', sans-serif;
   --font-serif: 'Playfair Display', serif;
}

/* Reset & Global Base Settings */
html {
   scroll-behavior: smooth;
}

body {
   background-color: var(--bg-light);
   color: var(--text-dark);
   font-family: var(--font-main);
   font-size: 17px;
   line-height: 1.7;
   overflow-x: hidden;
   margin: 0;
   padding: 0;
}

/* Typography Helpers */
h1,
h2,
h3,
h4,
h5,
h6 {
   font-family: var(--font-heading);
   font-weight: 700;
   letter-spacing: -0.02em;
}

a {
   color: inherit;
   text-decoration: none;
   transition: all 0.3s ease;
}

/* Hyperlinks in body text inherit text color and are underlined */
p a,
.editorial-text a,
.abstract-text a,
.hero-badge a {
   color: inherit !important;
   text-decoration: underline !important;
   text-underline-offset: 3px;
   text-decoration-thickness: 1px;
}

p a:hover,
.editorial-text a:hover,
.abstract-text a:hover,
.hero-badge a:hover {
   color: inherit !important;
   opacity: 0.8;
   text-decoration: underline !important;
}

.bg-purple-light {
   background-color: var(--accent-lavender) !important;
}

.text-purple {
   color: var(--primary-purple) !important;
   font-weight: 700;
}

/* Custom Header Bar (Expansión Fixed Top) */
.head_exp {
   top: 0;
   left: 0;
   background-color: #ed1c24;
   padding: 0.4em;
   position: fixed;
   display: block;
   width: 100%;
   border-bottom-color: rgb(0, 0, 0);
   border-right-width: 2px;
   border-bottom-style: solid;
   z-index: 99;
   -webkit-transition: background-color 0.5s ease-out;
   -moz-transition: background-color 0.5s ease-out;
   -o-transition: background-color 0.5s ease-out;
   transition: background-color 0.5s ease-out;
}

.head_exp:hover {
   background-color: #000;
}

.menu-movil {
   display: none;
   flex-direction: column;
   justify-content: space-between;
   width: 26px;
   height: 19px;
   cursor: pointer;
   position: fixed;
   top: 14px;
   right: 20px;
   z-index: 2005;
   padding: 2px;
}

.menu-movil span {
   display: block;
   width: 100%;
   height: 2.5px;
   background-color: #ffffff;
   border-radius: 2px;
   transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
   transform-origin: center;
}

/* Responsive Hamburger Icon Animation to X */
.menu-movil.open span:nth-child(1) {
   transform: translateY(6px) rotate(45deg);
}

.menu-movil.open span:nth-child(2) {
   opacity: 0;
   transform: translateX(-8px);
}

.menu-movil.open span:nth-child(3) {
   transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile Menu Backdrop */
.menu-backdrop {
   position: fixed;
   top: 0;
   left: 0;
   width: 100vw;
   height: 100vh;
   background: rgba(0, 0, 0, 0.6);
   backdrop-filter: blur(4px);
   -webkit-backdrop-filter: blur(4px);
   z-index: 1999;
   opacity: 0;
   visibility: hidden;
   transition: all 0.4s ease;
}

.menu-backdrop.open {
   opacity: 1;
   visibility: visible;
}

/* Left Navigation Indicator (Dots) */
.navigation {
   position: fixed;
   left: 30px;
   top: 50%;
   transform: translateY(-50%);
   display: flex;
   flex-direction: column;
   gap: 20px;
   z-index: 999;
}

.movil-close {
   display: none;
}

.nav-option {
   position: relative;
   display: flex;
   align-items: center;
   width: 14px;
   height: 14px;
   border-radius: 50%;
   background-color: rgba(205, 196, 186, 0.4);
   border: 2px solid transparent;
   transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-option::after {
   content: '';
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%) scale(0);
   width: 6px;
   height: 6px;
   border-radius: 50%;
   background-color: #ffffff;
   transition: transform 0.3s ease;
}

.nav-option.active {
   background-color: var(--accent-violet);
   border-color: var(--primary-purple);
   transform: scale(1.3);
   box-shadow: 0 0 12px var(--purple-glow);
}

.nav-option.active::after {
   transform: translate(-50%, -50%) scale(1);
}

.option-nav {
   position: absolute;
   left: 28px;
   background-color: var(--primary-dark);
   color: #ffffff;
   padding: 4px 12px;
   border-radius: 20px;
   font-size: 12px;
   font-weight: 600;
   white-space: nowrap;
   opacity: 0;
   visibility: hidden;
   transform: translateX(-10px);
   transition: all 0.3s ease;
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-option:hover .option-nav,
.nav-option.active .option-nav {
   opacity: 1;
   visibility: visible;
   transform: translateX(0);
}

/* SECTION 0: HERO & PORTADA */
.intro {
   padding-top: 48px;
   margin-top: 0;
}

.hero-section {
   position: relative;
   min-height: 85vh;
   display: flex;
   align-items: center;
   justify-content: center;
   background-image: url('../img/LIFESTYLE_MELA_DD_2.jpg');
   background-size: cover;
   background-position: center;
   background-attachment: fixed;
   color: #ffffff;
   text-align: center;
   padding: 80px 20px;
}

.hero-overlay {
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background-color: rgba(0, 0, 0, 0.35);
   z-index: 1;
   pointer-events: none;
}

.hero-content {
   position: relative;
   z-index: 2;
   max-width: 950px;
}

.hero-badge {
   display: inline-block;
   background: rgba(28, 24, 21, 0.78);
   backdrop-filter: blur(12px);
   -webkit-backdrop-filter: blur(12px);
   border: 1px solid rgba(255, 255, 255, 0.4);
   color: #ffffff;
   font-size: 13px;
   font-weight: 700;
   letter-spacing: 2px;
   text-transform: uppercase;
   padding: 8px 24px;
   border-radius: 30px;
   margin-bottom: 24px;
   drop-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
   text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-badge strong {
   color: var(--accent-lavender);
}

.hero-title-main {
   font-size: 3.5rem;
   line-height: 1.15;
   font-weight: 800;
   margin-bottom: 20px;
   color: #ffffff;
   text-shadow: 0 4px 22px rgba(0, 0, 0, 0.95), 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 35px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
   font-size: 1.35rem;
   font-weight: 600;
   color: #ffffff;
   max-width: 750px;
   margin: 0 auto;
   line-height: 1.6;
   text-shadow: 0 3px 12px rgba(0, 0, 0, 0.95), 0 1px 4px rgba(0, 0, 0, 0.9);
}

.hero-scroll-indicator {
   position: absolute;
   bottom: 30px;
   left: 50%;
   transform: translateX(-50%);
   z-index: 2;
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 8px;
   color: #ffffff;
   font-size: 12px;
   font-weight: 600;
   letter-spacing: 1px;
   text-transform: uppercase;
   text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.scroll-arrow {
   width: 20px;
   height: 32px;
   border: 2px solid rgba(255, 255, 255, 0.5);
   border-radius: 15px;
   position: relative;
}

.scroll-arrow::before {
   content: '';
   position: absolute;
   top: 6px;
   left: 50%;
   transform: translateX(-50%);
   width: 4px;
   height: 6px;
   background: #ffffff;
   border-radius: 2px;
   animation: scrollPulse 1.8s infinite;
}

@keyframes scrollPulse {
   0% {
      transform: translate(-50%, 0);
      opacity: 1;
   }

   100% {
      transform: translate(-50%, 12px);
      opacity: 0;
   }
}

/* Abstract Container */
.abstract-section {
   padding: 70px 0;
   background-color: #ffffff;
}

.abstract-container {
   max-width: 820px;
   margin: 0 auto;
   background: var(--bg-light);
   border-radius: 24px;
   padding: 45px 50px;
   border: 1px solid rgba(205, 196, 186, 0.4);
   box-shadow: 0 10px 30px rgba(43, 38, 34, 0.04);
}

.abstract-text {
   font-size: 1.2rem;
   line-height: 1.85;
   color: var(--text-dark);
   margin: 0;
}

.presentado-por {
   display: flex;
   align-items: center;
   justify-content: flex-end;
   gap: 15px;
   margin-top: 35px;
   padding-top: 25px;
   border-top: 1px solid rgba(205, 196, 186, 0.35);
}

.presentado-por span {
   font-size: 13px;
   font-weight: 600;
   color: var(--text-muted);
   text-transform: uppercase;
   letter-spacing: 1px;
}

.loreal-logo-badge {
   background: var(--primary-dark);
   color: #ffffff;
   padding: 8px 18px;
   border-radius: 8px;
   display: flex;
   flex-direction: column;
   align-items: center;
   line-height: 1;
   transition: transform 0.3s ease;
}

.loreal-logo-badge:hover {
   transform: scale(1.05);
}

.loreal-brand-text {
   font-size: 15px;
   font-weight: 800;
   letter-spacing: 3px;
}

.loreal-sub-text {
   font-size: 8px;
   font-weight: 600;
   letter-spacing: 2px;
   opacity: 0.8;
   margin-top: 2px;
}

/* Section Header Block & Fixed Background Option (fondo-1.png) */
/* Section Header Block */
.section-header-block {
   position: relative;
   background: linear-gradient(135deg, #1c1815 0%, #362e28 50%, #25201c 100%);
   color: #ffffff;
   padding: 75px 20px;
   text-align: center;
   border-top: 1px solid rgba(205, 196, 186, 0.3);
   border-bottom: 1px solid rgba(205, 196, 186, 0.3);
   box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.5), 0 10px 30px rgba(0, 0, 0, 0.15);
}


.section-header-title {
   font-size: 3.1rem;
   font-family: var(--font-heading);
   font-weight: 800;
   margin: 0;
   color: #ffffff;
   letter-spacing: -0.02em;
   text-shadow: 0 4px 25px rgba(0, 0, 0, 0.5);
   position: relative;
   display: inline-block;
   text-transform: none;
}

.section-header-title::after {
   content: '';
   display: block;
   width: 85px;
   height: 4px;
   background: linear-gradient(90deg, #cdc4ba 0%, #ffffff 50%, #cdc4ba 100%);
   margin: 18px auto 0 auto;
   border-radius: 4px;
   box-shadow: 0 0 16px rgba(205, 196, 186, 0.8);
}

/* Editorial Storytelling Layout */
.content-section {
   padding: 80px 0;
}

.content-section.alt-bg {
   background-color: #ffffff;
}

.border-bottom-editorial {
   border-bottom: 1px solid rgba(205, 196, 186, 0.3);
}

.editorial-badge-pill {
   display: inline-block;
   background-color: var(--accent-lavender);
   color: var(--primary-purple);
   font-size: 12px;
   font-weight: 700;
   letter-spacing: 1.5px;
   text-transform: uppercase;
   padding: 4px 14px;
   border-radius: 20px;
   margin-bottom: 16px;
}

.editorial-headline {
   font-size: 2rem;
   color: var(--text-dark);
   line-height: 1.25;
}

.editorial-text {
   font-size: 1.15rem;
   color: var(--text-dark);
   line-height: 1.8;
}

.feature-image-card {
   background: #ffffff;
   border-radius: 20px;
   overflow: hidden;
   border: 1px solid rgba(205, 196, 186, 0.4);
   transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.feature-image-card:hover {
   transform: translateY(-6px);
   box-shadow: 0 20px 40px rgba(43, 38, 34, 0.12) !important;
}

.feature-img-wrapper {
   height: 280px;
   overflow: hidden;
}

.hero-card-img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   opacity: 0.85;
   filter: brightness(1.05) contrast(1.02);
   transition: transform 0.6s ease, opacity 0.4s ease, filter 0.4s ease;
}

.feature-image-card:hover .hero-card-img {
   transform: scale(1.06);
   opacity: 1;
   filter: brightness(1.08) contrast(1.04);
}

.feature-card-stats {
   padding: 20px;
   background: #ffffff;
   display: flex;
   flex-direction: column;
   gap: 14px;
   border-top: 1px solid rgba(205, 196, 186, 0.2);
}

.stat-box-item {
   background: var(--bg-light);
   border: 1px solid rgba(205, 196, 186, 0.4);
   border-radius: 16px;
   padding: 16px 20px;
   display: flex;
   align-items: center;
   gap: 16px;
   transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.stat-box-item:hover {
   transform: translateY(-3px);
   border-color: var(--primary-purple);
   box-shadow: 0 10px 25px rgba(205, 196, 186, 0.3);
}

.stat-box-number {
   font-family: var(--font-heading);
   font-size: 2.2rem;
   font-weight: 800;
   color: var(--primary-purple);
   line-height: 1;
   min-width: 75px;
   text-align: center;
   background: var(--accent-lavender);
   padding: 8px 12px;
   border-radius: 12px;
}

.stat-box-desc {
   font-size: 0.95rem;
   line-height: 1.5;
   color: var(--text-dark);
   margin: 0;
}

.stat-box-desc strong {
   color: var(--primary-dark);
}

.stat-box-desc sup {
   font-size: 0.75em;
   color: var(--primary-purple);
   font-weight: 700;
   margin-left: 2px;
}

.stat-box-item.highlight-box {
   background: var(--purple-gradient);
   border-color: transparent;
}

.stat-box-item.highlight-box .stat-box-number {
   background: rgba(255, 255, 255, 0.2);
   color: #ffffff;
}

.stat-box-item.highlight-box .stat-box-desc {
   color: rgba(255, 255, 255, 0.95);
}

.stat-box-item.highlight-box .stat-box-desc strong {
   color: #ffffff;
}

.stat-box-item.highlight-box .stat-box-desc sup {
   color: var(--accent-lavender);
}

/* SECTION 2: NUMERALIA & PREOCUPACIONES */
.section-main-title {
   font-size: 2.4rem;
   color: var(--primary-dark);
   font-weight: 800;
   margin-bottom: 12px;
}

.lead-text {
   font-size: 1.15rem;
   color: var(--text-muted);
   line-height: 1.7;
}

.max-w-700 {
   max-width: 700px;
}

/* Numeralia Cards */
.numeralia-card {
   background: var(--bg-light);
   border-radius: 24px;
   padding: 40px 32px;
   border: 1px solid rgba(205, 196, 186, 0.4);
   box-shadow: 0 10px 25px rgba(43, 38, 34, 0.03);
   display: flex;
   flex-direction: column;
   justify-content: center;
   transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.numeralia-card:hover {
   transform: translateY(-5px);
   box-shadow: 0 16px 35px rgba(43, 38, 34, 0.08);
}

.highlight-card {
   background: var(--purple-gradient);
   color: #ffffff;
   border: none;
}

.highlight-card .numeralia-badge {
   background: rgba(255, 255, 255, 0.2);
   color: #ffffff;
}

.highlight-card .numeralia-num {
   color: #ffffff;
}

.highlight-card .numeralia-desc {
   color: rgba(255, 255, 255, 0.95);
}

.numeralia-badge {
   display: inline-block;
   align-self: flex-start;
   background: var(--accent-lavender);
   color: var(--primary-purple);
   font-size: 12px;
   font-weight: 700;
   letter-spacing: 1px;
   text-transform: uppercase;
   padding: 4px 12px;
   border-radius: 15px;
   margin-bottom: 16px;
}

.numeralia-num {
   font-family: var(--font-heading);
   font-size: 4.5rem;
   font-weight: 800;
   color: var(--primary-purple);
   line-height: 1;
   margin-bottom: 16px;
}

.numeralia-desc {
   font-size: 1.05rem;
   line-height: 1.7;
   color: var(--text-dark);
   margin: 0;
}

/* Concern Progress Bars Box */
.concerns-container-box {
   background: #ffffff;
   border-radius: 28px;
   border: 1px solid rgba(205, 196, 186, 0.4);
   box-shadow: 0 15px 35px rgba(43, 38, 34, 0.06);
}

.concerns-title {
   font-size: 2rem;
   color: var(--primary-dark);
   font-weight: 800;
}

.concern-bar-wrapper {
   background: var(--bg-light);
   padding: 16px 20px;
   border-radius: 16px;
   border: 1px solid rgba(205, 196, 186, 0.25);
}

.concern-label {
   font-weight: 700;
   font-size: 1.05rem;
   color: var(--text-dark);
   display: flex;
   align-items: center;
   gap: 8px;
}

.concern-icon {
   font-style: normal;
}

.concern-percentage {
   font-family: var(--font-heading);
   font-weight: 800;
   font-size: 1.25rem;
   color: var(--primary-purple);
}

.progress-bar-bg {
   width: 100%;
   height: 12px;
   background: rgba(205, 196, 186, 0.3);
   border-radius: 10px;
   overflow: hidden;
}

.progress-bar-fill {
   height: 100%;
   border-radius: 10px;
   transition: width 1.5s cubic-bezier(0.1, 0.8, 0.2, 1);
}

.fill-arrugas {
   background: linear-gradient(90deg, #6e6358, #cdc4ba);
}

.fill-luminosidad {
   background: linear-gradient(90deg, #cdc4ba, #e5dfd8);
}

.fill-flacidez {
   background: linear-gradient(90deg, #4a423a, #998d80);
}

.fill-manchas {
   background: linear-gradient(90deg, #2b2622, #6e6358);
}

.rounded-16 {
   border-radius: 16px;
}

.stat-highlight-pill {
   position: absolute;
   bottom: -15px;
   left: 50%;
   transform: translateX(-50%);
   background: var(--primary-dark);
   color: #ffffff;
   padding: 8px 24px;
   border-radius: 30px;
   display: flex;
   align-items: center;
   gap: 10px;
   box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
   white-space: nowrap;
}

.pill-number {
   background: var(--accent-rose);
   color: var(--primary-dark);
   font-weight: 800;
   font-size: 13px;
   width: 24px;
   height: 24px;
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
}

.pill-text {
   font-size: 13px;
   font-weight: 600;
}

/* SECTION 3: PRODUCT SHOWCASE & CTA */
.product-showcase-card {
   background: var(--purple-gradient);
   border-radius: 32px;
   overflow: hidden;
   box-shadow: 0 20px 50px rgba(43, 38, 34, 0.25);
   position: relative;
}

.product-img-container {
   position: relative;
   display: inline-block;
}

.product-hero-img {
   border-radius: 20px;
   max-height: 380px;
   object-fit: cover;
   box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
   opacity: 0.85;
   transition: opacity 0.4s ease, transform 0.4s ease;
}

.product-showcase-card:hover .product-hero-img {
   opacity: 1;
}

.brand-tag {
   display: inline-block;
   background: rgba(255, 255, 255, 0.2);
   color: #ffffff;
   font-size: 12px;
   font-weight: 700;
   letter-spacing: 2px;
   text-transform: uppercase;
   padding: 4px 14px;
   border-radius: 20px;
   margin-bottom: 12px;
}

.product-title {
   font-size: 2.6rem;
   font-weight: 800;
   margin-bottom: 12px;
}

.product-subtitle {
   font-size: 1.15rem;
   color: rgba(255, 255, 255, 0.9);
}

.benefit-item {
   display: flex;
   align-items: flex-start;
   gap: 12px;
   background: rgba(255, 255, 255, 0.1);
   padding: 14px 18px;
   border-radius: 14px;
   backdrop-filter: blur(5px);
}

.benefit-check {
   background: var(--accent-rose);
   color: var(--primary-dark);
   font-weight: 900;
   width: 24px;
   height: 24px;
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   flex-shrink: 0;
   font-size: 12px;
}

.benefit-item strong {
   display: block;
   font-size: 15px;
   color: #ffffff;
}

.benefit-item p {
   margin: 0;
   font-size: 12px;
   color: rgba(255, 255, 255, 0.8);
   line-height: 1.4;
}

.conclusion-text {
   font-size: 1.25rem;
   line-height: 1.85;
   color: var(--text-dark);
   max-width: 800px;
   margin: 0 auto;
}

/* CTA Button Redesign */
.cta-container {
   margin-top: 30px;
}

.btn-editorial {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   background: linear-gradient(135deg, #ffffff 0%, #e6dfd5 50%, #cdc4ba 100%);
   color: #2b2622 !important;
   font-family: var(--font-heading);
   font-size: 15px;
   font-weight: 800;
   letter-spacing: 1.8px;
   padding: 18px 46px;
   border-radius: 50px;
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
   transition: all 0.35s ease;
   border: 1px solid rgba(255, 255, 255, 0.6);
   text-transform: uppercase;
}

.btn-editorial:hover {
   transform: translateY(-4px) scale(1.03);
   box-shadow: 0 15px 40px rgba(255, 255, 255, 0.4);
   background: #ffffff;
   color: #2b2622 !important;
   border-color: #ffffff;
}

.btn-editorial svg {
   transition: transform 0.3s ease;
   stroke: #2b2622;
}

.btn-editorial:hover svg {
   transform: translateX(6px);
   stroke: #2b2622;
}

/* ==========================================
   FLIP CARDS - ACTIVOS (MELASYL & PROXYLANE)
   ========================================== */
.flip-cards-container {
   margin-top: 30px;
   margin-bottom: 25px;
}

.flip-card {
   background-color: transparent;
   perspective: 1000px;
   height: 220px;
   cursor: pointer;
}

.flip-card-inner {
   position: relative;
   width: 100%;
   height: 100%;
   text-align: center;
   transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
   transform-style: preserve-3d;
   border-radius: 20px;
   box-shadow: 0 10px 30px rgba(43, 38, 34, 0.07);
}

.flip-card:hover .flip-card-inner,
.flip-card.flipped .flip-card-inner {
   transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
   position: absolute;
   width: 100%;
   height: 100%;
   -webkit-backface-visibility: hidden;
   backface-visibility: hidden;
   border-radius: 20px;
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   padding: 24px 28px;
   box-sizing: border-box;
}

/* Front Design */
.flip-card-front {
   background: var(--purple-gradient);
   color: #ffffff;
   border: 1px solid rgba(255, 255, 255, 0.2);
}

.flip-card-front.alt-front {
   background: linear-gradient(135deg, #2b2622 0%, #4a423a 50%, #70655b 100%);
}

.flip-badge {
   display: inline-block;
   background: rgba(255, 255, 255, 0.2);
   color: #ffffff;
   font-size: 11px;
   font-weight: 700;
   letter-spacing: 1.5px;
   text-transform: uppercase;
   padding: 5px 14px;
   border-radius: 12px;
   margin-bottom: 12px;
}

.flip-card-front h4 {
   font-family: var(--font-heading);
   font-size: 2rem;
   font-weight: 800;
   color: #ffffff;
   margin: 0;
   letter-spacing: -0.01em;
}

.flip-hint {
   font-size: 12px;
   color: rgba(255, 255, 255, 0.8);
   margin-top: 14px;
   display: flex;
   align-items: center;
   gap: 6px;
   font-weight: 500;
}

/* Back Design */
.flip-card-back {
   background: #ffffff;
   color: var(--text-dark);
   transform: rotateY(180deg);
   border: 2px solid var(--accent-violet);
   box-shadow: 0 15px 35px rgba(43, 38, 34, 0.1);
}

.flip-card-back .flip-back-title {
   font-family: var(--font-heading);
   font-size: 1.3rem;
   font-weight: 800;
   color: var(--primary-purple);
   margin-bottom: 10px;
}

.flip-card-back p {
   font-size: 0.95rem;
   line-height: 1.6;
   color: var(--text-dark);
   margin: 0;
}

/* Editorial Highlight Card with Image */
.editorial-highlight-card {
   background: linear-gradient(135deg, #f8f6f3 0%, #eee9e2 100%);
   border-left: 5px solid var(--accent-violet);
   border-radius: 20px;
   padding: 24px 28px;
   box-shadow: 0 10px 30px rgba(43, 38, 34, 0.05);
   margin-top: 24px;
   margin-bottom: 24px;
   transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.editorial-highlight-card:hover {
   transform: translateY(-3px);
   box-shadow: 0 16px 35px rgba(43, 38, 34, 0.08);
}

.editorial-highlight-card p {
   font-size: 1.02rem;
   line-height: 1.65;
   color: var(--primary-dark);
   font-weight: 500;
   margin: 0;
}

.editorial-highlight-card strong {
   color: var(--primary-purple);
   font-weight: 800;
}

.highlight-card-img-wrapper {
   border-radius: 16px;
   overflow: hidden;
   box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.highlight-card-img {
   width: 100%;
   height: 140px;
   object-fit: cover;
   transition: transform 0.5s ease;
}

.editorial-highlight-card:hover .highlight-card-img {
   transform: scale(1.05);
}

/* Custom Footer */
.custom-footer {
   background: var(--primary-dark);
   color: #ffffff;
   padding: 60px 0 40px;
   border-top: 1px solid rgba(255, 255, 255, 0.1);
   position: relative;
}

.custom-footer .conclusion-text {
   color: rgba(255, 255, 255, 0.88);
   font-size: 1.15rem;
   line-height: 1.8;
}

.custom-footer .conclusion-text strong {
   color: #ffffff;
}

.footer-bottom-copy {
   border-top-color: rgba(255, 255, 255, 0.1) !important;
}

.footer-bottom-copy p {
   color: rgba(255, 255, 255, 0.55) !important;
   font-size: 0.85rem;
}

/* Referencias Section */
.references-section-box {
   background: #ffffff;
   border-radius: 20px;
   border: 1px solid rgba(205, 196, 186, 0.4);
   box-shadow: 0 10px 30px rgba(43, 38, 34, 0.04);
}

.references-title {
   font-family: var(--font-heading);
   font-size: 1.1rem;
   font-weight: 800;
   font-style: italic;
   color: var(--primary-dark);
   letter-spacing: 1px;
   text-transform: uppercase;
}

.references-list {
   font-size: 0.88rem;
   line-height: 1.7;
   padding-left: 20px;
   margin: 0;
   color: var(--text-muted);
}

.references-list li {
   margin-bottom: 8px;
}

.references-list li:last-child {
   margin-bottom: 0;
}

/* Custom Image Carousel */
.custom-editorial-carousel {
   border-radius: 24px;
   overflow: hidden;
   border: 1px solid rgba(205, 196, 186, 0.4);
   position: relative;
}

.custom-editorial-carousel .carousel-img {
   height: 420px;
   object-fit: cover;
}

.custom-editorial-carousel .carousel-caption {
   background: linear-gradient(0deg, rgba(34, 30, 27, 0.92) 0%, rgba(34, 30, 27, 0.4) 70%, transparent 100%);
   left: 0;
   right: 0;
   bottom: 0;
   padding: 35px 40px 25px;
}

.custom-editorial-carousel .carousel-indicators [data-bs-target] {
   width: 10px;
   height: 10px;
   border-radius: 50%;
   background-color: #ffffff;
   opacity: 0.5;
   transition: all 0.3s ease;
   margin: 0 5px;
}

.custom-editorial-carousel .carousel-indicators .active {
   width: 28px;
   border-radius: 10px;
   background-color: var(--accent-rose);
   opacity: 1;
}

.custom-editorial-carousel .carousel-control-prev,
.custom-editorial-carousel .carousel-control-next {
   width: 50px;
   height: 50px;
   background: rgba(43, 38, 34, 0.7);
   backdrop-filter: blur(8px);
   border-radius: 50%;
   top: 50%;
   transform: translateY(-50%);
   margin: 0 20px;
   opacity: 0.85;
   transition: all 0.3s ease;
}

.custom-editorial-carousel .carousel-control-prev:hover,
.custom-editorial-carousel .carousel-control-next:hover {
   background: var(--primary-purple);
   opacity: 1;
   transform: translateY(-50%) scale(1.1);
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 991px) {
   .hero-title-main {
      font-size: 2.6rem;
   }

   .hero-subtitle {
      font-size: 1.15rem;
   }

   .abstract-container {
      padding: 30px 24px;
   }

   .navigation {
      position: fixed;
      left: 0;
      top: 0;
      bottom: 0;
      transform: translateX(-100%);
      width: 280px;
      height: 100vh;
      background: var(--primary-dark);
      border-right: 1px solid rgba(205, 196, 186, 0.3);
      padding: 85px 24px 40px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      z-index: 2000;
      opacity: 0;
      visibility: hidden;
      transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s ease, visibility 0.4s ease;
      box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
   }

   .navigation.open {
      opacity: 1;
      visibility: visible;
      transform: translateX(0);
   }

   .movil-close {
      display: flex;
      align-items: center;
      justify-content: center;
      position: absolute;
      top: 18px;
      right: 18px;
      cursor: pointer;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.1);
      transition: all 0.3s ease;
      z-index: 2001;
   }

   .movil-close:hover {
      background: rgba(255, 255, 255, 0.2);
      transform: rotate(90deg);
   }

   .movil-close svg {
      width: 20px;
      height: 20px;
      stroke: #ffffff;
   }

   .nav-option {
      width: 100%;
      height: auto;
      background: transparent;
      border-radius: 12px;
      padding: 12px 16px;
      display: flex;
      align-items: center;
      transition: all 0.3s ease;
   }

   .nav-option:hover,
   .nav-option.active {
      background: rgba(205, 196, 186, 0.15);
      transform: translateX(4px);
   }

   .nav-option::after {
      display: none;
   }

   .option-nav {
      position: static;
      opacity: 1;
      visibility: visible;
      transform: none;
      background: transparent;
      font-size: 15px;
      font-weight: 600;
      color: #ffffff;
      padding: 0;
      box-shadow: none;
      white-space: normal;
   }

   .nav-option.active .option-nav {
      color: var(--accent-violet);
   }

   .menu-movil {
      display: flex;
   }

   .image-wrapper-mask,
   .mask-container {
      height: auto;
   }

   .editorial-img-masked {
      height: 800px;
      min-height: auto;
   }
}

@media (max-width: 768px) {
   .section-header-title {
      font-size: 2rem !important;
   }

   .section-header-block {
      padding: 45px 15px !important;
   }

   .editorial-img-masked {
      height: 260px;
   }

   .gold-offset,
   .sand-offset-left {
      display: none !important;
   }

   .phone-wrapper {
      width: 230px;
      height: 410px;
   }
}

@media (max-width: 576px) {
   .hero-title-main {
      font-size: 2rem;
   }

   .numeralia-num {
      font-size: 3.5rem;
   }

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

   .editorial-img-masked {
      height: 340px;
   }
}

/* ==========================================
   PRO IMAGE DESIGN SYSTEM & CUSTOM MASKS
   (Matching Reference Design System)
   ========================================== */

.image-wrapper-mask {
   position: relative;
   width: 100%;
   height: 100%;
   display: flex;
   flex-direction: column;
}

.decorative-box,
.gold-offset,
.sand-offset-left {
   display: none !important;
}

/* Masking Shapes */
.mask-container {
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
   height: 100%;
   width: 100%;
   display: flex;
   flex-direction: column;
}

.mask-container.horizontal-mask {
   aspect-ratio: 16 / 9;
   height: 300px !important;
   max-height: 340px;
   min-height: unset;
}

.rounded-blob {
   border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
   background-color: var(--accent-lavender);
   transition: border-radius 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.image-wrapper-mask:hover .rounded-blob {
   border-radius: 40% 60% 70% 30% / 50% 60% 40% 50%;
}

.editorial-img-masked {
   width: 100%;
   height: 100%;
   min-height: 100%;
   object-fit: cover;
   display: block;
   flex-grow: 1;
   transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.image-wrapper-mask:hover .editorial-img-masked {
   transform: scale(1.05);
}



/* Pro Image Cards & Floating Badges */
.pro-img-card {
   position: relative;
   border-radius: 24px;
   overflow: hidden;
   border: 1px solid rgba(205, 196, 186, 0.45);
   box-shadow: 0 15px 35px rgba(43, 38, 34, 0.08);
   transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pro-img-card:hover {
   transform: translateY(-6px);
   box-shadow: 0 25px 50px rgba(43, 38, 34, 0.16);
   border-color: var(--primary-purple);
}

.pro-section-img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   opacity: 0.85;
   transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.pro-img-card:hover .pro-section-img {
   transform: scale(1.05);
   opacity: 0;
}

.pro-img-badge {
   position: absolute;
   top: 16px;
   left: 16px;
   background: rgba(43, 38, 34, 0.85);
   backdrop-filter: blur(12px);
   -webkit-backdrop-filter: blur(12px);
   color: #ffffff;
   font-family: var(--font-heading);
   font-size: 11px;
   font-weight: 700;
   letter-spacing: 1.5px;
   text-transform: uppercase;
   padding: 6px 14px;
   border-radius: 30px;
   border: 1px solid rgba(255, 255, 255, 0.25);
   box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
   z-index: 2;
}

.pro-img-overlay {
   display: none;
}

.feature-img-wrapper {
   position: relative;
   height: 320px;
   overflow: hidden;
   border-radius: 24px 24px 0 0;
}

.feature-image-card {
   background: #ffffff;
   border-radius: 24px;
   overflow: hidden;
   border: 1px solid rgba(205, 196, 186, 0.45);
   box-shadow: 0 12px 30px rgba(43, 38, 34, 0.06);
   transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.feature-image-card:hover {
   transform: translateY(-8px);
   box-shadow: 0 24px 50px rgba(43, 38, 34, 0.14) !important;
   border-color: var(--primary-purple);
}

.routine-image-box img {
   border-radius: 24px;
   opacity: 0.85;
   transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, box-shadow 0.6s ease;
}

.routine-image-box:hover img {
   transform: scale(1.04);
   opacity: 1;
   box-shadow: 0 20px 40px rgba(43, 38, 34, 0.18) !important;
}

/* Phone Mockup Frame for Vertical Images */
.phone-mockup-section {
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   padding: 10px 0;
}

.phone-wrapper {
   width: 270px;
   height: 480px;
   border: 10px solid #2b2622;
   border-radius: 36px;
   background: #2b2622;
   box-shadow: 0 20px 45px rgba(43, 38, 34, 0.18);
   overflow: hidden;
   position: relative;
   margin: 0 auto;
   transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.phone-wrapper::before {
   content: '';
   position: absolute;
   top: 10px;
   left: 50%;
   transform: translateX(-50%);
   width: 60px;
   height: 6px;
   background-color: #4a423a;
   border-radius: 10px;
   z-index: 10;
}

.phone-wrapper:hover {
   transform: translateY(-8px);
   box-shadow: 0 30px 60px rgba(43, 38, 34, 0.28);
}

.phone-screen {
   width: 100%;
   height: 100%;
   border-radius: 26px;
   overflow: hidden;
   position: relative;
}

.phone-screen img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   display: block;
   transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.phone-wrapper:hover .phone-screen img {
   transform: scale(1.05);
}

.custom-editorial-carousel {
   border-radius: 28px;
   overflow: hidden;
   border: 1px solid rgba(205, 196, 186, 0.45);
}

.custom-editorial-carousel .carousel-img {
   height: 480px;
   object-fit: cover;
   opacity: 0.85;
   filter: brightness(1.04) contrast(1.02);
   transition: filter 0.4s ease, opacity 0.4s ease, transform 0.6s ease;
}

.custom-editorial-carousel:hover .carousel-img {
   opacity: 1;
   filter: brightness(1.08) contrast(1.04);
   transform: scale(1.02);
}

/* Maintain 100% original image colors for LIFESTYLE_MELA_DD_3.jpg without blur, filters, or opacity fading on hover */
img[src*="LIFESTYLE_MELA_DD_3.jpg"] {
   opacity: 1 !important;
   filter: none !important;
}

.routine-image-box:hover img[src*="LIFESTYLE_MELA_DD_3.jpg"],
.custom-editorial-carousel:hover img[src*="LIFESTYLE_MELA_DD_3.jpg"],
.image-wrapper-mask:hover img[src*="LIFESTYLE_MELA_DD_3.jpg"],
img[src*="LIFESTYLE_MELA_DD_3.jpg"]:hover {
   opacity: 1 !important;
   filter: none !important;
}

/* Wide Landscape Showcase Box for Full Horizontal Images */
.horizontal-showcase-box {
   position: relative;
   border-radius: 28px;
   overflow: hidden;
   border: 1px solid rgba(205, 196, 186, 0.45);
   box-shadow: 0 15px 40px rgba(43, 38, 34, 0.08);
   background: #ffffff;
   transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.horizontal-showcase-box:hover {
   transform: translateY(-6px);
   box-shadow: 0 25px 55px rgba(43, 38, 34, 0.16);
   border-color: var(--primary-purple);
}

.horizontal-img-full {
   width: 100%;
   height: auto;
   display: block;
   border-radius: 28px;
   transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.horizontal-showcase-box:hover .horizontal-img-full {
   transform: scale(1.02);
}

.horizontal-img-badge {
   position: absolute;
   top: 20px;
   left: 20px;
   background: rgba(43, 38, 34, 0.82);
   backdrop-filter: blur(10px);
   -webkit-backdrop-filter: blur(10px);
   color: #ffffff;
   font-family: var(--font-heading);
   font-size: 12px;
   font-weight: 700;
   letter-spacing: 1.5px;
   text-transform: uppercase;
   padding: 8px 18px;
   border-radius: 30px;
   border: 1px solid rgba(255, 255, 255, 0.3);
   box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
   z-index: 2;
}

/* Option 2: Side-by-Side Full Landscape Image Frame & Formula Badges */
.landscape-card-frame {
   border-radius: 24px;
   overflow: hidden;
   border: 1px solid rgba(205, 196, 186, 0.45);
   box-shadow: 0 15px 35px rgba(43, 38, 34, 0.08);
   background: #ffffff;
   transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.landscape-card-frame:hover {
   transform: translateY(-6px);
   box-shadow: 0 22px 48px rgba(43, 38, 34, 0.15);
   border-color: var(--primary-purple);
}

.landscape-card-frame img {
   width: 100%;
   height: auto;
   display: block;
   border-radius: 24px;
   transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.landscape-card-frame:hover img {
   transform: scale(1.03);
}

.formula-pill-box {
   background: var(--bg-light);
   border: 1px solid rgba(205, 196, 186, 0.4);
   border-radius: 16px;
   padding: 12px 18px;
   display: flex;
   align-items: center;
   gap: 12px;
   transition: all 0.3s ease;
}

.formula-pill-box:hover {
   background: #ffffff;
   border-color: var(--primary-purple);
   transform: translateX(4px);
}

.formula-pill-icon {
   width: 34px;
   height: 34px;
   border-radius: 50%;
   background: var(--accent-lavender);
   color: var(--primary-purple);
   display: flex;
   align-items: center;
   justify-content: center;
   font-weight: 800;
   font-size: 14px;
   flex-shrink: 0;
}

/* Option B: Horizontal Landscape Hero Card with Glass Bar */
.horizontal-hero-card {
   position: relative;
   border-radius: 28px;
   overflow: hidden;
   border: 1px solid rgba(205, 196, 186, 0.45);
   box-shadow: 0 16px 45px rgba(43, 38, 34, 0.1);
   background: var(--bg-card);
   transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.4s ease;
}

.horizontal-hero-card:hover {
   transform: translateY(-6px);
   box-shadow: 0 25px 55px rgba(43, 38, 34, 0.18);
   border-color: var(--primary-purple);
}

.horizontal-hero-img-full {
   width: 100%;
   height: 380px;
   object-fit: cover;
   display: block;
   transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.horizontal-hero-card:hover .horizontal-hero-img-full {
   transform: scale(1.03);
}

.horizontal-hero-footer {
   position: absolute;
   bottom: 0;
   left: 0;
   right: 0;
   background: rgba(34, 30, 27, 0.85);
   backdrop-filter: blur(12px);
   -webkit-backdrop-filter: blur(12px);
   padding: 18px 28px;
   color: #ffffff;
   display: flex;
   align-items: center;
   justify-content: space-between;
   border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.horizontal-hero-footer-text {
   font-family: var(--font-heading);
   font-size: 0.95rem;
   font-weight: 700;
   color: var(--accent-lavender);
   letter-spacing: 0.5px;
}

.horizontal-hero-tags {
   display: flex;
   gap: 12px;
}

.horizontal-tag {
   background: rgba(255, 255, 255, 0.15);
   padding: 4px 14px;
   border-radius: 20px;
   font-size: 12px;
   font-weight: 600;
   color: #ffffff;
   border: 1px solid rgba(255, 255, 255, 0.25);
}