/*
Theme Name: SMIS Theme
Theme URI: https://smis.org.mx
Author: SMIS Team
Description: Tema personalizado en blanco optimizado para Elementor basado en la arquitectura y diseño Figma de SMIS.
Version: 1.0.0
Text Domain: smis-theme
*/

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;600;700&display=swap');

:root {
  --blue: #254787;
  --pale: #e7ecf4;
  --yellow: #ffd001;
}

* {
  box-sizing: border-box;
}

html, body {
  overflow-x: clip;
  width: 100%;
}

body, .smis-page {
  font-family: Inter, Arial, sans-serif;
  color: #111;
  background: #fff;
  margin: 0;
  padding: 0;
}

.smis-page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: visible;
}

.smis-header {
  border-top: 3px solid var(--blue);
  background: #fff;
  width: 100%;
}

.smis-topbar, .smis-nav {
  max-width: 1120px;
  margin: auto;
  display: flex;
  align-items: center;
}

.smis-topbar {
  height: 42px;
  justify-content: space-between;
  font-size: 12px;
}

.smis-social, .smis-account {
  display: flex;
  gap: 16px;
  align-items: center;
}

.smis-page a, a.smis-link {
  color: inherit;
  text-decoration: none;
}

.smis-account b {
  background: var(--yellow);
  border-radius: 50%;
  font-size: 8px;
  padding: 2px 5px;
  margin-left: -7px;
}

.smis-nav {
  height: 88px;
  justify-content: center;
  gap: 28px;
  font: 16px 'Bebas Neue', sans-serif;
  white-space: nowrap;
}

.smis-nav img {
  width: 66px;
  height: 56px;
  object-fit: contain;
}

.smis-hero, .smis-section {
  min-height: 540px;
  padding: 80px max(24px, calc((100% - 974px) / 2));
  position: relative;
}

.smis-hero {
  min-height: 590px;
  background: linear-gradient(135deg, #fff 0%, var(--pale) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.smis-hero h1, h2 {
  color: var(--blue);
  font-weight: 700;
}

.smis-hero h1 {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.04;
}

.hero-logo {
  width: min(38vw, 425px);
}

.smis-button {
  display: inline-block;
  background: var(--blue);
  color: #fff !important;
  padding: 13px 24px;
  border-radius: 4px;
  text-decoration: none;
}

.smis-section h2 {
  text-align: center;
  font-size: 36px;
  margin: 0 0 52px;
}

.news {
  background: rgba(231, 236, 244, 0.66);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.news article {
  background: #fff;
  padding-bottom: 22px;
  border-radius: 10px;
  overflow: hidden;
}

.news article img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.news h3, .news p {
  padding: 0 22px;
}

.events {
  background: #fff5f0;
}

.event-card {
  max-width: 700px;
  margin: auto;
  background: #fff;
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 25px;
  box-shadow: 0 8px 24px #25478718;
}

.event-card span {
  display: block;
  color: #d4703f;
}

.event-card strong {
  font-size: 54px;
  color: var(--blue);
}

.event-card p {
  flex: 1;
}

.society {
  text-align: center;
  background: #f7f8fd;
}

.lead {
  max-width: 650px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.pillars, .board-grid {
  display: flex;
  gap: 18px;
  justify-content: center;
}

.pillars div {
  background: var(--blue);
  color: #fff;
  padding: 18px 30px;
  border-radius: 30px;
}

.model {
  text-align: center;
  background: #fafcff;
}

.model img {
  width: min(620px, 90%);
  height: 220px;
  object-fit: contain;
}

.board {
  background: #f8fafc;
}

.member {
  width: 167px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.member div {
  height: 166px;
  background: #c2cee5;
  border-radius: 10px;
}

.member small {
  font-size: 13px;
}

.smis-footer {
  min-height: 149px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 25px max(24px, calc((100% - 860px) / 2));
  color: rgba(37, 71, 135, 0.9);
  font-size: 11px;
  background: #fff;
}

.smis-footer img {
  width: 82px;
}

.smis-footer > div {
  max-width: 210px;
}

@media (max-width: 760px) {
  .smis-topbar {
    padding: 0 18px;
  }
  .smis-nav {
    height: auto;
    flex-wrap: wrap;
    padding: 18px;
    gap: 15px;
  }
  .smis-hero {
    display: block;
    text-align: center;
    padding-top: 65px;
  }
  .hero-logo {
    margin-top: 35px;
    width: 70%;
  }
  .smis-section {
    padding: 65px 20px;
    min-height: auto;
  }
  .news-grid, .board-grid {
    grid-template-columns: 1fr;
    display: grid;
  }
  .member {
    margin: auto;
  }
  .pillars {
    flex-direction: column;
  }
  .event-card {
    flex-wrap: wrap;
  }
  .smis-footer {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
}
