/* -------------------------------------------------------------
   CORE INSURANCE SL - PREMIUM DESIGN SYSTEM
   Master Stylesheet
   ------------------------------------------------------------- */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* --- Tokens & Design Variables --- */
:root {
  /* Color Palette — Core Insurance Premium: Charcoal + Gold */
  --primary-hue: 43;
  --primary-sat: 56%;
  --primary: hsl(43, 56%, 48%); /* Warm Gold — #be9b3b */
  --primary-light: hsl(43, 60%, 56%); /* Lighter gold */
  --primary-dark: hsl(43, 52%, 36%); /* Deep gold */
  --primary-soft: hsl(43, 45%, 93%); /* Very light gold tint */
  
  --secondary: hsl(30, 12%, 12%); /* Rich Charcoal from logo bg */
  
  --accent-hue: 38;
  --accent-sat: 72%;
  --accent: hsl(38, 72%, 50%); /* Rich warm amber-gold #da9c24 */
  --accent-light: hsl(38, 72%, 60%);
  --accent-soft: hsl(38, 50%, 93%);

  /* Neutrals — Warm-tinted whites */
  --bg-main: #faf8f5;
  --bg-card: #ffffff;
  --text-main: #1c1a17;
  --text-muted: #6b6560;
  --border-color: #e8e2d9;
  
  /* Glassmorphism Defaults */
  --glass-bg: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.45);
  --glass-shadow: rgba(28, 26, 23, 0.08);

  /* Fonts */
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Border Radii & Transitions */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-round: 50px;
  --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- Dark Mode Variables (Optional / Theme toggling support) --- */
[data-theme="dark"] {
  --bg-main: #0e0d0b;
  --bg-card: #1a1815;
  --text-main: #f5f0e8;
  --text-muted: #a09888;
  --border-color: #2e2a24;
  --glass-bg: rgba(14, 13, 11, 0.85);
  --glass-border: rgba(190, 155, 59, 0.08);
  --primary-soft: hsl(43, 40%, 14%);
  --accent-soft: hsl(38, 45%, 13%);
}

/* --- SVG Logo Base Styles --- */
.c-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 32px;
  fill: var(--primary);
  letter-spacing: 0.05em;
}
.sub-text-1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 15px;
  fill: var(--secondary);
  letter-spacing: 0.08em;
}
.sub-text-2 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 9px;
  fill: var(--text-muted);
  letter-spacing: 0.18em;
}

/* --- Logo Dark Mode Adjustments --- */
[data-theme="dark"] .logo-svg .c-text {
  fill: var(--primary-light);
}
[data-theme="dark"] .logo-svg ellipse,
[data-theme="dark"] .logo-svg path {
  stroke: var(--primary-light);
}
[data-theme="dark"] .logo-svg .sub-text-1 {
  fill: var(--text-main);
}
[data-theme="dark"] .logo-svg .sub-text-2 {
  fill: var(--text-muted);
}


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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.25;
  color: var(--secondary);
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4 {
  color: var(--text-main);
}

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-light);
}

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

ul {
  list-style: none;
}

/* --- Utilities --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 6rem 0;
}

.text-center {
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-round);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-light);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(190, 155, 59, 0.35);
}

.btn-accent {
  background-color: var(--accent);
  color: #ffffff;
}

.btn-accent:hover {
  background-color: var(--accent-light);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(218, 156, 36, 0.35);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: none;
}

.btn-outline:hover {
  background-color: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

/* --- Header & Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
}

.site-header.scrolled {
  background-color: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px -10px var(--glass-shadow);
  padding: 0.5rem 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  transition: var(--transition);
}

.site-header.scrolled .nav-container {
  height: 65px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.logo-divider {
  width: 1px;
  height: 28px;
  background-color: var(--border-color);
  opacity: 0.8;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-svg {
  width: 160px;
  height: auto;
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
  border-radius: 6px;
  transition: var(--transition);
}

.site-header.scrolled .logo-img {
  height: 40px;
}

.footer-logo-img {
  height: 52px;
  width: auto;
  display: block;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

.parent-logo-link {
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.parent-logo-link:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

.parent-logo-img {
  height: 22px;
  width: auto;
  display: block;
  filter: brightness(0) opacity(0.55);
}

[data-theme="dark"] .parent-logo-img {
  filter: brightness(0) invert(1) opacity(0.7);
}

.hero-parent-logo {
  filter: brightness(0) opacity(0.55);
  transition: var(--transition);
}

[data-theme="dark"] .hero-parent-logo {
  filter: brightness(0) invert(1) opacity(0.7);
}

[data-theme="dark"] .logo-divider {
  background-color: rgba(255, 255, 255, 0.15);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-link {
  font-family: var(--font-title);
  font-weight: 550;
  font-size: 0.95rem;
  color: var(--secondary);
  position: relative;
  padding: 0.5rem 0;
}

[data-theme="dark"] .nav-link {
  color: var(--text-main);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1100;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--secondary);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 3px;
}

[data-theme="dark"] .nav-toggle span {
  background-color: var(--text-main);
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -7px);
}

/* Theme Toggle Button */
.theme-toggle {
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  font-size: 1.15rem;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.theme-toggle:hover {
  color: var(--primary);
  transform: scale(1.1);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding: 5rem 0;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, hsl(43, 45%, 94%) 0%, var(--bg-main) 60%);
}

