/* SECCIÓN: TIPOGRAFÍAS*/
@font-face {
  font-family: "ArialRoundedBold";
  src: url("../fonts/Arial Rounded Bold.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SourceSansCustom";
  src: url("../fonts/SourceSansVariable-Roman.otf") format("opentype");
  font-weight: 200 900;      
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ParrafosFont";
  src: url("../fonts/b76df86f-59b0-4e7d-987e-bcce9454689c.otf") format("opentype");
  font-weight: normal; /* si es variable: 200 900 */
  font-style: normal;
  font-display: swap;
}

/* Párrafos globales (solo <p>) */
p{
  font-family: "ParrafosFont", system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  font-weight: 400; /* cambia a 300 si la quieres más fina */
}

/*  SECCIÓN: TÍTULOS DE SECCIONES */
.lead h2,
#proyectos > h2,
.areas .area-title h3,
#servicios > h2,
#quienes-somos > h2 {
  font-family: "SourceSansCustom", sans-serif;
  font-weight: 300;         
  margin-bottom: 30px;
  color: #51a0d5;
  font-size: clamp(26px, 3.6vw, 35px);
}

/*  SECCIÓN: VARIABLES + RESET */
:root{
  --bg:#ffffff;
  --text:#0f172a;
  --border:#e2e8f0;
  --primary:#2563eb;
  --primary-contrast:#fff;
  --radius:14px;

  /* CTA / Footer */
  --a23-cta-bg:#343434;
  --a23-btn-bg:#51a0d5;
  --a23-btn-text:#000000;
  --a23-footer-bg:#51a0d5;
  --a23-text-light:#ffffff;
  --a23-shadow: 0 8px 28px rgba(0,0,0,.25);
}

*,*::before,*::after{ box-sizing:border-box }
html,body{ height:100% }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
img,svg{ display:block; max-width:100%; height:auto }
a{ color:inherit; text-decoration:none }
a:focus-visible,button:focus-visible{ outline:2px solid var(--primary); outline-offset:2px }

/*  SECCIÓN: SECCIONES BASE */
section{
  border-bottom:8px solid #f4f4f4;
  margin:0;
  border-radius:0;
  padding:0 20px;
  margin-bottom:10px;
}

/* Evita la línea/separación visual en el bloque final del index */
#quienes-somos,
#cta{
  border-bottom:0 !important;
  margin-bottom:0 !important;
}

/*  SECCIÓN: CONTENEDOR RESPONSIVE */
.container{ width:min(92vw, 720px); margin-inline:auto }
@media (min-width:1024px){ .container{ width:min(92vw, 960px) } }
@media (min-width:1300px){ .container{ width:min(92vw, 1120px) } }
@media (min-width:1440px){ .container{ width:min(92vw, 1240px) } }
@media (min-width:1600px){ .container{ width:min(92vw, 1360px) } }

/* SECCIÓN: BANNER (HERO) + NAV */
.hero{ position:relative }
.hero .bg{
  width:100vw;
  margin-left:calc(50% - 50vw);
  min-height: clamp(80vh, 70vh, 82vh); /* bajar imagen del banner */
  background-image:url("img/banner3.jpg");
  background-size:cover; background-position:center 10%; background-repeat:no-repeat;
  position:relative; isolation:isolate;
  display:flex; flex-direction:column; justify-content:flex-end;
}
/* Tablet vertical (portrait) */
@media (min-width:769px) and (max-width:1366px) and (orientation: portrait){
  .hero .bg{
    min-height: 40vh;
    background-position: center center;
  }

  .hero .content{
    transform: translateY(40px); /* baja SOLO el texto */
  }
}

/* Tablet horizontal (landscape) */
@media (min-width:769px) and (max-width:1366px) and (orientation: landscape){
  .hero .bg{
    min-height: 60vh; /* puedes hacerlo más bajo en horizontal */
    background-position: center center;
  }
}

