/*
Theme Name: OEP Overseas Academy
Theme URI: https://example.com/oep-academy-theme
Author: OEP Template Developer
Author URI: https://example.com
Description: Tema comercial WordPress + Elementor Free para academias de idiomas (Diseño OEP). Incluye Header doble, compatibilidad nativa con Slider Revolution, tarjetas interactivas Ready/Let's Go, plantilla de página interna curva y motor SEO + GEO (Schema JSON-LD + llms.txt).
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: oep-academy
*/

:root {
  --oep-red: #E62429;
  --oep-red-hover: #C8191E;
  --oep-crimson: #B51D29;
  --oep-blue-dark: #0A3D73;
  --oep-blue: #0D56A6;
  --oep-blue-light: #2F93F2;
  --oep-gray-bg: #EEF1F4;
  --oep-text: #18202C;
  --oep-white: #FFFFFF;
  --oep-font-heading: 'Montserrat', sans-serif;
  --oep-font-body: 'Roboto Condensed', sans-serif;
  --oep-container: 1200px;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--oep-font-body);
  color: var(--oep-text);
  background: var(--oep-white);
  overflow-x: hidden;
}

h1, h2, h3, h4, .oep-heading {
  font-family: var(--oep-font-heading);
  margin-top: 0;
}

a {
  text-decoration: none;
  transition: all 0.25s ease;
}

.oep-wrap {
  max-width: var(--oep-container);
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================
   HEADER DOBLE OEP (TOP BAR + NAVBAR ROJA)
   ========================================= */
.oep-topbar {
  background: var(--oep-white);
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.oep-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.oep-logo-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--oep-font-heading);
  font-weight: 900;
  font-size: 30px;
  letter-spacing: 1px;
  color: var(--oep-red);
}

.oep-logo-brand span.oep-sub {
  display: block;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--oep-blue-dark);
  font-weight: 700;
  text-transform: uppercase;
}

.oep-top-meta {
  display: flex;
  align-items: center;
  gap: 28px;
}

.oep-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #4A5568;
}

.oep-meta-item + .oep-meta-item {
  padding-left: 28px;
  border-left: 2px solid var(--oep-red);
}

.oep-meta-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(230,36,41,0.1);
  color: var(--oep-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.oep-meta-text strong {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: #2D3748;
  letter-spacing: 0.5px;
}

.oep-btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--oep-red);
  color: var(--oep-white) !important;
  font-family: var(--oep-font-heading);
  font-weight: 700;
  font-size: 15px;
  padding: 10px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(230,36,41,0.28);
}

.oep-btn-pill:hover {
  background: var(--oep-red-hover);
  transform: translateY(-1px);
}

.oep-btn-blue {
  background: var(--oep-blue);
  box-shadow: 0 4px 12px rgba(13,86,166,0.28);
}

.oep-btn-blue:hover {
  background: var(--oep-blue-dark);
}

/* NAVBAR ROJA PRINCIPAL */
.oep-navbar {
  background: var(--oep-red);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.oep-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.oep-nav-menu > li {
  position: relative;
}

.oep-nav-menu > li > a {
  display: block;
  padding: 14px 22px;
  color: var(--oep-white);
  font-family: var(--oep-font-body);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.oep-nav-menu > li:hover > a,
.oep-nav-menu > li.current-menu-item > a {
  background: rgba(0,0,0,0.16);
}

/* SUBMENUS MULTINIVEL (PROGRAMAS / CERTIFICATE / NOSOTROS) */
.oep-nav-menu ul.sub-menu {
  list-style: none;
  margin: 0;
  padding: 10px 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--oep-white);
  border-top: 3px solid var(--oep-blue);
  box-shadow: 0 12px 28px rgba(0,0,0,0.16);
  border-radius: 0 0 10px 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 1000;
}

.oep-nav-menu li:hover > ul.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.oep-nav-menu ul.sub-menu li {
  position: relative;
}

.oep-nav-menu ul.sub-menu a {
  display: block;
  padding: 9px 18px;
  color: var(--oep-text);
  font-size: 14px;
  font-weight: 600;
}

.oep-nav-menu ul.sub-menu a:hover {
  background: var(--oep-gray-bg);
  color: var(--oep-red);
}

.oep-nav-menu ul.sub-menu ul.sub-menu {
  top: 0;
  left: 100%;
  border-radius: 10px;
}

.oep-mobile-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--oep-white);
  color: var(--oep-white);
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 700;
  margin: 8px auto;
  cursor: pointer;
}

