/* ==========================================================================
   Faserline S.L. - Modern Light Theme (Red & Orange Palette)
   ========================================================================== */

:root {
  /* Color Palette - Light background with Red & Orange accents */
  --bg-main: #fffcfb;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;

  --text-primary: #1c1917;
  --text-secondary: #57534e;
  --text-muted: #78716c;

  --brand-red: #ef4444;
  --brand-orange: #f97316;
  --brand-coral: #f43f5e;
  --brand-amber: #f59e0b;
  --brand-rose: #e11d48;
  --brand-vermilion: #ea580c;

  --border-light: rgba(243, 244, 246, 0.9);
  --border-card: rgba(229, 231, 235, 0.8);
  --border-hover: rgba(239, 68, 68, 0.3);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-card: 0 10px 25px -5px rgba(124, 45, 18, 0.04), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 20px 35px -10px rgba(239, 68, 68, 0.14), 0 10px 15px -5px rgba(124, 45, 18, 0.04);

  /* Fonts */
  --font-heading: 'Space Grotesk', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ambient Background Mesh - Red & Orange Warm Light Glows */
.bg-gradient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(95px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.glow-1 {
  width: 520px;
  height: 520px;
  top: -120px;
  left: -100px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.22) 0%, rgba(255, 252, 251, 0) 70%);
}

.glow-2 {
  width: 620px;
  height: 620px;
  top: 28%;
  right: -160px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.2) 0%, rgba(255, 252, 251, 0) 70%);
}

.glow-3 {
  width: 560px;
  height: 560px;
  bottom: -100px;
  left: 20%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.16) 0%, rgba(255, 252, 251, 0) 70%);
}

/* Main Container Layout */
.page-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ==========================================================================
   Header / Hero Section
   ========================================================================== */
.hero {
  text-align: center;
  margin-bottom: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 1.125rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.06);
  backdrop-filter: blur(8px);
  margin-bottom: 1.5rem;
}

.brand-icon {
  width: 22px;
  height: 22px;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand-vermilion);
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.75rem, 6vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(135deg, #1c1917 0%, #7c2d12 45%, #ef4444 85%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 500;
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.5;
}

.top-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  margin-bottom: 2rem;
}

.btn-acceso {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1.625rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-orange) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.25);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
  cursor: pointer;
}

.btn-acceso:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.38);
  filter: brightness(1.05);
  color: #ffffff;
}

.btn-acceso:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(239, 68, 68, 0.2);
}

.btn-acceso-icon {
  width: 18px;
  height: 18px;
}

.btn-acceso-lg {
  padding: 0.875rem 2rem;
  font-size: 1.05rem;
}

.btn-acceso-lg .btn-acceso-icon {
  width: 20px;
  height: 20px;
}

.hero-cta {
  margin-top: 1.75rem;
}

.hero-divider {
  width: 70px;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-red), var(--brand-orange));
  border-radius: 2px;
  margin-top: 2rem;
}

/* ==========================================================================
   Wide Overview Bubble Card (Spans full width / 3 columns)
   ========================================================================== */
.wide-bubble-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 1.75rem;
  padding: 2.75rem 2.5rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.wide-bubble-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-red), var(--brand-orange), var(--brand-amber));
}

.wide-bubble-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--border-hover);
}

.wide-card-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2.5rem;
  align-items: start;
}

.wide-column-divider {
  width: 1px;
  background: var(--border-card);
  align-self: stretch;
}

.column-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.column-icon-bg {
  width: 46px;
  height: 46px;
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.column-icon {
  width: 24px;
  height: 24px;
}

.column-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1.025rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.check-icon {
  width: 20px;
  height: 20px;
  color: var(--brand-red);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* ==========================================================================
   Bubbles (Cards) Grid
   ========================================================================== */
.main-content {
  flex: 1;
}

.bubbles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 4.5rem;
}

.bubble-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 1.5rem;
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.bubble-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.4), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.bubble-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-hover);
}

.bubble-card:hover::before {
  opacity: 1;
}

/* Icons styling for each bubble */
.card-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform var(--transition-fast);
}

.bubble-card:hover .card-icon-wrapper {
  transform: scale(1.08) rotate(-3deg);
}

