/*
Theme Name:   Inspiro Oceanario
Theme URI:    https://oceanario.co/
Description:  Tema hijo de Inspiro con el nuevo diseno de portada del Oceanario Islas del Rosario - CEINER. Conserva todas las plantillas de Inspiro para tienda, eventos y blog, y solo reemplaza la pagina de inicio.
Author:       CEINER / Oceanario Islas del Rosario
Author URI:   https://oceanario.co/
Template:     inspiro
Requires PHP: 7.4
Version:      1.2.1
Text Domain:  inspiro-oceanario
*/

/* ==========================================================================
   Sistema de diseno - Oceanario Islas del Rosario
   ========================================================================== */

:root {
  --oc-deep:   #04263d;
  --oc-ocean:  #0a4f6e;
  --oc-teal:   #0e8c92;
  --oc-aqua:   #3fb8b0;
  --oc-sand:   #f3ede1;
  --oc-coral:  #e8743b;
  --oc-ink:    #0c1b25;
  --oc-paper:  #ffffff;
  --oc-muted:  #5d6b73;
  --oc-maxw:   1180px;
  --oc-r:      18px;
  --oc-shadow: 0 18px 50px rgba(4, 38, 61, .16);
}

/* Alcance: todo el diseno vive dentro de .oc-home para no afectar
   la tienda, los eventos ni el blog, que siguen usando Inspiro. */

.oc-home *,
.oc-home *::before,
.oc-home *::after { box-sizing: border-box; }

.oc-home {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--oc-ink);
  background: var(--oc-paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Inspiro fija `color:#000` directamente sobre las etiquetas h1..h6.
   Una regla sobre etiqueta (0,0,1) gana a la herencia del contenedor,
   asi que restauramos la herencia con mayor especificidad (0,1,1). */
.oc-home h1,
.oc-home h2,
.oc-home h3,
.oc-home h4,
.oc-home h5,
.oc-home h6 {
  color: inherit;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0;
}

.oc-home p { margin: 0; }
.oc-home a { color: inherit; text-decoration: none; }
.oc-home img { max-width: 100%; height: auto; display: block; }
.oc-home ul { margin: 0; padding: 0; list-style: none; }

html { scroll-behavior: smooth; }

.oc-wrap {
  max-width: var(--oc-maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.oc-eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--oc-teal);
  margin-bottom: 14px;
}

.oc-eyebrow--light { color: var(--oc-aqua); }

/* ---------- Botones ---------- */

.oc-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.oc-btn:focus-visible {
  outline: 3px solid var(--oc-aqua);
  outline-offset: 3px;
}

.oc-btn--coral {
  background: var(--oc-coral);
  color: #fff;
  box-shadow: 0 12px 30px rgba(232, 116, 59, .35);
}

.oc-btn--coral:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(232, 116, 59, .45);
  color: #fff;
}

.oc-btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .75);
}

.oc-btn--ghost:hover {
  background: rgba(255, 255, 255, .12);
  transform: translateY(-2px);
  color: #fff;
}

.oc-btn--teal {
  background: var(--oc-teal);
  color: #fff;
  box-shadow: 0 12px 30px rgba(14, 140, 146, .3);
}

.oc-btn--teal:hover { transform: translateY(-2px); color: #fff; }

/* ---------- Navegacion ---------- */

.oc-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 28px;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}

.oc-nav.is-stuck {
  background: var(--oc-deep);
  box-shadow: 0 6px 26px rgba(4, 38, 61, .35);
  padding: 8px 28px;
}

.oc-nav__logo {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 8px 24px rgba(4, 38, 61, .18);
}

.oc-nav__logo img {
  width: 78px; /* 25% menos que los 104px originales */
  height: auto;
}

/* ---------- Selector de idioma (GTranslate) ---------- */

.oc-nav__lang {
  display: flex;
  align-items: center;
  position: relative;
}

/* GTranslate pone `overflow:hidden` en .gt_switcher, que mide lo mismo que
   la pildora. Eso recorta por completo el desplegable absoluto de abajo. */
.oc-nav__lang .gt_switcher {
  position: relative;
  overflow: visible !important;
}

