/*
Theme Name: Compass Theme
Description: Tema premium diseñado para Compass - Abastecimiento Inteligente.
Author: Antigravity
Version: 4.4
*/

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

:root {
  --c-bg: #F4F6F9;
  --c-slate: #406093;
  --c-vibrant: #4C8CE4;
  --c-indigo: #2C5282;
  --c-white: #ffffff;
  --c-text: #1A202C;
  --c-whatsapp: #25D366;

  --c-bento-1: #7C3AED;
  --c-bento-2: #2563EB;
  --c-bento-3: #D1F594;
  --c-bento-4: #50DED1;
  --c-bento-5: #EA580C;
  --c-bento-6: #4F46E5;

  --shadow-float: 0 30px 60px -15px rgba(26, 5, 162, 0.15);
  --shadow-bento: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  padding-top: 80px;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 5%;
  width: 100%;
}

h1, h2, h3 {
  font-weight: 800;
  color: var(--c-indigo);
  line-height: 1.2;
  word-wrap: break-word;
}

h2 {
  font-size: 3rem;
}

h3 {
  font-size: 1.8rem;
}

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

.section-pad {
  padding: 5rem 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-vibrant);
  color: white;
  padding: 1rem 2rem;
  border-radius: 100px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.3s;
  gap: 10px;
  border: none;
  cursor: pointer;
  text-align: center;
  line-height: 1.2;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(76, 140, 228, 0.4);
}

.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--c-whatsapp);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: transform 0.3s;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo-container img {
  height: 35px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--c-text);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--c-vibrant);
}

.nav-cta {
  background: var(--c-vibrant);
  color: white !important;
  padding: 0.6rem 1.5rem;
  border-radius: 100px;
  box-shadow: 0 4px 10px rgba(76, 140, 228, 0.3);
  transition: 0.3s;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(76, 140, 228, 0.5);
}

.hero-bullets {
  margin: 1.5rem 0 2rem;
}

