/* ==========================================================================
   NEUMORPHIC LIGHT THEME FOR EYE CARE EDUCATIONAL PLATFORM (PRESET G)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Open+Sans:wght@400;500;600&display=swap');

:root {
  --eyecare-bg: #ebf0f5;
  --eyecare-surface: #ebf0f5;
  --eyecare-highlight: #ffffff;
  --eyecare-shade: #b8c5d6;
  --eyecare-shade-deep: #a3b2c6;
  
  --eyecare-accent: #007a78;
  --eyecare-accent-hover: #005b59;
  --eyecare-accent-light: #e0f2f1;
  
  --eyecare-text-dark: #2c3e50;
  --eyecare-text-muted: #546e7a;
  
  /* Neumorphic Shadows Preset G */
  --eyecare-shadow-raised: 8px 8px 16px var(--eyecare-shade), -8px -8px 16px var(--eyecare-highlight);
  --eyecare-shadow-soft: 5px 5px 10px var(--eyecare-shade), -5px -5px 10px var(--eyecare-highlight);
  --eyecare-shadow-inset: inset 4px 4px 8px var(--eyecare-shade), inset -4px -4px 8px var(--eyecare-highlight);
  --eyecare-shadow-hover: 12px 12px 20px var(--eyecare-shade-deep), -12px -12px 20px var(--eyecare-highlight);

  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  
  --border-radius-soft: 20px;
  --border-radius-pill: 999px;
  --border-radius-card: 32px;
}

/* Reset & Global Standards */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.vis-body-surface {
  background-color: var(--eyecare-bg);
  color: var(--eyecare-text-dark);
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Progress Bar Scroll-driven */
.vis-progress-line {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--eyecare-accent);
  z-index: 10000;
  width: 0%;
  animation: vis-scroll-progress linear;
  animation-timeline: scroll();
}

@keyframes vis-scroll-progress {
  from { width: 0%; }
  to { width: 100%; }
}

/* Typography Rules */
.vis-heading-main {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--eyecare-text-dark);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.vis-heading-sub {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--eyecare-text-dark);
  margin-bottom: 0.75rem;
}

.vis-paragraph-copy {
  color: var(--eyecare-text-muted);
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* Header & Navigation */
.vis-top-bar {
  background: var(--eyecare-surface);
  box-shadow: var(--eyecare-shadow-soft);
  position: sticky;
  top: 0;
  z-index: 9000;
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vis-brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--eyecare-text-dark);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
}

.vis-brand-symbol {
  width: 32px;
  height: 32px;
  color: var(--eyecare-accent);
}

.vis-navigation-panel {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.vis-nav-item {
  text-decoration: none;
  color: var(--eyecare-text-muted);
  font-family: var(--font-display);
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-pill);
  transition: all 0.3s ease;
}

.vis-nav-item:hover, .vis-nav-active {
  color: var(--eyecare-accent);
  box-shadow: var(--eyecare-shadow-inset);
}

/* Mobile Menu Toggle (CSS-only) */
.vis-menu-toggler-input {
  display: none;
}

.vis-menu-icon-label {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  box-shadow: var(--eyecare-shadow-soft);
}

.vis-menu-icon-label span {
  width: 24px;
  height: 3px;
  background-color: var(--eyecare-text-dark);
  border-radius: 3px;
  transition: 0.3s;
}

@media (max-width: 768px) {
  .vis-menu-icon-label {
    display: flex;
  }

  .vis-navigation-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--eyecare-surface);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    display: none;
  }

  .vis-menu-toggler-input:checked ~ .vis-navigation-panel {
    display: flex;
  }
}

/* Main Container Flow */
.vis-page-flow {
  flex: 1;
  padding-bottom: 4rem;
}

/* Hero Section Split (Preset G) */
.vis-intro-split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 10dvh 5%;
  gap: 3rem;
  max-width: 1300px;
  margin: 0 auto;
}