[data-theme="dark"] .hero {
  background: radial-gradient(circle at 80% 20%, hsl(43, 30%, 10%) 0%, var(--bg-main) 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-tag {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  background-color: var(--primary-soft);
  color: var(--primary-dark);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--radius-round);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--secondary);
}

.hero-title span {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.hero-image-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-bg {
  position: absolute;
  width: 110%;
  height: 110%;
  background: radial-gradient(circle, var(--primary-soft) 0%, transparent 70%);
  z-index: 1;
}

.hero-img {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px -15px rgba(28, 26, 23, 0.2);
  animation: float 6s ease-in-out infinite;
}

.hero-real-img {
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -15px rgba(28, 26, 23, 0.25), 0 0 0 1px var(--border-color);
  position: relative;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
  object-fit: cover;
  aspect-ratio: 4/3;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* --- Brand Sliding Marquee --- */
.brand-marquee {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 2.5rem 0;
  overflow: hidden;
  position: relative;
}

.brand-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.marquee-container {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 3rem;
  position: relative;
}

.marquee-container::before,
.marquee-container::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-card), transparent);
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-card), transparent);
}

.marquee-content {
  flex-shrink: 0;
  display: flex;
  justify-content: space-around;
  min-width: 100%;
  gap: 3rem;
  animation: scrollMarquee 30s linear infinite;
}

.marquee-content img {
  height: 38px;
  object-fit: contain;
  opacity: 0.65;
  filter: grayscale(100%);
  transition: var(--transition);
}

.marquee-content img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

@keyframes scrollMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* --- Value Proposition (Conocenos Intro) --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.value-card {
  background-color: var(--bg-card);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--primary);
  opacity: 0;
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.05), 0 10px 10px -5px rgba(15, 23, 42, 0.02);
  border-color: transparent;
}

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

.value-icon {
  width: 55px;
  height: 55px;
  background-color: var(--primary-soft);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.75rem;
  transition: var(--transition);
}

.value-card:hover .value-icon {
  background-color: var(--primary);
  color: #ffffff;
}

.value-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.value-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* --- Services Grid --- */
.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
}

.services-header .title-group {
  max-width: 550px;
}

.subtitle-section {
  color: var(--primary);
  font-family: var(--font-title);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.title-section {
  font-size: 2.25rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.service-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.1);
  border-color: var(--primary-soft);
}

.service-icon-wrapper {
  padding: 2.5rem 2.5rem 1.5rem;
}

.service-icon-circle {
  width: 65px;
  height: 65px;
  background-color: var(--primary-soft);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  transition: var(--transition);
}

.service-card:hover .service-icon-circle {
  transform: rotateY(180deg);
  background-color: var(--primary);
  color: #ffffff;
}