.oc-nav__lang .gt_switcher,
.oc-nav__lang .gt_container,
.oc-nav__lang [class^='gt_container'] {
  width: auto !important;
  min-width: 0;
}

/* El contenedor no se pinta: la pildora vive solo en el enlace interno,
   para no duplicar borde y fondo. */
.oc-nav__lang .gt_switcher .gt_selected {
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  width: auto !important;
  height: auto !important;
}

.oc-nav__lang .gt_switcher .gt_selected > a {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, .12) !important;
  border: 1px solid rgba(255, 255, 255, .35) !important;
  border-radius: 999px !important;
  color: #fff !important;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.4 !important;
  height: auto !important;
  /* espacio a la derecha para la flecha del desplegable */
  padding: 9px 38px 9px 16px !important;
  width: auto !important;
  text-indent: 0 !important;
}

.oc-nav__lang .gt_switcher .gt_selected > a:hover {
  background: rgba(255, 255, 255, .2) !important;
  border-color: rgba(255, 255, 255, .55) !important;
}

/* La flecha es un ::after de GTranslate: la traemos dentro de la pildora. */
.oc-nav__lang .gt_switcher .gt_selected > a::after {
  right: 15px !important;
  left: auto !important;
  top: 50% !important;
  bottom: auto !important;
  transform: translateY(-50%);
  margin: 0 !important;
}

.oc-nav__lang .gt_switcher .gt_selected > a img {
  display: inline-block;
  margin: 0 !important;
  width: 20px;
  height: 20px;
  border-radius: 3px;
}

/* El desplegable flota sobre la pagina. Si quedara en el flujo normal,
   estiraria la barra de navegacion al abrirse. */
.oc-nav__lang .gt_switcher .gt_option {
  position: absolute !important;
  top: calc(100% + 10px) !important;
  right: 0 !important;
  left: auto !important;
  margin: 0 !important;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(4, 38, 61, .3);
  border: 0 !important;
  width: auto !important;
  min-width: 190px;
  max-height: 320px;
}

/* GTranslate fija la altura de estos enlaces; sin `nowrap` los nombres
   largos («Chinese (Simplified)») saltan de linea y se solapan. */
.oc-nav__lang .gt_switcher .gt_option a {
  display: flex !important;
  align-items: center;
  gap: 9px;
  color: var(--oc-ink) !important;
  padding: 10px 18px !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  line-height: 1.35 !important;
  white-space: nowrap !important;
  border-bottom: 0 !important;
}

.oc-nav__lang .gt_switcher .gt_option a img {
  flex: 0 0 auto;
  margin: 0 !important;
  width: 18px;
  height: 18px;
}

.oc-nav__lang .gt_switcher .gt_option a:hover {
  background: var(--oc-sand) !important;
}

.oc-nav__menu {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
}

.oc-nav__menu a {
  color: #fff;
  font-weight: 600;
  font-size: 1.02rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}

.oc-nav__menu a:hover { border-bottom-color: var(--oc-aqua); }

.oc-nav__menu .oc-nav__cta a,
.oc-nav__cta {
  background: var(--oc-coral);
  color: #fff;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  border-bottom: 0;
  box-shadow: 0 10px 26px rgba(232, 116, 59, .35);
  transition: transform .18s ease;
}

.oc-nav__cta:hover { transform: translateY(-2px); border-bottom-color: transparent; }

.oc-nav__toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 10px;
}

.oc-nav__toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

.oc-nav.is-open .oc-nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.oc-nav.is-open .oc-nav__toggle span:nth-child(2) { opacity: 0; }
.oc-nav.is-open .oc-nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.oc-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 140px 0 80px;
}

.oc-hero__inner { max-width: 820px; }

.oc-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  margin-bottom: 22px;
}

.oc-hero h1 .oc-accent { color: var(--oc-aqua); }

.oc-hero__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  max-width: 640px;
  color: rgba(255, 255, 255, .92);
  margin-bottom: 34px;
}

.oc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.oc-hero__cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  text-align: center;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
}

