:root{
  --bg:#0b0f12;
  --bg2:#0f151a;
  --card:rgba(255,255,255,.06);
  --card2:rgba(255,255,255,.08);
  --text:#e9eef3;
  --muted:rgba(233,238,243,.65);
  --border:rgba(255,255,255,.12);
  --accent:#ffd24a;
  --shadow:0 18px 60px rgba(0,0,0,.45);
  --radius:18px;
  --max:1100px;
  --serif: ui-serif, Georgia, "Times New Roman", Times, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;font-family:var(--sans);color:var(--text);background:linear-gradient(180deg,var(--bg),#070a0c)}
a{color:inherit;text-decoration:none}
.muted{color:var(--muted)}
.container{max-width:var(--max);margin:0 auto;padding:0 18px}

.main{max-width:var(--max);margin:0 auto;padding:22px 18px 54px}
.main-public{padding:0;margin:0;max-width:none}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:10px 14px;border-radius:999px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.1);color:var(--text);cursor:pointer;transition:transform .12s ease, background .12s ease, border .12s ease}
.btn:hover{transform:translateY(-1px);background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.22)}
.btn--ghost{background:transparent}

.notice{border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);border-radius:16px;padding:14px;margin:14px 0;color:var(--muted)}
.error{border-color:rgba(255,70,70,.35);color:rgba(255,210,210,.92)}
.success{border-color:rgba(74,255,180,.25);color:rgba(210,255,240,.92)}

.section{margin-top:26px}
.section__title{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:0 0 14px}
.section__title h2{margin:0;font-size:16px;letter-spacing:.2px}
.section__title span{color:var(--muted);font-size:13px}

.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.card{border:1px solid var(--border);background:var(--card);border-radius:var(--radius);padding:16px;box-shadow:0 14px 50px rgba(0,0,0,.24)}
.card:hover{background:var(--card2)}
.card h3{margin:0 0 6px;font-size:14px}
.card p{margin:0;color:var(--muted);font-size:13px}

.table{width:100%;border-collapse:separate;border-spacing:0 10px}
.table th{font-size:12px;color:var(--muted);text-align:left;font-weight:600;padding:0 10px}
.table td{padding:14px 10px;background:rgba(255,255,255,.06);border-top:1px solid rgba(255,255,255,.10);border-bottom:1px solid rgba(255,255,255,.10)}
.table tr td:first-child{border-left:1px solid rgba(255,255,255,.10);border-top-left-radius:12px;border-bottom-left-radius:12px}
.table tr td:last-child{border-right:1px solid rgba(255,255,255,.10);border-top-right-radius:12px;border-bottom-right-radius:12px}

.form{max-width:520px;margin:0 auto}
.field{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}
.label{font-size:13px;color:var(--muted)}
.input, select, textarea{width:100%;padding:12px 12px;border-radius:12px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.06);color:var(--text);outline:none}
textarea{min-height:120px;resize:vertical}
.input:focus, select:focus, textarea:focus{border-color:rgba(255,210,74,.45);box-shadow:0 0 0 4px rgba(255,210,74,.10)}

.index-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100vh;
  padding: 0 5%;
  background: none; /* quitamos cualquier fondo previo */
}

.index-hero__left {
  flex: 1;
  max-width: 600px;
}

.index-hero__left h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 72px;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.index-hero__left p {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 20px;
  color: #333;
}

.index-hero__left .index-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: #1e3a8a;
  color: #fff;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.index-hero__left .index-btn:hover {
  background: #162d6b;
  transform: translateY(-2px);
}

/* Imagen hero grande sin bordes ni sombras */
.index-hero__right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.index-hero__right .index-product__img-wrapper {
  width: 100%;
  max-width: 650px; /* ajustar al tamaño deseado */
  border-radius: 0 !important;       /* sin bordes redondeados */
  box-shadow: none !important;       /* sin sombra */
  overflow: visible !important;       /* que la imagen no se corte */
}

.index-hero__right .index-product__img-wrapper img {
  width: 100% !important;
  height: auto !important;
  object-fit: cover !important;
  aspect-ratio: auto !important;     /* mantiene proporción natural */
  display: block;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .index-hero {
    flex-direction: column-reverse;
    text-align: center;
    padding: 40px 5%;
  }
  
  .index-hero__left {
    max-width: 100%;
  }
  
  .index-hero__left h1 {
    font-size: 46px;
  }
  
  .index-hero__right {
    width: 100%;
    margin-bottom: 40px;
  }
  
  .index-hero__right .index-product__img-wrapper {
    max-width: 100%;
  }
}