.vis-intro-content {
  flex: 1 1 500px;
  position: relative;
}

.vis-tag-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: var(--eyecare-surface);
  box-shadow: var(--eyecare-shadow-inset);
  color: var(--eyecare-accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: var(--border-radius-pill);
  margin-bottom: 1.25rem;
}

.vis-intro-media {
  flex: 1 1 400px;
  display: flex;
  justify-content: center;
}

.vis-media-frame {
  width: 100%;
  max-width: 480px;
  border-radius: var(--border-radius-card);
  padding: 12px;
  background: var(--eyecare-surface);
  box-shadow: var(--eyecare-shadow-raised);
}

.vis-media-img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--border-radius-card) - 8px);
  display: block;
  object-fit: cover;
}

/* Neumorphic Floating Badge */
.vis-floating-badge {
  position: absolute;
  bottom: -20px;
  right: 10px;
  background: var(--eyecare-surface);
  box-shadow: var(--eyecare-shadow-raised);
  border-radius: var(--border-radius-soft);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.vis-badge-icon {
  width: 28px;
  height: 28px;
  color: var(--eyecare-accent);
}

.vis-badge-num {
  display: block;
  font-family: var(--font-display);
  color: var(--eyecare-text-dark);
  font-size: 0.95rem;
}

.vis-badge-txt {
  font-size: 0.8rem;
  color: var(--eyecare-text-muted);
}

/* Action Trigger / Button */
.vis-action-group {
  margin-top: 1.5rem;
}

.vis-action-trigger {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--eyecare-accent);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--border-radius-pill);
  box-shadow: var(--eyecare-shadow-soft);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.vis-action-trigger:hover {
  background: var(--eyecare-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--eyecare-shadow-hover);
}

.vis-btn-full {
  width: 100%;
}

/* Problem / Solution Split Strip */
.vis-contrast-panel {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 5%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.vis-issue-box {
  background: var(--eyecare-surface);
  box-shadow: var(--eyecare-shadow-raised);
  padding: 2.5rem;
  border-radius: var(--border-radius-card);
  border-left: 6px solid #e53935;
}

.vis-solution-box {
  background: var(--eyecare-surface);
  box-shadow: var(--eyecare-shadow-raised);
  padding: 2.5rem;
  border-radius: var(--border-radius-card);
  border-left: 6px solid var(--eyecare-accent);
}

.vis-point-list {
  list-style: none;
  margin-top: 1rem;
}

.vis-point-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--eyecare-text-muted);
}

.vis-point-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--eyecare-accent);
  font-size: 1.5rem;
  line-height: 1;
}

/* Full Width Banner with Height 40vh */
.vis-banner-full {
  position: relative;
  width: 100%;
  height: 40vh;
  min-height: 280px;
  margin: 5rem 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vis-banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.vis-banner-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 900px;
}

.vis-banner-text {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

/* Features / Pillars Section (Inset Neumorphic Cards) */
.vis-pillars-holder {
  max-width: 1200px;
  margin: 5rem auto;
  padding: 0 5%;
}

.vis-section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem auto;
}

.vis-pillars-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.vis-pillar-item {
  background: var(--eyecare-surface);
  box-shadow: var(--eyecare-shadow-inset);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius-card);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.vis-pillar-item:hover {
  box-shadow: var(--eyecare-shadow-raised);
  transform: translateY(-4px);
}

.vis-pillar-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--eyecare-surface);
  box-shadow: var(--eyecare-shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.vis-pillar-icon-box svg {
  width: 30px;
  height: 30px;
  color: var(--eyecare-accent);
}

/* Stepper "Cómo Funciona" */
.vis-step-flow {
  max-width: 1100px;
  margin: 5rem auto;
  padding: 0 5%;
}

.vis-stepper-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
  position: relative;
  flex-wrap: wrap;
}

