/*
Theme Name: SIGOB Theme
Theme URI: https://sigob.org/
Author: Antigravity
Author URI: https://sigob.org/
Description: Tema institucional para PNUD-SIGOB con opciones dinámicas en el Customizer.
Version: 1.0.0
Text Domain: sigob-theme
*/

/* Reset & Base Styles */
:root {
  /* These will be overridden by the Customizer injected styles */
  --sigob-primary: #00689c;
  --sigob-accent: #023047;
  --sigob-bg-contrast: #F9FAFB;
  --sigob-font-family: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* Maximum compact offset */
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 70px; /* Offset for mobile header */
  }
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--sigob-font-family);
  color: #333;
  background-color: #fff;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--sigob-accent);
  margin-top: 0;
}

a {
  color: var(--sigob-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-container {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}

/* Layout Utilities */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--sigob-primary);
  color: #fff;
  border: 2px solid var(--sigob-primary);
}

.btn-primary:hover {
  background-color: #005691;
  border-color: #005691;
  text-decoration: none;
  color: #fff;
}

.btn-secondary {
  background-color: transparent;
  color: var(--sigob-primary);
  border: 2px solid var(--sigob-primary);
}

.btn-secondary:hover {
  background-color: var(--sigob-primary);
  color: #fff;
  text-decoration: none;
}

/* Cards */
.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  padding: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

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

.card p {
  flex-grow: 1;
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 20px;
}

/* Specific Section Styles */
.hero-section {
  background-color: var(--sigob-accent);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}

.hero-section h1, .hero-section h2 {
  color: #fff;
}

.hero-section h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero-section h2 {
  font-size: 1.5rem;
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.bg-contrast {
  background-color: var(--sigob-bg-contrast);
  padding: 60px 0;
}

.section-padding {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  font-size: 2.25rem;
  margin-bottom: 40px;
}

/* Header & Footer */
.site-header {
  background: #fff;
  border-bottom: 1px solid #eaeaea;
  padding: 15px 0;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo img {
  height: 120px;
  width: auto;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

.main-navigation a {
  color: var(--sigob-accent);
  font-weight: 500;
}

.main-navigation a:hover {
  color: var(--sigob-primary);
}

/* === Premium Footer === */
.site-footer {
    background: linear-gradient(180deg, #023047 0%, #023047 100%);
    color: #94a3b8;
    font-size: 0.95rem;
}
.footer-main {
    padding: 80px 0 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
}
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}
@media (max-width: 550px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}

/* Footer Brand */
.footer-brand {}
.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}
.footer-logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}
.footer-logo-text span {
    color: var(--sigob-primary);
}
.footer-tagline {
    line-height: 1.7;
    margin-bottom: 25px;
    color: #64748b;
}
.footer-social {
    display: flex;
    gap: 12px;
}
.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: all 0.3s ease;
    text-decoration: none;
}
.footer-social a:hover {
    background: var(--sigob-primary);
    border-color: var(--sigob-primary);
    color: #fff;
    transform: translateY(-3px);
}

/* Footer Link Columns */
.footer-links-col h4 {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}
.footer-links-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--sigob-primary);
    border-radius: 2px;
}
.footer-links-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links-col li {
    margin-bottom: 14px;
}
.footer-links-col a {
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}
.footer-links-col a:hover {
    color: #fff;
    padding-left: 6px;
    text-decoration: none;
}

/* Footer Bottom Bar */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 24px 0;
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    color: #475569;
}
.footer-undp a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-undp a:hover {
    color: var(--sigob-primary);
    text-decoration: none;
}
@media (max-width: 600px) {
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}

.breadcrumb {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--sigob-primary);
}

/* Mobile Navigation */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--sigob-primary);
  cursor: pointer;
  padding: 10px;
  z-index: 1000;
}

@media (max-width: 768px) {
  .site-header {
    position: relative;
  }
  
  .site-header .container {
    padding: 0 15px;
  }
  
  .site-logo img {
    height: 60px; /* Reduced logo size on mobile */
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .main-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    z-index: 999;
    padding: 20px;
    border-top: 1px solid #eaeaea;
  }
  
  .main-navigation.is-active {
    display: block;
  }
  
  .main-navigation ul {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .main-navigation a {
    display: block;
    padding: 10px;
    font-size: 1.1rem;
  }
}

/* Premium Homepage Design */

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Hero Section */
.hero-premium {
    position: relative;
    padding: 160px 20px 140px;
    background: 
        radial-gradient(ellipse 90% 110% at 40% 115%, #fff 0%, rgba(0, 180, 255, 0.4) 40%, transparent 90%),
        radial-gradient(circle at 0% 0%, #00040a 0%, transparent 80%),
        linear-gradient(to right, #00040a 0%, #00040a 15%, transparent 50%),
        #00689c !important;
    background-size: 110% 110% !important;
    animation: sigobGlow 12s ease-in-out infinite !important;
    color: white;
    text-align: center;
    overflow: hidden;
}

@keyframes sigobGlow {
    0% { background-position: 0% 0%; }
    50% { background-position: 3% 3%; }
    100% { background-position: 0% 0%; }
}
.hero-premium::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><path d="M0 100 C 20 0 50 0 100 100 Z" fill="rgba(255,255,255,0.03)"/></svg>') no-repeat center bottom;
    background-size: cover;
}
.hero-premium .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 30px;
    display: inline-block;
}
.hero-premium h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -1px;
    max-width: 900px;
}
.hero-premium p {
    font-size: 1.4rem;
    opacity: 0.9;
    max-width: 700px;
    margin-bottom: 40px;
    line-height: 1.6;
}
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}
.btn-glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 16px 36px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-glass:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    color: white;
}
.btn-solid {
    background: white;
    color: var(--sigob-primary);
    padding: 16px 36px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.btn-solid:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .hero-premium {
        padding: 100px 15px 80px;
    }
    .hero-premium h1 {
        font-size: 2.5rem;
    }
    .hero-premium p {
        font-size: 1.1rem;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .btn-solid, .btn-glass {
        width: 100%;
        padding: 14px 20px;
    }
}

/* Sectors Section */
.sectors-premium {
    padding: 120px 0;
    background: #f8fafc;
    position: relative;
}
.section-header {
    text-align: center;
    margin-bottom: 80px;
}
.section-header h2 {
    font-size: 3rem;
    color: var(--sigob-primary);
    font-weight: 800;
    letter-spacing: -1px;
}
.section-header p {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 600px;
    margin: 20px auto 0;
}
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
@media (max-width: 900px) {
    .bento-grid { grid-template-columns: 1fr; }
}
.bento-item {
    background: white;
    border-radius: 24px;
    padding: 50px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: 0 20px 40px rgba(0,0,0,0.02);
}
.bento-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,110,182,0.1);
    border-color: rgba(0,110,182,0.1);
}
.bento-icon {
    width: 60px; height: 60px;
    background: var(--sigob-bg-contrast);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    color: var(--sigob-primary);
    margin-bottom: 30px;
}
.bento-item h3 {
    font-size: 1.8rem;
    color: #023047;
    margin-bottom: 15px;
}
.bento-item p {
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 30px;
}
.bento-link {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    color: var(--sigob-accent);
    text-decoration: none;
    font-size: 1.05rem;
}
.bento-link svg {
    margin-left: 8px;
    transition: transform 0.3s ease;
}
.bento-item:hover .bento-link svg {
    transform: translateX(5px);
}

/* Featured Projects */
.projects-premium {
    padding: 120px 0;
    background: white;
}
.project-showcase {
    display: flex;
    gap: 40px;
    align-items: center;
}
@media (max-width: 900px) {
    .project-showcase { flex-direction: column; }
}
.project-text {
    flex: 1;
}
.project-text h2 {
    font-size: 2.8rem;
    color: var(--sigob-primary);
    margin-bottom: 25px;
    line-height: 1.2;
}
.project-text p {
    font-size: 1.2rem;
    color: #475569;
    margin-bottom: 35px;
    line-height: 1.7;
}
.project-cards {
    flex: 1.2;
    display: flex;
    gap: 20px;
}
.p-card {
    flex: 1;
    background: #f1f5f9;
    border-radius: 20px;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease;
}
.p-card:hover {
    transform: translateY(-10px);
    background: var(--sigob-primary);
    color: white;
}
.p-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    transition: color 0.4s;
}
.p-card:hover h4 { color: white; }
.p-card p {
    color: #64748b;
    font-size: 0.95rem;
    transition: color 0.4s;
}
.p-card:hover p { color: rgba(255,255,255,0.8); }

/* Stats Section */
.stats-premium {
    background: #023047;
    padding: 40px 0 100px;
    color: white;
    position: relative;
    overflow: hidden;
}
.stats-premium::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(0,110,182,0.2) 0%, transparent 60%);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
    position: relative;
    z-index: 2;
}
@media (max-width: 800px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 50px; }
}
.stat-item h3 {
    font-size: 4.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}
.stat-item p {
    font-size: 1.1rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}


/* Premium "Nosotros" Design */

/* Hero Section */
.nosotros-hero {
    background: linear-gradient(135deg, var(--sigob-primary) 0%, #023047 100%);
    color: white;
    padding: 120px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.nosotros-hero::before {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    background: var(--sigob-accent);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    top: -50px; left: -50px;
}
.nosotros-hero h1 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 800;
    position: relative;
    z-index: 2;
}
.nosotros-hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.8;
    position: relative;
    z-index: 2;
}
@media (max-width: 768px) {
    .nosotros-hero {
        padding: 80px 15px;
    }
    .nosotros-hero h1 {
        font-size: 2.5rem;
    }
    .nosotros-hero p {
        font-size: 1.1rem;
    }
}

/* Metodología Section */
.metodologia-section {
    padding: 40px 0 100px;
    background: var(--sigob-bg-contrast);
}
.metodologia-header {
    text-align: center;
    margin-bottom: 60px;
}
.metodologia-header h2 {
    font-size: 2.5rem;
    color: var(--sigob-primary);
    margin-bottom: 20px;
}
.metodologia-header p {
    font-size: 1.15rem;
    color: #475569;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.metodologia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    position: relative;
}

/* Connecting Line */
@media (min-width: 900px) {
    .metodologia-grid::before {
        content: '';
        position: absolute;
        top: 45px; left: 10%; right: 10%;
        height: 2px;
        background: rgba(0, 110, 182, 0.2);
        z-index: 1;
    }
}

.metodologia-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.metodologia-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.metodologia-icon {
    width: 90px; height: 90px;
    background: #fff;
    border: 2px solid var(--sigob-accent);
    color: var(--sigob-accent);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.metodologia-card h3 {
    font-size: 1.4rem;
    color: var(--sigob-primary);
    margin-bottom: 15px;
}
.metodologia-card p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.7;
}

/* Contacto Section */
.contacto-section {
    padding: 40px 0 100px;
    background: #fff;
}
.contacto-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
@media (max-width: 900px) {
    .contacto-container { grid-template-columns: 1fr; }
}
.contacto-text h2 {
    font-size: 2.5rem;
    color: var(--sigob-primary);
    margin-bottom: 20px;
}
.contacto-text p {
    font-size: 1.15rem;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 30px;
}
.contacto-form {
    background: var(--sigob-bg-contrast);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--sigob-primary);
    font-weight: 600;
    font-size: 0.95rem;
}
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}
.form-control:focus {
    outline: none;
    border-color: var(--sigob-accent);
}
textarea.form-control {
    resize: vertical;
    min-height: 120px;
}
.btn-submit {
    width: 100%;
    background: var(--sigob-accent);
    color: white;
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}
.btn-submit:hover {
    background: var(--sigob-primary);
}

