/* ============================================================
   Hermanas Adoratrices del Santísimo Sacramento
   Hoja de estilos estática (HTML + CSS puro, sin build)
   ============================================================ */

/* ---------- Tokens de diseño ---------- */
:root {
  --background: hsl(40 33% 96%);
  --foreground: hsl(20 15% 15%);
  --card: hsl(40 30% 98%);
  --card-foreground: hsl(20 15% 15%);
  --primary: hsl(36 60% 42%);
  --primary-foreground: hsl(40 30% 98%);
  --secondary: hsl(345 30% 30%);
  --secondary-foreground: hsl(40 30% 98%);
  --muted: hsl(40 20% 90%);
  --muted-foreground: hsl(20 10% 45%);
  --border: hsl(36 25% 85%);
  --ring: hsl(36 60% 42%);
  --gold: hsl(36 70% 55%);
  --gold-dark: hsl(36 60% 35%);
  --radius: 0.5rem;

  --primary-soft: hsl(36 60% 42% / 0.1);
  --primary-soft-2: hsl(36 60% 42% / 0.2);

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Lato", system-ui, sans-serif;

  --container: 1400px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--background);
}

body {
  font-family: var(--font-body);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 1.5rem;
}

.section {
  padding-block: 6rem;
  background: var(--background);
}

.section-warm {
  background: linear-gradient(180deg, hsl(40 33% 96%) 0%, hsl(40 25% 92%) 100%);
}

.section-burgundy {
  background: linear-gradient(135deg, hsl(345 40% 28%) 0%, hsl(345 30% 22%) 100%);
}

.mb-16 {
  margin-bottom: 4rem;
}

.grid-2 {
  display: grid;
  gap: 3rem;
}

.grid-3,
.grid-4 {
  display: grid;
  gap: 2rem;
}

