/* =========================================================
   Family Community & Me — hoja de estilos única y simple
   ========================================================= */

:root {
  --navy: #010c49;
  --navy-dark: #01072b;
  --teal: #10c8cc;
  --primary-dark: #007ed0;
  --gray-900: #1f1f1f;
  --gray-600: #5e5e5e;
  --gray-400: #a7a7a7;
  --gray-200: #e4e4e4;
  --gray-100: #fafafa;
  --white: #ffffff;

  --font-heading: "Poppins", Arial, Helvetica, sans-serif;
  --font-body: "Open Sans", Arial, Helvetica, sans-serif;

  --radius: 10px;
  --max-width: 1140px;
  --shadow: 0 4px 16px rgba(1, 12, 73, 0.08);
}

/* ---------- Reset básico ---------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 16px; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--gray-100);
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title p {
  color: var(--gray-600);
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--navy-dark);
}

.btn-primary:hover {
  background: var(--white);
  color: var(--teal);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}

.btn-white:hover {
  background: transparent;
  color: var(--white);
}

/* ---------- Header / navegación ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.nav-brand img {
  height: 40px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.nav-menu a {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
  color: var(--teal);
}

.nav-menu .btn {
  padding: 10px 22px;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: flex;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
  overflow: hidden;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(1, 5, 32, 0.55), rgba(1, 5, 32, 0.75));
}

.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 160px;
  padding-bottom: 60px;
  width: 100%;
}

.hero-intro {
  max-width: 600px;
}

.hero h1 {
  color: var(--white);
  text-align: left;
}

.hero-intro p {
  color: #e7eaf7;
  text-align: left;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 380px;
}

.hero-list-item {
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-bottom: none;
  padding: 20px 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.hero-list-item:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-list-number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--white);
  margin: 0;
}

.hero-list-item a {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--teal);
}

.hero-list-item a:hover {
  text-decoration: underline;
}

.hero-list-item p {
  color: #d6dbf2;
  font-size: 0.9rem;
  margin: 6px 0 0;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
  }

  .hero .container {
    padding-top: 120px;
  }

  .hero-list {
    max-width: 100%;
  }
}

/* ---------- Grids y tarjetas ---------- */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(1, 12, 73, 0.14);
}

.card img {
  border-radius: var(--radius);
  margin-bottom: 16px;
  width: 100%;
  height: 180px;
  object-fit: cover;
  overflow: hidden;
}

.card .step {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 8px;
}

/* ---------- Tarjetas con ícono (estilo del sitio original) ---------- */
.icon-card {
  background: var(--white);
  border-left: 5px solid var(--teal);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.icon-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(1, 12, 73, 0.14);
}

.icon-card img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin-bottom: 16px;
  border-radius: 0;
  transition: transform 0.25s ease;
}

.icon-card:hover img {
  transform: scale(1.12);
}

.icon-card h3 {
  margin-bottom: 8px;
}

.icon-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

.icon-card a.card-link {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
}

.icon-card a.card-link:hover {
  color: var(--teal);
}

/* ---------- About / imagen + texto ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
}

.split img {
  border-radius: var(--radius);
  width: 100%;
  object-fit: cover;
}

/* ---------- Sección oscura (Who We Are) ---------- */
.section-dark {
  background: var(--gray-900);
  color: var(--white);
}

.section-dark h2,
.section-dark .card .step {
  color: var(--white);
}

.section-dark p {
  color: #cfcfcf;
}

.section-dark .split img {
  min-height: 320px;
  object-fit: cover;
  height: 100%;
}

.pillar-list {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

.pillar-list h4 {
  color: var(--teal);
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 4px;
}

.pillar-list p {
  margin: 0;
  font-size: 0.9rem;
}

/* ---------- Galería con overlay (Educación) ---------- */
.gallery-item {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  height: 300px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-6px);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item .gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(31, 31, 31, 0.85);
  padding: 16px 20px;
  transition: background 0.3s ease;
}

.gallery-item:hover .gallery-caption {
  background: var(--teal);
}

.gallery-item .gallery-caption h5 {
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  margin: 0;
  font-size: 1rem;
}

/* ---------- Testimonios con foto ---------- */
.section-teal {
  background: var(--teal);
  color: var(--white);
}

.section-teal h2,
.section-teal .section-title p {
  color: var(--white);
}

.section-teal .section-title p {
  opacity: 0.9;
}

.testimonial-card {
  background: var(--white);
  border-radius: 4px;
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(1, 12, 73, 0.18);
}

.testimonial-avatar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--gray-100);
  padding: 16px 20px;
}

.testimonial-avatar img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-avatar span {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--navy);
}

.testimonial-card p {
  color: var(--primary-dark);
  font-style: italic;
  font-weight: 600;
  padding: 16px 20px 20px;
  margin: 0;
}

/* ---------- Listas con enlace ---------- */
.link-list li {
  border-bottom: 1px solid var(--gray-200);
  padding: 18px 0;
}

.link-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--navy);
}

.link-list a:hover { color: var(--teal); }

.link-list p {
  margin: 4px 0 0;
  font-weight: 400;
  color: var(--gray-600);
}

/* ---------- FAQ (acordeón nativo) ---------- */
.faq-item {
  border-bottom: 1px solid var(--gray-200);
  padding: 4px 0;
}

.faq-item summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--navy);
  padding: 16px 0;
  list-style: none;
  position: relative;
  padding-right: 30px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 14px;
  font-size: 1.4rem;
  color: var(--teal);
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  color: var(--gray-600);
  padding-bottom: 16px;
}

/* ---------- Formularios ---------- */
.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--gray-600);
  display: none;
}

.form-note.is-visible {
  display: block;
}

/* ---------- Contacto: tarjetas de departamentos ---------- */
.contact-card {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 20px;
}

.contact-card h3 {
  margin-bottom: 8px;
}

.contact-card a {
  display: block;
  color: var(--gray-600);
}

.contact-card a:hover {
  color: var(--teal);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #cfd3f0;
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-grid h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 14px;
}

.footer-grid li {
  margin-bottom: 10px;
}

.footer-grid a:hover {
  color: var(--teal);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  font-size: 0.85rem;
  text-align: center;
  color: var(--gray-400);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.social-links img {
  width: 28px;
  height: 28px;
}

/* ---------- Páginas de estado (404/401/en construcción) ---------- */
.state-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.state-page .container {
  max-width: 520px;
}

/* ---------- Utilidades ---------- */
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.badge {
  display: inline-block;
  background: rgba(16, 200, 204, 0.15);
  color: var(--teal);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