.vis-stepper-line::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 2px;
  border-top: 2px dashed var(--eyecare-shade-deep);
  z-index: 1;
}

.vis-step-pill {
  position: relative;
  z-index: 2;
  background: var(--eyecare-surface);
  box-shadow: var(--eyecare-shadow-raised);
  border-radius: var(--border-radius-pill);
  padding: 0.75rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 auto;
}

.vis-step-num {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--eyecare-accent);
  font-size: 1.2rem;
}

.vis-step-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--eyecare-text-dark);
}

.vis-step-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.vis-step-card-item {
  background: var(--eyecare-surface);
  box-shadow: var(--eyecare-shadow-soft);
  padding: 2rem;
  border-radius: var(--border-radius-soft);
}

/* Centered CTA Strip */
.vis-action-box-section {
  padding: 4rem 5%;
}

.vis-action-box {
  max-width: 700px;
  margin: 0 auto;
  background: var(--eyecare-surface);
  box-shadow: var(--eyecare-shadow-raised);
  padding: 3.5rem 2.5rem;
  border-radius: var(--border-radius-card);
  text-align: center;
}

.vis-thank-icon {
  width: 64px;
  height: 64px;
  color: var(--eyecare-accent);
  margin-bottom: 1.5rem;
}

/* Expert Page Specifics */
.vis-expert-hero {
  text-align: center;
  max-width: 800px;
  margin: 4rem auto 2rem auto;
  padding: 0 5%;
}

.vis-centered-media-holder {
  padding: 0 5%;
  margin-bottom: 4rem;
}

.vis-centered-frame {
  max-width: 720px;
  margin: 0 auto;
  background: var(--eyecare-surface);
  box-shadow: var(--eyecare-shadow-raised);
  padding: 16px;
  border-radius: var(--border-radius-card);
}

.vis-expert-img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--border-radius-card) - 8px);
  display: block;
}

/* Stats 2x2 Grid */
.vis-stat-grid-holder {
  max-width: 900px;
  margin: 4rem auto;
  padding: 0 5%;
}

.vis-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 600px) {
  .vis-stat-grid {
    grid-template-columns: 1fr;
  }
}

.vis-stat-box {
  background: var(--eyecare-surface);
  box-shadow: var(--eyecare-shadow-inset);
  padding: 2.5rem 1.5rem;
  border-radius: var(--border-radius-soft);
  text-align: center;
}

.vis-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--eyecare-accent);
}

