/* ========================================================================
   YEO.CSS - OPTIMIZADO
   Framework personalizado para Innovacorp
   ======================================================================== */

/* ========================================================================
   VARIABLES CSS
   ======================================================================== */
:root {
  --color-bg-base: #fff;
  --color-bg: #f8f9fa;
  --color-text: #2E2E2E;
  --color-primary: #12296f;
  --color-primary-hover: #0d1a4d;
  --color-primary-light: #1a3c9f;
  --color-accent: #ffffff;
  --transition: all 0.3s ease;
  --font-stack: 'Poppins', sans-serif;
}

/* ========================================================================
   BASE STYLES - Sobrescribir Spectre
   ======================================================================== */
html {
  font-family: var(--font-stack) !important;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-stack);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  transition: var(--transition);
}

a:focus {
  box-shadow: none;
}

a:hover, 
a:focus, 
a:active {
  color: #2623d0;
}

/* ========================================================================
   CONTAINER SYSTEM - Sobrescribir Spectre Grid
   ======================================================================== */
.container, 
.yeo-body {
  max-width: 1280px;
  padding-left: 1rem;
  padding-right: 1rem;
}

.yeo-body {
  text-align: center;
}

.container .columns {
  margin-left: -1rem;
  margin-right: -1rem;
}

.container .column {
  padding-left: 1rem;
  padding-right: 1rem;
}

/* ========================================================================
   NAVBAR SYSTEM
   ======================================================================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  position: relative;
}

.navbar-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Branding */
.navbar-brand.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 400;
  text-transform: uppercase;
  font-family: var(--font-stack);
  letter-spacing: 1px;
  margin-left: -0.8rem;
}

.logo-img {
  height: 50px;
  width: auto;
  padding-right: 1px;
}

.navbar-brand.logo span {
  margin-left: 1px;
  margin-top: 5px;
}

/* Menu Desktop */
.navbar-menu {
  display: flex;
  gap: 1rem;
  transition: var(--transition);
}

.navbar-menu .btn-link {
  color: var(--color-accent);
  transition: color 0.3s ease;
}

.navbar-menu .btn-link:hover {
  color: #f0f0f0;
}

/* Desktop Hire Button */
.navbar .btn-hire-me {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-accent);
  transition: var(--transition);
}

.navbar .btn-hire-me:hover,
.navbar .btn-hire-me:focus {
  background: var(--color-primary);
  border-color: #3634d2;
  color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(87, 85, 217, 0.2);
}

/* Mobile Toggle */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.navbar-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--color-accent);
  transition: var(--transition);
}

.navbar-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar-toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========================================================================
   HERO/SLOGAN SECTION
   ======================================================================== */
.yeo-header {
  background: transparent;
}

.yeo-header a {
  color: var(--color-accent);
}

.yeo-slogan {
  background: var(--color-primary);
  background-image: linear-gradient(to bottom right,
    var(--color-primary) 0%,
    var(--color-primary) 60%,
    #000000 100%);
  padding-bottom: 1rem;
}

.slogan {
  align-items: center;
  background: transparent;
  padding: 0.5rem 0;
  color: var(--color-accent);
  text-align: left;
  max-width: 1280px;
}

.slogan h1 {
  font-size: 3.2rem;
  font-family: 'Poppins', serif;
  font-weight: 700;
  text-shadow: 0px 5px 8px rgba(0, 0, 0, 0.1);
  line-height: 1.3;
  max-width: 400px;
  margin-bottom: 1rem;
  letter-spacing: 0.05rem;
}

.slogan .slogan-bold {
  color: var(--color-accent);
}

.yeo-slogan p {
  font-size: .9rem;
  line-height: 1.6;
  font-weight: 200;
  opacity: 0.8;
  width: 90%;
  margin-bottom: 2rem;
}

/* Slogan Container */
.slogan-container {
  padding: 1rem !important;
  margin: 0 auto !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  position: relative !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  min-height: 200px !important;
}

.slogan-img {
  position: absolute;
  top: 0;
  left: 1rem;
  width: 90%;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slogan-img.active {
  opacity: 1;
}

/* Call-to-action Button */
.slogan .btn-start {
  padding: .9rem 1.5rem;
  height: auto;
  font-weight: 600;
  background: var(--color-accent);
  color: var(--color-primary);
  text-transform: uppercase;
  border-color: rgba(255, 255, 255, .4);
  letter-spacing: 0.05rem;
  transition: var(--transition);
}

.slogan .btn-start:hover {
  background: var(--color-primary-light);
  color: var(--color-accent);
  transform: translateY(-2px);
}

/* ========================================================================
   SECTION COMPONENTS
   ======================================================================== */

/* Section Titles */
.feature-title {
  font-weight: 600;
  font-size: 1.5rem;
  padding: .5rem 0;
  color: var(--color-primary);
  text-align: center;
  display: inline-block;
  position: relative;
  margin: 0 auto 2rem;
}

.feature-title::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--color-primary);
  transition: all 0.3s ease-in-out;
  transform: translateX(-50%);
}