.hero-bullets h3 {
  font-size: 1.7rem;
  color: var(--c-indigo);
  font-weight: 800;
  margin-bottom: 0.8rem;
  line-height: 1.2;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0 0;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.15rem;
  color: #475569;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* Responsive Button below benefits section */
.section-cta {
  text-align: center;
  margin-top: 3.5rem;
  margin-bottom: 0;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.section-cta a {
  padding: 0.8rem 2.8rem;
  font-size: 1.15rem;
  background: #25D366;
  border-radius: 50px !important;
  color: white;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 20px -5px rgba(37, 211, 102, 0.4);
}

.section-cta p {
  font-size: 1rem;
  color: #475569;
  margin-top: 12px;
  font-weight: 500;
}

.hero-image {
  border-radius: 30px;
  box-shadow: var(--shadow-float);
  object-fit: cover;
}

.mobile-cta {
  display: none;
}

.hero-cta {
  display: block;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

.bento-card {
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  background: var(--c-bento-1);
  color: white;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-bento);
  transition: transform 0.3s;
}

.bento-card:hover {
  transform: translateY(-8px);
}

.bento-card.bg-1 { background: var(--c-bento-1); }
.bento-card.bg-2 { background: var(--c-bento-2); }
.bento-card.bg-3 { 
  background: var(--c-bento-3); 
  color: var(--c-indigo) !important; 
}
.bento-card.bg-3 h3 { color: var(--c-indigo) !important; }
.bento-card.bg-3 p { color: var(--c-indigo) !important; opacity: 1; }

.bento-card.bg-4 { 
  background: var(--c-bento-4); 
  color: var(--c-indigo) !important;
}
.bento-card.bg-4 h3 { color: var(--c-indigo) !important; }
.bento-card.bg-4 p { color: var(--c-indigo) !important; opacity: 1; }
.bento-card.bg-5 { background: var(--c-bento-5); }
.bento-card.bg-6 { background: var(--c-bento-6); }

.bento-header {
  padding: 2.5rem 2.5rem 1rem;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.bento-header h3 {
  color: white;
  font-size: 1.7rem;
  margin-bottom: 0.5rem;
}

.bento-header p {
  opacity: 0.9;
  font-size: 1.1rem;
  line-height: 1.4;
}

.bento-img-area {
  margin-top: auto;
  height: 250px;
  position: relative;
  background: #f8fafc;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  overflow: hidden;
}

.bento-img-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mega-row p {
  line-height: 1.6;
  margin-bottom: 1.2rem;
  margin-top: 0.5rem;
  display: block;
}

.mega-row p br {
  margin-bottom: 0.8rem;
  display: block;
  content: "";
}

.mega-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 8rem;
  align-items: center;
  margin-bottom: 8rem;
}

.mega-row.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.m-img {
  border-radius: 30px;
  box-shadow: var(--shadow-float);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.section-divider {
  height: 2px;
  width: 100%;
  max-width: 800px;
  margin: 5rem auto;
  background: linear-gradient(90deg, transparent, rgba(26, 5, 162, 0.4), transparent);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.review-bento {
  background: white;
  border: 2px solid #E2E8F0;
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  box-shadow: var(--shadow-bento);
  transition: transform 0.3s;
}

.review-bento:hover {
  transform: translateY(-5px);
  border-color: var(--c-vibrant);
}

.review-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.r-stars {
  color: #F59E0B;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.r-quote {
  font-size: 1.05rem;
  font-style: italic;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.r-author {
  font-weight: 700;
  color: var(--c-indigo);
  font-size: 1.1rem;
}

.r-role {
  font-size: 0.85rem;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.faq-section {
  background: transparent;
  padding: 5rem;
  border-radius: 40px;
  margin: 4rem 0;
}

.faq-container {
  display: block;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.faq-container > * {
  margin-left: auto;
  margin-right: auto;
}

.details-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
  width: 80%;
  margin: 0 auto;
}

.details-group details {
  text-align: left;
}

.details-group summary {
  text-align: left;
}

details {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

details[open] {
  background: white;
  border-color: var(--c-vibrant);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

summary {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--c-indigo);
  outline: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

details p {
  margin-top: 1rem;
  margin-bottom: 0;
  color: #1A202C;
  line-height: 1.5;
}

.alg-hero {
  background: var(--c-slate) url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80') center/cover;
  padding: 8rem 0;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.alg-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 5, 162, 0.8);
}

.alg-hero h1,
.alg-hero p {
  position: relative;
  z-index: 2;
  color: white;
}

.param-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 4rem;
}

.param-box {
  background: white;
  border: 2px solid #E2E8F0;
  border-radius: 30px;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.3s;
}

.param-box:hover {
  border-color: var(--c-vibrant);
}

.p-icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.comic-bubble {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  margin-bottom: 5rem;
  box-shadow: var(--shadow-bento);
}

.comic-speaker {
  position: absolute;
  bottom: -60px;
  width: 90px;
  z-index: 2;
}

.speaker-right {
  right: -20px;
}

.speaker-left {
  left: -20px;
}

.precios-hero {
  background: var(--c-slate);
  padding: 8rem 0;
  color: white;
}

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

.precio-gigante {
  font-size: 4rem;
  font-weight: 800;
  color: white;
  line-height: 1;
  margin: 1rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 5rem;
}

.feat-item {
  display: flex;
  gap: 1.5rem;
}

.feat-item img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.form-box {
  background: white;
  padding: 3rem;
  border-radius: 30px;
  box-shadow: var(--shadow-bento);
  max-width: 600px;
  margin: 4rem auto 0;
}

.form-grp {
  margin-bottom: 1.5rem;
}

.form-grp input,
.form-grp textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-family: inherit;
}

.site-footer {
  background: var(--c-slate);
  color: white;
  padding: 4rem 0 2rem;
  text-align: center;
}

.bento-img-area {
  position: relative;
  overflow: hidden;
}

.bento-img-area img {
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.bento-img-area::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: all 0.6s;
}

.bento-card:hover .bento-img-area::after {
  left: 150%;
}

.bento-card:hover .bento-img-area img {
  filter: brightness(1.3) contrast(1.1);
  transform: scale(1.08);
}

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

.float-anim {
  animation: bentoFloat 4s ease-in-out infinite;
}

@media(max-width: 992px) {
  body {
    padding-top: 150px !important;
  }

  .hero,
  .mega-row,
  .faq-container,
  .param-grid,
  .precios-grid,
  .features-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .mega-row.reverse {
    grid-template-columns: 1fr;
  }

  .mega-row.reverse>div:nth-child(1) {
    order: -1;
  }

  .mega-row>div:nth-child(2) {
    order: -1;
  }

  .m-img {
    display: block;
    margin: 0 auto;
  }

@media(min-width: 769px) {
  .faq-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .details-group {
    text-align: left;
    width: 100%;
  }
}

.faq-container {
  text-align: center !important;
  max-width: 1000px;
  margin: 0 auto;
}

.faq-container > * {
  margin-left: auto;
  margin-right: auto;
}

  .faq-container img {
    margin: 0 auto;
    width: 120px !important;
  }
}

@media(max-width: 768px) {
  body {
    padding-top: 130px !important;
  }

  .nav-wrap {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: auto;
    padding: 15px 0;
    gap: 10px;
  }

  .nav-links {
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
  }

  .nav-links a {
    font-size: 0.9rem;
  }

  .nav-cta {
    display: none !important;
  }

  h1 {
    font-size: 2.2rem !important;
    margin-bottom: 1rem;
    word-wrap: break-word;
  }

  h2 {
    font-size: 1.8rem !important;
  }

  h3 {
    font-size: 1.2rem !important;
  }

  .hero-bullets h3 {
    font-size: 1.4rem !important;
  }

  p {
    font-size: 1rem !important;
  }

  .container > p {
    font-size: 1.2rem !important;
  }

  .mega-row p {
    font-size: 1.05rem !important;
  }

  .section-pad {
    padding: 3rem 0;
    padding-bottom: 3rem !important;
  }

  .section-pad h2 {
    margin-top: 1rem !important;
    margin-bottom: 2.5rem !important;
  }

  .section-pad * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .section-divider {
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
  }

  .container {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .bento-grid {
    margin-top: 0 !important;
    gap: 2.5rem;
  }

  .bento-header h3 {
    margin-bottom: 1.2rem !important;
  }

  .section-cta {
    margin-top: 1.5rem;
    margin-bottom: 4.5rem;
  }

  .section-cta a {
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
  }

  .section-cta p {
    font-size: 0.8rem !important;
    margin-top: 15px !important;
  }

  .mobile-cta {
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
  }

  .mega-row {
    gap: 1.5rem !important;
    margin-top: 3rem !important;
    margin-bottom: 4.5rem !important;
  }

  .mega-row h3 {
    margin-bottom: 5rem;
  }

  .mega-row p {
    margin-top: 1.5rem !important;
  }

  .hero-cta {
    display: none !important;
  }

  .hero {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 2rem 0 0 !important;
    gap: 1.5rem;
  }

  .hero-content {
    display: contents;
  }

  .hero h1 {
    order: 1;
    margin-bottom: 0;
  }

  .hero-image-container {
    order: 2;
    width: 100%;
  }

  .hero-image {
    width: 89% !important;
    max-width: 380px !important;
    margin: 0 auto;
  }

  .hero-bullets {
    order: 3;
    margin-top: 1rem !important;
  }

  .hero-image.float-anim {
    animation: none;
  }

  .mobile-cta {
    display: block !important;
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 2rem;
  }

  .mobile-cta .btn-primary {
    width: auto;
    font-size: 1rem;
    padding: 0.7rem 1.5rem;
  }

  .mobile-cta p {
    font-size: 0.9rem !important;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    margin-top: 2rem;
    gap: 1.5rem;
  }

  .bento-card {
    min-height: auto;
    border-radius: 20px;
    margin-bottom: 1rem;
  }

  .bento-header {
    padding: 1.5rem 1.5rem 2rem;
  }

  .bento-header h3 {
    font-size: 1.4rem;
  }

  .bento-img-area {
    height: 180px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .mega-row {
    gap: 1.5rem;
    text-align: center;
    margin-bottom: 3.5rem;
  }

  .faq-section {
    padding: 2rem 1rem;
    border-radius: 20px;
    margin: 2rem 0;
  }

  .details-group {
    gap: 0.75rem;
    width: 98%;
  }

  summary {
    font-size: 1rem;
    text-align: left;
  }

  details {
    padding: 1rem;
  }

  .whatsapp-float {
    width: 56px;
    height: 56px;
    font-size: 1.6rem;
    bottom: 1rem;
    right: 1rem;
  }

  .site-footer {
    padding: 3rem 1rem 1.5rem;
  }

  .site-footer p {
    font-size: 0.95rem !important;
  }
}

@media(max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  h1 {
    font-size: 1.5rem !important;
  }

  h2 {
    font-size: 1.5rem !important;
  }

  .hero-image {
    max-width: 220px;
  }

  .bento-img-area {
    height: 150px;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
  }
}