/* GRA Consultora — Gabriel Rubinstein — hoja de estilos del sitio estático.
   Replica el look del tema Enfold original (tipografías, colores y medidas)
   sin el CSS del framework. */

/* ---------- Fuentes (alojadas localmente) ---------- */
/* El original cargaba Lato 300/400/700 y Source Serif Pro 400/600/700:
   solo se usan estos cuatro pesos (el 600 de Lato se ve en 700 y el 300 de Source Serif en 400). */
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/lato-400.woff2") format("woff2");
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/lato-700.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-serif-pro-400.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif Pro";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-serif-pro-600.woff2") format("woff2");
}

/* ---------- Variables ---------- */
:root {
  --blue: #2077b9;
  --blue-box: #2076b9;
  --blue-dark: #005597;
  --text: #666;
  --text-muted: #8d8d8d;
  --heading: #222;
  --border: #e1e1e1;
  --font-sans: "Lato", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: "Source Serif Pro", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --container: 1310px;
  --gutter: 50px;
  --header-h: 46px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 13px/1.65 var(--font-sans);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
p { margin: 0.85em 0; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; color: var(--heading); margin: 0; }
iframe { border: 0; display: block; }
strong { font-weight: 700; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 8px; top: -60px;
  z-index: 200;
  background: #fff;
  color: #333;
  padding: 8px 14px;
  border: 1px solid var(--border);
}
.skip-link:focus { top: 8px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Íconos de la fuente entypo del tema, convertidos a SVG */
.icon { display: inline-block; height: 1em; width: auto; fill: currentColor; vertical-align: middle; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: #fff;
  color: #333;
}
.site-header .container { position: relative; height: 100%; }

.logo {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font: 600 20px/22px var(--font-serif);
  color: #000;
  white-space: nowrap;
}
.logo:hover { color: #000; }
.logo__gra { color: var(--blue); }

/* Menú partido: tres ítems a cada lado del logo */
/* El menú arranca 428px a la izquierda del centro, como en el original */
.main-nav {
  position: absolute;
  top: 0;
  left: calc(50% - 428px);
  height: 44px;
}
.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  height: 100%;
}
.menu > li { position: relative; height: 100%; }
.menu > li:nth-child(3) { margin-right: 300px; }
.menu > li > a {
  position: relative;
  display: block;
  height: 100%;
  padding: 0 13px;
  line-height: 44px;
  color: #333;
  font-weight: 700;
  white-space: nowrap;
}
/* subrayado azul del ítem activo / hover */
.menu > li > a::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 43px;
  height: 2px;
  background: var(--blue);
  opacity: 0;
  transition: opacity 0.2s;
}
.menu > li > a[aria-current]::after,
.menu > li:hover > a::after,
.menu > li:focus-within > a::after { opacity: 1; }

.sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 46px;
  left: 0;
  width: 208px;
  background: #fff;
  border-top: 2px solid var(--blue);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  visibility: hidden;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.menu > li:hover > .sub-menu,
.menu > li:focus-within > .sub-menu {
  visibility: visible;
  opacity: 1;
  transform: none;
}
.sub-menu a {
  display: block;
  padding: 9px 15px;
  font-size: 12px;
  line-height: 21px;
  color: #333;
}
.sub-menu a:hover { color: var(--blue); background: #f8f8f8; }

.social {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 7px;
  left: 821px;
  display: flex;
}
.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: #333;
  font-size: 13px;
}
.social a:hover { color: var(--blue); }

.menu-toggle { display: none; }

/* ---------- Hero (LayerSlider original: fondo + logo centrado) ---------- */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: #f8f8f8;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* El logo se escalaba con el ancho de la ventana: 238.6% del ancho, centrado */
.hero__logo {
  position: absolute;
  left: 50%;
  top: calc(50% + 23px);
  width: 238.6vw;
  max-width: none;
  transform: translate(-50%, -50%);
}

/* ---------- Columnas ---------- */
.row { display: flex; justify-content: space-between; align-items: flex-start; }
.col-1-5 { width: 15.2%; }
.col-3-5 { width: 57.6%; }
.col-1-3 { width: 29.33%; }
.col-2-3 { width: 64.67%; }
.col-1-2 { width: 50%; }
.col-1-4 { width: 25%; }
.row--center { justify-content: center; }
.row--center .col-1-4 + .col-1-4 { margin-left: 0; }

/* ---------- Sección principal (fondo con el pájaro y las ondas) ---------- */
.main-section {
  background: #fff url("../img/fondo-ondas.webp") 0 0 no-repeat;
  padding: 50px 0;
}

.intro {
  font-size: 18px;
  line-height: 1.1;
  color: var(--text);
  text-align: center;
  margin: 0 0 4px;
}

/* Títulos de sección ("special heading" de Enfold) */
.sec-head { padding-top: 50px; margin-top: 50px; }
.sec-head h2 {
  font-size: 32px;
  line-height: 1.1;
  font-weight: 400;
  color: #000;
  text-align: center;
  padding-bottom: 10px;
}
.sec-head--light h2 { color: #fff; }
.sec-head--dark h2 { color: var(--heading); }
.sec-head--flush h2 { padding-bottom: 0; }
.sec-head--loose h2 { padding-bottom: 30px; }

/* Recuadros de redes */
.social-boxes { margin-top: 74px; }
.social-box {
  position: relative;
  padding: 56px 20px 20px;
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.3);
  text-align: center;
}
.social-box__icon {
  position: absolute;
  top: -26px;
  left: 50%;
  margin-left: -26.5px;
  width: 53px;
  height: 53px;
  border-radius: 100px;
  background: var(--blue-box);
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-box__icon:hover { color: #fff; background: var(--blue-dark); }
.social-box p { margin: 0; }

/* Espacio donde estaba el feed de Twitter: deja ver el dibujo del fondo */
.feed-spacer { height: 550px; margin-top: 99px; }

/* Acerca de */
.about { margin-top: 125px; }
.about__photo img { margin: 0 auto; border-radius: 3px; }
.about__text { background: #fff; padding: 20px; }
.about__text h3 {
  font-size: 20.15px;
  line-height: 1.1;
  margin: 30px 0 8px;
}
.about__text p { margin: -7px 0 0; color: var(--text-muted); }

/* Íconos redondos (servicios y contacto) */
.iconbox { text-align: center; }
.iconbox__icon {
  width: 92px;
  height: 92px;
  margin: 0 auto 20px;
  border-radius: 100px;
  border: 1px solid var(--blue-box);
  background: var(--blue-box);
  color: #fff;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.iconbox h3 {
  font-size: 16.25px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #000;
  padding-top: 2px;
  margin-bottom: 16px;
}
.iconbox p { margin: 0; }

.services { margin-top: 71px; }

/* Clientes */
.sec-head--clients { margin-top: 150px; padding-top: 30px; }
.clients {
  background: var(--blue-box);
  padding-top: 51px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.clients__item { height: 102px; padding: 1px; }
.clients__item img { margin: 0 auto; }

/* Presentaciones */
.sec-head--pres { margin-top: 150px; }
.presentations { margin-top: 1px; }
.caption-image {
  position: relative;
  width: 475px;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 3px;
  overflow: hidden;
}
.caption-image__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 25px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 16.9px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s;
}
.caption-image:hover .caption-image__overlay,
.caption-image:focus-within .caption-image__overlay { opacity: 1; }
.caption-image__overlay p { margin: 0; }

/* Fondo virtual de inversiones */
.investments { margin-top: 50px; text-align: center; }
.investments > div { padding-bottom: 14px; }
.investments img { margin: 0 auto; border-radius: 3px; transition: opacity 0.4s; }
.investments a:hover img { opacity: 0.85; }
.investments h3 { font-size: 20px; line-height: 1.1; margin: 10px 0 8px; }
.investments p { margin: 0; }

/* Galería multimedia (masonry de videos) */
.sec-head--gallery { margin-top: 175px; }
.masonry { display: flex; gap: 15px; padding-bottom: 14px; }
.masonry__col { flex: 1 1 0; display: flex; flex-direction: column; gap: 15px; min-width: 0; }
.video-card { display: block; color: var(--text); }
.video-card:hover { color: var(--text); }
.video-card__media { background: #f8f8f8; aspect-ratio: 1.9; overflow: hidden; }
.video-card__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; transition: opacity 0.4s; }
.video-card:hover .video-card__media img,
.video-card:focus-visible .video-card__media img { opacity: 1; }
.video-card__body { position: relative; background: #fff; padding: 20px; }
.video-card__body::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  background: #fff;
  transform: rotate(45deg);
}
.video-card h3 { font-size: 15px; line-height: 1.3; }
.video-card__body p { margin: 0; padding-top: 4px; }

/* Premios Fortuna: acordeón de tres fotos */
.sec-head--fortuna { margin-top: 150px; }
.accordion {
  --acc-w: min(710px, calc(100vw - 2 * var(--gutter)));
  margin-top: 51px;
  display: flex;
  height: calc(var(--acc-w) * 375 / 710);
  overflow: hidden;
}
.accordion__item {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
  transition: flex-grow 0.4s;
}
.accordion__item:hover { flex-grow: 2.4; }
.accordion__item img { width: var(--acc-w); max-width: none; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) {
  .accordion__item { transition: none; }
}

.fortuna-text { margin-top: 50px; text-align: center; }
.fortuna-text > div { display: flow-root; }
.fortuna-text strong { color: var(--blue); }

/* ---------- Blog ---------- */
.blog { padding: 20px 0; }
.blog .sec-head { margin-top: 0; padding-top: 20px; }
.blog-grid { margin-top: 70px; margin-bottom: 40px; justify-content: flex-start; gap: 6%; }
.blog-card__image {
  display: block;
  margin-bottom: 6px;
  border-radius: 3px;
  overflow: hidden;
  aspect-ratio: 495 / 400;
}
.blog-card__image img { width: 100%; height: 100%; object-fit: cover; }
.blog-card__image--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}
.blog-card__fallback {
  width: 60px;
  height: 60px;
  border-radius: 100px;
  background: var(--text-muted);
  color: #f8f8f8;
  font-size: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-card h3 { font-size: 14.3px; line-height: 1.4; }
.blog-card h3 a { color: var(--heading); }
.blog-card h3 a:hover { color: var(--blue); }
.blog-card__meta { padding-bottom: 10px; color: var(--text-muted); font-size: 11.7px; }
.blog-card__excerpt { margin: 0; }

/* ---------- Contacto ---------- */
.contact {
  position: relative;
  display: flow-root;
  background: #f8f8f8 url("../img/contacto-fondo.jpg") 0 0 fixed;
  padding-bottom: 50px;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
}
.contact > .container { position: relative; }
.contact .sec-head { margin-top: 0; padding-top: 20px; }
.contact-boxes { margin-top: 20px; }
.contact-boxes .iconbox h3 { color: var(--heading); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue);
  color: #fff;
  font-size: 11px;
}
.site-footer .container { padding-top: 15px; padding-bottom: 15px; }

/* ---------- Páginas de posts ---------- */
.page-plain { padding: 50px 0 80px; margin-top: var(--header-h); }
.post { max-width: 960px; margin: 0 auto; }
.post__title { font-size: 34px; line-height: 1.1; margin: 0 0 6px; }
.post__meta { color: var(--text-muted); font-size: 11.7px; margin: 0 0 25px; }
.post__image { margin: 0 0 25px; border-radius: 3px; }
.post__content { font-size: 14px; }
/* En WordPress cada pregunta era una lista de un ítem y los incisos ya traen "a)", "b)":
   sin numeración automática se lee como en el original sin el "1." repetido. */
.post__content ol { list-style: none; padding-left: 0; margin: 0.85em 0; }
.post__content li { margin: 0.2em 0; }
.post__pdf { width: 100%; height: 80vh; min-height: 480px; border: 1px solid var(--border); margin: 15px 0; }
.post__back { margin-top: 40px; }
.btn {
  display: inline-block;
  padding: 13px 30px 11px;
  border-radius: 3px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}
.btn:hover { background: var(--blue-dark); color: #fff; }
.center { text-align: center; }

/* ---------- Botón volver arriba ---------- */
.to-top {
  position: fixed;
  right: 50px;
  bottom: 50px;
  z-index: 90;
  width: 50px;
  height: 50px;
  border-radius: 2px;
  background: rgba(32, 119, 185, 0.65);
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.to-top:hover { color: #fff; background: var(--blue); }
.to-top.is-visible { opacity: 1; visibility: visible; }

/* ---------- Lightbox de videos ---------- */
.lightbox {
  width: min(1100px, 92vw);
  padding: 0;
  border: 0;
  background: #000;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.85); }
.lightbox__frame { aspect-ratio: 16 / 9; }
.lightbox__frame iframe { width: 100%; height: 100%; }
.lightbox__close {
  position: absolute;
  right: 0;
  top: -44px;
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Responsive ---------- */
/* Las redes del header se ocultaban por debajo de 1025 px */
@media (max-width: 1024px) {
  .social { display: none; }
}

@media (max-width: 989px) {
  .site-header { position: static; height: 90px; }
  .logo { left: var(--gutter); transform: none; }
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: var(--gutter);
    top: 22px;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    background: #fff;
    color: #333;
    font-size: 30px;
    cursor: pointer;
  }
  .main-nav {
    display: none;
    top: 90px;
    left: 0;
    right: 0;
    transform: none;
    height: auto;
    padding: 0;
    background: #fff;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
  }
  .site-header.is-open .main-nav { display: block; }
  .site-header.is-open { position: relative; z-index: 100; }
  .menu { display: block; height: auto; border-top: 1px solid var(--border); }
  .menu > li { height: auto; }
  .menu > li:nth-child(3) { margin-right: 0; }
  .menu > li > a { padding: 0 var(--gutter); line-height: 46px; border-bottom: 1px solid var(--border); }
  .menu > li > a::after { display: none; }
  .sub-menu {
    position: static;
    width: auto;
    border-top: 0;
    box-shadow: none;
    visibility: visible;
    opacity: 1;
    transform: none;
  }
  .sub-menu a { padding: 12px var(--gutter) 12px calc(var(--gutter) + 20px); font-size: 13px; border-bottom: 1px solid var(--border); }
  .hero__logo { top: calc(50% + 7px); }
  .page-plain { margin-top: 0; }
}

@media (max-width: 767px) {
  :root { --gutter: 7.5%; }
  .container { padding: 0 7.5%; }
  .menu-toggle { right: 7.5%; }
  .accordion { --acc-w: 85vw; }
  .main-section { background: #fff; }

  /* Todas las columnas se apilan con 50px entre sí (Quick CSS del original) */
  .row { display: block; }
  .row > * { width: auto; margin-top: 50px; }
  .row--center { display: block; }

  .sec-head h2 { font-size: 25.6px; }
  .sec-head--light h2 { color: #000; }

  .social-boxes, .feed-spacer { display: none; }
  .about { margin-top: 4px; }
  .services { margin-top: 1px; }
  .services .iconbox { padding-top: 20px; }
  .sec-head--clients { margin-top: 50px; }
  .clients { display: block; margin-top: 50px; }
  .clients__item { margin-top: 50px; }
  .sec-head--pres { margin-top: 51px; }
  .presentations { margin-top: 0; }
  .caption-image { width: auto; }
  .investments { margin-top: 1px; }
  .sec-head--gallery { margin-top: 50px; }
  /* En celular los videos van en una columna, en el orden original */
  .masonry { flex-direction: column; margin-top: 50px; }
  .masonry__col { display: contents; }
  .video-card[data-order="2"] { order: 2; }
  .video-card[data-order="3"] { order: 3; }
  .video-card[data-order="4"] { order: 4; }
  .video-card[data-order="5"] { order: 5; }
  .video-card[data-order="6"] { order: 6; }
  .video-card[data-order="7"] { order: 7; }
  .sec-head--fortuna { margin-top: 50px; }
  .accordion { margin-top: 50px; }
  .fortuna-text { margin-top: 0; }
  .fortuna-text > * { margin-top: 102px; }
  .main-section { padding-bottom: 101px; }

  .blog .sec-head { margin-top: 50px; }
  .blog-grid { margin-top: 50px; padding-top: 20px; }
  .blog-grid > * + * { margin-top: 51px; }

  .contact { background-attachment: scroll; padding-bottom: 101px; }
  .contact .sec-head { margin-top: 50px; }
  .contact-boxes { margin-top: 0; }
  .contact-boxes > :first-child { margin-top: 101px; }
  .contact-boxes .iconbox { padding-top: 20px; }

  .to-top { right: 20px; bottom: 20px; }
}
