:root{--brand:#1a73e8;--text:#202124;--muted:#5f6368}
:root{--star:#fbbc04}
html,body{height:100%}
body{margin:0;font-family:'Roboto',system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;color:var(--text);background:#fff}
body{padding-top:76px}
html{scroll-behavior:smooth}
section{padding:64px 0}
.section-title{font-weight:700}
.section-title{position:relative}
.section-title::after{content:"";position:absolute;left:50%;transform:translateX(-50%) scaleX(0);bottom:-10px;height:3px;width:64px;background:var(--brand);border-radius:3px;opacity:.9;transform-origin:left}
.reveal.show .section-title{animation:titleIn .5s ease both}
.reveal.show .section-title::after{animation:underlineGrow .6s ease .15s both}
.lead{color:var(--muted)}
.hero{height:80vh}
.hero{padding:0}
.hero .carousel-item img{height:80vh;object-fit:cover}
.hero .carousel-item.active img{animation:slowZoom 8s ease-in-out forwards}
.hero-overlay{position:absolute;inset:0;padding:0 16px}
.hero-overlay{background:linear-gradient(180deg,rgba(0,0,0,.6) 0%,rgba(0,0,0,.4) 100%)}
.hero-overlay h1,.hero-overlay p{color:#fff;text-shadow: 0 2px 4px rgba(0,0,0,0.5);}
.hero-overlay .btn{box-shadow:0 6px 16px rgba(26,115,232,.3)}
.btn-primary{background-color:var(--brand);border-color:var(--brand)}
.btn-primary:hover{background-color:#1765cf;border-color:#1765cf}
.btn-outline-primary{color:var(--brand);border-color:var(--brand)}
.btn-outline-primary:hover{background-color:var(--brand);color:#fff}
/* Hero Carousel Animations */
.hero .carousel-item .hero-overlay .col-lg-8 > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.hero .carousel-item.active .hero-overlay .col-lg-8 > * {
  opacity: 1;
  transform: translateY(0);
}
.hero .carousel-item.active .hero-overlay .col-lg-8 > *:nth-child(1) { transition-delay: 0.2s; }
.hero .carousel-item.active .hero-overlay .col-lg-8 > *:nth-child(2) { transition-delay: 0.3s; }
.hero .carousel-item.active .hero-overlay .col-lg-8 > *:nth-child(3) { transition-delay: 0.4s; }

.flow-wrap{gap:16px}
.flow-step{width:120px;height:120px;border-radius:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#fff;box-shadow:0 4px 14px rgba(0,0,0,.1);text-align:center;transition:transform .25s ease,box-shadow .25s ease}
.flow-step i{font-size:28px;color:var(--brand)}
.flow-step:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(0,0,0,.12)}
/* Parallax Section */
.parallax-section {
  position: relative;
  min-height: 420px;
  overflow: hidden; /* Important to clip the large background */
  z-index: 1;
}

.parallax-bg {
  position: absolute;
  top: -40%;
  left: 0;
  width: 100%;
  height: 180%; /* Taller to allow movement */
  background-image: url('/assets/images/parallax.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  will-change: transform;
}

.parallax-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 0;
  pointer-events: none;
}

.parallax-section .overlay {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}

.parallax-section .section-title, 
.parallax-section .lead {
  color: #fff;
}
.card{border:1px solid #e8eaed;border-radius:16px;box-shadow:0 2px 10px rgba(0,0,0,.06)}
.price-card .btn-buy{transition:transform .2s ease,box-shadow .2s ease,background-color .2s ease;background-color:var(--brand);border-color:var(--brand)}
.price-card .btn-buy:hover{transform:translateY(-1px) scale(1.04);box-shadow:0 8px 20px rgba(26,115,232,.3);background-color:#1765cf;border-color:#1765cf}
.price-card{position:relative;transition:transform .15s ease,box-shadow .2s ease;will-change:transform}
.price-card:hover{box-shadow:0 12px 28px rgba(0,0,0,.12)}
.price-card.featured{border:2px solid var(--brand);box-shadow:0 12px 28px rgba(26,115,232,.18);transform:translateY(-2px)}
.price-card.featured .btn-buy{background-color:#1765cf;border-color:#1765cf}
.price-badge{position:absolute;top:12px;right:12px;background:var(--brand);color:#fff;border-radius:999px;padding:6px 12px;font-weight:700;font-size:.75rem;box-shadow:0 6px 16px rgba(26,115,232,.24)}
.footer{background:#f8f9fa;color:var(--muted)}
.card-img-top{height:200px;object-fit:cover}
.reveal{opacity:0}
.reveal.show{opacity:1;animation:fadeUp .6s ease both}
.parallax-section.reveal.show{animation:fadeOnly .6s ease both}
.price-grid .price-card{opacity:0;transform:translateY(12px)}
#precios.reveal.show .price-grid .price-card{animation:fadeUp .5s ease both}
#precios.reveal.show .price-grid>[class*="col-"]:nth-child(1) .price-card{animation-delay:.05s}
#precios.reveal.show .price-grid>[class*="col-"]:nth-child(2) .price-card{animation-delay:.15s}
#precios.reveal.show .price-grid>[class*="col-"]:nth-child(3) .price-card{animation-delay:.25s}
#precios.reveal.show .price-grid>[class*="col-"]:nth-child(4) .price-card{animation-delay:.35s}
.casos-grid .card{opacity:0;transform:translateY(12px)}
#casos.reveal.show .casos-grid .card{animation:fadeUp .5s ease both}
#casos.reveal.show .casos-grid>[class*="col-"]:nth-child(1) .card{animation-delay:.05s}
#casos.reveal.show .casos-grid>[class*="col-"]:nth-child(2) .card{animation-delay:.1s}
#casos.reveal.show .casos-grid>[class*="col-"]:nth-child(3) .card{animation-delay:.15s}
#casos.reveal.show .casos-grid>[class*="col-"]:nth-child(4) .card{animation-delay:.2s}
#casos.reveal.show .casos-grid>[class*="col-"]:nth-child(5) .card{animation-delay:.25s}
#casos.reveal.show .casos-grid>[class*="col-"]:nth-child(6) .card{animation-delay:.3s}
.testimonials-grid .testimonial-card{opacity:0;transform:translateY(12px)}
#testimonios.reveal.show .testimonials-grid .testimonial-card{animation:fadeUp .5s ease both}
#testimonios.reveal.show .testimonials-grid>[class*="col-"]:nth-child(1) .testimonial-card{animation-delay:.05s}
#testimonios.reveal.show .testimonials-grid>[class*="col-"]:nth-child(2) .testimonial-card{animation-delay:.15s}
#testimonios.reveal.show .testimonials-grid>[class*="col-"]:nth-child(3) .testimonial-card{animation-delay:.25s}
.flow-wrap .flow-step{opacity:0}
.reveal.show .flow-step{animation:zoomIn .5s ease both}
.flow-wrap .flow-step:nth-child(1){animation-delay:.05s}
.flow-wrap .flow-step:nth-child(3){animation-delay:.15s}
.flow-wrap .flow-step:nth-child(5){animation-delay:.25s}
.flow-wrap .flow-step:nth-child(7){animation-delay:.35s}
.flow-wrap .flow-step:nth-child(9){animation-delay:.45s}

/* FAQ Staggered Animation */
.faq-card {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  border: 1px solid #f0f2f5;
  transition: all 0.3s ease;
  height: 100%;
  opacity: 0;
  transform: translateY(15px);
}
.faq-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-color: #d2e3fc;
}
.faq-icon {
  width: 48px;
  height: 48px;
  background-color: #e8f0fe;
  color: #1a73e8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

#faq.reveal.show .faq-card {
  animation: fadeUp 0.6s ease forwards;
}
#faq.reveal.show .col-md-6:nth-child(1) .faq-card { animation-delay: 0.1s; }
#faq.reveal.show .col-md-6:nth-child(2) .faq-card { animation-delay: 0.2s; }
#faq.reveal.show .col-md-6:nth-child(3) .faq-card { animation-delay: 0.3s; }
#faq.reveal.show .col-md-6:nth-child(4) .faq-card { animation-delay: 0.4s; }
#faq.reveal.show .col-md-6:nth-child(5) .faq-card { animation-delay: 0.5s; }
#faq.reveal.show .col-md-6:nth-child(6) .faq-card { animation-delay: 0.6s; }

/* General Text Reveal Animation */
.text-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.show .text-reveal,
.text-reveal.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeUp{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes zoomIn{from{opacity:0;transform:scale(.96)}to{opacity:1;transform:scale(1)}}
@keyframes fadeOnly{from{opacity:0}to{opacity:1}}
@keyframes titleIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes underlineGrow{from{transform:translateX(-50%) scaleX(0)}to{transform:translateX(-50%) scaleX(1)}}
@keyframes slowZoom{from{transform:scale(1)}to{transform:scale(1.06)}}
.testimonial-card{background:#fff;border-radius:16px;box-shadow:0 6px 20px rgba(0,0,0,.08);padding-top:56px;transition:transform .2s ease,box-shadow .2s ease}
.testimonial-card:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(0,0,0,.12)}
.testimonial-avatar{width:100px;height:100px;border-radius:50%;overflow:hidden;border:4px solid #fff;box-shadow:0 6px 16px rgba(0,0,0,.15);position:absolute;left:50%;top:0;transform:translate(-50%,-50%)}
.testimonial-avatar img{width:100%;height:100%;object-fit:cover}
.testimonial-name{font-weight:700;color:var(--text)}
.testimonials-grid .testimonial-name{opacity:0;transform:translateY(6px)}
#testimonios.reveal.show .testimonials-grid .testimonial-name{animation:titleIn .45s ease both}
.testimonial-quote{font-style:italic;color:var(--muted);line-height:1.6}
.testimonial-stars i{color:var(--star);margin:0 2px}
.testimonial-role{font-weight:500;color:var(--text)}
.testimonial-signature{font-family:'Segoe Script','Lucida Handwriting',cursive;font-size:1rem;color:var(--muted)}
.footer .fab{opacity:0;transform:translateY(8px)}
.footer.reveal.show .fab{animation:fadeUp .5s ease both}
.footer.reveal.show .fab:nth-child(1){animation-delay:.05s}
.footer.reveal.show .fab:nth-child(2){animation-delay:.1s}
.footer.reveal.show .fab:nth-child(3){animation-delay:.15s}
.footer.reveal.show .fab:nth-child(4){animation-delay:.2s}
.hero-overlay h1{opacity:0;transform:translateY(8px)}
.hero-overlay.reveal.show h1{animation:titleIn .6s ease both}
.price-card .card-title{opacity:0;transform:translateY(6px)}
#precios.reveal.show .price-card .card-title{animation:titleIn .45s ease both}
.casos-grid .card-title{opacity:0;transform:translateY(6px)}
#casos.reveal.show .casos-grid .card-title{animation:titleIn .45s ease both}
.price-card.featured::after{content:"";position:absolute;inset:0;border-radius:16px;background:linear-gradient(120deg,rgba(255,255,255,.0) 20%,rgba(255,255,255,.35) 40%,rgba(255,255,255,.0) 60%);transform:translateX(-120%);opacity:0;pointer-events:none}
.price-card.featured:hover::after{animation:sheenSlide .8s ease}
@keyframes sheenSlide{0%{opacity:0;transform:translateX(-120%)}20%{opacity:.3}100%{opacity:0;transform:translateX(120%)}}

/* Plan Cards */
.plan-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
  overflow: hidden;
}

.plan-card:hover {
  transform: translateY(-10px) !important;
  box-shadow: 0 1rem 3rem rgba(0,0,0,.175)!important;
}

/* Ensure the middle card keeps its scale on hover or scales more */
.plan-card.shadow-lg:hover {
  transform: scale(1.05) translateY(-10px) !important;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  /* Fix body overflow and padding */
  body {
    overflow-x: hidden;
    padding-top: 56px; /* Reduced padding for mobile navbar */
  }

  /* Hero Section */
  .hero {
    height: auto;
    width: 100%;
    margin: 0;
  }
  
  .hero .carousel-item img {
    height: auto; /* Let image aspect ratio define height - SHOWS FULL IMAGE */
    min-height: 500px; /* Minimum height to ensure text fits */
    width: 100%;
    object-fit: cover; /* Only crops if image is shorter than 500px */
    object-position: top center; /* Prioritize faces at the top */
  }

  .hero .display-4 {
    font-size: 1.4rem; /* Smaller title */
    line-height: 1.2;
    margin-bottom: 0.5rem;
    padding: 0 5px;
  }
  
  .hero .lead {
    font-size: 0.95rem; /* Smaller text body */
    margin-top: 0.5rem !important;
    line-height: 1.4;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Limit to 4 lines */
    -webkit-box-orient: vertical;
    overflow: hidden; /* Hide excess text if too long */
  }

  .hero-overlay {
    background: transparent; /* Removed dark overlay as requested */
    text-align: center;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Parallax Mobile Fix */
  .parallax-section {
    min-height: 250px; /* Reduced height to help image fit better width-wise */
  }

  .parallax-section .overlay {
    padding: 40px 0; /* Reduced padding for mobile */
  }

  .parallax-bg {
    background-image: url('/assets/images/parallax%20movil.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 115%; /* Minimized extra height to reduce zooming/cropping */
    top: -7.5%;
  }

  .hero-overlay h1, .hero-overlay p {
    text-shadow: 0 2px 8px rgba(0,0,0,0.9); /* Stronger shadow for mobile */
  }

  .hero-overlay .container {
    width: 100%;
    max-width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }

  /* Force centered text on mobile even if Bootstrap utility is present */
  .hero-overlay .text-start {
    text-align: center !important;
    width: 100%;
  }

  /* Stack buttons */
  .hero-overlay .btn {
    display: block;
    width: 100%;
    margin-right: 0 !important;
    margin-bottom: 0.75rem;
    padding: 0.8rem; /* Make buttons slightly more compact vertically */
  }

  /* Footer */
  .footer .col-12 {
    text-align: center;
  }

  .footer .d-flex {
    justify-content: center;
  }
  
  .footer h5 {
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-weight: bold;
    color: var(--brand);
  }

  .footer ul li {
    margin-bottom: 0.5rem;
  }

  /* Advantages Section Mobile */
  .advantage-wrapper {
    padding: 16px !important; /* Reduced from 48px to give more space to cards */
  }
  
  .advantage-card {
    width: 100%; /* Ensure it takes full width */
  }
}

/* Google Color Outline Buttons */
.btn-outline-google-green {
  color: #34A853;
  border: 2px solid #34A853;
  background-color: #fff;
  transition: all 0.3s ease;
}
.btn-outline-google-green:hover {
  background-color: #34A853;
  color: #fff;
  box-shadow: 0 4px 12px rgba(52, 168, 83, 0.3);
}

.btn-outline-google-red {
  color: #EA4335;
  border: 2px solid #EA4335;
  background-color: #fff;
  transition: all 0.3s ease;
}
.btn-outline-google-red:hover {
  background-color: #EA4335;
  color: #fff;
  box-shadow: 0 4px 12px rgba(234, 67, 53, 0.3);
}

.btn-outline-google-blue {
  color: #4285F4;
  border: 2px solid #4285F4;
  background-color: #fff;
  transition: all 0.3s ease;
}
.btn-outline-google-blue:hover {
  background-color: #4285F4;
  color: #fff;
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

/* Step Card Styles */
.step-number {
  font-size: 2.5rem;
  font-weight: 300;
  color: #9aa0a6;
  line-height: 1;
}
.step-divider {
  height: 4px;
  width: 100%;
  background-color: var(--brand);
  border-radius: 2px;
  margin-top: 8px;
  margin-bottom: 24px;
  transform-origin: left;
  transition: transform 0.3s ease;
}
.step-card {
  height: 100%;
  padding: 16px;
  transition: transform 0.3s ease;
}
.step-card:hover .step-divider {
  transform: scaleX(1.05);
}
.step-card h3 {
  font-size: 1.5rem;
  color: var(--text);
}
.step-card p {
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Advantages Section */
.advantage-wrapper {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  padding: 48px;
}
.advantage-card {
  background-color: #d2e3fc; /* Light blue similar to image */
  border-radius: 8px;
  padding: 32px 24px;
  height: 100%;
  border: none;
}
.advantage-icon {
  width: 40px;
  height: 40px;
  background-color: var(--brand);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 20px;
}