/* Contact Info Cards */
.contact-info-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid #e2e8f0;
}
.contact-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
@media (max-width: 768px) {
    .contact-cards { grid-template-columns: 1fr; }
}
.c-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 35px;
    border: 1px solid #e2e8f0;
}
.c-card h3 {
    font-size: 1.4rem;
    color: var(--sigob-accent);
    margin-bottom: 20px;
    line-height: 1.3;
}
.c-card p {
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 20px;
}
.c-card a {
    color: #475569;
    font-weight: 500;
    text-decoration: none;
}
.c-card a:hover {
    color: var(--sigob-primary);
}


/* Premium enhancements for the Soluciones page */
.soluciones-hero {
    background: linear-gradient(135deg, var(--sigob-accent) 0%, #023047 100%);
    color: white;
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.soluciones-hero::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
    pointer-events: none;
}
.soluciones-hero h1 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -1px;
}
.soluciones-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.8;
}

.linea-trabajo {
    padding: 80px 0;
    border-bottom: 1px solid #eaeaea;
}
.linea-trabajo:nth-child(even) {
    background-color: var(--sigob-bg-contrast);
}
.linea-header {
    text-align: center;
    margin-bottom: 50px;
}
.linea-header h2 {
    font-size: 2.5rem;
    color: var(--sigob-primary);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}
.linea-header h2::after {
    content: '';
    position: absolute;
    width: 60px; height: 4px;
    background: var(--sigob-accent);
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}
.linea-header p {
    font-size: 1.1rem;
    color: #555;
    max-width: 700px;
    margin: 20px auto 0;
}

.solution-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.solution-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--sigob-primary);
}
.solution-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: var(--sigob-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.solution-card:hover::before {
    transform: scaleX(1);
}
.solution-card h3 {
    font-size: 1.4rem;
    color: var(--sigob-accent);
    margin-bottom: 15px;
}
.solution-card p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}
.solution-card .btn-more {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: var(--sigob-primary);
    transition: color 0.3s ease;
}
.solution-card .btn-more::after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.3s ease;
}
.solution-card:hover .btn-more {
    color: var(--sigob-accent);
}
.solution-card:hover .btn-more::after {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .soluciones-hero {
        padding: 80px 15px;
    }
    .soluciones-hero h1 {
        font-size: 2.5rem;
    }
    .soluciones-hero p {
        font-size: 1.1rem;
    }
    .linea-header h2 {
        font-size: 2rem;
    }
}


/* Premium Proyectos Design */
.proyectos-hero {
    background: linear-gradient(135deg, #023047 0%, #023047 100%);
    color: white;
    padding: 120px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.proyectos-hero::after {
    content: '';
    position: absolute;
    width: 150%; height: 100px;
    background: var(--sigob-bg-contrast);
    bottom: -50px; left: -25%;
    transform: rotate(-3deg);
}
.proyectos-hero h1 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 800;
}
.proyectos-hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.8;
}

.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
    padding: 80px 0;
    background: var(--sigob-bg-contrast);
}

.proyecto-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.02);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}
.proyecto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}

/* Card Header */
.proyecto-header {
    background: var(--sigob-accent);
    padding: 30px;
    position: relative;
}
.proyecto-header h3 {
    color: #fff;
    font-size: 1.5rem;
    margin: 0;
    line-height: 1.4;
}

/* Tags */
.proyecto-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px 30px 0;
}
.tag-pill {
/* Premium Accordion Styles */
.sigob-accordion {
    max-width: 900px;
    margin: 40px auto;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.accordion-item {
    border-bottom: 1px solid #f1f5f9;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    padding: 25px 35px;
    background: white;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--sigob-primary);
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background: #f8fafc;
    padding-left: 40px;
}

.accordion-header .icon-toggle {
    width: 32px;
    height: 32px;
    background: var(--sigob-bg-contrast);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease;
    color: var(--sigob-primary);
    font-size: 1.2rem;
    font-weight: 400;
}

.accordion-item.active .icon-toggle {
    transform: rotate(45deg);
    background: var(--sigob-accent);
    color: white;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
    background: #ffffff;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
    transition: max-height 0.5s ease-in-out;
}

.accordion-content ul {
    list-style: none;
    padding: 10px 35px 30px;
    margin: 0;
}

.accordion-content li {
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.accordion-content li:hover {
    padding-left: 10px;
    color: var(--sigob-accent);
}

.accordion-content li:last-child {
    border-bottom: none;
}

.btn-modal-trigger {
    background: var(--sigob-bg-contrast);
    color: var(--sigob-primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-modal-trigger:hover {
    background: var(--sigob-primary);
    color: white;
    transform: scale(1.05);
}

/* Premium Modal Styles */
.sigob-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sigob-modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    background-color: #ffffff;
    margin: 10vh auto;
    padding: 50px;
    border-radius: 30px;
    width: 90%;
    max-width: 700px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.sigob-modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    right: 30px; top: 25px;
    color: #cbd5e1;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.close-modal:hover { color: var(--sigob-accent); }

.modal-body h2 { 
    color: var(--sigob-primary); 
    font-size: 2.2rem; 
    font-weight: 800; 
    margin-bottom: 25px;
    letter-spacing: -0.5px;
}

.modal-body p { 
    line-height: 1.8; 
    color: #475569; 
    font-size: 1.15rem; 
}
    background: rgba(0, 110, 182, 0.1);
    color: var(--sigob-primary);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Card Body */
.proyecto-body {
    padding: 25px 30px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.proyecto-contexto {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px dashed #cbd5e1;
}
.proyecto-contexto strong {
    color: var(--sigob-accent);
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.proyecto-resultados {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    flex-grow: 1;
}
.proyecto-resultados li {
    font-size: 0.95rem;
    color: #334155;
    margin-bottom: 15px;
    padding-left: 28px;
    position: relative;
    line-height: 1.5;
}
.proyecto-resultados li::before {
    content: '✓';
    position: absolute;
    left: 0; top: 0;
    color: #10b981; /* Green check */
    font-weight: bold;
    font-size: 1.1rem;
}

.proyecto-footer {
    margin-top: auto;
}
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 20px;
    border: 2px solid var(--sigob-primary);
    color: var(--sigob-primary);
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-outline:hover {
    background: var(--sigob-primary);
    color: #fff;
    text-decoration: none;
}
.btn-outline::after {
    content: '→';
    margin-left: 10px;
    transition: transform 0.3s ease;
}
.btn-outline:hover::after {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .masonry-grid {
        column-count: 1;
    }
    
    .proyectos-hero {
        padding: 80px 15px;
    }
    .proyectos-hero h1 {
        font-size: 2.5rem;
    }
    .proyectos-hero p {
        font-size: 1.1rem;
    }
}


/* Editorial Blog Design (Medium / HBR Style) */
body {
    background-color: #fafafa;
}

.article-container {
    max-width: 768px; /* max-w-3xl */
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.article-hero {
    padding: 80px 0 40px;
    text-align: left;
}
.article-breadcrumb {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 30px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.article-breadcrumb a {
    color: var(--sigob-primary);
    text-decoration: none;
}
.article-breadcrumb a:hover {
    text-decoration: underline;
}

.article-country {
    color: var(--sigob-accent);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 15px;
}

.article-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #023047;
    line-height: 1.15;
    margin-bottom: 30px;
    letter-spacing: -1px;
}
@media (max-width: 768px) {
    .article-title { font-size: 2.5rem; }
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}
.article-tag {
    background: rgba(0, 110, 182, 0.08);
    color: var(--sigob-primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 110, 182, 0.1);
}
.article-tag:hover {
    background: var(--sigob-primary);
    color: white;
}

/* Image Placeholder */
.article-image-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: #e2e8f0;
    border-radius: 12px;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1.2rem;
    font-weight: 500;
    overflow: hidden;
    position: relative;
}
.article-image-placeholder::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.4) 50%, transparent 60%);
    background-size: 200% 200%;
    animation: shimmer 2s infinite;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Article Body */
.article-content {
    font-size: 1.15rem;
    line-height: 1.85;
    color: #334155;
    padding-bottom: 80px;
}
.article-content p {
    margin-bottom: 2em;
}

.article-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #023047;
    margin: 3em 0 1em;
    position: relative;
    padding-bottom: 15px;
}
.article-section-title::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 40px; height: 4px;
    background: var(--sigob-accent);
    border-radius: 2px;
}

/* Lists */
.article-results-list {
    list-style: none;
    padding: 0;
    margin: 2em 0;
}
.article-results-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 1.5em;
}
.article-results-list li::before {
    content: '—';
    position: absolute;
    left: 0; top: 0;
    color: var(--sigob-primary);
    font-weight: bold;
}

/* Blockquote */
.article-quote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--sigob-primary);
    line-height: 1.6;
    margin: 3em 0;
    padding-left: 30px;
    border-left: 4px solid var(--sigob-accent);
}

/* Divider */
.article-divider {
    border: 0;
    height: 1px;
    background: #e2e8f0;
    margin: 4em auto;
    width: 50%;
}


/* Premium Accordion Styles */
.sigob-accordion {
    max-width: 900px;
    margin: 40px auto;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.accordion-item {
    border-bottom: 1px solid #f1f5f9;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    padding: 25px 35px !important;
    background: white !important;
    border: none !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    cursor: pointer !important;
    text-align: left !important;
    font-weight: 700 !important;
    font-size: 1.25rem !important;
    color: var(--sigob-primary) !important;
    transition: all 0.3s ease !important;
}

.accordion-header:hover {
    background: #f8fafc !important;
    padding-left: 40px !important;
}

.accordion-header .icon-toggle {
    width: 32px;
    height: 32px;
    background: var(--sigob-bg-contrast);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease;
    color: var(--sigob-primary);
    font-size: 1.2rem;
    font-weight: 400;
}

.accordion-item.active .icon-toggle {
    transform: rotate(45deg);
    background: var(--sigob-accent);
    color: white;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
    background: #ffffff;
}

.accordion-item.active .accordion-content {
    max-height: 2000px; /* Increased for long lists */
    transition: max-height 0.5s ease-in-out;
}

.accordion-content ul {
    list-style: none !important;
    padding: 10px 35px 30px !important;
    margin: 0 !important;
}

.accordion-content li {
    padding: 15px 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
}

.accordion-content li:hover {
    padding-left: 10px !important;
    color: var(--sigob-accent) !important;
}

.accordion-content li:last-child {
    border-bottom: none !important;
}

.btn-modal-trigger {
    background: var(--sigob-bg-contrast) !important;
    color: var(--sigob-primary) !important;
    padding: 6px 16px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
}

.btn-modal-trigger:hover {
    background: var(--sigob-primary) !important;
    color: white !important;
    transform: scale(1.05) !important;
}

/* Premium Modal Styles */
.sigob-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sigob-modal.show {
    display: block !important;
    opacity: 1 !important;
}

.modal-content {
    background-color: #ffffff !important;
    margin: 10vh auto !important;
    padding: 50px !important;
    border-radius: 30px !important;
    width: 90% !important;
    max-width: 700px !important;
    position: relative !important;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4) !important;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.sigob-modal.show .modal-content {
    transform: translateY(0) !important;
}

.close-modal {
    position: absolute;
    right: 30px; top: 25px;
    color: #cbd5e1;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.close-modal:hover { color: var(--sigob-accent); }

.modal-body h2 { 
    color: var(--sigob-primary); 
    font-size: 2.2rem; 
    font-weight: 800; 
    margin-bottom: 25px;
    letter-spacing: -0.5px;
}

.modal-body p { 
    line-height: 1.8; 
    color: #475569; 
    font-size: 1.15rem; 
}

/* ==========================================================================
   SOLUTIONS GRID & MODAL SYSTEM (Premium)
   ========================================================================== */

.sigob-solutions-layout {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 20px auto;
}

.solutions-sidebar {
    flex: 0 0 350px;
    position: sticky;
    top: 120px;
}

.solutions-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #00689c;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.solutions-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    line-height: 1.6;
}

.sigob-solutions-grid { 
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (max-width: 1100px) {
    .sigob-solutions-layout {
        gap: 40px;
    }
    .solutions-sidebar {
        flex: 0 0 300px;
    }
    .solutions-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 991px) { 
    .sigob-solutions-layout {
        flex-direction: column;
        margin: 40px auto;
    }
    .solutions-sidebar {
        flex: none;
        position: static;
        width: 100%;
        text-align: left;
        margin-bottom: 30px;
    }
    .solutions-title {
        font-size: 2.5rem;
    }
    .card-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 20px !important;
    }
    .header-left {
        flex: none !important;
        width: 100% !important;
    }
    .header-right {
        width: 100% !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
    }
    .card-questions {
        max-width: none !important;
    }
    .card-questions li {
        text-align: left !important;
    }
}

.solution-line-card { 
    background: #fff; 
    border-radius: 24px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.06); 
    border: 1px solid #f0f4f8; 
    overflow: hidden; 
    transition: all 0.4s ease; 
    display: flex; 
    flex-direction: column; 
}

