/* ===========================
   PrestaMágico – style.css
   Primary: #6A53DD
=========================== */

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

:root {
  --primary:    #6A53DD;
  --primary-d:  #5640c0;
  --primary-l:  #8b73f0;
  --primary-bg: #f7f6ff;
  --text:       #1a1a2e;
  --text-muted: #6b7280;
  --white:      #ffffff;
  --border:     #e5e7eb;
  --radius:     14px;
  --shadow:     0 4px 24px rgba(106,83,221,.12);
  --shadow-sm:  0 2px 8px rgba(106,83,221,.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}

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

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

/* ===== CONTAINER ===== */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================
   NAVBAR
=========================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

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

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.5px;
}
.logo span { color: var(--primary); }

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: .92rem;
  padding: 6px 14px;
  border-radius: 8px;
  transition: background .2s, color .2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: var(--primary-bg);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
  padding: 4px;
}

/* ===========================
   BUTTONS
=========================== */
.btn-primary {
  display: inline-block;
  padding: 14px 36px;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 6px 20px rgba(106,83,221,.35);
}
.btn-primary:hover {
  background: var(--primary-d);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(106,83,221,.4);
  text-decoration: none;
  color: var(--white);
}

.btn-white {
  display: inline-block;
  padding: 14px 36px;
  background: var(--white);
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
}
.btn-white:hover {
  background: var(--primary-bg);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--primary);
}

.btn-full { width: 100%; text-align: center; }

/* ===========================
   HERO (index)
=========================== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, #8b73f0 60%, #a78cf5 100%);
  color: var(--white);
  padding: 100px 0 80px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.2);
  color: var(--white);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,.3);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
  line-height: 1.15;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  opacity: .92;
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: 50px; }

/* ===========================
   PAGE HERO (inner pages)
=========================== */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #8b73f0 100%);
  color: var(--white);
  padding: 70px 0 60px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 10px;
}
.page-hero p {
  font-size: 1.05rem;
  opacity: .88;
}

/* Privacy page hero variant */
.privacy-hero {
  padding: 80px 0 70px;
  background: linear-gradient(135deg, #1a1a2e 0%, var(--primary) 60%, #8b73f0 100%);
}
.privacy-hero-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  animation: float 3s ease-in-out infinite;
}
.privacy-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -.5px;
}
.privacy-hero-sub {
  font-size: 1.1rem;
  opacity: .85;
  font-weight: 500;
  letter-spacing: .5px;
  text-transform: uppercase;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* ===========================
   SECTION COMMON
=========================== */
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 10px;
  color: var(--text);
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 48px;
}

/* ===========================
   FEATURES
=========================== */
.features {
  padding: 90px 0 80px;
  background: var(--primary-bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
  border: 1px solid var(--border);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary);
}

.feature-card p {
  color: var(--text-muted);
  font-size: .93rem;
  line-height: 1.6;
}

/* ===========================
   STEPS
=========================== */
.steps {
  padding: 90px 0;
  background: var(--white);
}