.feature-title:hover::after {
  width: 100%;
}

/* Client Logos Section */
.yeo-client {
  background: #f4f4f4;
  padding: 2rem 0;
  text-align: center;
}

.yeo-client-title {
  text-align: center;
  font-size: 1rem;
  margin: 0 0 1.5rem 0;
  font-weight: 200;
}

.yeo-client a {
  display: inline-block;
  margin-right: 3.5rem;
}

.yeo-client a:last-child {
  margin: 0;
}

.yeo-client img {
  height: 34px;
}

/* ========================================================================
   PRICING PANELS
   ======================================================================== */
.yeo-price {
  padding: 2rem 0 4rem 0;
  background: linear-gradient(180deg, #f0f2f5 0%, #ffffff 100%);
}

.yeo-price .panel {
  text-align: center;
  background: #fff;
  border: none;
  box-shadow: 0 2px 10px rgba(18, 41, 111, 0.1);
  transition: var(--transition);
}

.yeo-price .panel:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(18, 41, 111, 0.2);
}

.yeo-price .panel ul {
  list-style: none;
  margin: 0 1rem;
}

.yeo-price .panel .panel-title {
  font-size: .8rem;
  font-weight: 1000;
  padding: .5rem 0 0 0;
  border-bottom: 1px solid #ababab;
  padding-bottom: 1rem;
}

.yeo-price .panel p {
  margin: 0;
}

.yeo-price .panel .price {
  font-size: 2rem;
  font-weight: 700;
}

.yeo-price .btn-price {
  padding: .6rem 1rem;
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-accent);
  height: auto;
  min-width: 220px;
  font-size: .9rem;
}

.yeo-price .btn-price:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary-light);
}

.yeo-price .panel .panel-footer {
  padding-bottom: 2rem;
}

.yeo-price .panel ul li {
  padding: 0.4rem 0;
  border-top: 1px solid #ababab;
}

.yeo-price .panel ul li:first-child {
  border-top: none;
}

.yeo-price .panel ul li strong {
  display: inline-block;
  margin-right: 0.5rem;
  font-weight: 600;
}

/* ========================================================================
   CONTENT SECTIONS
   ======================================================================== */

/* What We Do */
.yeo-do {
  padding: 3rem 0 4rem 0;
  text-align: center;
}

.yeo-do .yeo-do-content {
  padding: 0 1rem;
}

.yeo-do img {
  max-height: 100px;
}

.yeo-do-content img {
  filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.3));
}

.yeo-do h3 {
  font-size: .9rem;
  font-weight: 700;
  padding: 1rem 0 .1rem 0;
}

.yeo-do p {
  font-size: .8rem;
  font-weight: 400;
  opacity: .8;
}

.yeo-do a {
  color: #382CBE;
}

/* How We Work */
.yeo-work {
  padding: 1rem 0;
  background: #f0f2f5;
  color: #fff;
  background-image: linear-gradient(to right, var(--color-primary) 0%, var(--color-primary-light) 100%);
  background-size: cover;
}

.yeo-work-feature-bold {
  color: var(--color-accent);
}

.yeo-work-img img {
  width: 300px;
}

.yeo-work .yeo-work-feature {
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.3;
  text-align: center;
  color: #ffffff;
}

.yeo-work .feature-title {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

/* Open Source */
.yeo-open-source {
  padding: 4rem 0;
  text-align: center;
  background: #ffffff;
}

.frase-contenedor iframe {
  border: none;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.3);
}

.autor {
  position: absolute;
  left: 0;
  bottom: -1.2em;
  font-size: 0.4em;
  color: #777;
  font-style: italic;
}

.open-source-feature {
  font-weight: 700;
  font-size: 1.5rem;
  position: relative;
  display: inline-block;
  text-align: left;
}

.yeo-open-source .btn-open-source {
  padding: .8rem 1.5rem;
  background: var(--color-primary);
  border-color: #ddd;
  color: var(--color-accent);
  height: auto;
  margin-top: 2rem;
  transition: var(--transition);
}

.btn-open-source:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
}

/* ========================================================================
   VIDEOS SECTION
   ======================================================================== */
.videos-section {
  background: linear-gradient(145deg, #1a237e 0%, #283593 100%);
  padding: 4rem 0;
}

.videos-section .feature-title {
  color: #ffffff;
}

.videos-section .video-title {
  color: #ffffff;
}

.videos-section .video-category {
  color: rgba(255, 255, 255, 0.8);
}

.video-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto 2rem auto;
  max-width: 350px;
}

.video-thumbnail-container {
  width: auto;
  max-width: 350px;
  border-radius: 8px;
  overflow: hidden;
  margin: 0 auto 1rem auto;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.video-thumbnail-container:hover {
  transform: translateY(-5px);
}

.video-thumbnail {
  width: 100%;
  height: auto;
  display: block;
}

.video-info {
  text-align: center;
  padding: 0 1rem;
}

.video-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0.5rem 0;
  transition: color 0.3s ease;
}

.video-title:hover {
  color: var(--color-primary-light);
}