.service-content {
  padding: 0 2.5rem 2.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-content h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.service-content p {
  font-size: 0.95rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.service-link {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
}

.service-link i {
  transition: var(--transition);
}

.service-card:hover .service-link i {
  transform: translateX(5px);
}

/* --- Call to Action Section --- */
.cta-banner {
  background: linear-gradient(135deg, var(--secondary) 0%, hsl(30, 15%, 18%) 50%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 4rem;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(28, 26, 23, 0.3);
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 400px;
  height: 400px;
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  pointer-events: none;
}

.cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  position: relative;
  z-index: 2;
}

.cta-text {
  max-width: 650px;
}

.cta-text h2 {
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: 1rem;
}

.cta-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  margin-bottom: 0;
}

.cta-actions {
  flex-shrink: 0;
}

/* --- Reviews / Testimonials Section --- */
.reviews-section {
  background-color: var(--primary-soft);
}

[data-theme="dark"] .reviews-section {
  background-color: rgba(15, 23, 42, 0.5);
}

.reviews-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.reviews-summary .rating-num {
  font-family: var(--font-title);
  font-size: 3rem;
  font-weight: 800;
  color: var(--secondary);
}

[data-theme="dark"] .reviews-summary .rating-num {
  color: var(--text-main);
}

.reviews-summary .stars {
  color: #eab308;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.reviews-slider-container {
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.reviews-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 2rem;
}

.review-slide {
  min-width: calc(50% - 1rem);
  background-color: var(--bg-card);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.review-user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-avatar {
  width: 45px;
  height: 45px;
  border-radius: var(--radius-round);
  background-color: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.1rem;
}

.user-name {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--secondary);
}

[data-theme="dark"] .user-name {
  color: var(--text-main);
}

.review-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.review-content {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.review-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.review-rating-stars {
  color: #eab308;
  font-size: 0.9rem;
}

.review-platform {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.reviews-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.review-nav-btn {
  width: 45px;
  height: 45px;
  border-radius: var(--radius-round);
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

[data-theme="dark"] .review-nav-btn {
  color: var(--text-main);
}

.review-nav-btn:hover {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* --- News Section --- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.news-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.08);
}

.news-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.news-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-img-wrapper img {
  transform: scale(1.08);
}

.news-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--primary);
  color: #ffffff;
  padding: 0.35rem 1rem;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.75rem;
  border-radius: var(--radius-round);
}

.news-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  gap: 1.5rem;
}

.news-info h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  line-height: 1.35;
}

.news-info p {
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.news-link {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.news-card:hover .news-link i {
  transform: translateX(4px);
}

/* --- Footer --- */
.site-footer {
  background: linear-gradient(180deg, var(--secondary) 0%, hsl(30, 15%, 8%) 100%);
  color: #ffffff;
  padding: 5rem 0 2rem;
  border-top: 3px solid var(--primary);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border-radius: var(--radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}

.social-btn:hover {
  background-color: var(--primary);
  color: #ffffff;
  transform: translateY(-3px);
}

.footer-column h3 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background-color: var(--primary);
}

.footer-links li {
  margin-bottom: 0.85rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--primary-light);
  padding-left: 5px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact-item a:hover {
  color: var(--primary-light);
}

.footer-contact-item i {
  color: var(--primary);
  margin-top: 0.25rem;
}

.footer-ruizre {
  background-color: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links a:hover {
  color: var(--primary-light);
}

/* --- Floating Whatsapp Button --- */
.whatsapp-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.whatsapp-bubble {
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #ffffff;
  border-radius: var(--radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  transition: var(--transition);
}

.whatsapp-bubble:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-label {
  background-color: var(--bg-card);
  color: var(--text-main);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 550;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid var(--border-color);
  animation: bounceRight 4s infinite;
}

@keyframes bounceRight {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-8px); }
}

/* --- Modal & Popups system --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  width: 90%;
  max-width: 500px;
  padding: 3rem;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  transform: translateY(30px);
  transition: transform 0.3s ease;
}

.modal-overlay.open .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--text-main);
}

.modal-header {
  margin-bottom: 2rem;
}

.modal-header h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.modal-form .form-group {
  margin-bottom: 1.5rem;
}

.modal-form label {
  display: block;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.modal-form input,
.modal-form textarea,
.modal-form select {
  width: 100%;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
}

.modal-form input:focus,
.modal-form textarea:focus,
.modal-form select:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--bg-card);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.modal-form .form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.modal-form .form-check input {
  width: auto;
  margin-top: 0.3rem;
}

.modal-form .form-check label {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.modal-form .form-check a {
  text-decoration: underline;
}

.modal-form .btn-submit {
  width: 100%;
  margin-top: 1rem;
}

/* --- Cookie Consent Bar --- */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.08);
  padding: 1.5rem 0;
  z-index: 9999;
  display: none;
}