/* =========================================
   HERO FALLBACK + SLIDER REVOLUTION WRAPPER
   ========================================= */
.oep-hero-wrapper {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.oep-fallback-slider {
  position: relative;
  background: radial-gradient(circle at 72% 50%, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.12) 18%, transparent 18.5%),
              radial-gradient(circle at 72% 50%, transparent 25%, rgba(255,255,255,0.22) 25.3%, transparent 25.8%),
              radial-gradient(circle at 72% 50%, transparent 34%, rgba(255,255,255,0.22) 34.3%, transparent 34.8%),
              linear-gradient(120deg, var(--oep-blue-dark) 0%, var(--oep-blue) 100%);
  color: var(--oep-white);
  min-height: 440px;
  display: flex;
  align-items: center;
}

.oep-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 32px;
  padding: 56px 20px;
}

.oep-hero-title {
  font-size: clamp(34px, 4.5vw, 54px);
  line-height: 1.08;
  font-weight: 800;
  margin-bottom: 12px;
}

.oep-hero-sub {
  font-size: 28px;
  font-weight: 300;
  margin-bottom: 24px;
}

/* =========================================
   SECCION PILARES (3 TARJETAS HOME)
   ========================================= */
.oep-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 24px;
}

.oep-pillar-card {
  background: #E2E7EC;
  border-radius: 18px;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.oep-pillar-head {
  background: var(--oep-blue);
  height: 165px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--oep-white);
  font-size: 54px;
}

.oep-pillar-body {
  padding: 26px 22px 30px;
}

.oep-pillar-body h3 {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--oep-blue-dark);
  margin-bottom: 12px;
}

.oep-pillar-body p {
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
  margin-bottom: 18px;
}

/* =========================================
   PROGRAMAS GRID 2X2 (EFECTO READY? -> LET'S GO!)
   ========================================= */
.oep-programs-section {
  background: var(--oep-blue);
  padding: 64px 0;
  color: var(--oep-white);
}

.oep-programs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 880px;
  margin: 32px auto 0;
}