.solution-line-card.active { 
    background: 
        radial-gradient(ellipse 90% 110% at 40% 115%, #fff 0%, rgba(0, 180, 255, 0.4) 40%, transparent 90%),
        radial-gradient(circle at 0% 0%, #00040a 0%, transparent 80%),
        linear-gradient(to right, #00040a 0%, #00040a 15%, transparent 50%),
        #00689c !important;
    color: #fff !important;
    box-shadow: 0 30px 70px rgba(0, 15, 30, 0.5) !important;
    border: none !important;
}

.solution-line-card.active .card-header,
.solution-line-card.active .card-content {
    background: transparent !important;
}

.solution-line-card.active .card-header h3 {
    color: #fff !important;
}

.solution-line-card.active .sol-count-badge {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
}

.solution-line-card.active .icon-toggle {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}

.solution-line-card.active .card-content li {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.solution-line-card.active .btn-modal-trigger {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.solution-line-card.active .btn-modal-trigger:hover {
    background: #fff !important;
    color: #013b5e !important;
}

.card-header { 
    width: 100%; 
    padding: 30px !important; 
    background: #fff !important; 
    border: none !important; 
    display: flex !important; 
    justify-content: space-between !important; 
    align-items: center !important; 
    cursor: pointer !important; 
    transition: background 0.3s; 
    gap: 40px !important;
}

.card-header:hover { background: #fcfdfe !important; }

.header-left {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.header-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 30px;
}

.card-questions {
    margin-top: 0 !important;
    transition: all 0.4s ease;
    flex: 1;
    max-width: 500px;
}

.solution-line-card.active .card-questions {
    opacity: 0;
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    pointer-events: none;
}

.card-questions ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-questions li {
    font-size: 0.85rem !important;
    color: #64748b;
    line-height: 1.4;
    text-align: right;
    margin-bottom: 0 !important;
    padding-left: 0;
    position: relative;
    font-style: italic;
    opacity: 0.85;
}

.card-header h3 { 
    margin: 0 !important; 
    font-size: 1.35rem !important; 
    font-weight: 800 !important; 
    color: #023047 !important; 
    letter-spacing: -0.5px !important; 
    line-height: 1.2 !important; 
    text-align: left !important; 
}

.sol-count-badge { 
    background: #eef6fc; 
    color: #00689c; 
    padding: 4px 12px; 
    border-radius: 50px; 
    font-size: 0.7rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    white-space: nowrap; 
}

.icon-toggle { 
    width: 40px !important; 
    height: 40px !important; 
    background: #f1f5f9 !important; 
    border-radius: 50% !important; 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    font-size: 1.2rem !important; 
    color: #00689c !important; 
    transition: all 0.4s ease !important; 
    flex-shrink: 0 !important; 
    position: relative; 
}

.solution-line-card.active .icon-toggle { 
    transform: rotate(180deg) !important; 
    background: #00689c !important; 
    color: #fff !important; 
}

.icon-toggle::before { content: '↓'; font-style: normal; }
.solution-line-card.active .icon-toggle::before { content: '↑'; }

.card-content { 
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1); 
    background: #fff; 
}

.solution-line-card.active .card-content { 
    max-height: 2500px !important; 
}

.card-content ul { 
    list-style: none !important; 
    padding: 0 30px 30px !important; 
    margin: 0 !important; 
}

.card-content li { 
    padding: 10px 0 !important; 
    border-bottom: 1px solid #f1f5f9 !important; 
    display: flex !important; 
    justify-content: space-between !important; 
    align-items: center !important; 
    font-size: 1.05rem !important; 
    color: #334155 !important; 
}

.card-content li:last-child { border-bottom: none !important; }

.btn-modal-trigger { 
    background: #f8fafc !important; 
    color: #00689c !important; 
    padding: 8px 18px !important; 
    border-radius: 50px !important; 
    font-weight: 700 !important; 
    font-size: 0.8rem !important; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    cursor: pointer; 
    transition: all 0.3s; 
    white-space: nowrap; 
    margin-left: 10px; 
}

.btn-modal-trigger:hover { 
    background: #00689c !important; 
    color: #fff !important; 
    transform: translateY(-2px) !important; 
}

/* Modal Styling */
.sigob-modal { 
    display: none; 
    position: fixed; 
    z-index: 99999; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(15,23,42,0.85); 
    backdrop-filter: blur(12px); 
    opacity: 0; 
    transition: opacity 0.3s; 
    overflow-y: auto; 
    padding: 20px 0; 
}

.sigob-modal.show { display: block; opacity: 1; }

.modal-content { 
    background: #fff; 
    margin: 40px auto; 
    padding: 60px; 
    border-radius: 36px; 
    width: 90%; 
    max-width: 800px; 
    position: relative; 
    box-shadow: 0 40px 120px rgba(0,0,0,0.6); 
    transform: translateY(-30px); 
    transition: transform 0.4s; 
}

.sigob-modal.show .modal-content { transform: translateY(0); }

.close-modal { 
    position: absolute; 
    right: 40px; 
    top: 35px; 
    font-size: 40px; 
    color: #cbd5e1; 
    cursor: pointer; 
    line-height: 0.5; 
}

.modal-body h2 { 
    font-size: 2.5rem; 
    font-weight: 900; 
    color: #023047; 
    margin-bottom: 25px; 
    letter-spacing: -1.5px; 
}

/* Project Modal Header Styling */
.project-modal-header {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 28px;
    margin-bottom: 32px;
    padding-right: 50px; /* Leave space for closing X button */
}
.project-modal-header .p-country {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #00689c;
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: inline-block;
    background: rgba(0, 110, 182, 0.06);
    padding: 6px 14px;
    border-radius: 100px;
    line-height: 1;
}
.project-modal-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a !important;
    line-height: 1.25;
    margin: 12px 0 0 0 !important;
    letter-spacing: -1px;
}

.modal-body h3 { 
    font-size: 1.5rem; 
    font-weight: 700; 
    color: #00689c; 
    margin: 30px 0 15px; 
}

.modal-body p { 
    font-size: 1.1rem; 
    line-height: 1.8; 
    color: #475569; 
    margin-bottom: 15px; 
}

.modal-body ul { 
    padding-left: 20px; 
    margin-bottom: 20px; 
    list-style-type: disc !important; 
}

.modal-body li { 
    font-size: 1.1rem; 
    line-height: 1.8; 
    color: #475569; 
    margin-bottom: 10px; 
}

.cta-group { 
    display: flex; 
    gap: 15px; 
    margin-top: 30px; 
    flex-wrap: wrap; 
}

.btn-cta-expert, .btn-cta-docs { 
    padding: 14px 28px; 
    border-radius: 50px; 
    font-weight: 700; 
    font-size: 0.95rem; 
    text-decoration: none !important; 
    transition: all 0.3s; 
    display: inline-block; 
}

.btn-cta-expert { background: #00689c; color: #fff !important; }
.btn-cta-expert:hover { background: #005a96; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,110,182,0.3); }
.btn-cta-docs { background: #f1f5f9; color: #00689c !important; border: 1px solid #e2e8f0; }
.btn-cta-docs:hover { background: #e2e8f0; transform: translateY(-3px); }

.solution-line-card { 
    background: #fff; 
    border-radius: 24px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.06); 
    border: 1px solid #f0f4f8; 
    overflow: hidden; 
    transition: all 0.4s ease; 
    display: flex; 
    flex-direction: column; 
}

.solution-line-card.active { 
    background: 
        radial-gradient(ellipse 90% 110% at 40% 115%, #fff 0%, rgba(0, 180, 255, 0.4) 40%, transparent 90%),
        radial-gradient(circle at 0% 0%, #00040a 0%, transparent 80%),
        linear-gradient(to right, #00040a 0%, #00040a 15%, transparent 50%),
        #00689c !important;
    color: #fff !important;
    box-shadow: 0 30px 70px rgba(0, 15, 30, 0.5) !important;
    border: none !important;
}

.solution-line-card.active .card-header,
.solution-line-card.active .card-content {
    background: transparent !important;
}

.solution-line-card.active .card-header h3 {
    color: #fff !important;
}

.solution-line-card.active .sol-count-badge {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
}

.solution-line-card.active .icon-toggle {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}

.solution-line-card.active .card-content li {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.solution-line-card.active .btn-modal-trigger {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.solution-line-card.active .btn-modal-trigger:hover {
    background: #fff !important;
    color: #013b5e !important;
}

.card-header { 
    width: 100%; 
    padding: 30px !important; 
    background: #fff !important; 
    border: none !important; 
    display: flex !important; 
    justify-content: space-between !important; 
    align-items: center !important; 
    cursor: pointer !important; 
    transition: background 0.3s; 
    gap: 40px !important;
}

.card-header:hover { background: #fcfdfe !important; }

.header-left {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.header-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 30px;
}

.card-questions {
    margin-top: 0 !important;
    transition: all 0.4s ease;
    flex: 1;
    max-width: 500px;
}

.solution-line-card.active .card-questions {
    opacity: 0;
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    pointer-events: none;
}

.card-questions ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-questions li {
    font-size: 0.85rem !important;
    color: #64748b;
    line-height: 1.4;
    text-align: right;
    margin-bottom: 0 !important;
    padding-left: 0;
    position: relative;
    font-style: italic;
    opacity: 0.85;
}

.card-header h3 { 
    margin: 0 !important; 
    font-size: 1.35rem !important; 
    font-weight: 800 !important; 
    color: #023047 !important; 
    letter-spacing: -0.5px !important; 
    line-height: 1.2 !important; 
    text-align: left !important; 
}

.sol-count-badge { 
    background: #eef6fc; 
    color: #00689c; 
    padding: 4px 12px; 
    border-radius: 50px; 
    font-size: 0.7rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    white-space: nowrap; 
}

.icon-toggle { 
    width: 40px !important; 
    height: 40px !important; 
    background: #f1f5f9 !important; 
    border-radius: 50% !important; 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    font-size: 1.2rem !important; 
    color: #00689c !important; 
    transition: all 0.4s ease !important; 
    flex-shrink: 0 !important; 
    position: relative; 
}

.solution-line-card.active .icon-toggle { 
    transform: rotate(180deg) !important; 
    background: #00689c !important; 
    color: #fff !important; 
}

.icon-toggle::before { content: '↓'; font-style: normal; }
.solution-line-card.active .icon-toggle::before { content: '↑'; }

.card-content { 
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1); 
    background: #fff; 
}

.solution-line-card.active .card-content { 
    max-height: 2500px !important; 
}

.card-content ul { 
    list-style: none !important; 
    padding: 0 30px 30px !important; 
    margin: 0 !important; 
}

.card-content li { 
    padding: 10px 0 !important; 
    border-bottom: 1px solid #f1f5f9 !important; 
    display: flex !important; 
    justify-content: space-between !important; 
    align-items: center !important; 
    font-size: 1.05rem !important; 
    color: #334155 !important; 
}

.card-content li:last-child { border-bottom: none !important; }

.btn-modal-trigger { 
    background: #f8fafc !important; 
    color: #00689c !important; 
    padding: 8px 18px !important; 
    border-radius: 50px !important; 
    font-weight: 700 !important; 
    font-size: 0.8rem !important; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    cursor: pointer; 
    transition: all 0.3s; 
    white-space: nowrap; 
    margin-left: 10px; 
}

.btn-modal-trigger:hover { 
    background: #00689c !important; 
    color: #fff !important; 
    transform: translateY(-2px) !important; 
}

/* Modal Styling */
.sigob-modal { 
    display: none; 
    position: fixed; 
    z-index: 99999; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(15,23,42,0.85); 
    backdrop-filter: blur(12px); 
    opacity: 0; 
    transition: opacity 0.3s; 
    overflow-y: auto; 
    padding: 20px 0; 
}

.sigob-modal.show { display: block; opacity: 1; }

.modal-content { 
    background: #fff; 
    margin: 40px auto; 
    padding: 60px; 
    border-radius: 36px; 
    width: 90%; 
    max-width: 800px; 
    position: relative; 
    box-shadow: 0 40px 120px rgba(0,0,0,0.6); 
    transform: translateY(-30px); 
    transition: transform 0.4s; 
}

.sigob-modal.show .modal-content { transform: translateY(0); }

.close-modal { 
    position: absolute; 
    right: 40px; top: 35px; 
    font-size: 40px; 
    color: #cbd5e1; 
    cursor: pointer; 
    line-height: 0.5; 
}

.modal-body h2 { 
    font-size: 2.5rem; 
    font-weight: 900; 
    color: #023047; 
    margin-bottom: 25px; 
    letter-spacing: -1.5px; 
}

.modal-body h3 { 
    font-size: 1.5rem; 
    font-weight: 700; 
    color: #00689c; 
    margin: 30px 0 15px; 
}

.modal-body p { 
    font-size: 1.1rem; 
    line-height: 1.8; 
    color: #475569; 
    margin-bottom: 15px; 
}

.modal-body ul { 
    padding-left: 20px; 
    margin-bottom: 20px; 
    list-style-type: disc !important; 
}

.modal-body li { 
    font-size: 1.1rem; 
    line-height: 1.8; 
    color: #475569; 
    margin-bottom: 10px; 
}

.cta-group { 
    display: flex; 
    gap: 15px; 
    margin-top: 30px; 
    flex-wrap: wrap; 
}

.btn-cta-expert, .btn-cta-docs { 
    padding: 14px 28px; 
    border-radius: 50px; 
    font-weight: 700; 
    font-size: 0.95rem; 
    text-decoration: none !important; 
    transition: all 0.3s; 
    display: inline-block; 
}

.btn-cta-expert { background: #00689c; color: #fff !important; }
.btn-cta-expert:hover { background: #005a96; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,110,182,0.3); }
.btn-cta-docs { background: #f1f5f9; color: #00689c !important; border: 1px solid #e2e8f0; }
.btn-cta-docs:hover { background: #e2e8f0; transform: translateY(-3px); }

/* Refined Premium CTA Buttons */
.cta-group { 
    display: flex; 
    gap: 12px; 
    margin-top: 35px; 
    flex-wrap: wrap; 
}

.btn-cta-expert, .btn-cta-docs { 
    padding: 16px 32px !important; 
    border-radius: 14px !important; /* Sophisticated rounded corner */
    font-weight: 700 !important; 
    font-size: 0.9rem !important; 
    text-decoration: none !important; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important; 
    display: inline-flex !important; 
    align-items: center !important;
    justify-content: center !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border: none !important;
}

.btn-cta-expert { 
    background: #00689c !important; 
    color: #ffffff !important; 
    box-shadow: 0 4px 14px 0 rgba(0,110,182,0.39) !important;
}

.btn-cta-expert:hover { 
    background: #005a96 !important; 
    transform: translateY(-2px) !important; 
    box-shadow: 0 6px 20px rgba(0,110,182,0.23) !important;
}

.btn-cta-docs { 
    background: #f8fafc !important; 
    color: #00689c !important; 
    border: 1px solid #e2e8f0 !important; 
}

.btn-cta-docs:hover { 
    background: #ffffff !important; 
    border-color: #00689c !important;
    transform: translateY(-2px) !important; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
}

/* Fix for bullet points in modals */
.modal-body ul {
    list-style-type: none !important;
    padding-left: 0 !important;
}

.modal-body li {
    position: relative;
    padding-left: 25px !important;
}

.modal-body li::before {
    content: '•';
    color: #00689c;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    position: absolute;
    left: 10px;
}

/* Sticky Header */
header, .wp-block-template-part.site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}

/* Combined Ultra-Premium Hero & Nosotros */
.hero-nosotros-combined {
    background: linear-gradient(135deg, #023047 0%, #023047 100%);
    padding: 80px 0 100px;
    color: white;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-nosotros-combined::before {
    content: '';
    position: absolute;
    top: -10%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(0,110,182,0.15) 0%, transparent 70%);
    z-index: 1;
}

.hero-nosotros-combined .container {
    position: relative;
    z-index: 2;
    max-width: 1100px;
}

.hero-nosotros-combined h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

@media (max-width: 768px) {
    .hero-nosotros-combined h1 { font-size: 3rem; }
}

.narrative-pills-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1800px;
    margin: 30px auto;
    padding: 0 40px;
}

@media (max-width: 992px) {
    .narrative-pills-container {
        grid-template-columns: 1fr;
        max-width: 800px;
        padding: 0 20px;
    }
}

.narrative-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 35px 30px;
    border-radius: 24px;
    text-align: left;
    transition: all 0.4s ease;
    cursor: default;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    backdrop-filter: blur(10px);
}

.narrative-pill:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: #00689c;
    transform: translateY(-10px);
}

.narrative-pill-icon {
    width: 32px;
    height: 32px;
    background: #00689c;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(0,110,182,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 14px;
}

.narrative-pill p {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.4;
    color: #f1f5f9;
    font-weight: 500;
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.btn-hero-primary {
    background: #00689c !important;
    color: white !important;
    padding: 18px 40px !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    text-decoration: none !important;
    transition: all 0.3s !important;
    box-shadow: 0 10px 30px rgba(0,110,182,0.3) !important;
}

.btn-hero-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,110,182,0.5);
}

.btn-hero-secondary {
    background: transparent !important;
    color: white !important;
    padding: 18px 40px !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    text-decoration: none !important;
    border: 2px solid rgba(255,255,255,0.2) !important;
    transition: all 0.3s !important;
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.05) !important;
    border-color: white !important;
    transform: translateY(-5px);
}

/* Premium Proyectos Section Refinement */
.home-projects-section {
    padding: 30px 0 45px !important;
    background-color: #fcfdfe;
}

.home-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 60px 0;
}

@media (max-width: 991px) {
    .home-projects-grid { grid-template-columns: 1fr; }
}

.project-mini-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.project-mini-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 6px; height: 100%;
    background: #00689c;
    opacity: 0;
    transition: opacity 0.3s;
}

.project-mini-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,110,182,0.08);
    border-color: #e2e8f0;
}

.project-mini-card:hover::before {
    opacity: 1;
}

.p-country {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #00689c;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    display: block;
}

.project-mini-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #023047;
    line-height: 1.25;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.project-mini-card p {
    font-size: 1.05rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 30px;
    flex-grow: 1;
}

.btn-case-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: #00689c;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s;
}

.btn-case-link::after {
    content: '→';
    font-size: 1.1rem;
    transition: transform 0.3s;
}

.project-mini-card:hover .btn-case-link::after {
    transform: translateX(5px);
}

/* Footer CTA for Proyectos */
.proyectos-footer-cta {
    margin-top: 20px;
    text-align: center;
}

.btn-all-projects {
    background: #023047 !important;
    color: #fff !important;
    padding: 18px 45px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.3s !important;
    box-shadow: 0 10px 20px rgba(15,23,42,0.15) !important;
}

.btn-all-projects:hover {
    background: #00689c !important;
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0,110,182,0.2) !important;
}

/* Projects Carousel Styles */
.projects-carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 20px auto;
    overflow: visible;
}

.carousel-viewport {
    overflow: hidden;
    padding: 5px 0;
    cursor: pointer;
}

.projects-carousel-track {
    display: flex;
    gap: 30px;
}

.projects-carousel-track .project-mini-card {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 0;
}

@media (max-width: 991px) {
    .projects-carousel-track .project-mini-card {
        flex: 0 0 100%;
    }
}


.carousel-btn {
    width: 50px;
    height: 50px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #023047;
    font-size: 1.2rem;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.carousel-btn:hover {
    background: #00689c;
    color: #fff;
    border-color: #00689c;
    transform: scale(1.1);
}

/* Projects Carousel Styles */
.projects-carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 25px auto !important;
}

.carousel-viewport {
    overflow: hidden;
    padding: 20px 0;
}

.projects-carousel-track {
    display: flex;
    gap: 30px;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}

.projects-carousel-track .project-mini-card {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 0;
}

@media (max-width: 991px) {
    .projects-carousel-track .project-mini-card {
        flex: 0 0 100%;
    }
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #023047;
    font-size: 1.2rem;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.carousel-btn:hover {
    background: #00689c;
    color: #fff;
    border-color: #00689c;
    transform: scale(1.1);
}

/* Fix for mobile carousel cards */
@media (max-width: 991px) {
    .projects-carousel-container {
        padding: 0 20px;
    }
    .carousel-viewport {
        margin: 0 -20px; /* Counter container padding */
        padding: 20px;
    }
    .projects-carousel-track .project-mini-card {
        flex: 0 0 100%;
        box-sizing: border-box;
        margin: 0;
    }
}

/* Final Carousel Fix: Ensure last card is visible */
.projects-carousel-container {
    padding: 0 40px; /* Space for arrows and breathing room */
}

.carousel-viewport {
    overflow: hidden;
    padding: 22px 10px !important;
    margin: 0 -10px;
    scroll-behavior: auto !important; /* Prevents Safari smooth-scroll conflict with JS requestAnimationFrame */
    -webkit-overflow-scrolling: touch; /* Enable hardware-accelerated momentum scroll in Safari */
}

.projects-carousel-track {
    display: flex;
    gap: 30px;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Ensure cards don't shrink */
.projects-carousel-track .project-mini-card {
    flex: 0 0 calc(33.333% - 20px);
    box-sizing: border-box;
}

@media (max-width: 991px) {
    .projects-carousel-track .project-mini-card {
        flex: 0 0 100%;
    }
    .projects-carousel-container {
        padding: 0 20px;
    }
}

/* Scroll Margin for Anchors */
[id] {
    scroll-margin-top: 100px; /* Offset for sticky header */
}

/* Premium Header Overhaul */
 header, .site-header {
     padding: 0 !important;
     background: rgba(255, 255, 255, 0.98) !important;
     backdrop-filter: blur(15px);
     transition: all 0.3s ease;
     border-bottom: 1px solid rgba(0,0,0,0.08);
     position: sticky;
     top: 0;
     z-index: 9999;
 }

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

 /* Logo prominence - Corrected Selectors */
  .site-header .site-logo img, 
  body .site-header .custom-logo-link img,
  header.site-header img {
      height: 145px !important;
      width: auto !important;
      max-height: none !important;
      transition: transform 0.3s ease;
      display: block !important;
      margin: 5px 0 !important;
  }
  .site-header .site-logo a:hover img, 
  .site-header .custom-logo-link:hover img {
      transform: scale(1.03) !important;
  }

/* Sophisticated Menu */
.primary-menu-container ul {
    display: flex;
    gap: 5px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

  .site-header .main-navigation a, 
  .site-header #primary-menu a,
  body .main-navigation ul li a {
      font-size: 11px !important;
      font-weight: 500 !important;
      color: #64748b !important;
      text-decoration: none !important;
      text-transform: uppercase !important;
      letter-spacing: 1.2px !important;
      position: relative !important;
      padding: 10px 12px !important;
      transition: all 0.3s ease !important;
      display: inline-block !important;
      opacity: 0.9 !important;
  }

.primary-menu-container a:hover {
    color: #00689c !important;
}

.primary-menu-container a:hover::after {
    width: 100%;
}

/* Contact Button in Menu */
 .site-header .menu-item-contacto a,
 #primary-menu .menu-item-contacto a {
     background: #00689c !important;
     color: white !important;
     padding: 15px 40px !important;
     border-radius: 50px !important;
     box-shadow: 0 8px 20px rgba(0,110,182,0.25) !important;
     transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
     line-height: 1 !important;
     display: inline-block !important;
 }
 
 .site-header .menu-item-contacto a:hover,
 #primary-menu .menu-item-contacto a:hover {
     background: #023047 !important;
     transform: translateY(-3px) scale(1.02) !important;
     box-shadow: 0 12px 25px rgba(15,23,42,0.3) !important;
     color: white !important;
 }
 
 .menu-item-contacto a::after {
     display: none !important;
 }

/* Contact Page Premium Styles (Global) */
.page-template-default.page-id-154 .entry-header { display: none !important; }
.page-id-154 .site-content, .page-id-154 .ast-container { max-width: 100% !important; padding: 0 !important; margin: 0 !important; }

.contact-hero-premium {
    background: linear-gradient(135deg, #00689c 0%, #023047 100%);
    color: white !important;
    padding: 120px 20px 180px;
    text-align: center;
    position: relative;
}

.contact-hero-premium h1 {
    font-size: 3.5rem !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    margin-bottom: 20px !important;
}

.contact-hero-premium p {
    font-size: 1.3rem !important;
    color: rgba(255,255,255,0.9) !important;
    max-width: 700px;
    margin: 0 auto !important;
}

.contact-card-premium {
    max-width: 900px;
    margin: -100px auto 100px;
    background: #ffffff;
    padding: 60px;
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.12);
    position: relative;
    z-index: 100;
    border: 1px solid #f1f5f9;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .contact-form-grid { grid-template-columns: 1fr; }
    .contact-card-premium { padding: 30px; margin-top: -60px; }
}

.contact-field-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-field-group label {
    font-size: 0.85rem;
    font-weight: 800;
    color: #023047;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-field-group input, 
.contact-field-group textarea {
    width: 100% !important;
    padding: 18px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 15px !important;
    background: #f8fafc !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
}

.contact-field-group input:focus, 
.contact-field-group textarea:focus {
    background: #ffffff !important;
    border-color: #00689c !important;
    box-shadow: 0 0 0 4px rgba(0,110,182,0.1) !important;
    outline: none !important;
}

.btn-contact-submit {
    grid-column: 1 / -1;
    background: #00689c !important;
    color: #ffffff !important;
    padding: 20px !important;
    border-radius: 15px !important;
    border: none !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    cursor: pointer !important;
    transition: all 0.4s ease !important;
    box-shadow: 0 10px 30px rgba(0,110,182,0.3) !important;
    margin-top: 20px;
}

.btn-contact-submit:hover {
    background: #023047 !important;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(15,23,42,0.2);
}

/* Mobile Modal Fixes */
@media (max-width: 768px) {
    .modal-content {
        width: 92% !important;
        margin: 20px auto !important;
        padding: 45px 20px 30px !important;
        border-radius: 24px !important;
    }
    .modal-body h2 {
        font-size: 1.8rem !important;
        letter-spacing: -1px !important;
    }
    .modal-body h3 {
        font-size: 1.3rem !important;
    }
    .modal-body p, .modal-body li {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }
    .close-modal {
        right: 20px !important;
        top: 20px !important;
        font-size: 30px !important;
    }
    .cta-group {
        flex-direction: column !important;
    }
    .btn-cta-expert {
        width: 100% !important;
        text-align: center !important;
    }
}
body, button, input, select, textarea, h1, h2, h3, h4, h5, h6, .main-navigation a, .btn-hero-primary, .btn-hero-secondary, .modal-content, .contact-container {
    font-family: 'Montserrat', sans-serif !important;
}

/* Reusable Section Badge */
.section-badge {
    color: #00689c !important;
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    margin-bottom: 35px !important; /* Más distancia hacia el título de abajo */
    display: inline-block !important;
}

/* Nosotros Premium Section */
.nosotros-premium {
    padding: 50px 0 90px 0 !important; /* Pull content up from the header superior */
    background: #fff;
    position: relative;
    overflow: hidden;
    scroll-margin-top: 75px !important; /* Optimized scroll offset for sticky header */
}
#nosotros {
    scroll-margin-top: 75px !important;
}
.nosotros-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px;
}
.nosotros-header h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: #00689c; /* Azul institucional */
    font-weight: 800;
}
.nosotros-header p:not(.section-badge) {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 0;
}
.nosotros-header a {
    color: #00689c;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid rgba(0, 110, 182, 0.2);
    transition: all 0.3s;
}
.nosotros-header a:hover {
    border-bottom-color: #00689c;
}

.btn-slideshow-trigger {
    background: #023047;
    color: white;
    padding: 18px 36px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.btn-slideshow-trigger:hover {
    background: #00689c;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,110,182,0.2);
}
.icon-play {
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.icon-play::after {
    content: '';
    border-left: 8px solid white;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    margin-left: 2px;
}

/* Compact Stats */
.stats-grid-compact {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns in a single row on desktop */
    gap: 20px;
}
@media (max-width: 991px) {
    .stats-grid-compact {
        grid-template-columns: repeat(2, 1fr); /* 2x2 grid on tablets */
    }
}
.stat-item-compact {
    background: #f8fafc;
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
}
.stat-item-compact:hover {
    background: #fff;
    border-color: #00689c;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.stat-item-compact h3 {
    font-size: 3rem;
    font-weight: 800;
    color: #00689c;
    margin-bottom: 10px;
    line-height: 1;
}
.stat-item-compact p {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* Institutional Slideshow Styles */
.institutional-slideshow-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 16px;
    background: #000;
}
.slideshow-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.slide-item {
    min-width: 100%;
    position: relative;
}
.slide-item img {
    width: 100%;
    height: auto;
    display: block;
}
.pdf-fallback-container {
    width: 100%;
    height: 600px;
    background: #f1f5f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}
.pdf-icon { font-size: 4rem; margin-bottom: 20px; color: #ef4444; }

.slideshow-nav {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 60px; /* Bring them well inside */
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 100;
}
.slideshow-btn {
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.5) !important;
    color: #fff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    pointer-events: auto;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.2) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.slideshow-btn:hover { background: rgba(0,0,0,0.8) !important; transform: scale(1.1); }
.slideshow-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s;
}
.dot.active {
    background: #00689c;
    width: 30px;
    border-radius: 10px;
}

/* Mobile adjustments for Nosotros Premium */
@media (max-width: 768px) {
    .nosotros-premium {
        padding: 30px 0 60px 0 !important;
        scroll-margin-top: 60px !important;
    }
    .nosotros-header h2 {
        font-size: 2.2rem; /* Reduced from 3.5rem */
        line-height: 1.2;
        margin-bottom: 20px;
    }
    .nosotros-header p:not(.section-badge) {
        font-size: 1.1rem;
        line-height: 1.6;
    }
    .stats-grid-compact {
        grid-template-columns: repeat(2, 1fr); /* 2x2 grid on mobile */
        gap: 15px;
    }
    .stat-item-compact {
        padding: 25px 15px;
    }
    .stat-item-compact h3 {
        font-size: 2.2rem;
    }
}

/* Additional mobile refinements */
@media (max-width: 768px) {
    .hero-nosotros-combined h1 {
        font-size: 2.8rem !important;
        line-height: 1.1 !important;
    }
    .hero-nosotros-combined {
        padding: 100px 0 60px !important;
    }
    .narrative-pills-container {
        flex-direction: column !important;
        gap: 20px !important;
        margin-bottom: 40px !important;
    }
    .narrative-pill {
        padding: 25px 20px !important;
        gap: 15px !important;
    }
    .hero-cta-group {
        flex-direction: column !important;
        width: 100%;
    }
    .btn-hero-primary, .btn-hero-secondary {
        width: 100% !important;
        text-align: center !important;
    }
}

/* Safety for long words in titles */
.nosotros-text h2, .nosotros-header h2, .hero-nosotros-combined h1 {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

/* Fix for mobile hyphenation and overflow */
.nosotros-text h2, .nosotros-header h2, .hero-nosotros-combined h1 {
    hyphens: none !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
}

@media (max-width: 480px) {
    .stats-grid-compact {
        grid-template-columns: 1fr !important; /* Single column on very small screens */
    }
    .nosotros-text h2, .nosotros-header h2 {
        font-size: 1.8rem !important; /* Even smaller for very narrow screens */
    }
}

.nosotros-premium {
    overflow-x: hidden; /* Prevent horizontal scroll from this section */
}

/* Tweak for Hero title on small mobile */
@media (max-width: 480px) {
    .hero-nosotros-combined h1 {
        font-size: 2.2rem !important; /* Smaller for narrow screens */
    }
}



/* --- MODERNIZED SIGOB PORTAL ADD-ONS --- */

/* 1. Slideshow Clean */
.sigob-modal.modal-slideshow { background-color: #000 !important; }
.modal-slideshow .modal-content {
    width: 100vw !important; height: 100vh !important; max-width: none !important;
    margin: 0 !important; padding: 0 !important; background: transparent !important;
    border: none !important; box-shadow: none !important;
    display: flex !important; justify-content: center !important; align-items: center !important;
}
.institutional-slideshow-wrapper, .institutional-slideshow-container, .slideshow-track, .slide-item {
    width: 100vw !important; height: 100vh !important;
}
.slide-item img {
    width: 90% !important; height: 90% !important;
    max-width: 90vw !important; max-height: 90vh !important;
    object-fit: contain !important; margin: auto !important;
}
.slideshow-nav {
    position: fixed !important; bottom: 30px !important; left: 50% !important;
    transform: translateX(-50%) !important; width: 400px !important;
    display: flex !important; justify-content: space-between !important; align-items: center !important;
    z-index: 10010 !important; pointer-events: none !important;
}
.slideshow-btn {
    width: 60px !important; height: 60px !important;
    background: rgba(0, 0, 0, 0.05) !important; color: rgba(255,255,255,0.6) !important;
    border: 1px solid rgba(255,255,255,0.1) !important; border-radius: 50% !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    cursor: pointer !important; font-size: 24px !important; pointer-events: auto !important;
    backdrop-filter: blur(2px) !important;
}
.slideshow-dots {
    position: fixed !important; bottom: 50px !important; left: 50% !important;
    transform: translateX(-50%) !important; display: flex !important; gap: 15px !important; z-index: 10009 !important;
}
.modal-slideshow .close-modal {
    position: fixed !important; top: 30px !important; right: 30px !important;
    color: #fff !important; font-size: 40px !important; z-index: 10011 !important;
    background: rgba(0,0,0,0.5) !important; width: 50px !important; height: 50px !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    border-radius: 50% !important;
}

/* 2. Use Cases Section */
/* Institutions Modern Carousel & Expansion */
.sigob-gradient-bg {
    background: 
        radial-gradient(ellipse 90% 110% at 40% 115%, #fff 0%, rgba(0, 180, 255, 0.4) 40%, transparent 90%),
        radial-gradient(circle at 0% 0%, #00040a 0%, transparent 80%),
        linear-gradient(to right, #00040a 0%, #00040a 15%, transparent 50%),
        #00689c !important;
    background-size: 110% 110% !important;
    animation: sigobGlow 12s ease-in-out infinite !important;
}

.instituciones-section { padding: 10px 0 30px; background: #f8fafc; }

.instituciones-carousel-container {
    position: relative;
    padding: 0;
    margin-top: 20px;
    overflow: hidden;
    cursor: pointer;
}

.instituciones-carousel-track {
    display: flex;
    gap: 30px;
    width: max-content;
}

.instituciones-carousel-track::-webkit-scrollbar { display: none; }

.inst-card {
    flex: 0 0 350px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.inst-card-inner {
    background: #fff;
    padding: 40px;
    border-radius: 28px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s ease;
}

.inst-card:hover .inst-card-inner {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,110,182,0.1);
    border-color: rgba(0,110,182,0.2);
}

.inst-icon {
    width: 64px;
    height: 64px;
    background: #f0f7ff;
    color: #00689c;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.inst-card:hover .inst-icon {
    background: #00689c;
    color: #fff;
}

.inst-card h3 {
    font-size: 1.5rem;
    color: #023047;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.3;
}

.inst-stats {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 25px;
}

.btn-explore-inst {
    width: 36px;
    height: 36px;
    border: 1.5px solid #e2e8f0;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    margin: 20px auto 0;
}

.btn-explore-inst::before,
.btn-explore-inst::after {
    content: '';
    position: absolute;
    background: #00689c;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-explore-inst::before { width: 14px; height: 1.5px; }
.btn-explore-inst::after { width: 1.5px; height: 14px; }

.inst-card:hover .btn-explore-inst {
    transform: rotate(90deg);
    background: #00689c;
    border-color: #00689c;
}

.inst-card:hover .btn-explore-inst::before,
.inst-card:hover .btn-explore-inst::after {
    background: #fff;
}

.carousel-nav-btn {
    display: none !important;
}

.carousel-nav-btn:hover {
    background: #00689c;
    color: #fff;
    border-color: #00689c;
}

/* In-Place Expansion & Hover Scroll */
.instituciones-carousel-wrapper {
    position: relative;
    padding: 0;
    margin-top: 60px;
    overflow: hidden;
}

.instituciones-carousel-track {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 20px 60px 40px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
}

.instituciones-carousel-track::-webkit-scrollbar { display: none; }

.inst-card {
    flex: 0 0 320px;
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    scroll-snap-align: center;
    cursor: pointer;
}

.inst-card-inner {
    background: #fff;
    padding: 40px 30px;
    border-radius: 32px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    position: relative;
}

.inst-card:hover:not(.expanded) .inst-card-inner {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0,110,182,0.1);
    border-color: rgba(0,110,182,0.2);
}

/* Expanded State */
.inst-card.expanded {
    flex: 0 0 650px;
    z-index: 50;
}

.inst-card.expanded .inst-card-inner {
    background: 
        radial-gradient(ellipse 90% 110% at 40% 115%, #fff 0%, rgba(0, 180, 255, 0.4) 40%, transparent 90%),
        radial-gradient(circle at 0% 0%, #00040a 0%, transparent 80%),
        linear-gradient(to right, #00040a 0%, #00040a 15%, transparent 50%),
        #00689c !important;
    background-size: 110% 110% !important;
    animation: sigobGlow 12s ease-in-out infinite !important;
    color: #fff;
    border: none;
    padding: 35px 35px 45px;
    box-shadow: 0 30px 70px rgba(0, 10, 30, 0.3);
    justify-content: flex-start;
    overflow: hidden;
    height: auto !important;
    min-height: 0 !important;
}

.inst-card.expanded .inst-card-inner::-webkit-scrollbar {
    width: 4px;
}
.inst-card.expanded .inst-card-inner::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
}

.inst-card-main {
    transition: all 0.3s ease;
    text-align: center;
}

.inst-card.expanded .inst-card-main {
    display: none !important;
}

.inst-details-content {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
    width: 100%;
}

.inst-card.expanded .inst-details-content {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0);
}

.inst-card.expanded .inst-card-inner {
    cursor: pointer;
}

.expansion-header { text-align: left; margin-bottom: 30px; }
.exp-title { font-size: 1.8rem; font-weight: 800; letter-spacing: -1px; line-height: 1.1; color: #fff !important; }

.expansion-grid {
    grid-template-columns: 1fr;
    gap: 6px;
}

.exp-case-card {
    padding: 4px 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #fff;
    text-align: left;
    text-indent: 0 !important;
    margin: 0 !important;
}

.exp-sol-link {
    cursor: pointer;
    color: #26bae0 !important;
    text-decoration: none;
    transition: all 0.3s;
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: inline !important;
    font-weight: 800;
    text-indent: 0 !important;
    margin-left: 0 !important;
}

.exp-sol-link:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.exp-case-name { font-size: 1.2rem; font-weight: 800; margin-bottom: 10px; line-height: 1.3; }
.exp-case-desc { font-size: 0.95rem; opacity: 0.85; line-height: 1.5; }

@media (max-width: 1200px) {
    .inst-card.expanded { flex: 0 0 95%; }
    .expansion-grid { grid-template-columns: 1fr; }
    .exp-title { font-size: 2.2rem; }
}

/* 3. Hero & Tech Pattern */
.hero-nosotros-combined { position: relative; padding: 60px 0 20px !important; overflow: hidden; }
.hero-nosotros-combined::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.05) 1px, transparent 0);
    background-size: 40px 40px; z-index: 1; pointer-events: none;
}
.hero-nosotros-combined::after {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(0,110,182,0.15) 0%, transparent 70%);
    animation: rotateGradient 20s linear infinite; z-index: 0; pointer-events: none;
}
@keyframes rotateGradient { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
/* Narrative grid styles consolidated at top */

/* 4. Menu Refinements & Quantum Dot */
.site-header .main-navigation ul li a {
    font-size: 11px !important; font-weight: 500 !important; text-transform: uppercase !important;
    letter-spacing: 1.5px !important; padding: 8px 15px !important; opacity: 0.8; transition: all 0.3s;
}
.site-header .main-navigation ul li a:hover { opacity: 1; color: #00689c !important; }
.site-header .main-navigation ul li a[href*="contacto"] {
    background: #00689c !important; color: #fff !important; padding: 8px 20px !important; border-radius: 50px !important;
}
.menu-quantum-dot {
    position: absolute; bottom: 0px; left: 0; width: 10px; height: 10px; background: #00689c;
    border-radius: 50%; box-shadow: 0 0 15px rgba(0,110,182,0.9);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    opacity: 0; pointer-events: none; transform: translateX(-50%);
}
.menu-quantum-dot.active { opacity: 1; }
@media (max-width: 991px) { .menu-quantum-dot { display: none !important; } }

/* Back to Top */
.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background: #00689c; color: white; border-radius: 50%; opacity: 0; visibility: hidden; transition: 0.3s; z-index: 9999; display: flex; align-items: center; justify-content: center; }
.back-to-top.show { opacity: 1; visibility: visible; }

/* Premium Menu Refinements */
.site-header .main-navigation ul#primary-menu li a {
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    color: #64748b !important; /* Slate color for professional look */
    padding: 12px 12px !important;
    opacity: 0.9;
    transition: all 0.3s ease !important;
}

.site-header .main-navigation ul#primary-menu li a:hover {
    color: #00689c !important;
    opacity: 1;
}

.site-header .main-navigation ul#primary-menu li a[href*="contacto"] {
    background: #00689c !important;
    color: #fff !important;
    padding: 10px 28px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    margin-left: 25px !important;
    box-shadow: 0 8px 25px rgba(0, 110, 182, 0.2) !important;
    opacity: 1 !important;
}

.site-header .main-navigation ul#primary-menu li a[href*="contacto"]:hover {
    background: #023047 !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.2) !important;
}

.menu-quantum-dot {
    width: 10px !important;
    height: 10px !important;
    box-shadow: 0 0 15px rgba(0,110,182,1);
}

/* Grouping menu items and raising the dot */
.main-navigation {
    padding-bottom: 0 !important;
}

.main-navigation ul#primary-menu {
    justify-content: flex-end !important;
    gap: 5px !important; /* Extremely close as requested */
    margin-right: 20px !important;
}

.main-navigation ul li a {
    padding: 8px 10px !important; /* Tighter padding */
}

.menu-quantum-dot {
    bottom: 8px !important; /* Move it UP closer to the text */
}

/* Precision placement for menu dot */
.menu-quantum-dot {
    bottom: 15px !important; /* Extremely close to the text baseline */
}

/* Force vertical shift for menu dot */
.menu-quantum-dot {
    bottom: 0 !important;
    transform: translate(-50%, -46px) !important; /* Pushed up as in header override */
}

/* Defeating the persistent empty space on mobile */
@media (max-width: 768px) {
    .hero-nosotros-combined, 
    .hero-nosotros-combined .container,
    .narrative-pills-container,
    .rotating-hero-pill {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }
    
    .rotating-hero-pill {
        padding-bottom: 40px !important; /* Controlled padding */
    }
}

/* ============================================================
   Institutional Pages: FAQ, Documentos, Términos
   ============================================================ */

/* FAQ Page */
.faq-page {
    padding: 80px 0 100px;
}
.faq-page h1 {
    font-size: 2.8rem;
    color: var(--sigob-primary);
    text-align: center;
    margin-bottom: 15px;
}
.faq-intro {
    text-align: center;
    font-size: 1.15rem;
    color: #64748b;
    max-width: 650px;
    margin: 0 auto 60px;
    line-height: 1.7;
}
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid #e2e8f0;
    padding: 0;
}
.faq-item:last-child {
    border-bottom: none;
}
.faq-question {
    font-size: 1.15rem;
    font-weight: 600;
    color: #023047;
    padding: 24px 40px 24px 0;
    margin: 0;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}
.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--sigob-primary);
    font-weight: 300;
    transition: transform 0.3s;
}
.faq-item.active .faq-question::after {
    content: '−';
}
.faq-question:hover {
    color: var(--sigob-primary);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 0;
}
.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 0 24px;
}
.faq-answer p {
    color: #475569;
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
}
.faq-answer a {
    color: var(--sigob-primary);
    font-weight: 600;
}

/* Documents Page */
.docs-page {
    padding: 80px 0 100px;
}
.docs-page h1 {
    font-size: 2.8rem;
    color: var(--sigob-primary);
    text-align: center;
    margin-bottom: 15px;
}
.docs-intro {
    text-align: center;
    font-size: 1.15rem;
    color: #64748b;
    max-width: 650px;
    margin: 0 auto 60px;
    line-height: 1.7;
}
.docs-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.doc-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 30px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}
.doc-card:hover {
    border-color: var(--sigob-primary);
    box-shadow: 0 10px 30px rgba(0,110,182,0.08);
    transform: translateY(-3px);
}
.doc-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}
.doc-info {
    flex: 1;
}
.doc-info h3 {
    font-size: 1.15rem;
    color: #023047;
    margin-bottom: 8px;
}
.doc-info p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 8px;
}
.doc-meta {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.doc-download {
    flex-shrink: 0;
    padding: 10px 24px !important;
    font-size: 0.9rem !important;
    white-space: nowrap;
}
@media (max-width: 600px) {
    .doc-card {
        flex-direction: column;
        text-align: center;
    }
    .doc-download {
        width: 100%;
        text-align: center;
    }
}

/* Terms of Use Page */
.terms-page {
    padding: 80px 0 100px;
}
.terms-page h1 {
    font-size: 2.8rem;
    color: var(--sigob-primary);
    text-align: center;
    margin-bottom: 10px;
}
.terms-date {
    text-align: center;
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 60px;
}
.terms-page h2 {
    font-size: 1.4rem;
    color: #023047;
    margin-top: 40px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}
.terms-page p {
    color: #475569;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 16px;
    max-width: 800px;
}
.terms-page a {
    color: var(--sigob-primary);
    font-weight: 600;
}

/* === Premium Search Modal === */
.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: 15px;
}
.search-trigger {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-trigger:hover {
    background: rgba(0, 110, 182, 0.05);
    color: var(--sigob-primary);
}

.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}
.search-modal.active {
    display: flex;
}
.search-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
}
.search-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    z-index: 10;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.search-close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.3s;
}
.search-close-btn:hover {
    color: var(--sigob-primary);
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 40px;
}
#sigobSearchInput {
    width: 100%;
    border: none;
    border-bottom: 2px solid #e2e8f0;
    font-size: 2rem;
    padding: 10px 0;
    color: #023047;
    background: transparent;
    outline: none;
    font-weight: 300;
}
#sigobSearchInput::placeholder {
    color: #cbd5e1;
}
#sigobSearchInput:focus {
    border-bottom-color: var(--sigob-primary);
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.search-cat-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #94a3b8;
    margin-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 8px;
    font-weight: 700;
}
.search-item {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 12px;
    transition: background 0.3s;
    text-decoration: none !important;
    display: block;
}
.search-item:hover {
    background: #f8fafc;
}
.search-item h4 {
    margin: 0 0 5px;
    font-size: 1.1rem;
    color: #023047;
    line-height: 1.4;
}
.search-item p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.search-loader {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: 3px solid #f1f5f9;
    border-top: 3px solid var(--sigob-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

@media (max-width: 768px) {
    .search-modal-content {
        padding: 30px 20px;
        width: 95%;
    }
    #sigobSearchInput {
        font-size: 1.5rem;
    }
}


/* Impact Section */
.impact-section {
    padding: 10px 0 20px;
    background: #fff;
    position: relative;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.impact-item {
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease;
}

.impact-item:hover {
    transform: translateY(-5px);
}

.impact-icon {
    width: 64px;
    height: 64px;
    background: rgba(0, 110, 182, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sigob-primary);
    margin: 0 auto 25px;
}

.impact-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #023047;
    margin-bottom: 15px;
    line-height: 1.3;
}

.impact-item p {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.6;
}

.impact-item .data-highlight {
    font-weight: 700;
    color: var(--sigob-primary);
}

.impact-quote {
    max-width: 1000px;
    margin: 0 auto 60px;
    padding: 60px 40px;
    background: rgba(0, 110, 182, 0.03);
    border-radius: 32px;
    text-align: center;
    position: relative;
}

.impact-quote blockquote {
    margin: 0;
    padding: 0;
    border: none;
}

.impact-quote p {
    font-size: 1.6rem;
    color: #023047;
    font-style: italic;
    line-height: 1.5;
    font-weight: 500;
}

.scroll-down-indicator {
    text-align: center;
    margin-top: 40px;
    position: relative;
    z-index: 20;
}

.scroll-down-indicator a {
    display: inline-block;
    color: var(--sigob-primary);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.animate-bounce-slow {
    animation: bounce-slow 3s infinite;
}

@keyframes bounce-slow {
    0%, 100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

/* Recursos Premium Cards Hover */
.pub-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease !important;
}
.pub-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(0, 104, 156, 0.1) !important;
    border-color: #00689c !important;
}
.pub-card .btn-solid:hover {
    background: #023047 !important;
}

@media (max-width: 991px) {
    .impact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .impact-section {
        padding: 80px 0;
    }
    .impact-quote p {
        font-size: 1.3rem;
    }
}

/* ============================================================
   Ecosistema Orbital - Premium Animated Interaction Component
   ============================================================ */

.orbital-ecosystem-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1100px;
    margin: 40px auto 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.orbital-system-container {
    position: relative;
    width: 480px;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    user-select: none;
}

/* Main Rotating System - Tilted 65 degrees for a sleek horizontal 3D ellipse */
.orbital-system {
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    transform-style: preserve-3d;
    transform: rotateX(65deg);
    animation: orbit-rotate 50s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Pause rotation on hover or active mobile tap */
.orbital-system-container:hover .orbital-system,
.orbital-system-container:hover .planet-node,
.orbital-system-container.paused .orbital-system,
.orbital-system-container.paused .planet-node {
    animation-play-state: paused !important;
}

/* Hide standard orbit ring lines */
.orbit-ring {
    display: none !important;
}

/* Planet orbit positioners - placed at exact center */
.planet-orbit-positioner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    /* Translate out by 200px (radius of the 400px diameter orbit) and cancel static angle rotation */
    transform: translate(-50%, -50%) rotate(var(--angle)) translate(200px) rotate(calc(-1 * var(--angle)));
    transform-style: preserve-3d;
    z-index: 5;
    transition: z-index 0.2s ease;
}

/* Elevate active planet and its satellite card above everything else */
.planet-orbit-positioner:hover,
.planet-orbit-positioner:focus-within,
.planet-orbit-positioner:has(.planet-node.active) {
    z-index: 999 !important;
}

/* Individual Planet Nodes */
.planet-node {
    position: absolute;
    width: 60px;
    height: 60px;
    transform: translate(-50%, -50%);
    animation: planet-counter-rotate 50s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Planet Core Outer Wrapper */
.planet-core-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Glowing central planet core circle */
.planet-core {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #26bae0 0%, #00689c 70%, #004d80 100%);
    box-shadow: 
        0 4px 15px rgba(0, 110, 182, 0.3),
        inset 0 -2px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 12;
}

/* Elegant visual pulse ring */
.planet-pulse {
    position: absolute;
    top: -8px; left: -8px; right: -8px; bottom: -8px;
    border-radius: 50%;
    border: 1px solid rgba(38, 186, 224, 0.4);
    animation: planet-pulse-anim 3s ease-out infinite;
    pointer-events: none;
    z-index: 5;
}

/* Visual pulse keyframes */
@keyframes planet-pulse-anim {
    0% { transform: scale(0.9); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

.planet-number {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    z-index: 15;
}

/* Planet Label styling - Positioned above the planet core with high contrast */
.planet-info-label {
    position: absolute;
    bottom: 54px;
    width: 140px;
    text-align: center;
    pointer-events: none;
}

.planet-info-label h4 {
    font-size: 11.5px;
    font-weight: 600;
    color: #e2e8f0; /* Slate 200 (Highly visible against dark backdrops) */
    letter-spacing: 0.8px;
    text-transform: none; /* Natural capitalization for supreme readability */
    margin: 0;
    line-height: 1.3;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

/* Planet core glow & hover enlargements */
.planet-node:hover .planet-core,
.planet-node.active .planet-core {
    transform: scale(1.2);
    background: radial-gradient(circle at 35% 35%, #26bae0 0%, #008be5 60%, #00689c 100%);
    box-shadow: 
        0 0 25px rgba(38, 186, 224, 0.8),
        0 8px 25px rgba(0, 110, 182, 0.4),
        inset 0 -2px 8px rgba(0, 0, 0, 0.2);
}

.planet-node:hover .planet-info-label h4,
.planet-node.active .planet-info-label h4 {
    color: #26bae0; /* Bright glowing neon cyan on hover/focus */
    font-weight: 700;
    transform: translateY(-2px);
}

/* Hide central centerpiece */
.orbit-center {
    display: none !important;
}

.center-core {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #023047;
    border: 2px solid #26bae0;
    color: #26bae0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(38, 186, 224, 0.5);
    z-index: 10;
}

.center-core svg {
    width: 14px;
    height: 14px;
    animation: spin 8s linear infinite;
}

.center-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(38, 186, 224, 0.1) 0%, rgba(0, 110, 182, 0.03) 50%, transparent 70%);
    animation: breathing-glow 4s ease-in-out infinite alternate;
    z-index: 2;
}

@keyframes breathing-glow {
    0% { transform: scale(0.9); opacity: 0.7; }
    100% { transform: scale(1.1); opacity: 1; }
}

/* Floating Satellite Card (Tooltip) - Positioned above the planet core */
.satellite-card {
    position: absolute;
    bottom: 80px;
    top: auto;
    left: 50%;
    width: 280px;
    padding: 20px;
    background: rgba(15, 23, 42, 0.95); /* Dark premium theme */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(38, 186, 224, 0.25);
    border-radius: 18px;
    box-shadow: 
        0 15px 35px rgba(0, 10, 30, 0.4),
        0 0 15px rgba(38, 186, 224, 0.1);
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(15px) scale(0.95) translateZ(50px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
    pointer-events: none; /* Avoid blocking interaction */
    text-align: left;
}

/* Tooltip Arrow pointing downwards */
.satellite-card::after {
    content: '';
    position: absolute;
    bottom: -8px;
    top: auto;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 16px;
    height: 16px;
    background: rgba(15, 23, 42, 0.95);
    border-right: 1px solid rgba(38, 186, 224, 0.25);
    border-bottom: 1px solid rgba(38, 186, 224, 0.25);
    border-left: none;
    border-top: none;
}

.satellite-card h5 {
    font-size: 13px;
    font-weight: 800;
    color: #26bae0;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 8px 0;
    font-family: 'Montserrat', sans-serif;
}

.satellite-card p {
    font-size: 11.5px;
    color: #cbd5e1; /* Slate 300 */
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
}

/* Open satellite card on node hover or active */
.planet-node:hover .satellite-card,
.planet-node.active .satellite-card {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1) translateZ(150px); /* Pull to absolute front */
    pointer-events: auto;
}

/* CSS Keyframes for Tridimensional Nested Rotations - tilted 65 degrees */
@keyframes orbit-rotate {
    0% { transform: rotateX(65deg) rotate(360deg); }
    100% { transform: rotateX(65deg) rotate(0deg); }
}

@keyframes planet-counter-rotate {
    0% { transform: translate(-50%, -50%) rotate(0deg) rotateX(-65deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg) rotateX(-65deg); }
}

/* Mobile responsive fallback detail container (hidden on desktop) */
.mobile-orbital-details {
    display: none;
    width: 100%;
    margin-top: 30px;
}

/* ============================================================
   Orbital Adaptability for Mobile Screens (max-width: 768px)
   ============================================================ */

@media (max-width: 768px) {
    .orbital-ecosystem-wrapper {
        margin-top: 20px;
        padding: 0 15px;
    }

    /* Transform circular orbit into a sleek curved horizontal arc */
    .orbital-system-container {
        width: 100%;
        height: 140px; /* Flat layout */
        perspective: none;
    }

    .orbital-system {
        width: 100%;
        height: 100%;
        transform: none !important; /* Reset 3D X-tilt on mobile to prevent squashing */
        animation: none !important; /* Stop orbital rotation entirely */
        display: flex;
        justify-content: space-around;
        align-items: center;
        border-radius: 0;
        position: relative;
    }

    /* The orbital ring becomes a curved thin neon line under the nodes */
    .orbit-ring {
        width: 90%;
        height: 120px;
        border-radius: 50%;
        border: none;
        border-top: 2px solid rgba(0, 110, 182, 0.3);
        box-shadow: none;
        position: absolute;
        top: 25px;
        left: 5%;
        z-index: 1;
        opacity: 0.5;
    }

    /* Remove standard orbiting positioners and arrange nodes linearly */
    .planet-orbit-positioner {
        position: relative;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: auto;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .planet-node {
        position: relative;
        transform: none !important;
        animation: none !important; /* Stop counter-rotation */
        width: 70px;
        height: 70px;
    }

    .planet-core {
        width: 48px;
        height: 48px;
        box-shadow: 0 4px 12px rgba(0, 110, 182, 0.2);
    }

    /* Place labels above the planet on mobile */
    .planet-info-label {
        bottom: 56px;
        top: auto;
        width: 76px;
    }
    
    .planet-info-label h4 {
        font-size: 8px;
        letter-spacing: 0.5px;
        color: #e2e8f0;
        text-shadow: 0 1px 3px rgba(0,0,0,0.6);
        text-transform: none;
    }

    /* Hide standard absolute-positioned satellite cards on mobile */
    .planet-node .satellite-card {
        display: none !important;
    }

    /* Hide centerpiece star */
    .orbit-center {
        display: none !important;
    }

    /* Display mobile description block below */
    .mobile-orbital-details {
        display: block;
        width: 100%;
        margin-top: 15px;
        z-index: 20;
    }

    .mobile-detail-card {
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(38, 186, 224, 0.25);
        border-radius: 18px;
        padding: 20px;
        text-align: center;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        min-height: 120px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .mobile-detail-card.active {
        animation: mobile-card-slide 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        border-color: rgba(38, 186, 224, 0.6);
        box-shadow: 
            0 12px 30px rgba(0, 110, 182, 0.25),
            0 0 15px rgba(38, 186, 224, 0.2);
    }

    @keyframes mobile-card-slide {
        0% { transform: translateY(10px); opacity: 0; }
        100% { transform: translateY(0); opacity: 1; }
    }

    #mobileDetailTitle {
        font-size: 13px;
        font-weight: 800;
        color: #26bae0;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin: 0 0 8px 0;
        font-family: 'Montserrat', sans-serif;
    }

    #mobileDetailDesc {
        font-size: 11.5px;
        color: #cbd5e1;
        line-height: 1.5;
        margin: 0;
        font-weight: 500;
    }
}

/* ==========================================================================
   === NEW MODERN HERO BANNER (CLEAN & INTERACTIVE) ===
   ========================================================================== */
.hero-clean-modern {
    position: relative;
    height: 750px !important;
    min-height: 750px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #023047 url('hero-bg-clean.png') no-repeat !important;
    background-position: 73.8% center !important;
    background-size: auto 750px !important;
    overflow: hidden;
    padding: 100px 0 20px !important;
    z-index: 1;
    text-align: left !important;
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: crisp-edges !important;
}

.hero-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    object-fit: cover;
    pointer-events: none;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(2, 48, 71, 0.35) 0%, #023047 85%);
    z-index: 1;
    pointer-events: none;
}

.hero-clean-modern .container {
    max-width: 1600px !important;
    width: 100% !important;
    padding: 0 40px !important;
}

/* Subtle particle or grid overlay */
.hero-overlay-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 75% 50%, rgba(38, 186, 224, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 2;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 40px;
    align-items: center;
    width: 100%;
    max-width: 1600px !important;
    margin: auto;
    padding: 40px 40px 20px 40px;
    position: relative;
    z-index: 3;
}

.hero-content-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left !important;
    padding-top: 55px;
}

.hero-main-title {
    font-size: 4.5rem;
    font-weight: 800;
    color: #ffffff !important;
    line-height: 1.1;
    margin-bottom: 70px;
    letter-spacing: -2px;
    text-shadow: 0 4px 20px rgba(2, 48, 71, 0.6);
    text-align: left !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Row of 4 cards */
.hero-cards-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    width: 100%;
    text-align: left !important;
    align-items: stretch !important;
}

@keyframes sigobFlyIn {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.96) rotate(-1deg);
        filter: blur(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
        filter: blur(0);
    }
}

.hero-modern-card {
    background: rgba(2, 48, 71, 0.4) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px;
    padding: 24px 18px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left !important;
    height: 100% !important;
    opacity: 0;
    animation: sigobFlyIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(var(--card-index) * 0.15s + 0.3s);
}

/* Turquoise glow bar on hover */
.hero-modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #26bae0, #00689c);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.hero-modern-card:hover {
    transform: translateY(-8px);
    background: rgba(2, 48, 71, 0.7);
    border-color: rgba(38, 186, 224, 0.3);
    box-shadow: 
        0 15px 35px rgba(2, 48, 71, 0.4),
        0 0 20px rgba(38, 186, 224, 0.1);
}

.hero-modern-card:hover::before {
    transform: scaleX(1);
}

.card-num-badge {
    font-size: 1.8rem;
    font-weight: 800;
    color: #26bae0;
    opacity: 0.8;
    line-height: 1;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    transition: transform 0.3s ease;
}

.hero-modern-card:hover .card-num-badge {
    transform: scale(1.1) translateX(2px);
    opacity: 1;
}

.hero-card-info {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: none !important;
    overflow: visible !important;
    background: transparent !important;
    width: 100% !important;
    height: auto !important;
    transition: none !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: left !important;
}

.hero-card-info h3 {
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.35 !important;
    -webkit-text-fill-color: #ffffff !important;
    text-align: left !important;
}

.hero-card-info p {
    font-size: 0.95rem !important;
    color: rgba(255, 255, 255, 0.7) !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.7) !important;
    text-align: left !important;
}

/* Right Column & Holographic Globe Animation */
.hero-visual-right {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute !important;
    left: 73.8% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 450px;
    height: 450px;
    z-index: 5;
}

.globe-animation-wrapper {
    position: relative;
    width: 450px;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.globe-core-glow {
    position: absolute;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(38, 186, 224, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: core-pulse 4s ease-in-out infinite alternate;
}

/* Animations for concentric rings */
.globe-animated-rings {
    pointer-events: none;
    transform-origin: center;
}

.ring-inner {
    animation: rotate-clockwise 25s linear infinite;
    transform-origin: center;
}

.ring-middle {
    animation: rotate-counter 35s linear infinite;
    transform-origin: center;
}

.ring-outer {
    animation: rotate-clockwise 45s linear infinite;
    transform-origin: center;
}

.radar-line {
    animation: rotate-radar 12s linear infinite;
    transform-origin: 300px 300px;
}

/* Pulsing data node points */
.data-node {
    transform-origin: center;
}

.pulse-fast {
    animation: point-pulse 1.5s infinite alternate;
}

.pulse-medium {
    animation: point-pulse 2.2s infinite alternate;
}

.pulse-slow {
    animation: point-pulse 3s infinite alternate;
}

/* CSS Keyframes */
@keyframes rotate-clockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotate-counter {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes rotate-radar {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes core-pulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    100% { transform: scale(1.1); opacity: 1; }
}

@keyframes point-pulse {
    0% { r: 3px; opacity: 0.4; fill-opacity: 0.4; }
    100% { r: 7px; opacity: 1; fill-opacity: 1; filter: drop-shadow(0 0 4px #26bae0); }
}

/* === Responsive Media Queries === */
@media (max-width: 1440px) {
    .hero-clean-modern {
        background-position: 73.8% center !important;
        background-size: auto 700px !important;
        height: 700px !important;
        min-height: 700px !important;
    }
}

@media (max-width: 1200px) {
    .hero-clean-modern {
        background-position: 73.8% center !important;
        background-size: auto 650px !important;
        height: 650px !important;
        min-height: 650px !important;
    }
    .hero-main-title {
        font-size: 3.2rem;
    }
    .hero-cards-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .globe-animation-wrapper {
        width: 380px;
        height: 380px;
    }
}

@media (max-width: 991px) {
    .hero-clean-modern {
        width: 100% !important;
        max-width: 100vw !important;
        overflow: hidden !important; /* Complete safety valve against horizontal bleeding */
        background-position: 73.8% center !important;
        background-size: cover !important;
        padding-top: 80px !important; /* Elegant space for the fixed header */
        padding-bottom: 40px !important;
        min-height: 100vh !important; /* Lock section to 100% viewport height for cinematic scaling */
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important; /* Perfect vertical centering */
        align-items: center !important;
        box-sizing: border-box !important;
    }
    .hero-clean-modern .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 20px !important; /* Standardize lateral margins at exactly 20px */
        box-sizing: border-box !important;
        margin: 0 auto !important;
    }
    .hero-bg-video {
        display: none !important; /* Hide massive video on mobile to save bandwidth & prevent aspect stretch */
    }
    .hero-video-overlay {
        display: none !important;
    }
    .hero-layout {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        padding: 10px 0 !important; /* padding is handled by the container */
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    .hero-content-left {
        padding-top: 0 !important; /* Reset desktop offset on mobile */
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .hero-visual-right {
        display: none !important; /* Hide the visual SVG on mobile to save precious vertical screen estate */
    }
    .hero-main-title {
        font-size: 2.1rem !important;
        text-align: center !important;
        margin-bottom: 25px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .hero-cards-row {
        grid-template-columns: repeat(2, 1fr) !important; /* Enforce 2x2 grid to save 250px+ vertical height */
        gap: 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }
    .hero-modern-card {
        padding: 12px 10px !important;
        box-sizing: border-box !important;
    }
    .hero-modern-card h3 {
        font-size: 1.1rem !important;
    }
    .hero-modern-card p {
        font-size: 0.85rem !important;
        line-height: 1.35 !important;
    }
}

@media (max-width: 480px) {
    .hero-clean-modern .container {
        padding: 0 15px !important; /* Extra vertical/horizontal alignment on very narrow devices */
    }
    .hero-main-title {
        font-size: 1.8rem !important;
        margin-bottom: 20px !important;
    }
    .hero-cards-row {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