/* ---------- Section heads ---------- */
.section-head {
  text-align: center;
  margin-bottom: 4rem;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.eyebrow-primary {
  color: var(--primary);
}

.eyebrow-gold {
  color: var(--gold);
}

.section-title {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.section-title--light {
  color: var(--secondary-foreground);
}

.rule {
  display: block;
  width: 4rem;
  height: 4px;
  margin: 0 auto;
  border-radius: 999px;
}

.rule-primary {
  background: var(--primary);
}

.rule-gold {
  background: var(--gold);
}

.section-intro {
  max-width: 42rem;
  margin: 0 auto 3.5rem;
  text-align: center;
  color: var(--muted-foreground);
  font-size: 1.05rem;
}

.lead {
  color: var(--muted-foreground);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.lead:last-child {
  margin-bottom: 0;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: hsl(40 33% 96% / 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--foreground);
}

.brand-subtitle {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav-desktop a {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: hsl(20 15% 15% / 0.7);
  transition: color 0.2s, background-color 0.2s;
}

.nav-desktop a:hover {
  color: var(--primary);
  background: hsl(36 60% 42% / 0.05);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  padding: 0.25rem;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle.is-open .icon-menu {
  display: none;
}

.nav-toggle.is-open .icon-close {
  display: block;
}

.nav-mobile[hidden] {
  display: none;
}

.nav-mobile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding-block: 1.5rem;
  background: var(--background);
  border-bottom: 1px solid var(--border);
  animation: fade-in 0.3s ease-out;
}

.nav-mobile a {
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: hsl(20 15% 15% / 0.7);
  transition: color 0.2s, background-color 0.2s;
}

.nav-mobile a:hover {
  color: var(--primary);
  background: hsl(36 60% 42% / 0.05);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    hsl(20 15% 10% / 0.5) 0%,
    hsl(20 15% 10% / 0.3) 50%,
    hsl(20 15% 10% / 0.7) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 56rem;
}

.hero-eyebrow {
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--primary-foreground);
  margin-bottom: 1.5rem;
}

.hero-title-accent {
  display: block;
  margin-top: 0.5rem;
  font-size: clamp(1.875rem, 5vw, 3.75rem);
  background: linear-gradient(135deg, hsl(36 70% 55%), hsl(36 60% 35%));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-quote {
  font-family: var(--font-display);
  font-style: italic;
  color: hsl(40 30% 98% / 0.85);
  font-size: clamp(1.125rem, 2.5vw, 1.25rem);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background: var(--gold-dark);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-outline {
  border-color: var(--gold);
  color: var(--primary-foreground);
  background: transparent;
}

.btn-outline:hover {
  background: hsl(36 70% 55% / 0.2);
}

.btn-block {
  width: 100%;
}

/* ---------- Cards & icons ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 1px 2px hsl(20 15% 15% / 0.04);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.card-center {
  text-align: center;
}

.card:hover {
  box-shadow: 0 4px 12px hsl(20 15% 15% / 0.08);
}

.card-hover:hover {
  box-shadow: 0 10px 24px hsl(20 15% 15% / 0.1);
  border-color: var(--primary-soft-2);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

.card-title--sm {
  font-size: 1.125rem;
  margin-top: 0.25rem;
}

.card-text {
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 1.25rem;
  transition: background-color 0.2s;
}

.card-hover:hover .icon-circle {
  background: var(--primary-soft-2);
}

.icon-circle--xs {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0;
  flex-shrink: 0;
}

.icon-circle--sm {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
}

.icon-circle--lg {
  width: 4rem;
  height: 4rem;
}

.stage-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

/* ---------- Media images ---------- */
.media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 24px hsl(20 15% 15% / 0.12);
}

.media img {
  width: 100%;
  height: 20rem;
  object-fit: cover;
}

/* ---------- Fundador ---------- */
.fundador {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.fundador-photo {
  width: 12rem;
  height: 12rem;
  border-radius: 999px;
  overflow: hidden;
  border: 4px solid hsl(36 70% 55% / 0.4);
  margin: 0 auto 2rem;
  box-shadow: 0 10px 24px hsl(0 0% 0% / 0.25);
}

.fundador-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fundador-name {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 600;
  color: var(--secondary-foreground);
  margin-bottom: 1.5rem;
}

.fundador-text {
  color: hsl(40 30% 98% / 0.8);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.fundador-quote {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  border-left: 4px solid hsl(36 70% 55% / 0.4);
  padding-left: 1.5rem;
  text-align: left;
  max-width: 36rem;
  margin: 0 auto;
}

/* ---------- Contacto ---------- */
.contacto {
  display: grid;
  gap: 3rem;
  max-width: 64rem;
  margin: 0 auto;
}

.contacto-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.contacto-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contacto-list strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}

.contacto-list span span,
.contacto-list li > span:last-child > span {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.contacto-list li > span:last-child {
  display: flex;
  flex-direction: column;
}

.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  gap: 1rem;
}

.contacto-form input,
.contacto-form textarea {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--foreground);
}

.contacto-form textarea {
  resize: none;
}

.contacto-form input::placeholder,
.contacto-form textarea::placeholder {
  color: var(--muted-foreground);
}

.contacto-form input:focus,
.contacto-form textarea:focus {
  outline: 2px solid var(--ring);
  outline-offset: 1px;
  border-color: var(--ring);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--foreground);
  padding-block: 2.5rem;
  text-align: center;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--background);
  margin-bottom: 0.5rem;
}

.footer-sub {
  font-size: 0.875rem;
  color: hsl(40 33% 96% / 0.6);
  margin-bottom: 1rem;
}

.footer-rule {
  display: block;
  width: 3rem;
  height: 1px;
  background: hsl(40 33% 96% / 0.2);
  margin: 0 auto 1rem;
}

.footer-credit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: hsl(40 33% 96% / 0.4);
}

.footer-credit .heart {
  color: var(--gold);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 30px hsl(20 15% 15% / 0.18);
  max-width: 22rem;
  animation: toast-in 0.35s ease-out;
}

.toast.toast-error {
  border-left-color: #cf222e;
}

.toast-title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.toast-desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ---------- Animaciones ---------- */
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fade-in 1s ease-out forwards;
}

.fade-in-up {
  opacity: 0;
  animation: fade-in-up 0.8s ease-out forwards;
}

.delay-1 {
  animation-delay: 0.3s;
}

.delay-2 {
  animation-delay: 0.6s;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .fade-in,
  .fade-in-up {
    opacity: 1;
  }
}

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
  .nav-mobile {
    display: none !important;
  }
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .contacto {
    grid-template-columns: 1fr 1fr;
  }
  .order-1 {
    order: 1;
  }
  .order-2 {
    order: 2;
  }
}

@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}
