@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&display=swap');

:root {
  --bg-white: #ffffff;
  --bg-sand: #cdc4ba;
  --text-dark: #3d3d3d;
  --gold: #c5a059;
  --black: #000000;
  --white: #ffffff;
  --font-title: 'Playfair Display', serif;
  --font-body: 'Montserrat', sans-serif;
}

/* Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.7;
  overflow-x: hidden;
}

section {
  overflow: hidden;
  position: relative;
}

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

a:hover {
  text-decoration: none;
  color: var(--gold);
}

img {
  max-width: 100%;
  height: auto;
}

/* Custom Navigation Header */
.custom-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background-color: #ED1D24;
  border-bottom: 3px solid #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
  z-index: 1000;
}

.logo-nav {
  display: block;
  height: 100%;
  margin: 0 auto;
  max-width: 500px;
}

.logo-nav img {
  height: 100%;
  width: auto;
  display: block;
  margin: 0 auto;
}

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

.nav-option {
  position: relative;
  display: flex;
  align-items: center;
  text-decoration: none !important;
  cursor: pointer;
}

.nav-option::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #9A9A9A;
  transition: all 0.3s ease;
}

.nav-option::after {
  content: '';
  position: absolute;
  left: -5px;
  top: -5px;
  width: 20px;
  height: 20px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s ease;
}

.nav-option.active::before {
  background-color: var(--gold);
  transform: scale(1.3);
}

.nav-option.active::after {
  opacity: 1;
  transform: scale(1);
}

.option-nav {
  position: absolute;
  left: 20px;
  background-color: rgba(255, 255, 255, 0.9);
  color: rgba(61, 61, 61, 0.8);
  padding: 2px 7px;
  font-size: 8px;
  font-weight: 400;
  border-radius: 20px;
  border: 1px solid rgba(197, 160, 89, 0.25);
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  opacity: 1;
  pointer-events: auto;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.nav-option.active .option-nav,
.nav-option:hover .option-nav {
  background-color: var(--gold);
  color: #fff;
  border-color: var(--gold);
  box-shadow: 0 2px 8px rgba(197, 160, 89, 0.3);
}

/* Mobile Menu Trigger & Slider */
.menu-movil {
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  z-index: 1001;
}

.menu-movil span {
  background-color: var(--white);
  height: 2px;
  width: 100%;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.77, 0.2, 0.05, 1.0);
}

.movil-close {
  display: none;
}

/* Hero cover section */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../img/assets1.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px 0 20px;
}

.hero-content {
  max-width: 950px;
  color: var(--white);
  z-index: 2;
}

.hero-title-main {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 5rem;
  margin-bottom: 15px;
  letter-spacing: -1px;
  line-height: 1.1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 7px;
  text-transform: uppercase;
  margin-bottom: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

/* Editorial Abstract section */
.abstract-section {
  padding: 120px 20px;
  background-color: var(--bg-sand);
  display: flex;
  justify-content: center;
  text-align: center;
}

.abstract-container {
  max-width: 850px;
}

.abstract-text {
  font-family: var(--font-title);
  font-size: 2rem;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.7;
  font-weight: 400;
}

.presentado-por {
  margin-top: 50px;
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-dark);
}

.presentado-por img {
  max-height: 38px;
  margin-top: 18px;
  filter: brightness(0) saturate(100%) invert(20%) sepia(0%) saturate(13%) hue-rotate(188deg) brightness(95%) contrast(85%);
  width: auto;
}

/* Numeralia Card Grid */
.numeralia-section {
  padding: 120px 20px;
  background-color: var(--bg-white);
}

.numeralia-title {
  text-align: center;
  font-family: var(--font-title);
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 70px;
  color: var(--text-dark);
}

.numeralia-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
  max-width: 1140px;
  margin: 0 auto;
}

.numeralia-card {
  background-color: var(--bg-sand);
  padding: 55px 35px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  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;
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.numeralia-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  border-color: var(--gold);
}

.numeralia-num {
  font-family: var(--font-title);
  font-size: 4.2rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1;
  margin-bottom: 22px;
}

.numeralia-card:hover .numeralia-num {
  color: #ffffff;
  transition: color 0.3s ease;
}

.numeralia-desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.6;
}

/* Sections Header Blocks */
.section-header-block {
  position: relative;
  width: 100%;
  height: 48vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.section-header-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
}

.section-header-title {
  font-family: var(--font-title);
  font-size: 3.8rem;
  font-weight: 700;
  color: var(--white);
  position: relative;
  z-index: 2;
  letter-spacing: -0.5px;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}

