/*
Theme Name: SabertIA Landing
Theme URI: https://sabertia.eu/
Author: Antigravity AI
Author URI: https://sabertia.eu/
Description: Premium landing page theme for SabertIA Energía.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sabertia-landing
*/

html { scroll-behavior: smooth; }
:root {
  /* Brand corporate palette */
  --bg-color: #FFFFFF;
  --bg-secondary: #F8FAFC; /* Light gray section divider */
  --text-primary: #1E293B;
  --text-secondary: #475569;
  
  /* Logotype Palette */
  --cyan-brand: #00B4D8;
  --blue-brand: #0077B6;
  --violet-brand: #7209B7;
  
  --border-light: #E2E8F0;
  --bg-card: #FFFFFF;
  
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius-sm: 12px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.05);
}

* {
  margin: 0; padding: 0; box-sizing: border-box;
}

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

h1, h2, h3, h4 { font-family: var(--font-heading); letter-spacing: -0.02em; color: #0F172A; }
a { text-decoration: none; color: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 120px 0; }
.section-gray { background-color: var(--bg-secondary); }
.center { text-align: center; }

/* Official Assets (Logo, Mascot) */
.main-logo {
  height: 90px;
  width: auto;
  display: block;
}
.footer-logo-img {
  height: 80px;
  width: auto;
  opacity: 0.9;
}
.bot-mascot {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.bot-mascot-wrapper {
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 12px 24px rgba(0, 119, 182, 0.2));
}
.bot-mascot-inline {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 50%;
  vertical-align: middle;
  margin-left: 10px;
  border: 2px solid var(--cyan-brand);
}

/* Animations Make Placeholder feel like a Mascot */
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.float-anim-1 { animation: floatY 4s ease-in-out infinite; }
.float-anim-2 { animation: floatY 3s ease-in-out infinite alternate-reverse; }
.float-anim-3 { animation: floatY 3.5s ease-in-out infinite; }

/* Typo Overrides */
.gradient-text-light {
  background: linear-gradient(135deg, var(--blue-brand) 0%, var(--violet-brand) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Cards Light */
.light-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.light-card:hover {  
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08); /* slight elevated shadow */
  border-color: var(--cyan-brand); 
}

/* Base Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: 100px; font-weight: 600; font-family: var(--font-heading);
  transition: var(--transition); cursor: pointer; border: none;
}
.btn-primary { background: var(--blue-brand); color: #FFFFFF; }
.btn-primary:hover {
  background: var(--violet-brand);
  transform: translateY(-2px); box-shadow: 0 10px 25px rgba(114, 9, 183, 0.2);
}
.btn-primary-invert { background: #FFFFFF; color: var(--blue-brand); }
.btn-primary-invert:hover { color: var(--violet-brand); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }

.btn-large { padding: 16px 36px; font-size: 1.1rem; }

/* Navbar */
.glass-effect-light {
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}
.navbar { position: fixed; top: 0; width: 100%; z-index: 100; padding: 24px 0; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a:not(.btn) { color: var(--text-secondary); font-size: 0.95rem; font-weight: 500; transition: var(--transition); }
.nav-links a:not(.btn):hover { color: var(--blue-brand); }

/* Hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding-top: 80px; }
.hero-bg-accent {
  position: absolute; top: -10vh; right: -10vw;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.05) 0%, rgba(255,255,255,0) 70%);
  z-index: -1; pointer-events: none;
}
.hero-container { display: grid; grid-template-columns: 1fr 0.8fr; gap: 64px; align-items: center; }
.badge {
  display: inline-block; padding: 8px 16px; border-radius: 100px;
  background: rgba(0, 119, 182, 0.1); color: var(--blue-brand);
  font-weight: 600; font-size: 0.85rem; margin-bottom: 24px;
}
.hero h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 24px; }
.hero-subtitle { font-size: 1.2rem; color: var(--text-secondary); margin-bottom: 40px; max-width: 90%; }
.hero-actions-wrapper { display: flex; align-items: center; gap: 32px; }
.hero-ctas { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.hero-ctas .subtext { font-size: 0.85rem; color: var(--text-secondary); }

/* Avatares y Testimonios */
.hero-testimonial { padding: 32px; position: relative; }
.hero-testimonial::before {
  content: '”'; position: absolute; top: 10px; right: 20px;
  font-size: 4rem; color: var(--border-light); font-family: serif;
}
.testimonial-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.avatar-hero { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-light); }
.testimonial-header strong { display: block; font-size: 1.1rem; color: var(--text-primary); }
.testimonial-header span { color: var(--text-secondary); font-size: 0.9rem; }
.quote { font-size: 1.1rem; font-style: italic; color: var(--text-secondary); line-height: 1.6; }
.quote strong { color: var(--blue-brand); }

/* Social Proof */
.section-subtitle { color: var(--text-secondary); font-size: 1.1rem; margin-top: 10px; }
.bento-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 50px; }
.bento-card { padding: 32px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.bento-card.x-large { grid-column: span 2; }
.flex-row { display: flex; gap: 32px; align-items: center; }

/* Faces Focused Avatars */
.avatar-wrapper-large { position: relative; width: 140px; height: 140px; flex-shrink: 0; }
.avatar-wrapper-medium { width: 90px; height: 90px; margin-bottom: 20px; position: relative; }
.avatar-face {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  border: 4px solid #FFFFFF; box-shadow: 0 12px 24px rgba(0,0,0,0.12);
  background-color: var(--bg-secondary);
}
.metric-badge {
  position: absolute; bottom: 0; right: -15px;
  padding: 8px 16px; border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  z-index: 2;
}
.metric-ribbon {
  display: inline-block; padding: 6px 14px;
  border-radius: 100px; font-size: 0.85rem; font-weight: 700; margin-bottom: 16px;
}
.text-bg { background-color: var(--blue-brand); color: #fff; }

.text-content h3, .bento-card h3 { font-size: 1.5rem; margin-bottom: 4px; color: var(--text-primary); }
.business { color: var(--text-secondary); margin-bottom: 16px; font-size: 0.95rem; font-weight: 500;}
.review-link { display: inline-block; margin-top: 16px; font-size: 0.85rem; font-weight: 600; color: var(--blue-brand); transition: var(--transition); border-bottom: 1px solid transparent; }
.review-link:hover { color: var(--violet-brand); border-bottom-color: var(--violet-brand); }

/* How It Works */
.how-it-works .section-title { margin-bottom: 48px; }
.how-it-works-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.section-subtitle-left { color: var(--text-secondary); font-size: 1.15rem; margin-top: 15px;}
.steps-list { list-style: none; margin-top: 40px; display: flex; flex-direction: column; gap: 32px; }
.steps-list li { display: flex; gap: 24px; }
.step-num { 
  font-family: var(--font-heading); font-size: 1.25rem; font-weight: 800; 
  width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; flex-shrink: 0; color: #FFFFFF;
}
.step-bg-1 { background: var(--cyan-brand); }
.step-bg-2 { background: var(--blue-brand); }
.step-bg-3 { background: var(--violet-brand); }
.step-text h3 { margin-bottom: 8px; font-size: 1.25rem; }
.step-text p { color: var(--text-secondary); }
.flex-title { display: flex; align-items: center; }

/* Mockup Dashboard */
.analytics-mockup { padding: 24px; background: #FFFFFF; }
.mockup-header { display: flex; justify-content: space-between; margin-bottom: 32px; color: var(--text-secondary); font-size: 0.9rem; font-weight: 600;}
.mockup-header .dots span { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--border-light); margin-left: 6px;}
.mockup-chart { display: flex; align-items: flex-end; gap: 12px; height: 200px; }
.bar { flex: 1; background: var(--border-light); border-radius: 6px 6px 0 0; transition: 1s ease; }
.bar-1 { height: 60%; } .bar-2 { height: 80%; } .bar-3 { height: 100%; position: relative; background: var(--blue-brand);}
.bar-4 { height: 40%; } .bar-5 { height: 50%; }
.tooltip { 
  position: absolute; top: -40px; left: 50%; transform: translateX(-50%);
  background: var(--text-primary); color: #fff;
  padding: 6px 12px; border-radius: 8px; font-size: 0.8rem; font-weight: bold; white-space: nowrap;
}

/* Editorial Block */
.wrap-editorial { text-align: center; max-width: 800px; }
.facyre-badge { 
  display: inline-block; padding: 8px 20px; border: 1px solid var(--border-light);
  border-radius: 100px; color: var(--text-secondary); margin-bottom: 24px; font-size: 0.9rem;
  background: #fff;
}
#prensa { scroll-margin-top: 180px; }
.facyre-badge-link { display: inline-block; transition: var(--transition); }
.facyre-badge-link:hover { transform: scale(1.05); }
.facyre-badge-link:hover .facyre-badge { border-color: var(--blue-brand); color: var(--blue-brand); box-shadow: 0 4px 12px rgba(0, 119, 182, 0.1); }

.editorial-block h2 { font-size: 2.5rem; margin-bottom: 16px; }
.editorial-subheading { color: var(--cyan-brand); font-weight: 700; font-size: 1.2rem; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.05em; }
.editorial-block p { font-size: 1.15rem; color: var(--text-secondary); line-height: 1.8; }

/* Benefits */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.benefit-card { padding: 40px 32px; text-align: left; }
.stroke-cyan:hover { border-color: var(--cyan-brand); }
.stroke-blue:hover { border-color: var(--blue-brand); }
.stroke-violet:hover { border-color: var(--violet-brand); }
.benefit-card .icon { font-size: 2.5rem; margin-bottom: 24px; }
.benefit-card h3 { margin-bottom: 12px; font-size: 1.25rem; }
.benefit-card p { color: var(--text-secondary); }

/* Final CTA */
.cta-bot-wrapper { display: flex; gap: 30px; justify-content: center; align-items: center;}
.bg-gradient-brand { background: linear-gradient(135deg, var(--blue-brand) 0%, var(--violet-brand) 100%); border:none; }
.cta-interior { padding: 80px 40px; }
.final-cta h2 { font-size: 2.5rem; margin-bottom: 16px; max-width: 800px; margin-inline: auto; color: #FFFFFF;}
.white-text { color: rgba(255,255,255,0.9) !important; font-size: 1.2rem; margin-bottom: 40px;}

/* Footer */
.footer { border-top: 1px solid var(--border-light); padding: 64px 0 32px; }
.footer-flex { display: flex; justify-content: space-between; margin-bottom: 64px; flex-wrap: wrap; gap: 32px; }
.footer-brand p { color: var(--text-secondary); margin-top: 12px; font-size: 0.9rem; max-width: 300px; }
.footer-links, .footer-socials { display: flex; flex-direction: column; gap: 12px; }
.footer-links a, .footer-socials a { color: var(--text-secondary); font-weight: 500; transition: var(--transition); }
.footer-links a:hover, .footer-socials a:hover { color: var(--blue-brand); }
.footer-bottom { border-top: 1px solid var(--border-light); padding-top: 24px; text-align: center; color: #94A3B8; font-size: 0.85rem;}

/* Responsive */
@media (max-width: 900px) {
  .section-padding { padding: 60px 0; }
  .navbar { padding: 12px 0; }
  .main-logo { height: 60px; }
  
  .hero { align-items: flex-start; padding-top: 100px; min-height: auto; padding-bottom: 60px; }
  .hero-container { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 2.1rem; line-height: 1.2; }
  .hero-subtitle { font-size: 1.05rem; max-width: 100%; margin-bottom: 32px; }
  .hero-actions-wrapper { flex-direction: column; align-items: stretch; gap: 24px; }
  .hero-ctas { align-items: center; width: 100%; }
  .btn-large { width: 100%; padding: 16px; }

  .how-it-works-grid { grid-template-columns: 1fr; gap: 40px; }
  .bento-grid { grid-template-columns: 1fr; gap: 20px; }
  .bento-card.x-large { grid-column: span 1; }
  .bento-card.x-large .flex-row { flex-direction: column; align-items: center; text-align: center; }
  
  .avatar-wrapper-large { width: 100px; height: 100px; margin-bottom: 24px; }
  .metric-badge { 
    right: -10px; bottom: -5px; 
    padding: 6px 12px; 
    border-radius: 12px;
  }
  .metric-badge .value { font-size: 0.9rem; }
  .metric-badge .label { font-size: 0.7rem; }

  .grid-3 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .text-center-mobile .avatar-wrapper-medium { margin: 0 auto 20px;}
  .text-center-mobile { text-align: center;}
  
  .editorial-block h2 { font-size: 1.8rem; }
  .final-cta h2 { font-size: 1.8rem; }
  .cta-bot-wrapper { flex-direction: column; width: 100%; }
}

/* Scroll Reveals */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }
