/* ============================================================
   ECOSERIN - STYLE.CSS (UNIFICADO Y PROFESIONAL)
   - Web pública (con fondo imagen)
   - Portal / Informes / Operación (sistema interno limpio)
============================================================ */

/* ============================================================
   VARIABLES CORPORATIVAS (ÚNICAS)
============================================================ */
:root{
  --eco-primary:#0a3d62;      /* petróleo */
  --eco-primary-2:#0f4c75;    /* petróleo 2 */
  --eco-accent:#1b9cfc;       /* acento */

  --eco-bg-light:#f4f6fb;     /* fondo sistema */
  --eco-text:#0f172a;         /* texto oscuro */
  --eco-muted:#5c6f7c;        /* texto secundario */
  --eco-border:#e5e7eb;

  --eco-radius:18px;
  --eco-shadow:0 10px 28px rgba(2,6,23,.12);
}

/* ============================================================
   RESET + BASE
============================================================ */
*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  border: none;
  overflow-x: hidden;
}

body{
  display:flex;
  flex-direction:column;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--eco-text);
  background: var(--eco-bg-light); /* base por defecto (sistema) */
}

/* ============================================================
   CONTEXTOS (WEB vs SISTEMA INTERNO)
============================================================ */

/* WEB PÚBLICA: fondo con imagen */
body.web-public{
  background-image: url("/static/fondo_ecoserin.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center center;
}

/* SISTEMA INTERNO: fondo limpio */
body.app-internal{
  background: var(--eco-bg-light);
  color: var(--eco-text);
}

/* ============================================================
   LAYOUT: MAIN (para navbar fixed-top)
============================================================ */
main{
  flex: 1;
  padding-top: 110px; /* espacio bajo navbar fixed-top */
}

/* utilidad por si usas clase */
.container-padding{ padding-top: 110px; }

/* ============================================================
   TIPOGRAFÍA
============================================================ */
h1,h2,h3,h4,h5{ font-weight: 600; }

/* SOLO WEB: texto blanco sobre imagen */
body.web-public main h1,
body.web-public main h2,
body.web-public main h3{
  color:#fff;
  text-shadow: 1px 1px 3px rgba(0,0,0,.9);
}

body.web-public main p{
  color:#f5f5f5;
  text-shadow: 1px 1px 2px rgba(0,0,0,.7);
}

/* SOLO SISTEMA: texto limpio */
body.app-internal main h1,
body.app-internal main h2,
body.app-internal main h3{
  color: var(--eco-primary);
  text-shadow: none;
}

body.app-internal main p{
  color: var(--eco-muted);
  text-shadow: none;
}

/* ============================================================
   NAVBAR ECOSERIN (UNIFICADA)
============================================================ */
.main-navbar{
  background: linear-gradient(135deg, var(--eco-primary), var(--eco-primary-2));
  box-shadow: 0 4px 18px rgba(2,6,23,.35);
  transition: all 0.25s ease;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  z-index: 1030;
}

.main-navbar .navbar-brand span{
  font-weight: 700;
  letter-spacing: .02em;
  color:#fff !important;
  font-size: 1.05rem;
}

.navbar-dark .nav-link{
  color:#fff !important;
  font-weight: 500;
}

.navbar-dark .nav-link:hover{
  color:#d6ecff !important;
}

/* shrink opcional (si lo usas con JS) */
.main-navbar.navbar-shrink{
  background: rgba(10,61,98,0.95);
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  box-shadow: 0 3px 14px rgba(0,0,0,0.35);
}

/* logo si existe */
.main-navbar .navbar-logo{
  height: 58px;
  width: auto;
  transition: height 0.25s ease;
}
.main-navbar.navbar-shrink .navbar-logo{ height: 46px; }

/* Links/botones navbar alineados */
.main-navbar .navbar-nav .nav-link{
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  min-height: 44px;
}

/* estilo tipo botón en navbar (si usas nav-btn) */
.main-navbar .navbar-nav .nav-btn{
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 10px;
  line-height: 1;
  height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.main-navbar .navbar-nav .nav-btn.nav-btn-light{
  background:#fff;
  color:#0b2230 !important;
  border-color: transparent;
}
.main-navbar .navbar-nav .nav-btn:hover{ opacity: .92; }

/* Mobile navbar */
@media (max-width: 991.98px){
  .navbar-collapse{
    background: rgba(10,61,98,0.98);
    margin-top: .5rem;
    border-radius: 0 0 16px 16px;
    padding: .5rem .75rem .75rem;
  }
  .main-navbar .navbar-nav{
    gap: 6px !important;
    padding-top: 10px;
  }
  .main-navbar .navbar-nav .nav-link{
    height: auto;
    padding: 10px 12px;
  }
  .main-navbar .navbar-nav .nav-btn{
    width: 100%;
    justify-content: center;
  }
  main{ padding-top: 90px; }
}

/* ============================================================
   BOTONES (UNIFICADOS)
============================================================ */
.btn-primary{
  background-color: var(--eco-accent);
  border-color: var(--eco-accent);
  font-weight: 600;
}
.btn-primary:hover{
  background-color: var(--eco-primary-2);
  border-color: var(--eco-primary-2);
}

/* botón petróleo (para portal/panel usuarios/etc.) */
.btn-petroleo{
  background: var(--eco-primary);
  color:#fff;
  font-weight:600;
  border-radius: 999px;
  padding: 10px 26px;
  border: none;
}
.btn-petroleo:hover{
  background: var(--eco-primary-2);
  color:#fff;
}

/* ============================================================
   CARDS GENERALES
============================================================ */
.card{
  border: none;
  border-radius: 1rem;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(4px);
}

/* Cards del sistema interno más “ERP” */
body.app-internal .card{
  background: #fff;
  border: 1px solid rgba(10,61,98,0.10);
  box-shadow: 0 6px 18px rgba(2,6,23,.06);
}

/* ============================================================
   HERO / SECCIONES WEB (solo web)
============================================================ */
.hero-wrapper{ padding: 80px 0 120px 0; }

.hero-box{
  max-width: 760px;
  margin-left: 60px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 18px;
  padding: 32px 40px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.6);
}

.hero-title{
  font-size: 2.4rem;
  font-weight: 700;
  color:#fff;
  margin-bottom: 18px;
  line-height: 1.2;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}
.hero-title span{
  display:block;
  font-size: 2.1rem;
  font-weight: 600;
}

.hero-text{
  font-size: 1.05rem;
  line-height: 1.6rem;
  color:#f5f5f5;
  margin-bottom: 10px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.hero-btn{
  margin-top: 20px;
  font-weight: 600;
  padding: 10px 26px;
  border-radius: 999px;
}

/* Bloques opacos web */
.nosotros-bg,
.empresa-bg,
.contacto-bg,
.contacto-bg-left{
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 18px;
  padding: 35px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.nosotros-bg h1, .nosotros-bg h2, .nosotros-bg h3,
.nosotros-bg h4, .nosotros-bg p,  .nosotros-bg li,
.empresa-bg h1,  .empresa-bg h2,  .empresa-bg h3,
.empresa-bg h4,  .empresa-bg p,   .empresa-bg li,
.contacto-bg h1, .contacto-bg h2, .contacto-bg h3,
.contacto-bg h4, .contacto-bg p,  .contacto-bg li,
.contacto-bg label,
.contacto-bg-left h1, .contacto-bg-left p, .contacto-bg-left label{
  color:#fff !important;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.contacto-bg-left{ text-align:left; }

.contacto-bg-left .form-control,
.contacto-bg .form-control{
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.25);
  color:#fff;
}
.contacto-bg-left .form-control::placeholder,
.contacto-bg .form-control::placeholder{ color:#ccc; }

.contacto-bg-left .form-control:focus,
.contacto-bg .form-control:focus{
  background: rgba(0,0,0,0.75);
  border-color: var(--eco-accent);
  box-shadow: 0 0 0 0.2rem rgba(27,156,252,0.35);
}

/* ============================================================
   SERVICIOS – CARRUSEL (web)
============================================================ */
.services-wrapper{
  position: relative;
  width: 100%;
  padding: 0 70px;
  margin-top: 30px;
  display:flex;
  align-items:center;
}

.services-strip{
  display:flex;
  gap:24px;
  overflow-x:auto;
  scroll-behavior:smooth;
  padding:15px 0;
  height: 500px;
  scrollbar-width: thin;
}

.services-strip::-webkit-scrollbar{ height: 8px; }
.services-strip::-webkit-scrollbar-track{ background: rgba(255,255,255,0.25); }
.services-strip::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,0.45);
  border-radius: 5px;
}

.service-card{
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  width: 340px;
  min-width: 340px;
  height: 440px;
  padding: 18px;
  border-radius: 18px;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  box-shadow: 0 4px 18px rgba(0,0,0,0.3);
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}

.service-image-wrapper{
  width: 100%;
  height: 200px;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 12px;
}

.service-thumb{
  width:100%;
  height:100%;
  object-fit: cover;
  object-position: center;
  transition: transform .25s ease, opacity .25s ease;
}
.service-image-wrapper:hover .service-thumb{
  transform: scale(1.07);
  opacity: .92;
}

.service-title{
  color:#fff;
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 6px;
  min-height: 48px;
  display:flex;
  align-items:center;
}

.service-desc{
  color:#e6e6e6;
  font-size: .92rem;
  line-height: 1.35rem;
  margin-bottom: auto;
}

.service-card .btn{
  margin-top: 14px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 50px;
}

.services-nav-btn{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width:48px;
  height:48px;
  border-radius:50%;
  border:none;
  background: rgba(0,0,0,0.55);
  color:#fff;
  font-size:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  z-index:10;
  transition: .25s ease;
}
.services-nav-btn.left{ left:12px; }
.services-nav-btn.right{ right:12px; }
.services-nav-btn:hover{
  background: rgba(0,0,0,0.85);
  transform: translateY(-50%) scale(1.10);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

/* ============================================================
   GALERÍAS (web)
============================================================ */
.service-gallery{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 20px;
  margin-bottom: 40px;
}

.service-gallery-item{
  width: 100%;
  height: 220px;
  border-radius: 12px;
  overflow:hidden;
  background:#000;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}

.service-gallery-item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .25s ease;
}
.service-gallery-item:hover img{ transform: scale(1.05); }

.modal-gallery,
.modal-img{
  width:100%;
  max-height: 500px;
  object-fit: cover;
  object-position:center;
  border-radius: 12px;
  display:block;
}

/* ============================================================
   PORTAL / PANEL (sistema interno)
============================================================ */
.portal-bg{
  background: rgba(10,61,98,0.06);
  backdrop-filter: blur(2px);
}

.portal-title{
  color: var(--eco-primary);
  font-weight: 700;
  text-shadow: none;
}

.portal-subtitle{
  color: var(--eco-muted);
  font-size: .95rem;
  text-shadow: none;
}

.portal-bg p,
.portal-card p{
  color: var(--eco-muted);
  text-shadow: none;
}

.portal-card{
  border-radius: var(--eco-radius);
  border: 1px solid rgba(10,61,98,0.15);
  background:#fff;
  transition: transform .2s ease, box-shadow .2s ease;
}

.portal-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(10,61,98,0.18);
}

.portal-card h4{
  color: var(--eco-primary);
  font-weight: 700;
  text-shadow: none;
}

.portal-readonly{
  font-size: .8rem;
  color: #6c757d;
  text-shadow: none;
}

.portal-logo{
  max-width: 260px;
  opacity: .15;
  margin: 40px auto 0;
  display:block;
}

/* ============================================================
   FOOTER
============================================================ */
.site-footer{
  background: var(--eco-primary);
  color:#fff;
  width:100%;
  padding: 12px 0;
  font-size: .8rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.35);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-title{
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: .05em;
}

.footer-social{
  display:flex;
  gap: 8px;
  justify-content:flex-start;
}

.social-btn{
  font-size: 1rem;
  color:#fff;
  background: rgba(255,255,255,0.15);
  width:30px;
  height:30px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:6px;
  transition: .25s;
}
.social-btn:hover{
  background: var(--eco-accent);
  transform: translateY(-2px);
}

.footer-bottom{
  background: #062839;
  font-size: .75rem;
  opacity: .9;
  letter-spacing: .05em;
  padding: 4px 0;
  text-transform:none;
}

/* ============================================================
   BOTONES FLOTANTES
============================================================ */
.whatsapp-float{
  position: fixed;
  right: 18px;
  bottom: 85px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.45);
  z-index: 1100;
  text-decoration:none;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.whatsapp-float img{
  width:30px;
  height:30px;
  border-radius: 6px;
  display:block;
}
.whatsapp-float:hover{
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.6);
  opacity: .95;
}

.call-float{
  position: fixed;
  right: 18px;
  bottom: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--eco-primary);
  color:#fff;
  font-size: 26px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  box-shadow: 0 6px 16px rgba(0,0,0,0.45);
  z-index: 1100;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.call-float:hover{
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.6);
  opacity: .95;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 768px){
  .hero-wrapper{ padding: 60px 0 80px; }
  .hero-box{ margin: 20px; padding: 24px 18px; }
  .hero-title{ font-size: 1.9rem; }
  .hero-title span{ font-size: 1.7rem; }
  .hero-text{ font-size: .98rem; }
  .hero-btn{ width:100%; text-align:center; padding: 12px; }

  .nosotros-bg,.empresa-bg,.contacto-bg-left{ margin: 10px; padding: 20px; }

  .services-wrapper{ padding: 0 15px; }
  .services-strip{ height:auto; padding-bottom: 20px; }
  .service-card{ min-width: 270px; width:270px; height:auto; }
  .service-image-wrapper{ height: 180px; }
  .services-nav-btn{ display:none; }

  .site-footer{ text-align:center; }

  .whatsapp-float{ right: 14px; bottom: 80px; width: 52px; height:52px; }
  .whatsapp-float img{ width:26px; height:26px; }
  .call-float{ right:14px; bottom:18px; width:48px; height:48px; font-size:22px; }
}

@media (max-width: 480px){
  .hero-title{ font-size: 1.6rem; }
  .hero-title span{ font-size: 1.4rem; }
  .hero-box{ padding: 18px; }
  .service-card{ min-width: 240px; width:240px; }
  .service-image-wrapper{ height: 150px; }
}

/* ============================================================
   MODO OSCURO (BÁSICO)
============================================================ */
@media (prefers-color-scheme: dark){
  body.app-internal{ background:#020617; color:#e5e7eb; }
  body.app-internal main h1,
  body.app-internal main h2,
  body.app-internal main h3{ color:#dbeafe; }
  body.app-internal main p{ color:#cbd5e1; }
  .site-footer{ background:#020617; }
}
/* ============================================================
   PORTAL - AJUSTES PRO (SISTEMA INTERNO)
============================================================ */
.portal-shell{
  padding: 18px 0 10px;
}

.portal-bg{
  padding: 28px;
  border-radius: var(--eco-radius);
  border: 1px solid rgba(10,61,98,0.10);
  background: rgba(10,61,98,0.04);
}

.portal-card{
  border-radius: var(--eco-radius);
  border: 1px solid rgba(10,61,98,0.12);
  background: #fff;
  box-shadow: 0 10px 24px rgba(2,6,23,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.portal-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(2,6,23,.10);
}

.portal-card-icon{
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(27,156,252,.12);
  border: 1px solid rgba(27,156,252,.18);
  font-size: 26px;
}
/* Botones superiores (Informes/Portal/Salir) iguales en todo el sistema */
.main-navbar .btn.btn-outline-light{
  border-radius: 10px;
  padding: 6px 12px;
  font-weight: 600;
  border-color: rgba(27,156,252,.12);
  color: #fff;
}

.main-navbar .btn.btn-outline-light:hover{
  background: rgba(255,255,255,.12);
  border-color: rgba(27,156,252,.12);
  color:#fff;
}
/* ============================================================
   FIX DEFINITIVO TEXTO SISTEMA INTERNO
============================================================ */

/* SOLO SISTEMA INTERNO: texto oscuro */
body.app-internal main h1,
body.app-internal main h2,
body.app-internal main h3,
body.app-internal main h4,
body.app-internal main h5 {
  color: #0a3d62 !important; /* petróleo */
  text-shadow: none !important;
}

body.app-internal main p,
body.app-internal main label,
body.app-internal main span,
body.app-internal main small,
body.app-internal main div {
  color: #0f172a;
  text-shadow: none !important;
}
/* ============================================================
   SISTEMA INTERNO (Informes / Portal / Operación)
   - Evita texto blanco sobre fondo blanco
============================================================ */
body.app-internal{
  background:#f4f6fb !important;
  color:#0f172a !important;
}

body.app-internal main h1,
body.app-internal main h2,
body.app-internal main h3,
body.app-internal main h4,
body.app-internal main h5{
  color:#0a3d62 !important;
  text-shadow:none !important;
}

body.app-internal main p,
body.app-internal main label,
body.app-internal main span,
body.app-internal main small{
  color:#0f172a !important;
  text-shadow:none !important;
}
/* =========================
   DASHBOARD OPERACIONAL
========================= */

.eco-card {
  background: #ffffff;
  border: none;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.08);
}

.eco-title {
  color: #0a3d62;
  font-weight: 700;
}

.eco-section-title {
  color: #0a3d62;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.eco-metric-title {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 0.25rem;
}

.eco-metric-value {
  font-size: 2rem;
  font-weight: 700;
  color: #0a3d62;
  margin-bottom: 0.75rem;
}

/* Botones Ecoserin */
.btn-eco-primary {
  background-color: #0a3d62;
  border-color: #0a3d62;
  color: #fff;
}

.btn-eco-primary:hover {
  background-color: #0b4aa0;
  border-color: #0b4aa0;
}

.btn-eco-outline {
  color: #0a3d62;
  border: 1px solid #0a3d62;
  background: transparent;
}

.btn-eco-outline:hover {
  background-color: #0a3d62;
  color: #fff;
}
/* ============================================================
   OPERACIÓN - DASHBOARD (PROFESIONAL / PETRÓLEO)
   Se aplica en sistema interno: body.app-internal
============================================================ */

/* Contenedor general */
body.app-internal .operacion-container{
  max-width: 1200px;
  margin: 0 auto;
}

/* Títulos */
body.app-internal .operacion-title{
  color: #0a3d62;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
  margin-bottom: .25rem;
  text-shadow: none !important;
}

body.app-internal .operacion-subtitle{
  color: #64748b;
  text-shadow: none !important;
  font-size: 1rem;
}

/* Card base compartida */
body.app-internal .metric-card,
body.app-internal .gantt-card,
body.app-internal .hh-card{
  background: #ffffff;
  border: 1px solid rgba(10,61,98,0.12);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(2,6,23,0.08);
  padding: 18px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

/* Hover suave */
body.app-internal .metric-card:hover,
body.app-internal .gantt-card:hover,
body.app-internal .hh-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(2,6,23,0.12);
  border-color: rgba(10,61,98,0.22);
}

/* Títulos de métricas */
body.app-internal .metric-title{
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  text-shadow: none !important;
}

/* Valor grande */
body.app-internal .metric-value{
  color: #0a3d62;
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 12px;
  text-shadow: none !important;
}

/* Card Gantt */
body.app-internal .gantt-card h4{
  color: #0a3d62 !important;
  font-weight: 800;
  margin-bottom: .5rem;
  text-shadow: none !important;
}

body.app-internal .gantt-card p{
  color: #64748b !important;
  text-shadow: none !important;
  margin-bottom: 14px;
}

/* Card HH centrada */
body.app-internal .hh-card .btn{
  border-radius: 999px;
}

/* Botones del dashboard: unificarlos en petróleo */
body.app-internal .operacion-container .btn-outline-primary{
  border-color: rgba(255,255,255,0.65);
  color: #ffffff;
  background: linear-gradient(135deg,#0a3d62,#0f4c75);
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(10,61,98,0.22);
}

body.app-internal .operacion-container .btn-outline-primary:hover{
  filter: brightness(1.05);
  transform: translateY(-1px);
}

body.app-internal .operacion-container .btn-light{
  background: #ffffff;
  border: 1px solid rgba(10,61,98,0.18);
  color: #0a3d62;
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 14px;
}

body.app-internal .operacion-container .btn-light:hover{
  background: #f1f5f9;
}

/* Ajustes responsive */
@media (max-width: 991.98px){
  body.app-internal .metric-value{ font-size: 1.8rem; }
  body.app-internal .metric-card,
  body.app-internal .gantt-card,
  body.app-internal .hh-card{
    padding: 16px;
  }
}
/* ===== FOOTER ===== */
.site-footer {
  background: linear-gradient(180deg, #0a3d62, #083252);
  color: #e5e7eb;
  padding: 28px 0 20px;
  font-size: 0.95rem;
}

.site-footer .footer-title {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: #ffffff;
}

/* Redes alineadas correctamente */
.footer-social {
  display: flex;
  gap: 10px;
  justify-content: flex-end; /* 🔹 CLAVE */
  align-items: center;
}

/* Botones redes */
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Footer inferior */
.footer-bottom {
  background: #06283d;
  padding: 10px 0;
  font-size: 0.85rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .footer-social {
    justify-content: center; /* 🔹 en móvil queda centrado */
  }

  .site-footer .footer-title {
    text-align: center;
  }
}
/* FOOTER – BLOQUE REDES */
.site-footer .footer-title {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: #ffffff;
}

.footer-social {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Botones redes */
.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;

  font-size: 1.05rem;
  transition: all 0.2s ease;
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

/* Mobile */
@media (max-width: 768px) {
  .footer-social {
    justify-content: center;
  }
}
/* ============================
   TIMELINE (Nosotros) – FIX ALINEACIÓN
   ============================ */

/* Contenedor general (ajusta el ancho y evita que se corra) */
.timeline {
  position: relative;
  max-width: 760px;          /* ancho elegante */
  margin: 0 auto;            /* centrado */
  padding-left: 42px;        /* espacio para línea + puntos */
}

/* Línea vertical */
.timeline::before {
  content: "";
  position: absolute;
  left: 16px;                /* posición fija de la línea */
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: rgba(27, 156, 252, 0.8); /* azul acento */
  border-radius: 2px;
}

/* Cada ítem */
.timeline-item {
  position: relative;
  padding: 10px 0 14px 0;
}

/* Punto */
.timeline-item::before {
  content: "";
  position: absolute;
  left: 10px;               /* alineado con la línea */
  top: 16px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #0a3d62;       /* petróleo */
  border: 3px solid #1b9cfc; /* acento */
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}

/* Año/título */
.timeline-year {
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: 4px;
}

/* Texto */
.timeline-text {
  margin: 0;
  opacity: .92;
  line-height: 1.5;
}

/* Para que NO se “desplace” por el fondo/overlay */
.timeline,
.timeline * {
  transform: none !important;
}

/* Responsive */
@media (max-width: 768px) {
  .timeline {
    max-width: 100%;
    padding-left: 38px;
  }
  .timeline::before { left: 14px; }
  .timeline-item::before { left: 8px; }
}
/* ============================
   NOSOTROS – CARD + TIMELINE PRO
   ============================ */

.about-card{
  max-width: 880px;
  margin: 0 auto;
  padding: 28px 28px;
  border-radius: 18px;
  background: rgba(10, 61, 98, 0.55);   /* petróleo translúcido */
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 18px 45px rgba(0,0,0,0.25);
  backdrop-filter: blur(10px);
}

.about-card-title{
  margin: 0 0 18px 0;
  font-weight: 800;
  color: #fff;
  letter-spacing: .2px;
}

/* Timeline layout */
.eco-timeline{
  position: relative;
  padding-left: 26px;
}

.eco-timeline::before{
  content:"";
  position:absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 18px;                 /* “canal” de la línea */
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
}

.eco-timeline-item{
  position: relative;
  display: flex;
  gap: 16px;
  padding: 12px 0;
}

.eco-dot{
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-left: 1px;
  margin-top: 5px;
  background: #0a3d62;          /* petróleo */
  border: 3px solid #1b9cfc;    /* acento */
  box-shadow: 0 10px 18px rgba(0,0,0,0.35);
  flex: 0 0 auto;
}

.eco-content{
  padding-bottom: 2px;
}

.eco-year{
  font-weight: 800;
  color: #bfe6ff;
  margin-bottom: 4px;
}

.eco-text{
  color: rgba(255,255,255,0.90);
  line-height: 1.55;
  font-size: 0.98rem;
}

/* Futuro distinto */
.eco-future .eco-dot{
  border-color: #2ecc71;
}
.eco-future .eco-year{
  color: #bdf7d6;
}

/* Responsive */
@media (max-width: 768px){
  .about-card{ padding: 22px 18px; }
  .eco-text{ font-size: 0.95rem; }
}
/* ============================
   FIX TIMELINE (más PRO y liviano)
   PÉGALO AL FINAL para que sobrescriba
   ============================ */

.about-card{
  max-width: 760px;

  /* alineado a la izquierda */
  margin: 18px 0 0 0;

  padding: 22px 24px;
  border-radius: 16px;
  background: rgba(10, 30, 45, 0.45);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 16px 40px rgba(0,0,0,0.28);
  backdrop-filter: blur(12px);
}


.about-card-title{
  margin: 0 0 14px 0;
  font-weight: 800;
  font-size: 1.35rem;
  color: #fff;
  letter-spacing: .2px;
}

/* Timeline más fino */
.eco-timeline{
  position: relative;
  padding-left: 22px;
}

.eco-timeline::before{
  content:"";
  position:absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;

  width: 2px;                 /* antes era MUY grueso */
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
}

.eco-timeline-item{
  position: relative;
  display: grid;
  grid-template-columns: 14px 1fr;
  column-gap: 14px;
  padding: 10px 0;
}

.eco-dot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 6px;
  background: #0a3d62;
  border: 2px solid #1b9cfc;
  box-shadow: 0 8px 16px rgba(0,0,0,0.25);
}

.eco-content{
  padding-bottom: 2px;
}

.eco-year{
  font-weight: 800;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.92);
  margin-bottom: 4px;
}

.eco-text{
  color: rgba(255,255,255,0.82);
  line-height: 1.55;
  font-size: 0.95rem;
}

/* Futuro: acento verde más fino */
.eco-future .eco-dot{ border-color: #2ecc71; }
.eco-future .eco-year{ color: rgba(189,247,214,0.95); }

/* Mobile */
@media (max-width: 768px){
  .about-card{
    max-width: 92%;
    padding: 18px 18px;
  }
  .about-card-title{ font-size: 1.2rem; }
}