/* Editorial Body Sections */
.content-section {
  padding: 120px 20px;
  background-color: var(--bg-white);
}

.content-section.alt-bg {
  background-color: var(--bg-sand);
}

.editorial-layout {
  max-width: 1000px;
  margin: 0 auto;
}

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

.editorial-intro p {
  margin-bottom: 24px;
}

.editorial-intro p:last-child {
  margin-bottom: 0;
}

.editorial-highlight {
  border-left: 4px solid var(--gold);
  padding-left: 25px;
  font-style: italic;
  font-size: 1.25rem;
  font-family: var(--font-title);
  margin: 35px 0;
  line-height: 1.6;
}

/* Accordion Custom Styles */
.accordion-custom {
  max-width: 1000px;
  margin: 0 auto;
}

.accordion-custom .accordion-item {
  border: none;
  background-color: var(--bg-white);
  margin-bottom: 18px;
  border-radius: 8px !important;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.accordion-custom .accordion-header {
  border: none;
}

.accordion-custom .accordion-button {
  background-color: var(--bg-sand) !important;
  color: var(--text-dark) !important;
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
  padding: 25px 30px;
  border: none;
  box-shadow: none !important;
  transition: all 0.3s ease;
}

.accordion-custom .accordion-button:hover {
  color: #ffffff !important;
  background-color: rgba(205, 196, 186, 0.85) !important;
}

.accordion-custom .accordion-button:not(.collapsed) {
  background-color: var(--bg-sand) !important;
  color: #ffffff !important;
}

.accordion-custom .accordion-button::after {
  filter: brightness(0) saturate(100%) invert(20%) sepia(0%) saturate(13%) hue-rotate(188deg) brightness(95%) contrast(85%);
}

.accordion-custom .accordion-button:not(.collapsed)::after {
  filter: brightness(0) saturate(100%) invert(69%) sepia(21%) saturate(967%) hue-rotate(5deg) brightness(91%) contrast(89%);
  /* Matches gold */
}

.accordion-custom .accordion-body {
  background-color: var(--bg-white);
  color: var(--text-dark);
  font-size: 1.05rem;
  line-height: 1.8;
  padding: 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  margin-top: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Banner Separators */
.banner-image-block {
  width: 100%;
  height: 48vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Protection Cards (Section 2) */
.protection-cards-container {
  max-width: 1000px;
  margin: 0 auto 80px auto;
}

.protection-card {
  background: var(--bg-white);
  border-radius: 8px;
  padding: 40px 45px;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  display: flex;
  gap: 35px;
  align-items: center;
  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;
  border: 1px solid rgba(0, 0, 0, 0.01);
}

.protection-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  border-color: var(--gold);
}

.protection-card-icon {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  background-color: var(--bg-sand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.protection-card-icon img {
  width: 22px;
  height: 22px;
  filter: brightness(0) saturate(100%) invert(20%) sepia(0%) saturate(13%) hue-rotate(188deg) brightness(95%) contrast(85%);
}

.protection-card-text {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--text-dark);
  font-weight: 500;
  line-height: 1.7;
  margin: 0;
}

/* Vertical phone mockup styles */
.phone-mockup-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 0 20px 0;
}

.phone-wrapper {
  width: 260px;
  height: 500px;
  border: 12px solid #000;
  border-radius: 38px;
  background: #000;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  position: relative;
  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:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.22);
}

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

.phone-screen iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.phone-label {
  margin-top: 15px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}

/* Conclusion and Social Block */
.conclusion-container {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
}

.conclusion-text {
  font-family: var(--font-title);
  font-size: 1.85rem;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.7;
  font-weight: 400;
  margin-bottom: 70px;
}

.social-card {
  background-color: var(--bg-sand);
  border-radius: 8px;
  padding: 55px 45px;
  max-width: 750px;
  margin: 0 auto 70px auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  text-align: center;
  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: 1px solid rgba(0, 0, 0, 0.01);
}

.social-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.social-card-tag {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 25px;
  display: block;
}

.social-card-text {
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-dark);
  font-weight: 500;
}

/* Call to Action Button */
.cta-container {
  text-align: center;
  padding: 20px 0;
}

.btn-editorial {
  display: inline-block;
  border: 2px solid var(--text-dark);
  background: transparent;
  color: var(--text-dark);
  padding: 16px 50px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  border-radius: 30px;
  transition: all 0.3s ease;
  text-decoration: none !important;
  cursor: pointer;
}