.steps-grid {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.step-card {
  flex: 1;
  min-width: 220px;
  max-width: 300px;
  background: var(--primary-bg);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  border: 1px solid rgba(106,83,221,.15);
  transition: transform .2s, box-shadow .2s;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.step-num {
  width: 52px;
  height: 52px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 auto 20px;
  box-shadow: 0 6px 16px rgba(106,83,221,.35);
}

.step-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.step-card p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.step-arrow {
  font-size: 2rem;
  color: var(--primary);
  opacity: .5;
  align-self: center;
  flex-shrink: 0;
}

/* ===========================
   CTA BAND
=========================== */
.cta-band {
  background: linear-gradient(135deg, var(--primary) 0%, #8b73f0 100%);
  color: var(--white);
  padding: 70px 0;
}
.cta-inner { text-align: center; }
.cta-inner h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.cta-inner p {
  font-size: 1.05rem;
  opacity: .88;
  margin-bottom: 28px;
}

/* ===========================
   ABOUT (nosotros)
=========================== */
.about-intro {
  padding: 80px 0;
  background: var(--white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-text h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--primary);
}
.about-text p {
  color: var(--text-muted);
  line-height: 1.75;
}

.vision-card {
  background: linear-gradient(135deg, var(--primary-bg) 0%, #ede9ff 100%);
  border: 1px solid rgba(106,83,221,.2);
  border-radius: var(--radius);
  padding: 40px 36px;
  text-align: center;
}
.vision-icon { font-size: 2.5rem; margin-bottom: 16px; }
.vision-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}
.vision-card p {
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.7;
}

.advantages {
  padding: 80px 0;
  background: var(--primary-bg);
}
.adv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.adv-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}
.adv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.adv-icon { font-size: 2.4rem; margin-bottom: 16px; }
.adv-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.adv-card p { font-size: .9rem; color: var(--text-muted); line-height: 1.65; }

/* ===========================
   FAQ
=========================== */
.faq-section {
  padding: 80px 0;
  background: var(--white);
}
.faq-container {
  max-width: 780px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
  transition: box-shadow .2s;
}
.faq-item:hover { box-shadow: var(--shadow-sm); }

.faq-question {
  width: 100%;
  background: var(--white);
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background .2s;
  font-family: inherit;
}
.faq-question:hover { background: var(--primary-bg); }
.faq-question[aria-expanded="true"] { background: var(--primary-bg); color: var(--primary); }

.faq-icon {
  font-size: 1.4rem;
  font-weight: 400;
  flex-shrink: 0;
  transition: transform .25s;
  color: var(--primary);
}
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }

.faq-answer {
  display: none;
  padding: 0 24px 20px;
  background: var(--primary-bg);
}
.faq-answer.open { display: block; }
.faq-answer p {
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.7;
  padding-top: 4px;
}

/* ===========================
   PRIVACY
=========================== */
.privacy-section {
  padding: 70px 0 80px;
  background: var(--white);
}
.privacy-container {
  max-width: 820px;
  margin: 0 auto;
}
.privacy-intro {
  background: var(--primary-bg);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 28px;
  margin-bottom: 40px;
}
.privacy-intro p {
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.75;
  margin-bottom: 12px;
}
.privacy-intro p:last-child { margin-bottom: 0; }

.privacy-block {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.privacy-block:last-child { border-bottom: none; }

.privacy-block h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}
.privacy-block h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 20px 0 8px;
}
.privacy-block p {
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.75;
  margin-bottom: 12px;
}
.privacy-block ul {
  padding-left: 20px;
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.75;
}
.privacy-block ul li { margin-bottom: 8px; }

.contact-highlight {
  background: var(--primary-bg);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-top: 16px;
}
.contact-highlight p {
  margin-bottom: 8px !important;
  font-size: .95rem !important;
  color: var(--text) !important;
}
.contact-highlight p:last-child { margin-bottom: 0 !important; }

/* ===========================
   CONTACT
=========================== */
.contact-section {
  padding: 80px 0;
  background: var(--white);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info-panel h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text);
}
.contact-info-panel > p {
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.contact-items { display: flex; flex-direction: column; gap: 20px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--primary-bg);
  border-radius: var(--radius);
  padding: 20px 22px;
  border: 1px solid rgba(106,83,221,.12);
}
.contact-item-icon { font-size: 1.6rem; flex-shrink: 0; }
.contact-item strong { display: block; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.contact-item p { color: var(--text-muted); font-size: .9rem; margin: 0; line-height: 1.5; }
.contact-item a { color: var(--primary); }

.contact-form-panel h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--text);
}

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
}
.form-group input,
.form-group textarea {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: .95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(106,83,221,.15);
}
.form-note {
  text-align: center;
  font-size: .9rem;
  color: var(--primary);
  min-height: 20px;
}

/* ===========================
   FOOTER
=========================== */
.footer {
  background: #1a1a2e;
  color: rgba(255,255,255,.8);
  padding-top: 60px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.logo-foot { font-size: 1.2rem; font-weight: 800; color: var(--white); }
.logo-foot span { color: var(--primary-l); }
.footer-brand p { font-size: .88rem; margin-top: 8px; opacity: .7; }

.footer-info p {
  font-size: .85rem;
  line-height: 1.65;
  margin-bottom: 6px;
  opacity: .8;
}
.footer-info strong { color: var(--white); opacity: 1; }
.footer-info a { color: var(--primary-l); }
.footer-info a:hover { color: var(--white); }

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.footer-nav a {
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  transition: color .2s;
}
.footer-nav a:hover { color: var(--white); text-decoration: none; }

.footer-bottom {
  padding: 20px 0;
  text-align: center;
}
.footer-bottom p { font-size: .82rem; opacity: .55; }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-nav { align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 12px; }
}

@media (max-width: 700px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 10px 14px; }
  .menu-toggle { display: block; }
  .navbar { position: sticky; }
  .hero { padding: 70px 0 60px; }
  .steps-grid { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); }
  .step-card { max-width: 100%; width: 100%; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .adv-grid { grid-template-columns: 1fr; }
  .contact-grid { gap: 32px; }
}