/* Texto del banner: usa ArialRoundedBold */
.hero .content{
  position:relative; z-index:1; text-align:left; color:var(--text);
  padding: clamp(28px, 6vw, 72px) 0 clamp(32px, 8vw, 96px);
}
.hero h1 {
  font-family: "ArialRoundedBold", sans-serif;
  font-size: clamp(30px, 5.2vw, 40px);
  line-height: 1.08;
  margin: 0 0 12px;
  text-wrap: balance;
  text-align: left;
  font-weight: 300;
  color: #ffffff;
}

/* Nav global en global.css */

/*SECCIÓN: BANNER EN MÓVIL (MEDIA) */
@media (max-width:768px){
  .hero .bg{
    min-height: 60vh;
    background-position: center center;
  }
}

/* SECCIÓN: HERO - LANDSCAPE / PANTALLAS BAJAS */
@media (max-width:1024px) and (orientation:landscape){
  .hero .content{ padding-top:8px; padding-bottom:20px; text-align:center }
  .hero h1{ font-size: clamp(22px, 4.6vw, 40px); line-height:1.15; margin:0 16px }
  .hero .bg{ min-height:56vh; justify-content:center }
}
@media (max-height:430px) and (orientation:landscape){
  .hero h1{ font-size: clamp(20px, 4.2vw, 34px) }
}

/*  SECCIÓN: ACCESIBILIDAD (REDUCIR MOVIMIENTO) */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms!important; animation-iteration-count:1!important; transition-duration:.001ms!important }
}

/* SECCIÓN: PROYECTOS */
.proyectos-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: stretch;
}

#proyectos > h2 {
  margin-bottom: 30px;
  color: #51a0d5; 
  font-size: clamp(26px, 3.6vw, 35px);
  font-weight: 700;
}

.proyecto {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  width: 350px;
  padding: 20px 20px 15px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 200px;
}
.proyecto .info-proyecto {
  font-size: 1.1rem;
  color: #000000;
  margin-bottom: 15px;
  min-height: 60px;
}
.botones-proyecto {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
}
.proyecto h3 {
  margin-bottom: 10px;
  color: #51a0d5;
}

/*  SECCIÓN: QUIÉNES SOMOS (título) */
#quienes-somos > h2 {
  margin-bottom: 30px;
  color: #51a0d5;
  font-size: clamp(26px, 3.6vw, 35px);
  font-weight: 700; 
}

/*  SECCIÓN: BOTONES GENÉRICOS / UTILIDADES */
.btn-visitar, .btn-preview {
  padding: 6px 12px;
  background-color: #2c3e50;
  border: none;
  color: white;
  font-weight: 600;
  font-size: 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
  min-width: 80px;
}
.btn-visitar:hover, .btn-preview:hover { background-color: #1a252f; }
#cerrar-iframe { width: 100%; }

.logo img {
  height: 60px;
  width: auto;
  display: block;
}

/* Nav global en global.css */

/*  SECCIÓN: NUESTRO NEGOCIO */
.lead {
  background: #cccc;  
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
  margin: 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.lead h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.6vw, 35px);
  color: #51a0d5;
  font-weight: 700; /* Nota: override al final a 300 */
}
@media (min-width:1300px) {
  .lead h2 { transform: translateX(-60px); }
}
.lead p {
  margin: 0;
  font-size: clamp(14px, 2vw, 18px);
  color: #000000;
}

/* SECCIÓN: A23h CREATE / TECH */
.areas{
  background:#fff;
  padding:0;
  margin:0;
}
.areas .areas-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  background:#fff;
}
.area{
  display:grid;
  grid-template-columns: 220px 1fr 28px; 
  align-items:center;
  gap:20px 24px;
  padding:48px 32px;
  border-right:1px solid var(--border);
  min-height:260px;
}
.area:last-child{ border-right:none }