/* PROMOS GRID (como imagen 2) */
.promo-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:18px;
}
.promo-card{
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 18px 60px rgba(0,0,0,.22);
  transition: transform .12s ease, background .12s ease, border .12s ease;
}
.promo-card:hover{
  transform: translateY(-2px);
  background:rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
}
.promo-media{
  position:relative;
  width:100%;
  aspect-ratio: 16 / 10;
  overflow:hidden;
  background:rgba(255,255,255,.04);
}
.promo-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transform: scale(1.02);
}
.promo-badge{
  position:absolute;
  left:12px;
  bottom:12px;
  padding:7px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  background:rgba(0,0,0,.55);
  border:1px solid rgba(255,255,255,.18);
  color:#fff;
  backdrop-filter: blur(10px);
}
.promo-body{
  padding:14px 14px 16px;
}
.promo-title{
  margin:0 0 8px;
  font-size:16px;
  font-weight:900;
  letter-spacing:.2px;
}
.promo-desc{
  margin:0 0 12px;
  color:rgba(233,238,243,.70);
  font-size:13px;
  line-height:1.35;
  min-height:36px;
}
.promo-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-size:12px;
  color:rgba(233,238,243,.62);
}

/* RESPONSIVE */
@media (max-width: 1100px){
  .promo-grid{grid-template-columns: repeat(3, 1fr);}
}
@media (max-width: 860px){
  .promo-grid{grid-template-columns: repeat(2, 1fr);}
  .hero-public__content h1{font-size:46px}
}
@media (max-width: 520px){
  .promo-grid{grid-template-columns: 1fr;}
}

/* Footer */
.footer{border-top:1px solid var(--border);background:rgba(7,10,12,.55)}
.footer__inner{max-width:var(--max);margin:0 auto;padding:16px 18px;color:var(--muted);display:flex;justify-content:space-between;gap:12px}

/* FIX: */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,0));
  pointer-events: none;
}
.site-header__inner{ pointer-events: auto; }
.site-logoimg{ width: 44px; height: 44px; }
.site-logoimg img{
  width: 44px; height: 44px;
  max-width: 44px; max-height: 44px;
  object-fit: contain;
}
.hero-public__content{ padding-top: 140px; } 

/* ===================== FIX ===================== */

body .site-header{
  position: fixed !important;
  top: 0 !important; left: 0 !important; right: 0 !important;
  z-index: 9999 !important;
  background: rgba(0,0,0,.35) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border-bottom: 1px solid rgba(255,255,255,.10) !important;
}

body .site-header .site-header__inner{
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 16px 22px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
}

body .site-header .site-left{
  display: flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
}

body .site-header .site-logoimg{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  margin: 0 !important;
}

body .site-header .site-logoimg img{
  width: 44px !important;
  height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  object-fit: contain !important;
  display: block !important;
}

body .site-header .site-nav{
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 22px !important;
  margin: 0 !important;
  padding: 0 !important;
}

body .site-header .site-nav a{
  display: inline-block !important;
  padding: 8px 6px !important;
  font-weight: 600 !important;
  opacity: .88 !important;
}

body .site-header .site-nav a:hover{
  opacity: 1 !important;
}

body .site-header .site-actions{
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex: 0 0 auto !important;
}

body .site-header .site-btn{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px 16px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  background: rgba(0,0,0,.25) !important;
  color: #fff !important;
  font-weight: 700 !important;
}

/* Para que el header NO tape el hero */
body .hero-public__content{
  padding-top: 140px !important;
}

/* Mobile: ocultar nav central y dejar logo + bot贸n */
@media (max-width: 820px){
  body .site-header .site-nav{ display:none !important; }
}


/* ===================== APP TOPBAR ===================== */

.topbar{
  border-bottom:1px solid var(--border);
  background:rgba(7,10,12,.75);
  backdrop-filter:blur(10px);
}

.topbar__inner{
  max-width:var(--max);
  margin:0 auto;
  padding:14px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.brand__logo{
  width:42px;
  height:42px;
  object-fit:contain;
}

.brand__name{
  font-weight:700;
  font-size:15px;
}

.nav{
  display:flex;
  align-items:center;
  gap:20px;
}

.nav a{
  font-weight:600;
  opacity:.85;
}

.nav a:hover{
  opacity:1;
}

.topbar__right{
  display:flex;
  align-items:center;
  gap:14px;
}

.userchip{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  font-size:12px;
}

.userchip__name{
  font-weight:600;
}

.userchip__role{
  color:var(--muted);
}

/* ===================== PANEL TILES ===================== */

.tiles{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:16px;
  margin-top:16px;
}

.tile{
  display:block;
  padding:18px;
  border-radius:var(--radius);
  border:1px solid var(--border);
  background:var(--card);
  transition:transform .12s ease, background .12s ease;
}

.tile:hover{
  transform:translateY(-3px);
  background:var(--card2);
}

.tile__title{
  font-weight:700;
  margin-bottom:6px;
}

.tile__desc{
  font-size:13px;
  color:var(--muted);
}

/* FIX SELECT DARK MODE */

select {
  background-color: rgba(255,255,255,.06);
  color: var(--text);
}

select option {
  background-color: #0f151a;
  color: #e9eef3;
}

/* Para algunos navegadores */
select:focus {
  background-color: rgba(255,255,255,.08);
}

/* ===== BASE MODERNA GLOBAL ===== */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f6f9;
    color: #333;
    margin: 0;
    padding: 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

section {
    padding: 60px 0;
}

h1, h2, h3 {
    color: #1e3a8a;
    margin-bottom: 15px;
}

p {
    line-height: 1.6;
    margin-top: 10px;
}

.card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.btn {
    background: #1e3a8a;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}

.btn:hover {
    background: #162d6b;
}

/* Navbar */
nav {
    background: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }
    h1 {
        font-size: 1.8rem;
    }
}
/* ===================== FEATURES INICIO ===================== */
.index-features {
  padding: 80px 18px;
  background: linear-gradient(180deg, #0b0f12, #0f151a);
}

.index-features .section__title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  color: var(--text);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.tile {
  padding: 30px 20px;
  border-radius: var(--radius);
  background: var(--card2);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform .2s ease, background .2s ease;
}

.tile:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,.08);
}