.cookie-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cookie-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.5;
}

.cookie-text a {
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.5rem 1.5rem;
  font-size: 0.85rem;
}

/* --- Toast / Success notifications --- */
.toast-notification {
  position: fixed;
  top: 2rem;
  right: 2rem;
  background-color: var(--bg-card);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 1.25rem 2rem;
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.15);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 11000;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-notification.show {
  transform: translateX(0);
}

.toast-icon {
  color: var(--primary);
  font-size: 1.5rem;
}

.toast-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--secondary);
  margin-bottom: 0.15rem;
}

.toast-message {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Conocenos Page Details --- */
.page-hero {
  background: radial-gradient(circle at 50% 50%, var(--primary-soft) 0%, var(--bg-main) 100%);
  padding: 8rem 0 4rem;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.page-title {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.breadcrumbs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs span {
  color: var(--primary);
}

.about-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-intro h2 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
}

.about-intro p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.about-img-frame {
  position: relative;
}

.about-img-frame::after {
  content: '';
  position: absolute;
  top: 20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 4px solid var(--primary);
  border-radius: var(--radius-md);
  z-index: 1;
}

.about-img-frame img {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-md);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.1);
}

/* --- Contact Page Grid --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
}

.contact-info-panel {
  background-color: var(--bg-card);
  padding: 3rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.contact-info-panel h3 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.contact-item-icon {
  width: 45px;
  height: 45px;
  background-color: var(--primary-soft);
  color: var(--primary);
  border-radius: var(--radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.contact-item-details h4 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.contact-item-details p,
.contact-item-details a {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-item-details a:hover {
  color: var(--primary);
}

.contact-form-panel {
  background-color: var(--bg-card);
  padding: 4rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
}

.contact-form-panel h3 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.contact-form-panel p {
  margin-bottom: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* --- Map Wrapper --- */
.map-section {
  padding-bottom: 0;
}

.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
  border: 1px solid var(--border-color);
}

.map-wrapper iframe {
  display: block;
}

/* --- Detailed Insurance Pages --- */
.insurance-detail-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 4rem;
}

.insurance-text h2 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  margin-top: 2rem;
}

.insurance-text h2:first-of-type {
  margin-top: 0;
}

.insurance-text ul {
  margin-bottom: 2rem;
  padding-left: 1.5rem;
  list-style: disc;
}

.insurance-text li {
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.insurance-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.sidebar-card {
  background-color: var(--bg-card);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.sidebar-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.sidebar-card h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary);
}

.sidebar-menu li {
  border-bottom: 1px solid var(--border-color);
}

.sidebar-menu li:last-child {
  border-bottom: none;
}

.sidebar-menu a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
  color: var(--text-muted);
  font-family: var(--font-title);
  font-weight: 550;
  font-size: 0.95rem;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
  color: var(--primary);
  padding-left: 5px;
}

.sidebar-menu a i {
  font-size: 0.8rem;
  transition: var(--transition);
}

.sidebar-menu a:hover i {
  transform: translateX(4px);
}

/* --- Legal Content Styling --- */
.legal-content {
  background-color: var(--bg-card);
  padding: 4rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  max-width: 900px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.75rem;
  margin: 2.5rem 0 1rem;
  color: var(--secondary);
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 1.25rem;
  margin: 1.5rem 0 1rem;
}

.legal-content p,
.legal-content li {
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-content ul {
  list-style: disc;
  padding-left: 2rem;
  margin-bottom: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

/* --- Table Styles (Capital Calculator Widget) --- */
.premium-table-wrapper {
  margin: 2.5rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  background-color: var(--bg-card);
}

.premium-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.premium-table th {
  background-color: var(--primary);
  color: #ffffff;
  font-family: var(--font-title);
  font-weight: 600;
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
}

.premium-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.95rem;
}

.premium-table tr:last-child td {
  border-bottom: none;
}

.premium-table tr:last-child {
  background-color: var(--primary-soft);
  font-weight: 700;
}

.premium-table tr:last-child td:first-child {
  color: var(--primary-dark);
}

.premium-table tr:last-child td:last-child {
  color: var(--accent);
  font-size: 1.15rem;
}

/* --- Promo Section Styles --- */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}