.oep-prog-card {
  background: var(--oep-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  transition: transform 0.3s ease;
}

.oep-prog-card:hover {
  transform: translateY(-6px);
}

.oep-prog-visual {
  position: relative;
  height: 210px;
  background: linear-gradient(180deg, #0A4D96 0%, #1565C0 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.oep-prog-bg-word {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--oep-font-heading);
  font-weight: 900;
  font-size: 62px;
  white-space: nowrap;
  letter-spacing: -1px;
  transition: all 0.35s ease;
  pointer-events: none;
}

.oep-word-ready {
  color: var(--oep-red);
  opacity: 0.92;
}

.oep-word-letsgo {
  color: var(--oep-red);
  opacity: 0;
  transform: translate(-50%, -35%) scale(0.9);
}

.oep-prog-card:hover .oep-word-ready {
  opacity: 0;
  transform: translate(-50%, -65%) scale(0.9);
}

.oep-prog-card:hover .oep-word-letsgo {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.04);
}

.oep-prog-img {
  position: relative;
  z-index: 2;
  max-height: 190px;
  width: auto;
  object-fit: contain;
}

.oep-prog-footer {
  padding: 14px 20px;
  background: var(--oep-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.oep-prog-title {
  font-family: var(--oep-font-heading);
  font-weight: 800;
  font-size: 16px;
  color: var(--oep-blue-dark);
  text-transform: uppercase;
}

/* =========================================
   FORMULARIO DE CONTACTO ROJO (ESTILO PDF)
   ========================================= */
.oep-lead-wrapper {
  background: var(--oep-blue-dark);
  padding: 64px 0;
}

.oep-lead-box {
  max-width: 820px;
  margin: 0 auto;
  background: #A9C6E2;
  border-radius: 20px;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
}

.oep-lead-promo {
  padding: 36px 28px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.oep-lead-promo h3 {
  color: var(--oep-blue-dark);
  font-size: 26px;
  line-height: 1.15;
  font-weight: 800;
}

.oep-lead-form-card {
  background: var(--oep-red);
  padding: 32px 28px;
  border-radius: 20px;
  margin: 16px;
}

.oep-lead-form-card input,
.oep-lead-form-card select,
.oep-lead-form-card textarea {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 11px 18px;
  margin-bottom: 12px;
  font-family: var(--oep-font-body);
  font-size: 14px;
  background: var(--oep-white);
  color: var(--oep-text);
  outline: none;
}

.oep-lead-form-card textarea {
  border-radius: 16px;
  min-height: 84px;
  resize: vertical;
}

.oep-lead-submit {
  width: 100%;
  background: var(--oep-blue-dark);
  color: var(--oep-white);
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  font-family: var(--oep-font-heading);
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
}

.oep-lead-submit:hover {
  background: #06284D;
}

/* =========================================
   CALENDARIO CLASES EXTRACURRICULARES
   ========================================= */
.oep-calendar-wrap {
  max-width: 880px;
  margin: 24px auto 0;
  background: #E5E9ED;
  border-radius: 12px;
  overflow: hidden;
}

.oep-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  background: #CBD5E1;
}

.oep-cal-head {
  background: #DCE2E8;
  padding: 12px 8px;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--oep-blue-dark);
}

.oep-cal-cell {
  background: #EEF1F4;
  min-height: 78px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

.oep-cal-cell.is-sunday {
  background: #D81B60;
  color: var(--oep-white);
}

.oep-cal-badge {
  display: block;
  margin-top: 6px;
  padding: 3px 6px;
  border-radius: 4px;
  background: var(--oep-blue);
  color: var(--oep-white);
  font-size: 11px;
  font-weight: 600;
}

/* =========================================
   BANNER SIGUENOS + FOOTER INSTITUCIONAL
   ========================================= */
.oep-follow-banner {
  background: linear-gradient(135deg, var(--oep-crimson) 0%, #96141F 100%);
  color: var(--oep-white);
  padding: 44px 0;
}

.oep-follow-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.oep-follow-inner h2 {
  font-size: 44px;
  margin-bottom: 6px;
}

.oep-social-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.oep-social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--oep-blue);
  color: var(--oep-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.oep-footer {
  background: var(--oep-gray-bg);
  padding: 44px 0 28px;
  font-size: 13px;
  color: #334155;
}

.oep-footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 32px;
  align-items: start;
}

.oep-footer h4 {
  font-size: 14px;
  color: var(--oep-text);
  margin-bottom: 10px;
}

.oep-footer ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.oep-footer ul li {
  margin-bottom: 6px;
}

.oep-footer ul a {
  color: #475569;
}

.oep-footer ul a:hover {
  color: var(--oep-red);
}

.oep-cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.oep-cert-badge {
  background: var(--oep-white);
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 800;
  color: var(--oep-blue-dark);
  font-size: 12px;
}

/* =========================================
   PLANTILLA DE PAGINA INTERNA (3 ZONAS CURVAS)
   ========================================= */
.oep-internal-hero {
  display: grid;
  grid-template-columns: 0.95fr 1.35fr 0.85fr;
  min-height: 480px;
  background: var(--oep-white);
  overflow: hidden;
}

.oep-int-left {
  background: var(--oep-blue);
  color: var(--oep-white);
  padding: 52px 36px;
  border-radius: 0 240px 240px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.oep-int-left .oep-duration {
  background: var(--oep-red);
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 12px;
  width: fit-content;
}

.oep-int-center {
  padding: 48px 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.oep-int-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.oep-tab-btn {
  background: transparent;
  border: 2px solid var(--oep-blue);
  color: var(--oep-blue);
  padding: 7px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.oep-tab-btn.active,
.oep-tab-btn:hover {
  background: var(--oep-blue);
  color: var(--oep-white);
}

.oep-int-right {
  background: linear-gradient(160deg, #F04E37 0%, var(--oep-red) 100%);
  color: var(--oep-white);
  padding: 52px 30px;
  border-radius: 180px 0 0 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

@media (max-width: 960px) {
  .oep-topbar-inner, .oep-top-meta, .oep-follow-inner {
    flex-direction: column;
    text-align: center;
  }
  .oep-meta-item + .oep-meta-item {
    border-left: none;
    padding-left: 0;
  }
  .oep-mobile-toggle {
    display: block;
  }
  .oep-nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
  }
  .oep-nav-menu.is-open {
    display: flex;
  }
  .oep-nav-menu ul.sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    width: 100%;
  }
  .oep-hero-grid, .oep-pillars-grid, .oep-programs-grid,
  .oep-lead-box, .oep-footer-grid, .oep-internal-hero {
    grid-template-columns: 1fr;
  }
  .oep-int-left, .oep-int-right {
    border-radius: 0;
  }
}