.tile__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--accent);
}

.tile__desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.index-hero__right .index-product__img-wrapper {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.index-hero__right .index-product__img-wrapper img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.index-hero__right .index-product__img-wrapper:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 28px 80px rgba(0,0,0,0.5);
}
.index-product__img-wrapper {
  border-radius: 24px;              /* Bordes redondeados */
  overflow: hidden;                 /* Para que la imagen respete los bordes */
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);  /* Sombra elegante tipo revista */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.index-product__img-wrapper img {
  width: 100%;
  display: block;
  object-fit: cover;                /* La imagen llena el contenedor */
  aspect-ratio: 4/3;                /* Mantiene proporción atractiva */
}

.index-product__img-wrapper:hover {
  transform: translateY(-5px) scale(1.02);  /* Pequeño efecto hover */
  box-shadow: 0 28px 80px rgba(0,0,0,0.5);
}
/* CONTACTO - ESTILO MODERNO */
body.index-reference-page .contact-card {
  width: 100% !important;
  max-width: 560px !important;
  background: #ffffff !important;
  border-radius: 24px !important;
  box-shadow: 0 20px 60px rgba(0,0,0,.1) !important;
  padding: 40px 36px !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.index-reference-page .contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 80px rgba(0,0,0,.15);
}

body.index-reference-page .contact-form {
  display: grid !important;
  gap: 18px !important;
}

body.index-reference-page .contact-field {
  display: grid !important;
  gap: 8px !important;
}

body.index-reference-page .contact-field label {
  color: #102f2f !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

body.index-reference-page .contact-field input,
body.index-reference-page .contact-field textarea {
  width: 100% !important;
  border: 1px solid #d9dfdf !important;
  background: #fdfdfd !important;
  color: #0b3232 !important;
  font-size: 15px !important;
  outline: none !important;
  border-radius: 18px !important; /* bordes circulares */
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 16px 20px !important;
  transition: all 0.3s ease;
}

body.index-reference-page .contact-field textarea {
  min-height: 160px !important;
  resize: vertical !important;
}

body.index-reference-page .contact-field input:focus,
body.index-reference-page .contact-field textarea:focus {
  border-color: #43c463 !important;
  box-shadow: 0 0 0 4px rgba(67,196,99,0.15) !important;
}

body.index-reference-page .contact-btn {
  margin-top: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 210px !important;
  min-height: 66px !important;
  padding: 18px 34px !important;
  border: none !important;
  border-radius: 20px !important; /* bordes redondeados */
  background: #062f2e !important;
  color: #ffffff !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  letter-spacing: 0.4px !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: all 0.3s ease;
}

body.index-reference-page .contact-btn:hover {
  filter: brightness(1.05) !important;
  transform: translateY(-2px);
}

body.index-reference-page .contact-map-wrap {
  width: 100% !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  border: 1px solid #e6e6e6 !important;
  background: #fff !important;
}

body.index-reference-page .contact-map-wrap iframe {
  width: 100% !important;
  height: 500px !important;
  display: block !important;
  border: none !important;
  border-radius: 20px !important;
}

/* Responsive */
@media (max-width: 980px) {
  body.index-reference-page .contact-card {
    max-width: 100% !important;
    padding: 30px 22px !important;
  }

  body.index-reference-page .contact-map-wrap iframe {
    height: 380px !important;
  }
}

@media (max-width: 640px) {
  body.index-reference-page .contact-card {
    padding: 24px 16px !important;
  }

  body.index-reference-page .contact-map-wrap iframe {
    height: 320px !important;
  }
}
.products-hero {
  align-items: center;
}

.products-hero__right {
  flex: 2;
}

.products-hero {
  flex-direction: column; /* pone la imagen abajo grande */
}

.products-hero__right {
  width: 100%;
}

.products-hero__figure img {
  width: 100%;
  max-width: 100%;
}

