/* ==========================================================================
   NASCENT SOLUCIONES S.R.L. — Estilos principales
   Colores corporativos: Rojo #E4402C | Amarillo #F5B301 | Gris oscuro/Navy #1F2733
   ========================================================================== */

:root{
  --red: #E4402C;
  --red-dark: #C4321F;
  --yellow: #F5B301;
  --yellow-dark: #D99900;
  --navy: #1F2733;
  --navy-2: #2B3444;
  --gray-900: #212529;
  --gray-700: #495057;
  --gray-500: #6c757d;
  --gray-200: #eef0f2;
  --gray-100: #f7f8fa;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(31,39,51,0.08);
  --shadow-lg: 0 20px 45px rgba(31,39,51,0.15);
  --radius: 14px;
  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

*{ margin:0; padding:0; box-sizing:border-box; }

html{ scroll-behavior: smooth; }

body{
  font-family: var(--font-body);
  color: var(--gray-900);
  line-height: 1.65;
  background: var(--white);
  overflow-x: hidden;
}

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

img{ max-width:100%; display:block; }

h1,h2,h3,h4{ font-family: var(--font-head); font-weight: 700; color: var(--navy); line-height: 1.25; text-wrap: balance; }

a{ text-decoration:none; color: inherit; }

ul{ list-style:none; }

/* ---------------- TOP BAR ---------------- */
.topbar{
  background: var(--navy);
  color: #cfd6de;
  font-size: 0.82rem;
}
.topbar-inner{
  display:flex;
  justify-content: space-between;
  align-items:center;
  padding: 8px 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar-info{ display:flex; gap:24px; flex-wrap:wrap; }
.topbar-info i{ color: var(--yellow); margin-right:4px; }
.topbar-social{ display:flex; gap:18px; align-items:center; }
.topbar-social a{ color:#cfd6de; transition:.2s; }
.topbar-social a:hover{ color: var(--yellow); }

/* ---------------- HEADER ---------------- */
.main-header{
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  position: sticky;
  top:0;
  z-index: 500;
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 12px 24px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.brand-icon{
  width:46px; height:46px;
  object-fit:contain;
}
.brand-text{
  font-family: var(--font-head);
  font-weight:800;
  font-size:1.15rem;
  color: var(--navy);
  letter-spacing:0.5px;
  line-height:1.2;
}
.brand-text small{
  font-weight:600;
  font-size:0.62rem;
  color: var(--gray-500);
  letter-spacing:1px;
}
.main-nav{
  display:flex;
  align-items:center;
  gap:28px;
}
.main-nav a{
  font-weight:600;
  font-size:0.92rem;
  color: var(--navy);
  transition:.2s;
  position:relative;
}
.main-nav a:not(.nav-cta):hover{ color: var(--red); }
.nav-cta{
  background: var(--red);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 30px;
  transition:.2s;
}
.nav-cta:hover{ background: var(--red-dark); }
.nav-toggle{
  display:none;
  background:none;
  border:none;
  font-size:1.5rem;
  color: var(--navy);
  cursor:pointer;
}

/* ---------------- BUTTONS ---------------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 14px 30px;
  border-radius: 30px;
  font-weight:700;
  font-size:0.95rem;
  cursor:pointer;
  border: 2px solid transparent;
  transition: all .25s ease;
}
.btn-primary{
  background: var(--red);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(228,64,44,0.35);
}
.btn-primary:hover{ background: var(--red-dark); transform: translateY(-2px); }
.btn-outline{
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover{ background: var(--white); color: var(--navy); }
.btn-full{ width:100%; justify-content:center; }

/* ---------------- HERO ---------------- */
.hero{
  position: relative;
  min-height: 88vh;
  display:flex;
  align-items:center;
  color: var(--white);
  overflow:hidden;
}
.hero-bg{
  position:absolute; inset:0;
  background-size:cover;
  background-position:center;
  filter: saturate(1.05);
}
.hero-overlay{
  position:absolute; inset:0;
  background: linear-gradient(115deg, rgba(31,39,51,0.94) 0%, rgba(31,39,51,0.85) 40%, rgba(228,64,44,0.55) 100%);
}
.hero-content{
  position:relative;
  z-index:2;
  padding: 100px 24px;
  max-width: 780px;
}
.badge-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 8px 18px;
  border-radius: 30px;
  font-size:0.82rem;
  font-weight:600;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}
.badge-pill i{ color: var(--yellow); }
.hero h1{
  color: var(--white);
  font-size: 2.6rem;
  margin-bottom: 20px;
}
.hero h1 span{ color: var(--yellow); }
.hero p{
  font-size: 1.1rem;
  color: #e4e8ec;
  margin-bottom: 34px;
  max-width: 620px;
}
.hero-buttons{ display:flex; gap:16px; flex-wrap:wrap; }

/* ---------------- SECTIONS ---------------- */
.section{ padding: 90px 0; }
.section-gray{ background: var(--gray-100); }
.section-navy{ background: var(--navy); color:#dfe3e8; }
.section-navy h3{ color: var(--white); }
.section-contact{ background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); color:#dfe3e8; }

.section-header{ margin-bottom: 50px; max-width: 700px; }
.section-header.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-header h2{ font-size: 2.1rem; margin-top:10px; }
.section-header.light h2{ color: var(--white); }
.section-sub{ margin-top:14px; color:#c3cad2; }

.section-tag{
  display:inline-block;
  color: var(--red);
  font-weight:700;
  font-size:0.85rem;
  text-transform:uppercase;
  letter-spacing:1.5px;
  position:relative;
  padding-left:18px;
}
.section-tag::before{
  content:'';
  position:absolute;
  left:0; top:50%;
  transform: translateY(-50%);
  width:10px; height:10px;
  background: var(--yellow);
  border-radius:3px;
}
.section-tag.light{ color: var(--yellow); }

/* ---------------- SPLIT GRID ---------------- */
.split-grid{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items:center;
  margin-bottom: 90px;
}
.split-grid.reverse{ grid-template-columns: 0.9fr 1.1fr; }
.split-grid.reverse .split-image{ order:-1; }
.split-text h2{ font-size:2rem; margin: 14px 0 20px; }
.split-text p{ color: var(--gray-700); margin-bottom:16px; }
.split-image img{
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width:100%;
  height: 380px;
  object-fit: cover;
}
.highlight-box{
  background: var(--gray-100);
  border-left: 4px solid var(--red);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--navy);
  font-weight:600;
  margin-top: 20px;
}
.highlight-box i{ color: var(--yellow); margin-right:8px; }

/* ---------------- MISION VISION ---------------- */
.mv-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.mv-card{
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  transition:.25s;
}
.mv-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.mv-icon{
  width:56px; height:56px;
  border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  font-size:1.4rem;
  color: var(--white);
  margin-bottom: 18px;
}
.mv-card h3{ margin-bottom:12px; font-size:1.3rem; }
.mv-card p{ color: var(--gray-700); }

.icon-red{ background: linear-gradient(135deg, var(--red), var(--red-dark)); }
.icon-yellow{ background: linear-gradient(135deg, var(--yellow), var(--yellow-dark)); }
.icon-navy{ background: linear-gradient(135deg, var(--navy-2), var(--navy)); }

/* ---------------- CARDS GRID ---------------- */
.cards-grid{ display:grid; gap: 28px; }
.cards-grid.three{ grid-template-columns: repeat(3, 1fr); }
.cards-grid.two{ grid-template-columns: repeat(2, 1fr); margin-bottom: 90px; }
.cards-grid.four{ grid-template-columns: repeat(4, 1fr); }

/* Feature cards (areas de especializacion) */
.feature-card{
  background: var(--white);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
  transition:.25s;
}
.feature-card:hover{ transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.feature-img{ height: 190px; overflow:hidden; }
.feature-img img{ width:100%; height:100%; object-fit:cover; transition: transform .4s; }
.feature-card:hover .feature-img img{ transform: scale(1.08); }
.feature-body{ padding: 28px; }
.feature-icon{
  width:50px; height:50px;
  border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  color:var(--white);
  font-size:1.25rem;
  margin-bottom: 16px;
  margin-top: -58px;
  position:relative;
  box-shadow: 0 8px 16px rgba(0,0,0,0.18);
}
.feature-body h3{ font-size:1.2rem; margin-bottom:10px; }
.feature-body p{ color: var(--gray-700); font-size:0.95rem; }

/* Service cards */
.service-card{
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
  transition:.25s;
}
.service-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-icon{
  width:58px; height:58px;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  color:var(--white);
  font-size:1.5rem;
  margin-bottom: 18px;
}
.service-card h3{ margin-bottom:12px; }
.service-card p{ color: var(--gray-700); }

/* Sector cards */
.sector-card{
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align:center;
  transition:.25s;
}
.sector-card:hover{
  background: rgba(255,255,255,0.1);
  transform: translateY(-6px);
}
.sector-icon{
  width:64px; height:64px;
  margin: 0 auto 18px;
  border-radius:50%;
  background: linear-gradient(135deg, var(--red), var(--yellow));
  display:flex; align-items:center; justify-content:center;
  font-size:1.6rem;
  color:var(--white);
}
.sector-card h3{ color: var(--white); font-size:1.05rem; margin-bottom:10px; }
.sector-card p{ color:#c3cad2; font-size:0.9rem; }

/* Org cards */
.org-card{
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align:center;
  box-shadow: var(--shadow);
  transition:.25s;
}
.org-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.org-icon{
  width:60px; height:60px;
  margin: 0 auto 18px;
  border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  font-size:1.4rem;
  color:var(--white);
}
.org-card h3{ font-size:1.05rem; margin-bottom:10px; }
.org-card p{ color: var(--gray-700); font-size:0.9rem; }

/* Check list */
.check-list li{
  display:flex;
  align-items:flex-start;
  gap:14px;
  margin-bottom: 18px;
  color: var(--gray-700);
  line-height: 1.55;
}
.check-list i{
  color: var(--red);
  font-size:1.25rem;
  margin-top: 3px;
  flex-shrink: 0;
}
.check-list strong{
  color: var(--navy);
  font-weight: 700;
}

/* Why item */
.why-item{
  display:flex;
  gap:18px;
  margin-bottom: 26px;
}
.why-item i{
  font-size:1.6rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--yellow));
  width:52px; height:52px;
  flex-shrink:0;
  border-radius:12px;
  display:flex; align-items:center; justify-content:center;
}
.why-item h4{ margin-bottom:6px; font-size:1.1rem; }
.why-item p{ color: var(--gray-700); font-size:0.95rem; }

/* ---------------- CONTACT ---------------- */
.contact-grid{
  display:grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 50px;
  margin-top: 50px;
}
.contact-item{
  display:flex;
  gap:16px;
  margin-bottom: 28px;
}
.contact-item i{
  font-size:1.3rem;
  color: var(--yellow);
  width:46px; height:46px;
  background: rgba(255,255,255,0.08);
  border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.contact-item h4{ color: var(--white); font-size:1rem; margin-bottom:6px; }
.contact-item p{ color:#c3cad2; font-size:0.92rem; }
.contact-item a{ color:#c3cad2; }
.contact-item a:hover{ color: var(--yellow); }
.contact-social{ display:flex; gap:14px; margin-top: 10px; }
.contact-social a{
  width:44px; height:44px;
  border-radius:50%;
  background: rgba(255,255,255,0.08);
  display:flex; align-items:center; justify-content:center;
  color: var(--white);
  font-size:1.1rem;
  transition:.2s;
}
.contact-social a:hover{ background: var(--red); }

.contact-form{
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
.contact-form h3{ margin-bottom: 22px; }
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap:18px; }
.form-group{ margin-bottom: 18px; }
.form-group label{
  display:block;
  font-size:0.85rem;
  font-weight:600;
  color: var(--navy);
  margin-bottom:6px;
}
.form-group input, .form-group select, .form-group textarea{
  width:100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size:0.95rem;
  color: var(--gray-900);
  background: var(--gray-100);
  transition:.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus{
  outline:none;
  border-color: var(--red);
  background: var(--white);
}
.form-note{
  margin-top: 14px;
  font-size:0.9rem;
  font-weight:600;
  text-align:center;
  color: var(--red);
}

.map-wrapper{
  margin-top: 60px;
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow-lg);
}

/* ---------------- FOOTER ---------------- */
.main-footer{ background: var(--gray-900); color:#adb5bd; }
.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap: 24px;
  padding: 44px 24px;
}
.footer-brand{ display:flex; align-items:center; gap:14px; }
.footer-brand h3{ color: var(--white); font-size:1.05rem; }
.footer-brand p{ font-size:0.85rem; color:#8b939b; }
.footer-nav{ display:flex; gap:22px; flex-wrap:wrap; }
.footer-nav a{ font-size:0.9rem; transition:.2s; }
.footer-nav a:hover{ color: var(--yellow); }
.footer-social{ display:flex; gap:14px; }
.footer-social a{
  width:40px; height:40px;
  border-radius:50%;
  background: rgba(255,255,255,0.08);
  display:flex; align-items:center; justify-content:center;
  color: var(--white);
  transition:.2s;
}
.footer-social a:hover{ background: var(--red); }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 24px;
  text-align:center;
  font-size:0.8rem;
  color:#6c757d;
}
.footer-bottom p{ margin: 4px 0; }

/* ---------------- WHATSAPP FLOAT ---------------- */
.whatsapp-float{
  position:fixed;
  bottom: 26px;
  right: 26px;
  width: 58px; height:58px;
  background:#25D366;
  color: var(--white);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.8rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  z-index: 400;
  transition:.2s;
}
.whatsapp-float:hover{ transform: scale(1.1); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 992px){
  .split-grid, .split-grid.reverse{ grid-template-columns: 1fr; }
  .split-grid.reverse .split-image{ order: 0; }
  .split-image img{ height: 300px; }
  .cards-grid.three, .cards-grid.four{ grid-template-columns: repeat(2, 1fr); }
  .contact-grid{ grid-template-columns: 1fr; }
  .hero h1{ font-size: 2.1rem; }
}

@media (max-width: 768px){
  .topbar-info span:nth-child(1){ display:none; }
  .main-nav{
    position: fixed;
    top: 0; right: -100%;
    width: 78%;
    max-width: 320px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 30px;
    gap: 24px;
    transition: right .3s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,0.15);
    z-index: 600;
  }
  .main-nav.open{ right: 0; }
  .nav-toggle{ display:block; }
  .cards-grid.three, .cards-grid.two, .cards-grid.four{ grid-template-columns: 1fr; }
  .form-row{ grid-template-columns: 1fr; }
  .hero{ min-height: 100vh; }
  .hero-content{ padding: 140px 24px 80px; }
  .hero h1{ font-size: 1.8rem; }
  .section{ padding: 60px 0; }
  .footer-inner{ flex-direction:column; text-align:center; }
}

@media (max-width: 480px){
  .brand-text{ font-size: 0.95rem; }
  .brand-icon{ width:38px; height:38px; }
  .hero h1{ font-size: 1.5rem; }
  .btn{ padding: 12px 22px; font-size:0.88rem; }
  .contact-form{ padding: 26px; }
}

/* Variables de color */
:root {
  --primary-red: #e31837;
  --accent-gold: #f4a600;
  --dark-navy: #151e2d;
  --slate-500: #64748b;
}

/* Estilos del Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

/* Cuadrícula de bloques de color */
.logo-blocks {
  display: grid;
  grid-template-columns: 16px 16px;
  grid-template-rows: 16px 16px;
  gap: 4px;
  margin-right: 4px;
}

.block-red {
  background-color: var(--primary-red);
  border-radius: 4px;
}

.block-yellow {
  background-color: var(--accent-gold);
  border-radius: 4px;
}

.logo-blocks .block-red:first-child { grid-area: 1 / 1 / 2 / 2; }
.logo-blocks .block-yellow { grid-area: 1 / 2 / 2 / 3; }
.logo-blocks .block-red:last-child { grid-area: 2 / 1 / 3 / 2; }

/* Textos del Logo */
.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--dark-navy);
  line-height: 1.2;
}

.logo-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--slate-500);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-top: 2px;
}