.promo-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--primary-soft) 100%);
  border-radius: var(--radius-md);
  padding: 3rem 2.5rem;
  border: 2px solid var(--border-color);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.promo-card::before {
  content: '★';
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2.5rem;
  color: var(--accent);
  opacity: 0.15;
}

.promo-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 15px 30px rgba(218, 156, 36, 0.15);
}

.promo-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--secondary);
}

.promo-badge {
  display: inline-block;
  background-color: var(--accent);
  color: #ffffff;
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-round);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.25rem;
  margin-top: 1.5rem;
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.2);
}

/* --- Form Options Grid --- */
.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.option-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--bg-main);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.option-check:hover {
  background-color: var(--primary-soft);
  border-color: var(--primary);
}

.option-check input {
  margin: 0;
  cursor: pointer;
}

.option-check label {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--text-main);
  cursor: pointer;
}

/* --- Sport Gallery Section --- */
.sport-gallery {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--bg-main) 0%, var(--primary-soft) 50%, var(--bg-main) 100%);
}

.sport-gallery-top {
  padding-top: 8rem;
  padding-bottom: 4rem;
  background: linear-gradient(180deg, var(--secondary) 0%, hsl(30, 12%, 16%) 40%, var(--bg-main) 100%);
}

.sport-gallery-top .subtitle-section {
  color: var(--accent);
}

.sport-gallery-top .title-section {
  color: #ffffff;
}

.sport-gallery-top p {
  color: rgba(255, 255, 255, 0.7);
}

.sport-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

.sport-gallery-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(28, 26, 23, 0.08);
  border: 2px solid transparent;
  transition: var(--transition);
  cursor: default;
}

.sport-gallery-card:nth-child(even) {
  transform: translateY(1rem);
}

.sport-gallery-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(28, 26, 23, 0.7) 100%);
  z-index: 1;
  transition: var(--transition);
}

.sport-gallery-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(190, 155, 59, 0.2);
}

.sport-gallery-card:nth-child(even):hover {
  transform: translateY(calc(1rem - 8px));
}

.sport-gallery-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.sport-gallery-card:hover img {
  transform: scale(1.08);
}

.sport-gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  z-index: 2;
}

.sport-gallery-caption h3 {
  color: #ffffff;
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.sport-gallery-caption p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
  margin: 0;
}

/* --- Responsive updates for new sections --- */
@media (max-width: 768px) {
  .promo-grid {
    grid-template-columns: 1fr;
  }
  .options-grid {
    grid-template-columns: 1fr;
  }
  .sport-gallery-grid {
    grid-template-columns: 1fr;
  }
  .sport-gallery-card img {
    height: 320px;
  }
  .sport-gallery-card:nth-child(even) {
    transform: none;
  }
  .sport-gallery-card:nth-child(even):hover {
    transform: translateY(-8px);
  }
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  h1 { font-size: 2.75rem; }
  .section-padding { padding: 4.5rem 0; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .hero-subtitle { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .about-content-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .insurance-detail-grid { grid-template-columns: 1fr; gap: 3rem; }
  .cta-content { flex-direction: column; text-align: center; gap: 2rem; }
  .sport-gallery-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* Navigation mobile behavior trigger */
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--bg-card);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    gap: 1.75rem;
    z-index: 1050;
    transition: var(--transition);
    box-shadow: -10px 0 30px rgba(15, 23, 42, 0.05);
  }
  .nav-menu.open {
    right: 0;
  }
  .nav-menu .btn {
    width: 100%;
    margin-top: 1rem;
  }
  .hero-title { font-size: 2.5rem; }
  .values-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .services-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .review-slide { min-width: 100%; }
  .footer-top { grid-template-columns: 1fr; gap: 3rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cookie-container { flex-direction: column; text-align: center; gap: 1.5rem; }
  .cookie-actions { width: 100%; justify-content: center; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form-panel { padding: 2.5rem; }
  .legal-content { padding: 2.5rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.15rem; }
  .section-padding { padding: 3.5rem 0; }
  .cta-banner { padding: 2.5rem 1.5rem; }
  .cta-text h2 { font-size: 2rem; }
  .whatsapp-label { display: none; }
}
