/* ============================================================
   OLMAYA Child Theme - main.css
   Supratecnia 2026
   ============================================================ */

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

/* ---- VARIABLES GLOBALES ---- */
:root {
  --color-primary:      #432d73;
  --color-primary-dark: #2f1f55;
  --color-secondary:    #56638c;
  --color-accent:       #C9A84B;
  --color-accent-dark:  #A8882F;
  --color-white:        #FFFFFF;
  --color-bg:           #FFFFFF;
  --color-bg-alt:       #f3f3f3;
  --color-text:         #333333;
  --color-text-muted:   #666666;
  --color-border:       #e0e0e0;
  --font-primary:       'Montserrat', sans-serif;
  --font-body:          'Open Sans', sans-serif;
  --radius-sm:          6px;
  --radius-md:          12px;
  --radius-lg:          20px;
  --radius-full:        9999px;
  --shadow-sm:          0 2px 8px rgba(67,45,115,0.08);
  --shadow-md:          0 6px 24px rgba(67,45,115,0.12);
  --shadow-lg:          0 12px 40px rgba(67,45,115,0.16);
  --transition:         0.3s ease;
  --max-width:          1200px;
  --header-h:           120px;
}

/* ---- RESET Y BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .olmaya-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .olmaya-header { top: 46px; } }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul, ol { list-style: none; }

/* ---- TIPOGRAFIA ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-primary);
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: clamp(1.05rem, 2vw, 1.25rem); }
h4 { font-size: 1.05rem; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---- CONTENEDOR ---- */
.olmaya-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---- SECCIONES ---- */
.olmaya-section { padding: 60px 0; }
.olmaya-section--alt { background: var(--color-bg-alt); }
.olmaya-section__title { text-align: center; margin-bottom: 8px; font-size: 1.75rem; }
.olmaya-section__subtitle { text-align: center; color: var(--color-text-muted); font-size: 1rem; margin-bottom: 24px; }
.olmaya-section__divider { width: 50px; height: 3px; background: var(--color-accent); margin: 0 auto 32px; border-radius: var(--radius-full); }