.area-title{
  display:flex; 
  flex-direction:column; 
  gap:10px;
  align-self:stretch; 
  justify-content:center;
}

/* A23h + Create/Tech = mismo estilo */
.area-title .kicker,
.area-title h3{
  margin:0;
  color:#51a0d5;
  font-size:clamp(28px, 3.8vw, 40px);
  font-weight:400 !important;  /* mismo grosor */
  font-family:inherit !important; /* misma fuente */
  line-height:1.1;
  letter-spacing:normal;
}

.area-body .area-link{
  display:inline-block;
  font-weight:700;
  color:#51a0d5;
  margin-bottom:10px;
  text-decoration:none;
  font-size:1rem;
}
.area-body p{
  margin:0;
  color:#000000;
  font-size:clamp(14px, 1.8vw, 16px);
  line-height:1.5;
}
.area-cta{
  font-size:32px;    
  color:#000000;
  text-align:right;
  user-select:none;
}

/* Hover */
.area:hover .area-cta{ color:#000000 }
.area:hover .area-link{ color:#000000 }

/* Responsive */
@media (max-width:1024px){
  .area{ 
    grid-template-columns:180px 1fr 24px;
    padding:32px 24px;     
    min-height:200px;
  }
}
@media (max-width:768px){
  .areas .areas-grid{ grid-template-columns:1fr } 
  .area{
    border-right:none;
    border-bottom:1px solid var(--border);
    grid-template-columns:160px 1fr 24px;
    padding:28px 20px;     
    min-height:180px;
  }
  .area:last-child{ border-bottom:none }
}

/* ===== Modal A23 ===== */
.a23-modal{
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.a23-modal.is-open{
  opacity: 1;
  pointer-events: auto;
}

/* Fondo */
.a23-modal-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
}

/* Caja */
.a23-modal-dialog{
  position: relative;
  width: min(720px, 92vw);
  background: #ffffff;
  color: #0f172a;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  padding: clamp(18px, 3.2vw, 28px);
  transform: translateY(10px) scale(.98);
  transition: transform .18s ease, opacity .18s ease;
  opacity: 0;
}
.a23-modal.is-open .a23-modal-dialog{
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Cerrar */
.a23-modal-close{
  position: absolute;
  top: 10px; right: 12px;
  font-size: 24px;
  line-height: 1;
  border: 0;
  background: transparent;
  cursor: pointer;
}
body.a23-modal-lock{ overflow: hidden; }

/* ===== Formulario ===== */
.a23-form { display: grid; gap: 16px; }
.a23-field { display: grid; gap: 8px; }
.a23-field label {
  font-size: 14px;
  color: #000000;
  font-weight: 600;
}
.a23-field input,
.a23-field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  font: inherit;
  background: #fff;
  transition: border .2s ease, box-shadow .2s ease;
}
.a23-field input:focus,
.a23-field textarea:focus {
  border-color: var(--primary, #2563eb);
  box-shadow: 0 0 0 4px rgba(37,99,235,.15);
  outline: none;
}

/* ===== Acciones ===== */
.a23-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 10px;
}
.a23-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  font-size: 15px;
  transition: transform .15s ease, filter .15s ease;
}
.a23-btn:active { transform: scale(.96); }
.a23-btn-primary {
  background: linear-gradient(135deg, var(--primary,#51a0d5), #51a0d5);
  color: var(--primary-contrast,#fff);
  box-shadow: 0 6px 20px rgba(37,99,235,.3);
}
.a23-btn-primary:hover { filter: brightness(1.08); }
.a23-btn-ghost {
  background: transparent;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}
.a23-btn-ghost:hover { background: #f8fafc; }

/* titulos tipo de letra*/
.lead h2,
#proyectos > h2,
.areas .area-title h3,
#servicios > h2,
#quienes-somos > h2 {
  font-family: "SourceSansCustom", sans-serif;
  font-weight: 400;
}
