@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --color-primary: #12385b;
  --color-primary-light: #1d4e7d;
  --color-primary-soft: #edf4fa;
  --color-accent: #2e6653;
  --color-warm-amber: #a65b2b;
  --color-bg-warm: #f7f8f6;
  --color-bg-card: #ffffff;
  --color-border: #e2e8e7;
  --color-text-main: #202c35;
  --color-text-muted: #5b6871;
  --font-serif: 'Lora', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  font-family: var(--font-sans);
  color: var(--color-text-main);
  background-color: var(--color-bg-warm);
  line-height: 1.65;
}

body {
  background-color: var(--color-bg-warm);
  color: var(--color-text-main);
}

h1, h2, h3, .font-serif {
  font-family: var(--font-serif);
  letter-spacing: -0.025em;
}

a, button, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(46, 102, 83, 0.55);
  outline-offset: 3px;
}

.coop-line {
  height: 4px;
  background: linear-gradient(90deg, #12385b 0%, #2e6653 68%, #a65b2b 100%);
}

body > header {
  background: #102f4b;
  border-color: rgba(255, 255, 255, 0.1);
  letter-spacing: 0.01em;
}

.site-nav {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(18, 56, 91, 0.09);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-nav > div > div {
  min-height: 5rem;
}

.site-nav img {
  filter: drop-shadow(0 2px 3px rgba(18, 56, 91, 0.08));
}

.site-nav a,
#mobile-menu a {
  transition: color 160ms ease, background-color 160ms ease;
}

#inicio {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4.5rem, 8vw, 7rem);
  border-color: var(--color-border);
  background:
    radial-gradient(ellipse at 93% 8%, rgba(46, 102, 83, 0.08), transparent 32rem),
    linear-gradient(120deg, #f3f7f8 0%, #ffffff 57%, #f5f8f6 100%);
}

#inicio > div {
  position: relative;
  z-index: 1;
}

#inicio .inline-flex {
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  border-color: rgba(18, 56, 91, 0.12);
  letter-spacing: 0.08em;
}

#inicio h1 {
  max-width: 14ch;
  font-size: clamp(2.35rem, 4.1vw, 3.8rem);
  line-height: 1.13;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

#inicio p {
  color: #4c5c67;
}

#inicio a[href="#contacto"],
#contacto button[type="submit"] {
  box-shadow: 0 8px 18px rgba(18, 56, 91, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

#inicio a[href="#contacto"]:hover,
#contacto button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(18, 56, 91, 0.2);
}

.photo-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(18, 56, 91, 0.1);
  border-radius: 1.6rem;
  background: #e9efed;
  box-shadow: 0 24px 60px -26px rgba(18, 56, 91, 0.38);
}

.photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.photo-frame:hover img {
  transform: scale(1.025);
}

#inicio .relative > .photo-frame {
  border-radius: 1.8rem;
}

#inicio .relative > .mt-4 {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  margin-top: 0;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(15, 35, 48, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#inicio .relative > .mt-4 a {
  white-space: nowrap;
}

#quienes-somos,
#pilares,
#servicios,
#preguntas,
#contacto {
  padding-block: clamp(4.5rem, 7vw, 6.5rem);
}

#quienes-somos,
#servicios,
#contacto {
  background-color: #f5f7f5;
}

#quienes-somos,
#pilares,
#servicios,
#preguntas {
  border-color: var(--color-border);
}

#quienes-somos h2,
#pilares h2,
#servicios h2,
#preguntas h2,
#contacto h2 {
  line-height: 1.2;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.clean-card {
  border: 1px solid #e3e9e7;
  border-radius: 1.25rem;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(27, 49, 61, 0.035);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.clean-card:hover {
  transform: translateY(-4px);
  border-color: #d3dfdc;
  box-shadow: 0 18px 34px -18px rgba(18, 56, 91, 0.24);
}

#quienes-somos .space-y-4 > div {
  border-color: #e3e9e7;
  border-radius: 0.9rem;
  box-shadow: 0 3px 12px rgba(27, 49, 61, 0.025);
}

#preguntas details {
  border-color: #e2e8e7;
  border-radius: 0.9rem;
  background: #f8faf9;
  transition: border-color 180ms ease, background-color 180ms ease;
}

#preguntas details[open] {
  border-color: #cbd9d4;
  background: #ffffff;
}

#preguntas summary {
  gap: 1rem;
}

#contacto > div > .grid > div:first-child {
  border-color: #e2e8e7;
  border-radius: 1.25rem;
  box-shadow: 0 12px 35px -24px rgba(18, 56, 91, 0.25);
}

#contacto input,
#contacto select,
#contacto textarea {
  min-height: 2.9rem;
  border-color: #d9e1df;
  border-radius: 0.7rem;
  color: var(--color-text-main);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

#contacto textarea {
  min-height: 7rem;
}

#contacto input::placeholder,
#contacto textarea::placeholder {
  color: #89949a;
}

#contacto input:focus,
#contacto select:focus,
#contacto textarea:focus {
  outline: none;
  border-color: #477b69;
  box-shadow: 0 0 0 4px rgba(46, 102, 83, 0.12);
}

#contacto > div > .grid > div:nth-child(2) > div:first-child {
  background: linear-gradient(145deg, #12385b, #0c263e);
  box-shadow: 0 16px 35px -22px rgba(12, 38, 62, 0.8);
}

footer {
  background: #0c263e;
}

footer .coop-line {
  height: 3px;
}

.whatsapp-floating {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: #16805c;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(22, 128, 92, 0.3);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.whatsapp-floating:hover {
  transform: translateY(-3px);
  background: #116b4d;
  box-shadow: 0 12px 28px rgba(22, 128, 92, 0.38);
}

details summary::-webkit-details-marker {
  display: none;
}

details[open] summary svg.chevron {
  transform: rotate(180deg);
}

@media (max-width: 640px) {
  body > header {
    display: none;
  }

  #inicio {
    padding-block: 3.75rem;
  }

  #inicio h1 {
    max-width: 17ch;
    font-size: clamp(2.2rem, 10vw, 3rem);
  }

  #inicio .relative > .mt-4 {
    right: 0.65rem;
    bottom: 0.65rem;
    left: 0.65rem;
    gap: 0.5rem;
    padding: 0.8rem;
  }

  #inicio .relative > .mt-4 > div span:last-child {
    font-size: 0.68rem;
  }

  #inicio .relative > .mt-4 a {
    font-size: 0.68rem;
  }

  .whatsapp-floating {
    right: 1rem;
    bottom: 1rem;
    padding: 0.75rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