.oc-hero__cue::before {
  content: '';
  display: block;
  width: 1px;
  height: 42px;
  margin: 0 auto 10px;
  background: rgba(255, 255, 255, .6);
}

/* ---------- Franja de impacto ---------- */

.oc-impact {
  background: var(--oc-deep);
  color: #fff;
  padding: 54px 0;
}

.oc-impact__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.oc-impact__num {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 800;
  color: var(--oc-aqua);
  letter-spacing: -.02em;
  line-height: 1.1;
}

.oc-impact__label {
  font-size: .95rem;
  color: rgba(255, 255, 255, .8);
  margin-top: 6px;
}

/* ---------- Bloques generales ---------- */

.oc-block { padding: 100px 0; }
.oc-block--sand { background: var(--oc-sand); }
.oc-block--deep { background: var(--oc-deep); color: #fff; }

.oc-block__head {
  max-width: 720px;
  margin-bottom: 54px;
}

.oc-block__head h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }

.oc-block--deep .oc-block__head h2 { color: #fff; }

/* ---------- Mision ---------- */

.oc-mission__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.oc-mission h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  margin-bottom: 26px;
}

.oc-mission p { margin-bottom: 20px; color: #2c3d47; }

.oc-mission__list { margin-top: 30px; }

.oc-mission__list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
  font-weight: 500;
}

.oc-check {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--oc-teal);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: .85rem;
  margin-top: 2px;
}

.oc-mission__media img {
  width: 100%;
  border-radius: var(--oc-r);
  box-shadow: var(--oc-shadow);
}

/* ---------- Tarjetas de programas ---------- */

.oc-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.oc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 360px;
  padding: 30px;
  border-radius: var(--oc-r);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  color: #fff;
  isolation: isolate;
  transition: transform .25s ease, box-shadow .25s ease;
}

.oc-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(4, 38, 61, .92) 0%, rgba(4, 38, 61, .55) 45%, rgba(4, 38, 61, .15) 100%);
  transition: background .25s ease;
}

.oc-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--oc-shadow);
}

.oc-card:hover::after {
  background: linear-gradient(to top, rgba(4, 38, 61, .96) 0%, rgba(4, 38, 61, .7) 50%, rgba(4, 38, 61, .25) 100%);
}

.oc-card__eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--oc-aqua);
  margin-bottom: 10px;
}

.oc-card h3 {
  font-size: 1.45rem;
  margin-bottom: 12px;
}

.oc-card p {
  font-size: .98rem;
  color: rgba(255, 255, 255, .88);
  margin-bottom: 18px;
}

.oc-card__link {
  font-weight: 700;
  font-size: .95rem;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--oc-coral);
  align-self: flex-start;
}

.oc-card__link:hover { border-bottom-color: #fff; }

/* ---------- Logros ---------- */

.oc-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--oc-r);
  overflow: hidden;
  box-shadow: var(--oc-shadow);
  margin-bottom: 34px;
  background: linear-gradient(135deg, var(--oc-ocean), var(--oc-teal));
  color: #fff;
}

.oc-feature:last-child { margin-bottom: 0; }

.oc-feature--flip .oc-feature__body { order: 2; }
.oc-feature--flip .oc-feature__media { order: 1; }

.oc-feature__body { padding: 58px 52px; }

.oc-feature h2 {
  font-size: clamp(1.6rem, 2.7vw, 2.35rem);
  margin-bottom: 20px;
}

.oc-feature p {
  color: rgba(255, 255, 255, .9);
  margin-bottom: 18px;
}

.oc-feature__badge {
  display: inline-block;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  padding: 9px 20px;
  font-size: .86rem;
  font-weight: 700;
  margin-bottom: 22px;
}

.oc-feature__media {
  position: relative;
  min-height: 420px;
  background-size: cover;
  background-position: center;
}

.oc-feature__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Visita ---------- */

.oc-visit__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}

.oc-visit h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  margin-bottom: 22px;
}