.btn-editorial:hover {
  background: var(--text-dark);
  color: var(--bg-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

/* Editorial Image Styles */
.editorial-image-wrapper {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  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);
  background: var(--bg-sand);
}

.editorial-image-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.editorial-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.editorial-image-wrapper:hover .editorial-img {
  transform: scale(1.04);
}

/* Editorial Layout & Custom Masks (Section 1) */
.editorial-subtitle {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dark);
  position: relative;
}

.editorial-subtitle::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--gold);
  margin-top: 12px;
}

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

.video-wrapper-premium,
.image-wrapper-mask {
  position: relative;
  width: 100%;
  display: inline-block;
}

.decorative-box {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gold-offset {
  top: 15px;
  left: 15px;
  border: 2px solid var(--gold);
  background-color: transparent;
}

.sand-offset-left {
  top: 15px;
  left: -15px;
  background-color: var(--bg-sand);
  opacity: 0.4;
}

.video-wrapper-premium:hover .gold-offset {
  transform: translate(-6px, -6px);
}

.image-wrapper-mask:hover .gold-offset {
  transform: translate(-6px, -6px);
}

.image-wrapper-mask:hover .sand-offset-left {
  transform: translate(6px, -6px);
}

/* Masking Shapes */
.mask-container {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.rounded-blob {
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  background-color: var(--bg-sand);
  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: 380px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

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

.z-2 {
  z-index: 2;
}

/* Responsive Styles */
@media (max-width: 768px) {


  .menu-movil {
    display: flex;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }

  .menu-movil.open span {
    background-color: var(--text-dark);
  }

  .navigation {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    transform: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 35px;
    transition: all 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    z-index: 998;
    padding: 80px 20px;
  }

  .navigation.open {
    top: 0;
  }

  .nav-option {
    margin: 0;
    max-width: none;
    min-height: auto;
  }

  .nav-option::before,
  .nav-option::after {
    display: none !important;
  }

  .option-nav {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    background: transparent !important;
    color: var(--text-dark);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 2px;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    text-transform: uppercase;
  }

  .nav-option:hover .option-nav {
    color: var(--text-dark) !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  .nav-option.active .option-nav {
    color: var(--gold) !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  .movil-close {
    display: block;
    position: absolute;
    top: 25px;
    right: 20px;
    width: 25px;
    height: 25px;
    cursor: pointer;
  }

  .movil-close img {
    width: 100%;
    height: 100%;
    filter: brightness(0) saturate(100%) invert(20%) sepia(0%) saturate(13%) hue-rotate(188deg) brightness(95%) contrast(85%);
  }

  .hero-section {
    background-attachment: scroll;
    height: 90vh;
  }

  .hero-title-main {
    font-size: 2.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    letter-spacing: 4px;
  }

  .abstract-section {
    padding: 80px 20px;
  }

  .abstract-text {
    font-size: 1.3rem;
  }

  .numeralia-section {
    padding: 60px 20px;
  }

  .numeralia-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .numeralia-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .numeralia-card {
    padding: 35px 20px;
  }

  .numeralia-num {
    font-size: 3rem;
    margin-bottom: 12px;
  }

  .section-header-block {
    background-attachment: scroll;
    height: 30vh;
  }

  .section-header-title {
    font-size: 1.6rem;
    padding: 5% !important;
  }

  .content-section {
    padding: 60px 20px;
  }

  .editorial-intro {
    font-size: 0.95rem;
    margin-bottom: 30px;
    text-align: justify;
  }

  .editorial-intro p {
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 15px;
  }

  .editorial-highlight {
    font-size: 1.05rem;
    padding-left: 15px;
    margin: 20px 0;
    line-height: 1.5;
  }

  .accordion-custom .accordion-button {
    padding: 18px 20px;
    font-size: 0.95rem;
  }

  .accordion-custom .accordion-body {
    padding: 20px 15px;
    font-size: 0.9rem;
  }

  .banner-image-block {
    background-attachment: scroll;
    height: 35vh;
  }

  .protection-card {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
    gap: 18px;
  }

  .protection-card-text {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .conclusion-text {
    font-size: 1.2rem;
    margin-bottom: 35px;
    line-height: 1.6;
  }

  .social-card {
    padding: 30px 20px;
    margin-bottom: 40px;
  }

  .social-card-text {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .btn-editorial {
    padding: 12px 35px;
    font-size: 0.8rem;
  }

  /* Responsive Editorial Layout */
  .editorial-subtitle {
    font-size: 1.4rem;
  }

  .editorial-subtitle::after {
    margin-top: 8px;
  }

  .editorial-text {
    font-size: 0.95rem;
    line-height: 1.65;
  }

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

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