/*
Theme Name: Ascarruz & Chirino Academia
Theme URI: https://ascarruzchirino.com
Author: Ascarruz & Chirino Academia
Description: Tema institucional para servicios de asesoria academica y desarrollo de tesis.
Version: 1.1.0
Text Domain: ascarruz-chirino
*/

:root {
  --black: #070707;
  --charcoal: #121212;
  --charcoal-2: #1b1b1b;
  --gold: #d4af57;
  --gold-light: #f0d88a;
  --ivory: #f7f3e9;
  --muted: #c8c3b8;
  --green: #1f6b4f;
  --max: 1180px;
  --cream: #fbfaf6;
  --sage: #e8eee8;
  --forest: #174c3a;
  --forest-dark: #10382b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ivory);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-light);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
h1, h2, h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; line-height: 1.12; }
h1 { max-width: 840px; font-size: clamp(2.6rem, 6vw, 5.6rem); font-weight: 500; }
h2 { color: var(--gold-light); font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 500; }
h3 { font-size: 1.35rem; }
p { margin: 0; }
.section-heading { max-width: 760px; margin-bottom: 38px; }
.section-heading p:last-child { margin-top: 15px; color: var(--muted); font-size: 1.05rem; }
.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  border-bottom: 1px solid rgba(23,76,58,.14);
  background: rgba(251,250,246,.94);
  backdrop-filter: blur(12px);
}
.nav-wrap { min-height: 82px; display: flex; align-items: center; gap: 30px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand img { width: 62px; height: 62px; object-fit: cover; object-position: center 30%; border-radius: 4px; }
.brand span { max-width: 175px; color: var(--forest); font-family: Georgia, serif; font-size: .94rem; line-height: 1.15; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 25px; font-size: .93rem; font-weight: 650; }
.main-nav { color: #24322c; }
.main-nav a:hover, .main-nav a:focus { color: var(--forest); }
.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  background: var(--gold);
  color: #111;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--gold-light); }
.btn-outline { background: transparent; color: var(--gold-light); }
.btn-outline:hover { background: rgba(212,175,87,.12); }
.menu-toggle { display: none; padding: 8px; border: 0; background: transparent; color: var(--forest); font-size: 1.5rem; }
.hero {
  position: relative;
  min-height: 820px;
  display: flex;
  align-items: center;
  padding: 145px 0 90px;
  overflow: hidden;
  background: #0a0a0a;
}
.hero::before {
  position: absolute;
  content: "";
  inset: 0;
  background: linear-gradient(90deg, rgba(7,7,7,.99) 0%, rgba(7,7,7,.92) 38%, rgba(7,7,7,.38) 68%, rgba(7,7,7,.13) 100%), var(--hero-image) 82% 25% / auto 112% no-repeat;
}
.hero::after { position: absolute; content: ""; inset: auto 0 0; height: 150px; background: linear-gradient(transparent, var(--black)); }
.hero-content { position: relative; z-index: 2; max-width: 820px; }
.hero h1 span { color: var(--gold-light); }
.hero-copy { max-width: 670px; margin: 24px 0 30px; color: #e2ded4; font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 35px; color: var(--muted); font-size: .92rem; }
.trust-row span::before { content: "✓"; margin-right: 8px; color: var(--gold); font-weight: 900; }
.services { padding: 95px 0; color: #1d2823; }
.services h2 { color: var(--forest); }
.services .section-heading p:last-child { color: #5c675f; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  padding: 30px;
  border: 1px solid #dfe5df;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(24,54,42,.06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover { transform: translateY(-6px); border-color: #d3bb76; box-shadow: 0 20px 44px rgba(24,54,42,.12); }
.service-number { color: var(--gold); font-family: Georgia, serif; font-size: 1rem; }
.service-card h3 { margin: 28px 0 15px; color: var(--forest); }
.service-card p { color: #5b655f; }
.service-card .card-link { margin-top: auto; padding-top: 25px; color: var(--forest); font-weight: 800; }
.service-card .card-link::after { content: " →"; }
.service-details { margin-top: 18px; padding-top: 15px; border-top: 1px solid #e5e9e5; }
.service-details summary { cursor: pointer; color: #8a691d; font-weight: 800; }
.service-details ul { margin: 12px 0 0; padding-left: 19px; color: #5b655f; font-size: .92rem; }
.areas { padding: 80px 0; background: var(--sage); color: #171717; }
.areas h2 { color: var(--forest); }
.areas .section-heading p:last-child { color: #56524b; }
.area-list { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid #c7d4cb; background: rgba(255,255,255,.45); }
.area-item { padding: 27px 18px; border-right: 1px solid #c7d4cb; text-align: center; color: var(--forest); font-family: Georgia, serif; font-size: 1.08rem; }
.area-item:last-child { border-right: 0; }
.how-it-works { padding: 95px 0; color: #1d2823; background: #fff; }
.how-it-works h2 { color: var(--forest); }
.how-it-works .section-heading p:last-child { color: #5c675f; }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { position: relative; padding: 32px; border-radius: 6px; background: var(--sage); }
.step span { display: grid; width: 46px; height: 46px; place-items: center; margin-bottom: 25px; border-radius: 50%; background: var(--forest); color: white; font-weight: 900; }
.step h3 { margin-bottom: 12px; color: var(--forest); }
.step p { color: #5b655f; }
.reports { padding: 95px 0; background: var(--forest-dark); }
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.report-card { padding: 38px; border-left: 3px solid var(--gold); background: var(--charcoal-2); }
.report-card h3 { margin-bottom: 15px; color: var(--gold-light); font-size: 1.65rem; }
.report-card p { margin-bottom: 24px; color: var(--muted); }
.resources { padding: 95px 0; color: #1d2823; background: var(--cream); }
.resources h2 { color: var(--forest); }
.resources .section-heading p:last-child { color: #5c675f; }
.resource-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.resource-card { padding: 34px; border: 1px solid #dde4de; border-radius: 6px; background: #fff; }
.resource-card .tag { display: inline-block; margin-bottom: 25px; padding: 4px 10px; border-radius: 3px; background: var(--green); font-size: .76rem; font-weight: 800; text-transform: uppercase; }
.resource-card h3 { margin-bottom: 12px; color: var(--forest); font-size: 1.55rem; }
.resource-card p { color: #5b655f; }
.resource-card details { margin-top: 20px; border-top: 1px solid #333; padding-top: 18px; }
.resource-card summary { cursor: pointer; color: #8a691d; font-weight: 800; }
.resource-card ol { margin-bottom: 0; padding-left: 22px; color: #5b655f; }
.about { padding: 95px 0; background: #fff; color: #171717; }
.about-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 65px; align-items: center; }
.about-photo { aspect-ratio: 4 / 5; border-radius: 6px; object-fit: cover; object-position: center top; box-shadow: 18px 18px 0 var(--gold); }
.about h2 { color: var(--forest); }
.about-copy > p { margin-top: 20px; color: #4e4a43; font-size: 1.05rem; }
.about-copy .btn { margin-top: 26px; }
.cta { padding: 85px 0; text-align: center; background: var(--gold); color: #111; }
.cta h2 { color: #111; }
.cta p { max-width: 650px; margin: 16px auto 25px; font-size: 1.08rem; }
.cta .btn { border-color: #111; background: #111; color: white; }
.site-footer { padding: 40px 0; border-top: 1px solid #dce3dd; color: #5b655f; background: var(--cream); }
.footer-row { display: flex; justify-content: space-between; gap: 20px; }
.whatsapp-float {
  position: fixed;
  z-index: 40;
  right: 22px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 17px;
  border-radius: 999px;
  background: #25d366;
  color: #07140b;
  font-weight: 850;
  box-shadow: 0 8px 28px rgba(0,0,0,.38);
}

@media (max-width: 960px) {
  .main-nav { position: absolute; top: 82px; right: 20px; left: 20px; display: none; flex-direction: column; align-items: stretch; padding: 22px; background: #fff; border: 1px solid #dce3dd; box-shadow: 0 16px 35px rgba(24,54,42,.14); }
  .main-nav.is-open { display: flex; }
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .hero { min-height: 780px; align-items: flex-end; }
  .hero::before { background: linear-gradient(0deg, rgba(7,7,7,1) 4%, rgba(7,7,7,.84) 47%, rgba(7,7,7,.2) 84%), var(--hero-image) center top / auto 78% no-repeat; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .step-grid { grid-template-columns: 1fr; }
  .area-list { grid-template-columns: repeat(2, 1fr); }
  .area-item { border-bottom: 1px solid #d5ccb8; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { width: min(100%, 520px); }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .brand span { display: none; }
  .hero { min-height: 760px; padding-bottom: 55px; }
  .hero h1 { font-size: 2.65rem; }
  .hero-copy { font-size: 1rem; }
  .service-grid, .report-grid, .resource-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 290px; }
  .area-list { grid-template-columns: 1fr; }
  .area-item { border-right: 0; }
  .about-grid { gap: 42px; }
  .footer-row { flex-direction: column; }
  .whatsapp-float span { display: none; }
  .whatsapp-float { width: 54px; height: 54px; justify-content: center; padding: 0; font-size: 1.25rem; }
}