.video-category {
  display: block;
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.25rem;
}

/* ========================================================================
   FOOTER
   ======================================================================== */
.yeo-footer {
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 3rem 0;
}

.yeo-footer h4 {
  font-size: 1rem;
  color: var(--color-accent);
}

.yeo-footer .nav .nav-item a {
  padding: .3rem 0;
  color: var(--color-accent);
  opacity: 0.8;
  font-weight: 200;
}

/* ========================================================================
   RESPONSIVE DESIGN
   ======================================================================== */

/* Tablet Breakpoint */
@media (max-width: 768px) {
  /* Slogan Adjustments */
  .slogan-container {
    min-height: 150px !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    padding: 0.5rem !important;
  }
  
  .slogan-img {
    max-width: 70% !important;
    max-height: 120px !important;
  }

  .yeo-slogan .container.slogan {
    padding-bottom: 0rem;
  }

  .slogan .column {
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .slogan .columns {
    margin-bottom: 0;
  }

  .autor {
    font-size: 0.7em;
    margin-top: 0.8rem;
  }

  /* Mobile Navigation */
  .navbar-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    box-shadow: none;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1001;
    cursor: pointer;
    padding: 0;
  }

  .navbar-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    margin: 4px 0;
    background: #fff;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  }

  /* Off-canvas Menu */
  .navbar-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    height: 100vh;
    background: linear-gradient(145deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    padding: 80px 25px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 25px rgba(0,0,0,0.2);
    z-index: 999;
  }

  .navbar-menu.active {
    right: 0;
    display: block;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
  }

  .nav-links .btn-link {
    position: relative;
    padding: 15px 20px;
    font-size: 1.1rem;
    color: var(--color-accent);
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: background 0.3s ease, transform 0.3s ease;
    display: flex !important;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .nav-links .btn-link::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
  }

  .nav-links .btn-link:hover {
    background: rgba(255,255,255,0.15);
    transform: translateX(8px);
  }

  .nav-links .btn-link:hover::before {
    width: 100%;
  }

  .nav-links .btn-hire-me {
    display: flex !important;
    justify-content: center;
    align-items: center;
    padding: 18px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    background: var(--color-accent);
    border: none;
    border-radius: 14px;
    text-align: center;
    margin-top: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
  }

  .nav-links .btn-hire-me:hover {
    background: #00ffe7;
    box-shadow: 0 8px 25px rgba(0,255,212,0.4);
    transform: translateY(-3px);
  }

  /* Footer Mobile */
  .yeo-footer .column:nth-child(2) h4 {
    text-align: right;
    margin-bottom: 1rem;
  }

  .yeo-footer .column:nth-child(2) .nav .nav-item {
    margin-bottom: 0;
    text-align: right;
  }

  .yeo-footer .column:nth-child(2) .nav .nav-item a {
    font-size: 1rem;
    line-height: 1.5;
  }

  .yeo-footer .column:nth-child(4) {
    width: 100%;
    margin-top: 2rem;
    text-align: center;
  }

  .yeo-footer .column:nth-child(4) .yeo-footer-content {
    text-align: center;
    margin-top: 3rem;
  }

  .yeo-footer .column:nth-child(4) .nav .nav-item a {
    text-align: center;
    font-size: 0.5rem;
  }

  .navbar {
    padding-left: 0.3rem;
  }
}

/* Mobile Breakpoint */
@media (max-width: 600px) {
  .feature-title {
    font-size: 1.0rem;
    margin-bottom: 1.5rem;
  }

  .slogan {
    flex-direction: column;
    align-items: stretch;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .slogan .column.col-7 {
    padding-right: 0;
    margin-bottom: 1.5rem;
    margin-left: 0;
  }

  .slogan .column.col-7 .slogan-content {
    text-align: left;
  }

  .slogan .column.col-5.slogan-container.col-sm-12 {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .slogan .column.col-5.slogan-container.col-sm-12 .slogan-img {
    max-width: 100%;
    height: auto;
  }

  .slogan h1 {
    font-size: 2rem;
    line-height: 1.5;
    margin-bottom: .5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .yeo-slogan {
    padding-bottom: 0rem;
  }

  .yeo-slogan p {
    font-size: .7rem;
    width: 100%;
    margin-bottom: 1rem;
    margin-right: 3rem;
  }

  .yeo-do {
    padding: 1rem 0 2rem 0;
  }

  .yeo-do .yeo-do-content {
    padding-right: 0;
    padding-bottom: 1.5rem;
    text-align: center;
    border-bottom: 1px solid #ddd;
    margin-bottom: 1.5rem;
  }

  .yeo-client a {
    margin: 10px 15px;
  }

  .yeo-price .panel {
    text-align: center;
    background: #fff;
    margin-bottom: 1rem;
  }
}

/* ========================================================================
   SPECTRE OVERRIDES - Ajustes específicos para resolver conflictos
   ======================================================================== */
.yeo-slogan .container.slogan .columns {
  margin-bottom: 0 !important;
}

.yeo-slogan .container.slogan .column.col-5.slogan-container.col-sm-12 {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}