/* ---- BOTONES ---- */
.olmaya-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.olmaya-btn--primary  { background: #432d73; color: #fff; border-color: #432d73; }
.olmaya-btn--primary:hover  { background: transparent; color: #432d73; border-color: #432d73; transform: scale(1.03); }
.olmaya-btn--secondary { background: transparent; color: #fff; border-color: #fff; }
.olmaya-btn--secondary:hover { background: #fff; color: #432d73; transform: scale(1.03); }
.olmaya-btn--outline  { background: transparent; color: #432d73; border-color: #432d73; }
.olmaya-btn--outline:hover  { color: var(--color-accent); border-color: var(--color-accent); transform: scale(1.03); }
.olmaya-btn--sm { padding: 8px 18px; font-size: 0.82rem; }

/* ---- HEADER ---- */
.olmaya-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: #f3f3f3;
  border-bottom: 1.5px solid #e0e0e0;
  display: flex;
  align-items: center;
  transition: box-shadow var(--transition);
}
.olmaya-header.scrolled { box-shadow: 0 2px 16px rgba(67,45,115,0.1); }
.olmaya-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}
.olmaya-header__logo img { height: 110px; width: auto; }
.olmaya-header__nav { display: flex; align-items: center; gap: 4px; }
.olmaya-header__nav a {
  color: #432d73;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  transition: all var(--transition);
}
.olmaya-header__nav a:hover,
.olmaya-header__nav a.active { color: var(--color-accent); background: rgba(201,168,75,0.1); }
.olmaya-header__nav a.olmaya-header__cta {
  background: #432d73;
  color: #fff !important;
  border-radius: var(--radius-full);
  padding: 9px 20px;
  margin-left: 8px;
  font-size: 0.82rem;
}
.olmaya-header__nav a.olmaya-header__cta:hover { background: var(--color-accent); color: #432d73 !important; }
.olmaya-header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.olmaya-header__hamburger span { display: block; width: 24px; height: 2px; background: #432d73; border-radius: 2px; transition: all var(--transition); }
.olmaya-header__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.olmaya-header__hamburger.open span:nth-child(2) { opacity: 0; }
.olmaya-header__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.olmaya-mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h); left: 0; right: 0;
  background: #f3f3f3;
  border-bottom: 1.5px solid #e0e0e0;
  z-index: 999;
  padding: 16px 24px 24px;
  box-shadow: var(--shadow-md);
  flex-direction: column;
  gap: 4px;
}
.olmaya-mobile-menu.open { display: flex; }
.olmaya-mobile-menu a { color: #432d73; font-family: var(--font-primary); font-weight: 600; font-size: 0.95rem; padding: 10px 14px; border-radius: var(--radius-sm); transition: all var(--transition); }
.olmaya-mobile-menu a:hover { color: var(--color-accent); background: rgba(67,45,115,0.06); }

/* ---- HERO ---- */
.olmaya-hero {
  position: relative;
  min-height: calc(88vh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 0;
}
.olmaya-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.olmaya-hero__overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(67,45,115,0.78) 0%, rgba(67,45,115,0.45) 100%); }
.olmaya-hero__content { position: relative; z-index: 2; width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 48px 32px; }
.olmaya-hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,168,75,0.15); border: 1px solid rgba(201,168,75,0.4);
  color: var(--color-accent); font-family: var(--font-primary); font-weight: 600;
  font-size: 0.78rem; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 7px 16px; border-radius: var(--radius-full); margin-bottom: 20px;
}
.olmaya-hero__title { color: #fff !important; font-size: clamp(2rem, 5vw, 3.4rem); max-width: 760px; margin-bottom: 16px; text-shadow: 0 2px 16px rgba(0,0,0,0.25); }
.olmaya-hero__subtitle { color: rgba(255,255,255,0.88); font-size: 1.1rem; max-width: 520px; margin-bottom: 32px; }
.olmaya-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.olmaya-hero--interior { min-height: 300px; }
.olmaya-hero--interior .olmaya-hero__title { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }

/* ---- CARDS PROMOCION ---- */
.olmaya-promo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.olmaya-promo-card { background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition); display: flex; flex-direction: column; }
.olmaya-promo-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.olmaya-promo-card__img { position: relative; height: 210px; overflow: hidden; }
.olmaya-promo-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.olmaya-promo-card:hover .olmaya-promo-card__img img { transform: scale(1.05); }
.olmaya-promo-card__price-badge { position: absolute; bottom: 12px; right: 12px; background: var(--color-accent); color: #432d73; font-family: var(--font-primary); font-weight: 700; font-size: 0.85rem; padding: 5px 12px; border-radius: var(--radius-full); }
.olmaya-promo-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.olmaya-promo-card__meta { display: flex; gap: 12px; font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 8px; }
.olmaya-promo-card__title { font-family: var(--font-primary); font-weight: 700; font-size: 1rem; color: #432d73; margin-bottom: 6px; }
.olmaya-promo-card__fecha { font-size: 0.88rem; color: var(--color-text-muted); margin-bottom: 14px; }
.olmaya-promo-card__footer { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--color-border); }

/* ---- AGENTES ---- */
.olmaya-agentes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 28px; justify-items: center; }
.olmaya-agente-card { text-align: center; width: 100%; max-width: 200px; }
.olmaya-agente-card__foto { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; border: 3px solid var(--color-accent); transition: transform var(--transition), box-shadow var(--transition); }
.olmaya-agente-card:hover .olmaya-agente-card__foto { transform: scale(1.05); box-shadow: 0 8px 20px rgba(201,168,75,0.25); }
.olmaya-agente-card__nombre { font-family: var(--font-primary); font-weight: 700; font-size: 0.9rem; color: #432d73; margin-bottom: 3px; }
.olmaya-agente-card__rol { font-size: 0.82rem; color: var(--color-accent); font-weight: 600; }

/* ---- BLOG CARDS ---- */
.olmaya-blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.olmaya-blog-card { background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition); }
.olmaya-blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.olmaya-blog-card__img { height: 190px; overflow: hidden; }
.olmaya-blog-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.olmaya-blog-card:hover .olmaya-blog-card__img img { transform: scale(1.05); }
.olmaya-blog-card__body { padding: 20px; }
.olmaya-blog-card__cat { font-size: 0.72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--color-accent); margin-bottom: 8px; }
.olmaya-blog-card__title { font-family: var(--font-primary); font-weight: 700; font-size: 1rem; color: #432d73; margin-bottom: 8px; line-height: 1.4; }
.olmaya-blog-card__excerpt { font-size: 0.9rem; color: var(--color-text-muted); margin-bottom: 12px; line-height: 1.6; }
.olmaya-blog-card__fecha { font-size: 0.82rem; color: var(--color-text-muted); }

/* ---- VALORES ---- */
.olmaya-valores-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 960px; margin: 0 auto; }
.olmaya-valor-item { text-align: center; padding: 24px 16px; border-radius: var(--radius-md); background: #fff; border: 1px solid var(--color-border); transition: all var(--transition); }
.olmaya-valor-item:hover { border-color: var(--color-accent); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.olmaya-valor-item__icon { width: 48px; height: 48px; background: #432d73; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.olmaya-valor-item__nombre { font-family: var(--font-primary); font-weight: 700; font-size: 0.88rem; color: #432d73; }
.olmaya-valor-item__desc { font-size: 0.8rem; color: var(--color-text-muted); margin-top: 6px; line-height: 1.5; }

/* ---- FOOTER ---- */
.olmaya-footer { background: #432d73; color: rgba(255,255,255,0.8); padding: 52px 0 0; }
.olmaya-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.olmaya-footer__logo { margin-bottom: 14px; }
.olmaya-footer__logo img { height: 140px; width: auto; }
.olmaya-footer__desc { font-size: 0.88rem; line-height: 1.7; margin-bottom: 18px; color: rgba(255,255,255,0.65); }
.olmaya-footer__redes { display: flex; gap: 10px; }
.olmaya-footer__red { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 15px; transition: all var(--transition); color: rgba(255,255,255,0.8); }
.olmaya-footer__red:hover { background: var(--color-accent); border-color: var(--color-accent); color: #432d73; }
.olmaya-footer__col-title { font-family: var(--font-primary); font-weight: 700; font-size: 0.82rem; color: var(--color-accent); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.olmaya-footer__links { display: flex; flex-direction: column; gap: 9px; }
.olmaya-footer__links a { font-size: 0.88rem; color: rgba(255,255,255,0.65); transition: color var(--transition); }
.olmaya-footer__links a:hover { color: var(--color-accent); }
.olmaya-footer__contacto-item { display: flex; align-items: flex-start; gap: 9px; font-size: 0.88rem; color: rgba(255,255,255,0.85); margin-bottom: 10px; }
.olmaya-footer__contacto-item a { color: rgba(255,255,255,0.85); transition: color var(--transition); }
.olmaya-footer__contacto-item a:hover { color: var(--color-accent); }
.olmaya-footer__bottom { padding: 18px 0; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: rgba(255,255,255,0.38); }
.olmaya-footer__bottom a { color: rgba(255,255,255,0.38); transition: color var(--transition); }
.olmaya-footer__bottom a:hover { color: var(--color-accent); }

/* ---- WHATSAPP ---- */
.olmaya-whatsapp-btn { position: fixed; bottom: 24px; right: 24px; width: 54px; height: 54px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(37,211,102,0.4); z-index: 990; transition: transform var(--transition); text-decoration: none; }
.olmaya-whatsapp-btn:hover { transform: scale(1.1); }
.olmaya-whatsapp-btn svg { width: 28px; height: 28px; fill: #fff; }

/* ---- PAGINACION ---- */
.olmaya-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.olmaya-pagination .page-numbers { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-primary); font-weight: 600; font-size: 0.88rem; border: 2px solid var(--color-border); color: var(--color-text); transition: all var(--transition); }
.olmaya-pagination .page-numbers:hover,
.olmaya-pagination .page-numbers.current { background: #432d73; border-color: #432d73; color: #fff; }

/* ---- CTA BAND ---- */
.olmaya-cta-band { background: #432d73; padding: 56px 0; text-align: center; }
.olmaya-cta-band__title { color: #fff; margin-bottom: 10px; }
.olmaya-cta-band__subtitle { color: rgba(255,255,255,0.78); font-size: 1rem; margin-bottom: 28px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 960px) {
  .olmaya-footer__grid { grid-template-columns: 1fr 1fr; }
  .olmaya-footer__grid > *:first-child { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  :root { --header-h: 72px; }
  .olmaya-header__logo img { height: 60px; }
  .olmaya-header__nav { display: none; }
  .olmaya-header__hamburger { display: flex; }
  .olmaya-promo-grid, .olmaya-blog-grid { grid-template-columns: 1fr; }
  .olmaya-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .olmaya-footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
  .olmaya-section { padding: 48px 0; }
  .olmaya-container { padding: 0 20px; }
}
@media (max-width: 480px) {
  .olmaya-hero__actions { flex-direction: column; }
  .olmaya-btn { width: 100%; justify-content: center; }
  .olmaya-valores-grid { grid-template-columns: repeat(2, 1fr); }
}