.vis-stat-lbl {
  color: var(--eyecare-text-muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.vis-alternating-content {
  max-width: 1100px;
  margin: 5rem auto;
  padding: 0 5%;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.vis-alt-row {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.vis-alt-reverse {
  flex-direction: row-reverse;
}

.vis-alt-text {
  flex: 1 1 400px;
}

.vis-alt-box {
  flex: 1 1 300px;
  background: var(--eyecare-surface);
  box-shadow: var(--eyecare-shadow-soft);
  padding: 2rem;
  border-radius: var(--border-radius-soft);
}

/* Reserve Page Form Card Max 620px */
.vis-reserve-header-wrap {
  text-align: center;
  max-width: 700px;
  margin: 3rem auto 1rem auto;
  padding: 0 5%;
}

.vis-form-centered-holder {
  max-width: 620px;
  margin: 2rem auto 4rem auto;
  padding: 0 5%;
}

.vis-form-card {
  background: var(--eyecare-surface);
  box-shadow: var(--eyecare-shadow-raised);
  padding: 3rem 2.5rem;
  border-radius: var(--border-radius-card);
}

.vis-form-element {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.vis-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.vis-label-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--eyecare-text-dark);
}

.vis-field-input {
  width: 100%;
  padding: 0.9rem 1.25rem;
  background: var(--eyecare-surface);
  box-shadow: var(--eyecare-shadow-inset);
  border: none;
  border-radius: var(--border-radius-soft);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--eyecare-text-dark);
  outline: none;
  transition: box-shadow 0.3s ease;
}

.vis-field-input:focus {
  box-shadow: inset 2px 2px 5px var(--eyecare-shade-deep), inset -2px -2px 5px var(--eyecare-highlight), 0 0 0 2px var(--eyecare-accent);
}

.vis-textarea-input {
  resize: vertical;
}

.vis-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.vis-check-input {
  margin-top: 0.25rem;
  accent-color: var(--eyecare-accent);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.vis-check-label {
  font-size: 0.85rem;
  color: var(--eyecare-text-muted);
}

.vis-inline-link {
  color: var(--eyecare-accent);
  text-decoration: underline;
}

.vis-contact-direct {
  margin-top: 2rem;
  text-align: center;
  border-top: 1px solid var(--eyecare-shade);
  padding-top: 1.5rem;
}

.vis-mail-link {
  color: var(--eyecare-accent);
  font-weight: 700;
  text-decoration: none;
}

.vis-mail-link:hover {
  text-decoration: underline;
}

/* Numbered Badge List */
.vis-numbered-badge-list {
  list-style: none;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.vis-numbered-badge-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--eyecare-text-muted);
  font-size: 0.95rem;
}

.vis-badge-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--eyecare-surface);
  box-shadow: var(--eyecare-shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--eyecare-accent);
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* FAQ Stack */
.vis-faq-stack {
  max-width: 900px;
  margin: 5rem auto;
  padding: 0 5%;
}

.vis-faq-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.vis-faq-item {
  background: var(--eyecare-surface);
  box-shadow: var(--eyecare-shadow-soft);
  padding: 2rem;
  border-radius: var(--border-radius-soft);
}

.vis-faq-question {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--eyecare-text-dark);
  margin-bottom: 0.5rem;
}

/* Legal Documents */
.vis-legal-doc {
  max-width: 900px;
  margin: 4rem auto;
  padding: 0 5%;
  min-height: 60vh;
}

.vis-cookie-policy-block {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px dashed var(--eyecare-shade-deep);
}

/* Footer Panel */
.vis-footer-panel {
  background: var(--eyecare-surface);
  box-shadow: 0 -8px 16px var(--eyecare-shade);
  padding: 4rem 5% 2rem 5%;
  margin-top: auto;
}

.vis-footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--eyecare-shade);
}

.vis-footer-brand {
  max-width: 400px;
}

.vis-footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.vis-footer-link {
  color: var(--eyecare-text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.vis-footer-link:hover {
  color: var(--eyecare-accent);
}

.vis-footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0 auto;
  text-align: center;
}

.vis-disclaimer-text {
  font-size: 0.85rem;
  color: var(--eyecare-text-muted);
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.vis-copyright-text {
  font-size: 0.85rem;
  color: var(--eyecare-text-muted);
}

/* Cookie Banner Fixed Bottom */
.vis-cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--eyecare-surface);
  box-shadow: 0 -10px 25px rgba(0,0,0,0.15);
  padding: 1.25rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.vis-cookie-txt {
  font-size: 0.9rem;
  color: var(--eyecare-text-dark);
  max-width: 800px;
}

.vis-cookie-btn-group {
  display: flex;
  gap: 1rem;
}

.vis-cookie-btn {
  padding: 0.6rem 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: var(--border-radius-pill);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.vis-cookie-accept {
  background: var(--eyecare-accent);
  color: #ffffff;
  box-shadow: var(--eyecare-shadow-soft);
}

.vis-cookie-decline {
  background: var(--eyecare-surface);
  color: var(--eyecare-text-dark);
  box-shadow: var(--eyecare-shadow-inset);
}

/* Scroll-driven Entrance Animations (CSS-only) */
@keyframes vis-fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section, article {
  animation: vis-fade-up linear both;
  animation-timeline: view();
  animation-range: entry 10% cover 25%;
}