.oc-visit p { margin-bottom: 18px; color: #2c3d47; }

.oc-visit__info { display: grid; gap: 18px; }

.oc-visit__tile {
  background: #fff;
  border-radius: var(--oc-r);
  padding: 26px 28px;
  box-shadow: 0 10px 30px rgba(4, 38, 61, .1);
  border-left: 4px solid var(--oc-teal);
}

.oc-visit__tile span {
  display: block;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--oc-teal);
  margin-bottom: 6px;
}

.oc-visit__tile strong {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--oc-ink);
}

/* ---------- Galeria ---------- */

.oc-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.oc-gallery figure {
  margin: 0;
  border-radius: var(--oc-r);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

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

.oc-gallery figure:hover img { transform: scale(1.06); }

/* ---------- Pie ---------- */

.oc-footer {
  background: var(--oc-deep);
  color: rgba(255, 255, 255, .82);
  padding: 76px 0 0;
}

.oc-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 54px;
  padding-bottom: 54px;
}

.oc-footer h4 {
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin: 0 0 18px;
}

.oc-footer__brand img {
  width: 130px;
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 20px;
}

.oc-footer li { margin-bottom: 10px; }
.oc-footer a:hover { color: var(--oc-aqua); }

.oc-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding: 24px 0 30px;
  font-size: .88rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  color: rgba(255, 255, 255, .6);
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .oc-nav__toggle { display: block; }

  .oc-nav__menu {
    position: fixed;
    inset: 0 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--oc-deep);
    padding: 96px 26px 30px;
    transform: translateY(-100%);
    transition: transform .3s ease;
    margin-left: 0;
  }

  .oc-nav.is-open .oc-nav__menu { transform: translateY(0); }

  .oc-nav__menu a {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
  }

  .oc-nav__cta { text-align: center; margin-top: 18px; }

  .oc-nav__lang { margin-top: 18px; justify-content: center; }

  .oc-impact__grid { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .oc-mission__grid,
  .oc-visit__grid { grid-template-columns: 1fr; gap: 40px; }
  .oc-cards { grid-template-columns: repeat(2, 1fr); }
  .oc-gallery { grid-template-columns: repeat(2, 1fr); }

  .oc-feature { grid-template-columns: 1fr; }
  .oc-feature--flip .oc-feature__body { order: 2; }
  .oc-feature--flip .oc-feature__media { order: 1; }
  .oc-feature__body { padding: 42px 30px; }
  .oc-feature__media { min-height: 300px; }

  .oc-footer__grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 620px) {
  .oc-block { padding: 70px 0; }
  .oc-cards { grid-template-columns: 1fr; }
  .oc-gallery { grid-template-columns: 1fr 1fr; }
  .oc-hero { padding: 120px 0 90px; }
  .oc-hero__actions .oc-btn { width: 100%; justify-content: center; }
  .oc-nav__logo img { width: 63px; } /* 25% menos que los 84px originales */
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .oc-home * { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   Blindaje contra los estilos del tema padre
   Colores explicitos en cada contexto, para no depender de la herencia.
   ========================================================================== */

.oc-home .oc-hero h1,
.oc-home .oc-card h3,
.oc-home .oc-feature h2,
.oc-home .oc-block--deep .oc-block__head h2,
.oc-home .oc-footer h4 { color: #fff; }

.oc-home .oc-hero h1 .oc-accent { color: var(--oc-aqua); }

.oc-home .oc-mission h2,
.oc-home .oc-visit h2,
.oc-home .oc-block--sand .oc-block__head h2 { color: var(--oc-ink); }

.oc-home .oc-mission__list li,
.oc-home .oc-visit__tile strong,
.oc-home .oc-visit__tile strong a { color: var(--oc-ink); }

.oc-home .oc-card__link,
.oc-home .oc-nav__menu a,
.oc-home .oc-nav__cta { color: #fff; }

.oc-home .oc-footer a,
.oc-home .oc-footer li,
.oc-home .oc-footer__brand p { color: rgba(255, 255, 255, .82); }

.oc-home .oc-footer a:hover { color: var(--oc-aqua); }

/* La barra de administracion no debe tapar el hero */
.admin-bar .oc-nav { top: 32px; }

@media screen and (max-width: 782px) {
  .admin-bar .oc-nav { top: 46px; }
}
