/* Alejo Math Tutor — Main Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --navy:       #16425B;
  --blue:       #2F6690;
  --teal:       #30A2C5;
  --teal-light: #82B4D3;
  --teal-pale:  #CDE7EF;
  --cream:      #f8f6f2;
  --white:      #ffffff;
  --gray-100:   #f4f4f5;
  --gray-200:   #e8e8ea;
  --gray-500:   #6b7280;
  --gray-700:   #374151;
  --dark:       #1a2535;
  --accent:     #30A2C5;
  --accent-bg:  rgba(48,162,197,0.08);
  --border:     #e2e8f0;
  --shadow-sm:  0 2px 8px rgba(22,66,91,0.08);
  --shadow-md:  0 8px 32px rgba(22,66,91,0.12);
  --shadow-lg:  0 20px 60px rgba(22,66,91,0.16);
  --font-head:  'Playfair Display', Georgia, serif;
  --font-body:  'Inter', system-ui, sans-serif;
  --radius:     14px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); background: var(--white); color: var(--dark); line-height: 1.65; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 72px; padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,0.94); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); transition: box-shadow var(--transition); }
.nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-brand { display: flex; align-items: center; gap: 0.7rem; }
.nav-logo { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, var(--navy), var(--teal)); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-size: 1.3rem; font-weight: 800; color: #fff; }
.nav-brand-text .brand-name { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--navy); line-height: 1.1; }
.nav-brand-text .brand-sub { font-size: 0.65rem; color: var(--teal); letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 0.2rem; list-style: none; }
.nav-links a { font-size: 0.88rem; font-weight: 500; color: var(--gray-700); padding: 0.45rem 0.9rem; border-radius: 8px; transition: all var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--teal); background: var(--accent-bg); }
.nav-links .nav-cta { background: var(--teal) !important; color: #fff !important; font-weight: 600 !important; margin-left: 0.4rem; }
.nav-links .nav-cta:hover { background: var(--blue) !important; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(48,162,197,0.35); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: var(--transition); }
.hero { min-height: 100vh; background: linear-gradient(160deg, var(--cream) 60%, var(--teal-pale) 100%); display: flex; align-items: center; padding: 7rem 2rem 4rem; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -100px; right: -100px; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(48,162,197,0.12) 0%, transparent 70%); pointer-events: none; }
.hero::after { content: 'π'; position: absolute; bottom: -40px; left: 5%; font-size: 18rem; font-family: var(--font-head); font-weight: 800; color: rgba(48,162,197,0.06); pointer-events: none; user-select: none; line-height: 1; }
.hero-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; width: 100%; position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--accent-bg); border: 1px solid rgba(48,162,197,0.25); color: var(--teal); padding: 0.35rem 0.9rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; margin-bottom: 1.5rem; }
.hero-badge .dot { width: 6px; height: 6px; background: var(--teal); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.8)} }
.hero h1 { font-family: var(--font-head); font-size: clamp(2.4rem,5vw,3.8rem); font-weight: 800; line-height: 1.1; color: var(--navy); margin-bottom: 1.2rem; letter-spacing: -0.5px; }
.hero h1 .accent { color: var(--teal); }
.hero p { font-size: 1.08rem; color: var(--gray-500); line-height: 1.8; margin-bottom: 2.5rem; max-width: 500px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats { display: flex; gap: 2.5rem; }
.hero-stat .num { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--navy); display: block; line-height: 1; }
.hero-stat .lbl { font-size: 0.75rem; color: var(--gray-500); margin-top: 0.25rem; font-weight: 500; }
.hero-photo-wrap { position: relative; }
.hero-photo-card { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.hero-photo-card img { width: 100%; object-fit: cover; max-height: 540px; }
.hero-photo-badge { position: absolute; bottom: 1.5rem; left: 1.5rem; right: 1.5rem; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); border-radius: 12px; padding: 1rem 1.2rem; display: flex; align-items: center; gap: 1rem; box-shadow: 0 4px 20px rgba(0,0,0,0.12); }
.hero-photo-badge .badge-icon { font-size: 2rem; }
.hero-photo-badge .badge-title { font-weight: 700; font-size: 0.9rem; color: var(--navy); }
.hero-photo-badge .badge-sub { font-size: 0.75rem; color: var(--gray-500); margin-top: 1px; }
.hero-float { position: absolute; top: -1.5rem; right: -1.5rem; background: var(--white); border-radius: 16px; padding: 1rem 1.4rem; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 0.8rem; }
.hero-float .stars { color: #f59e0b; font-size: 0.9rem; letter-spacing: 1px; }
.hero-float .rating-text { font-size: 0.8rem; font-weight: 600; color: var(--navy); }
.hero-float .rating-sub { font-size: 0.7rem; color: var(--gray-500); }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.8rem; border-radius: 10px; font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; cursor: pointer; border: none; transition: all var(--transition); text-decoration: none; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 4px 16px rgba(48,162,197,0.3); }
.btn-primary:hover { background: var(--blue); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(48,162,197,0.4); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--border); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); background: var(--accent-bg); transform: translateY(-2px); }
.btn-whatsapp { background: #25d366; color: #fff; box-shadow: 0 4px 16px rgba(37,211,102,0.3); }
.btn-whatsapp:hover { background: #128c7e; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,0.4); }
.section { padding: 6rem 2rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-alt { background: var(--cream); }
.section-dark { background: var(--navy); color: #fff; }
.section-tag { display: inline-block; color: var(--teal); font-size: 0.72rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 0.8rem; }
.section-title { font-family: var(--font-head); font-size: clamp(2rem,4vw,2.8rem); font-weight: 800; color: var(--navy); line-height: 1.15; margin-bottom: 1rem; letter-spacing: -0.3px; }
.section-dark .section-title { color: #fff; }
.section-sub { color: var(--gray-500); font-size: 1.02rem; max-width: 580px; line-height: 1.8; font-weight: 400; }
.section-dark .section-sub { color: var(--teal-light); }
.section-header { margin-bottom: 3.5rem; }
.section-header.centered { text-align: center; }
.section-header.centered .section-sub { margin: 0 auto; }
.subjects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.subject-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; transition: all var(--transition); position: relative; overflow: hidden; }
.subject-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--navy), var(--teal)); opacity: 0; transition: var(--transition); }
.subject-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--teal-light); }
.subject-card:hover::before { opacity: 1; }
.subject-icon { font-size: 2.2rem; margin-bottom: 1.1rem; display: block; }
.subject-card h3 { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-bottom: 0.7rem; }
.subject-card p { color: var(--gray-500); font-size: 0.88rem; line-height: 1.7; }
.subject-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.2rem; }
.stag { background: var(--accent-bg); color: var(--teal); border: 1px solid rgba(48,162,197,0.2); padding: 0.2rem 0.65rem; border-radius: 999px; font-size: 0.7rem; font-weight: 600; }
.about-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 5rem; align-items: center; }
.about-img-wrap { position: relative; }
.about-img { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); }
.about-img img { width: 100%; object-fit: cover; }
.about-exp-badge { position: absolute; bottom: -1.5rem; right: -1.5rem; background: var(--teal); color: #fff; border-radius: 16px; padding: 1.2rem 1.5rem; text-align: center; box-shadow: 0 8px 24px rgba(48,162,197,0.4); }
.about-exp-badge .num { font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; display: block; line-height: 1; }
.about-exp-badge .lbl { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.5px; margin-top: 0.2rem; opacity: 0.9; }
.about-text p { color: var(--gray-500); line-height: 1.85; margin-bottom: 1.1rem; font-size: 0.97rem; }
.about-text p strong { color: var(--navy); font-weight: 600; }
.about-checks { list-style: none; margin: 1.5rem 0; display: flex; flex-direction: column; gap: 0.7rem; }
.about-checks li { display: flex; align-items: center; gap: 0.8rem; font-size: 0.92rem; color: var(--gray-700); font-weight: 500; }
.about-checks li::before { content: '✓'; background: var(--teal); color: #fff; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; flex-shrink: 0; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.testimonial-card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: 2rem; }
.testimonial-stars { color: #f59e0b; font-size: 0.9rem; letter-spacing: 2px; margin-bottom: 1rem; }
.testimonial-card p { color: rgba(255,255,255,0.85); font-size: 0.92rem; line-height: 1.75; font-style: italic; margin-bottom: 1.5rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.8rem; }
.author-avatar { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; font-size: 0.9rem; flex-shrink: 0; }
.author-name { font-weight: 600; font-size: 0.88rem; color: #fff; }
.author-role { font-size: 0.75rem; color: rgba(255,255,255,0.6); margin-top: 1px; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; position: relative; }
.steps-grid::before { content: ''; position: absolute; top: 28px; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, var(--teal-pale), var(--teal-light), var(--teal-pale)); }
.step-card { text-align: center; position: relative; }
.step-num { width: 56px; height: 56px; border-radius: 50%; background: var(--white); border: 3px solid var(--teal); color: var(--teal); font-family: var(--font-head); font-size: 1.3rem; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.2rem; position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--cream); }
.step-card h3 { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.6rem; }
.step-card p { color: var(--gray-500); font-size: 0.85rem; line-height: 1.7; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; align-items: start; }
.contact-info h3 { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--navy); margin-bottom: 1rem; }
.contact-info p { color: var(--gray-500); font-size: 0.95rem; line-height: 1.8; margin-bottom: 2rem; }
.contact-items { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; background: var(--gray-100); border-radius: 10px; padding: 1rem 1.2rem; }
.ci-icon { width: 40px; height: 40px; background: var(--teal); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.ci-label { font-size: 0.7rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.8px; font-weight: 600; }
.ci-value { font-size: 0.9rem; color: var(--dark); font-weight: 500; }
.ci-value a { color: var(--teal); }
.contact-form { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.5rem; box-shadow: var(--shadow-sm); }
.contact-form h3 { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; color: var(--navy); margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; }
.form-group label { font-size: 0.75rem; font-weight: 700; color: var(--gray-700); letter-spacing: 0.5px; text-transform: uppercase; }
.form-group input, .form-group select, .form-group textarea { background: var(--gray-100); border: 1.5px solid var(--border); border-radius: 8px; padding: 0.75rem 1rem; color: var(--dark); font-family: var(--font-body); font-size: 0.9rem; transition: border-color var(--transition); width: 100%; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 3px rgba(48,162,197,0.12); }
.form-group input::placeholder, .form-group textarea::placeholder { color: #aaa; }
.form-group select option { background: #fff; }
.form-group textarea { resize: vertical; min-height: 120px; }
#form-status { padding: 0.8rem 1rem; border-radius: 8px; font-size: 0.88rem; margin-top: 1rem; display: none; }
#form-status.success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: #16a34a; display: block; }
#form-status.error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #dc2626; display: block; }
.page-hero { padding: 9rem 2rem 4rem; background: linear-gradient(160deg, var(--cream) 60%, var(--teal-pale) 100%); text-align: center; }
.page-hero h1 { font-family: var(--font-head); font-size: clamp(2.2rem,5vw,3.2rem); font-weight: 800; color: var(--navy); margin-bottom: 1rem; }
.page-hero p { color: var(--gray-500); font-size: 1.05rem; max-width: 580px; margin: 0 auto; line-height: 1.8; }
.divider { height: 1px; background: var(--border); max-width: 1200px; margin: 0 auto; }
.whatsapp-float { position: fixed; bottom: 2rem; right: 2rem; z-index: 999; width: 58px; height: 58px; background: #25d366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 24px rgba(37,211,102,0.45); transition: all var(--transition); text-decoration: none; }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 10px 32px rgba(37,211,102,0.55); }
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }
footer { background: var(--dark); color: rgba(255,255,255,0.85); padding: 4rem 2rem 2rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 0.85rem; margin-top: 0.8rem; max-width: 300px; line-height: 1.75; }
.footer-col h4 { font-family: var(--font-head); font-size: 0.9rem; font-weight: 700; color: #fff; margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul li a { color: rgba(255,255,255,0.5); font-size: 0.85rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--teal); }
.footer-bottom { max-width: 1200px; margin: 2.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; color: rgba(255,255,255,0.35); }
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
@media(max-width:900px){ .hero-inner{grid-template-columns:1fr} .hero-photo-wrap{display:none} .about-grid{grid-template-columns:1fr;gap:3rem} .contact-grid{grid-template-columns:1fr} .footer-inner{grid-template-columns:1fr 1fr} .steps-grid::before{display:none} }
@media(max-width:768px){ .nav-links{display:none} .nav-toggle{display:flex} .nav-links.open{ display:flex;flex-direction:column;position:absolute;top:72px;left:0;right:0;background:#fff;padding:1.5rem;border-bottom:1px solid var(--border);gap:0.4rem;box-shadow:var(--shadow-md); } .form-row{grid-template-columns:1fr} .hero-stats{gap:1.5rem} }
@media(max-width:480px){ .section{padding:4rem 1.2rem} .footer-inner{grid-template-columns:1fr;gap:2rem} .footer-bottom{flex-direction:column;gap:0.5rem;text-align:center} }