.card-icon {
  width: 28px;
  height: 28px;
}

/* Red & Orange color variations for icon boxes */
.icon-red {
  background: rgba(239, 68, 68, 0.1);
  color: var(--brand-red);
}

.icon-orange {
  background: rgba(249, 115, 22, 0.1);
  color: var(--brand-orange);
}

.icon-coral {
  background: rgba(244, 63, 94, 0.1);
  color: var(--brand-coral);
}

.icon-amber {
  background: rgba(245, 158, 11, 0.12);
  color: var(--brand-amber);
}

.icon-rose {
  background: rgba(225, 29, 72, 0.1);
  color: var(--brand-rose);
}

.icon-vermilion {
  background: rgba(234, 88, 12, 0.1);
  color: var(--brand-vermilion);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.875rem;
  line-height: 1.3;
}

.card-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  font-weight: 400;
}

.highlight-brand {
  font-weight: 600;
  color: var(--brand-vermilion);
}

/* ==========================================================================
   Contact Footer Section
   ========================================================================== */
.contact-footer {
  margin-top: auto;
}

.footer-card {
  background: linear-gradient(145deg, #ffffff 0%, #fff7f5 100%);
  border: 1px solid rgba(239, 68, 68, 0.12);
  border-radius: 1.75rem;
  padding: 3rem 2.5rem 2rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem 4rem;
  margin-bottom: 2.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.125rem;
  max-width: 400px;
}

.contact-icon-bg {
  width: 48px;
  height: 48px;
  background: rgba(239, 68, 68, 0.09);
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-red);
  flex-shrink: 0;
}

.contact-icon {
  width: 24px;
  height: 24px;
}

.contact-text {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-vermilion);
  margin-bottom: 0.25rem;
}

.contact-value {
  font-style: normal;
  font-size: 1.025rem;
  color: var(--text-primary);
  line-height: 1.5;
  font-weight: 500;
}

.contact-link {
  text-decoration: none;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.contact-link:hover {
  color: var(--brand-red);
}

.footer-bottom {
  border-top: 1px solid rgba(229, 231, 235, 0.8);
  padding-top: 1.75rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 768px) {
  .page-wrapper {
    padding: 2.5rem 1.25rem 2rem;
  }

  .hero {
    margin-bottom: 3rem;
  }

  .wide-bubble-card {
    padding: 1.75rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 1.25rem;
  }

  .wide-card-content {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .wide-column-divider {
    width: 100%;
    height: 1px;
  }

  .bubbles-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
  }

  .bubble-card {
    padding: 1.75rem 1.5rem;
    border-radius: 1.25rem;
  }

  .footer-card {
    padding: 2rem 1.5rem 1.5rem;
    border-radius: 1.25rem;
  }

  .contact-details {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.75rem;
  }
}

/* ==========================================================================
   Aviso Legal Page Styles & Footer Links
   ========================================================================== */
.footer-legal-link {
  color: var(--brand-vermilion);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.footer-legal-link:hover {
  color: var(--brand-red);
  text-decoration: underline;
}

.hero-legal {
  margin-bottom: 2.5rem;
}

.back-home-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-vermilion);
  text-decoration: none;
  margin-bottom: 1.25rem;
  padding: 0.5rem 1.125rem;
  border-radius: 9999px;
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.14);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.back-home-link:hover {
  background: rgba(239, 68, 68, 0.12);
  transform: translateX(-3px);
}

.back-arrow {
  width: 18px;
  height: 18px;
}

.margin-top-sm {
  margin-top: 0.5rem;
}

.legal-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 1.75rem;
  padding: 3rem 3rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.legal-section {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.legal-heading {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 2px solid rgba(239, 68, 68, 0.12);
  padding-bottom: 0.5rem;
}

.legal-section p {
  font-size: 1.025rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal-list {
  list-style-type: disc;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.legal-list li {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.legal-inline-link {
  color: var(--brand-red);
  text-decoration: none;
  font-weight: 600;
}

.legal-inline-link:hover {
  text-decoration: underline;
}

.border-top-none {
  border-top: none !important;
  padding-top: 0 !important;
}

@media (max-width: 768px) {
  .legal-card {
    padding: 2rem 1.5rem;
    gap: 1.75rem;
  }
}