/*
Theme Name: Fundacion Ecuador
Theme URI: https://example.com/fundacion-ecuador
Author: Fundacion Ecuador
Description: Tema institucional liviano para Fundacion Ecuador, compatible con Elementor y contenido editable desde WordPress.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: fundacion-ecuador
*/

:root {
  --fe-white: #ffffff;
  --fe-soft-gray: #f5f6f8;
  --fe-text: #20242a;
  --fe-muted: #5f6670;
  --fe-blue: #2d3288;
  --fe-yellow: #f6dd11;
  --fe-red: #e51f2f;
  --fe-border: #dde1e7;
  --fe-shadow: 0 18px 42px rgba(31, 36, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--fe-text);
  background: var(--fe-white);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.fe-container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.fe-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  padding: 14px min(4vw, 48px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--fe-border);
  backdrop-filter: blur(12px);
}

.fe-logo img {
  max-width: 128px;
}

.fe-site-title {
  color: var(--fe-blue);
  font-weight: 800;
  text-decoration: none;
}

.fe-main-menu {
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fe-main-menu a {
  color: var(--fe-muted);
  text-decoration: none;
}

.fe-main-menu a:hover {
  color: var(--fe-blue);
}

.fe-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--fe-border);
  border-radius: 6px;
  background: var(--fe-white);
  cursor: pointer;
}

.fe-menu-icon,
.fe-menu-icon::before,
.fe-menu-icon::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--fe-blue);
  content: "";
}

.fe-menu-icon {
  position: relative;
}

.fe-menu-icon::before,
.fe-menu-icon::after {
  position: absolute;
  left: 0;
}

.fe-menu-icon::before {
  top: -7px;
}

.fe-menu-icon::after {
  top: 7px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.fe-whatsapp,
.fe-button,
.wp-block-button__link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 10px 18px;
  color: var(--fe-white);
  background: var(--fe-blue);
  font-weight: 700;
  text-decoration: none;
}

.fe-section {
  padding: 76px 0;
}

.fe-muted {
  background: var(--fe-soft-gray);
}

.fe-hero {
  padding-top: 86px;
  background: linear-gradient(180deg, var(--fe-white), var(--fe-soft-gray));
}

.fe-hero-grid,
.fe-contact-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 34px;
  align-items: center;
}

.fe-eyebrow {
  margin: 0 0 10px;
  color: var(--fe-blue);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0;
}

.fe-hero h1,
.fe-section h2,
.fe-section h3,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content p {
  overflow-wrap: anywhere;
}

.fe-hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
}

.fe-section h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
}

.fe-hero-text {
  max-width: 670px;
  color: var(--fe-muted);
  font-size: 20px;
}

.fe-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.fe-button.secondary {
  color: var(--fe-blue);
  border: 1px solid var(--fe-blue);
  background: var(--fe-white);
}

.fe-panel,
.fe-card,
.fe-program,
.fe-contact-box {
  border: 1px solid var(--fe-border);
  border-radius: 8px;
  background: var(--fe-white);
  box-shadow: var(--fe-shadow);
}

.fe-panel {
  padding: 28px;
  border-top: 5px solid var(--fe-yellow);
}

.fe-section-heading {
  margin-bottom: 28px;
}

.fe-grid-3,
.fe-gallery {
  display: grid;
  gap: 18px;
}

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

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

.fe-card,
.fe-program,
.fe-contact-box {
  padding: 24px;
}

.fe-card p,
.fe-program p,
.fe-contact-box p {
  color: var(--fe-muted);
}

.fe-history {
  margin-top: 18px;
  padding: 28px;
  border-left: 5px solid var(--fe-blue);
  background: var(--fe-soft-gray);
}

.fe-status {
  display: inline-flex;
  margin-bottom: 18px;
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--fe-white);
  font-size: 13px;
  font-weight: 700;
}

.fe-status.done {
  background: var(--fe-blue);
}

.fe-status.active {
  background: var(--fe-red);
}

.fe-status.upcoming {
  color: var(--fe-text);
  background: var(--fe-yellow);
}

.fe-gallery-item {
  display: grid;
  min-height: 180px;
  place-items: center;
  border: 1px dashed #c9ced7;
  border-radius: 8px;
  color: var(--fe-muted);
  background: var(--fe-soft-gray);
  font-weight: 700;
}

.fe-gallery-item.video {
  color: var(--fe-white);
  background: var(--fe-blue);
}

.fe-site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 24px min(4vw, 48px);
  color: var(--fe-muted);
  border-top: 1px solid var(--fe-border);
}

.entry-content {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.page-template-elementor-full-width .entry-content {
  width: 100%;
  padding: 0;
}

@media (max-width: 860px) {
  .fe-site-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .fe-menu-toggle {
    display: inline-flex;
  }

  .fe-site-header nav,
  .fe-whatsapp {
    grid-column: 1 / -1;
  }

  .fe-main-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    border-top: 1px solid var(--fe-border);
  }

  .fe-main-menu.is-open {
    display: flex;
  }

  .fe-main-menu a {
    display: block;
    padding: 12px 0;
  }

  .fe-hero-grid,
  .fe-contact-grid,
  .fe-grid-3 {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .fe-site-header {
    padding: 12px 18px;
  }

  .fe-logo img {
    max-width: 104px;
  }

  .fe-hero {
    padding-top: 46px;
  }

  .fe-hero h1 {
    font-size: 42px;
  }

  .fe-hero-text {
    font-size: 18px;
  }

  .fe-card,
  .fe-program,
  .fe-panel,
  .fe-contact-box {
    padding: 20px;
  }
}

@media (max-width: 560px) {
  .fe-section {
    padding: 52px 0;
  }

  .fe-gallery {
    grid-template-columns: 1fr;
  }

  .fe-whatsapp,
  .fe-button {
    width: 100%;
  }
}
