@font-face{
  font-family: "AmsiPro";
  src: url("../fonts/amsipro-semibold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
}

@font-face{
  font-family: "AmsiPro";
  src: url("../fonts/amsipro-ultra.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
}

:root{
  --surface: #ffffff;
  --surface-alt: #fff1f1;
  --text: #171717;
  --muted: #5f5f68;
  --primary: #c9151b;
  --primary-dark: #991017;
  --primary-soft: rgba(201, 21, 27, 0.10);
  --border: rgba(23, 23, 23, 0.10);
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1180px;
}

*{
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
}

body{
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(201, 21, 27, 0.08), transparent 28%),
    linear-gradient(180deg, #fff8f8 0%, #ffffff 100%);
  line-height: 1.6;
}

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

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

.container{
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(23, 23, 23, 0.06);
}

.header-wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
}

.brand,
h1,
h2,
h3,
.hero-points li,
.section-tag,
.eyebrow,
.team-item,
.header-cta,
.btn{
  font-family: "AmsiPro", Arial, Helvetica, sans-serif;
}

.brand{
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: 150px;
  overflow: hidden;
}

.brand img{
  width: 280px;
  max-width: none;
  height: auto;
  display: block;
  margin-left: -64px;
  margin-top: -8px;
  margin-bottom: -8px;
}

.main-nav{
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.main-nav a{
  font-size: 0.95rem;
  font-weight: 600;
  color: #30303a;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible{
  color: var(--primary);
}

.header-cta,
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.header-cta:hover,
.btn:hover{
  transform: translateY(-1px);
}

.header-cta{
  background: var(--primary);
  color: #fff;
  box-shadow: 0 14px 30px rgba(201, 21, 27, 0.22);
}

.hero{
  padding: 72px 0 44px;
}

.hero-grid{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: center;
}

.eyebrow,
.section-tag{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 12px 24px rgba(201, 21, 27, 0.18);
}

.hero h1{
  margin: 16px 0 12px;
  font-size: clamp(2.9rem, 7vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.hero-lead{
  max-width: 640px;
  font-size: 1.08rem;
  color: var(--muted);
  margin: 0 0 24px;
}

.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.btn-primary{
  background: var(--primary);
  color: #fff;
  box-shadow: 0 16px 36px rgba(201, 21, 27, 0.22);
}

.btn-secondary{
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--border);
}

.hero-points{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.hero-points li{
  padding: 10px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(23, 23, 23, 0.08);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
  font-size: 0.94rem;
  font-weight: 600;
}

.hero-logos{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}

.hero-logos img{
  height: 58px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.08));
}

.hero-visual{
  display: flex;
  justify-content: center;
}

.hero-card{
  position: relative;
  width: 100%;
  min-height: 620px;
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at top center, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.62) 28%, rgba(226, 18, 27, 0.14) 100%),
    linear-gradient(180deg, #fff0f0 0%, #ffd0d0 100%);
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 18, 27, 0.14);
}

.hero-mark{
  position: absolute;
  top: 24px;
  right: 24px;
  width: 150px;
  opacity: 0.18;
}

.hero-person{
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 92%;
  object-fit: contain;
  object-position: center bottom;
}

.hero-badge{
  position: absolute;
  left: 24px;
  bottom: 24px;
  width: 190px;
  height: 88px;
  background: rgba(255,255,255,0.96);
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.10);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-badge img{
  width: 300px;
  max-width: none;
  height: auto;
  margin-left: -56px;
}

.section{
  padding: 84px 0;
}

.section-alt{
  background: linear-gradient(180deg, rgba(201, 21, 27, 0.035) 0%, rgba(255,255,255,0.92) 100%);
}

.section h2{
  margin: 14px 0 14px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.section-intro{
  max-width: 820px;
  color: var(--muted);
  margin-bottom: 30px;
}

.two-col{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: start;
}

.cards-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.card,
.media-card,
.team-photo-wrap,
.gallery-card{
  background: var(--surface);
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.card{
  padding: 26px;
}

.card h3{
  margin: 0 0 10px;
  font-size: 1.15rem;
  line-height: 1.15;
}

.card p{
  margin: 0;
  color: var(--muted);
}

.media-card{
  min-height: 420px;
}

.media-card img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-panel{
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 24px;
  align-items: stretch;
}

.team-photo-wrap{
  min-height: 540px;
  padding: 16px;
  background: linear-gradient(180deg, #fff8f8 0%, #ffffff 100%);
}

.team-photo{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.team-list{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.team-item{
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  background: #ffffff;
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 16px;
  padding: 12px 16px;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.04);
}

.team-item span{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.88rem;
  flex: 0 0 auto;
}

.gallery-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.gallery-card{
  min-height: 280px;
  border-radius: 22px;
}

.gallery-card img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.social-grid{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.social-card{
  min-height: 220px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.social-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(201, 21, 27, 0.18);
}

.links-list{
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.links-list a{
  background: #ffffff;
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 16px;
  padding: 16px 18px;
  font-weight: 700;
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.04);
}

.links-list a:hover{
  border-color: rgba(201, 21, 27, 0.22);
  color: var(--primary-dark);
}

.site-footer{
  background: #101014;
  color: rgba(255, 255, 255, 0.86);
  padding: 34px 0;
}

.footer-wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-wrap p{
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.footer-links{
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a{
  color: rgba(255, 255, 255, 0.84);
}

.footer-links a:hover{
  color: #ffffff;
}

@media (max-width: 1100px){
  .hero-grid,
  .two-col,
  .team-panel{
    grid-template-columns: 1fr;
  }

  .cards-grid,
  .social-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-card{
    min-height: 520px;
  }

  .team-photo-wrap{
    min-height: 420px;
  }
}

@media (max-width: 760px){
  .site-header{
    position: static;
  }

  .header-wrap{
    min-height: auto;
    padding: 16px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav{
    gap: 12px;
  }

  .hero{
    padding-top: 42px;
  }

  .section{
    padding: 64px 0;
  }

  .cards-grid,
  .gallery-grid,
  .social-grid{
    grid-template-columns: 1fr;
  }

  .hero-card{
    min-height: 420px;
  }

  .hero-mark{
    width: 110px;
  }

  .hero-badge{
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }

  .footer-wrap{
    flex-direction: column;
    align-items: flex-start;
  }
}

/* === Ajuste contextual y minimo del logo del header === */
.brand{
  position: relative;
  width: 245px;
  height: 44px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img{
  position: absolute;
  left: -10px;
  top: -159px;
  width: 300px;
  max-width: none;
  height: auto;
  display: block;
}

/* La tarjeta del hero no aporta y rompe la composicion */
.hero-badge{
  display: none !important;
}

@media (max-width: 760px){
  .brand{
    width: 196px;
    height: 35px;
  }

  .brand img{
    left: -8px;
    top: -127px;
    width: 240px;
  }
}


/* === Header final con logo recortado real === */
.brand{
  position: static !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
}

.brand img{
  position: static !important;
  width: auto !important;
  max-width: none !important;
  height: 38px !important;
  display: block !important;
  margin: 0 !important;
  object-fit: contain !important;
}

@media (max-width: 760px){
  .brand img{
    height: 32px !important;
  }
}

/* ===== LIMPIEZA FINAL HEADER ===== */
.brand{
  position: static !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  max-width: none !important;
}

.brand img{
  position: static !important;
  left: auto !important;
  top: auto !important;
  width: auto !important;
  max-width: none !important;
  height: 38px !important;
  max-height: none !important;
  margin: 0 !important;
  display: block !important;
  object-fit: contain !important;
}

.hero-badge{
  display: none !important;
}

@media (max-width: 760px){
  .brand img{
    height: 32px !important;
  }
}

/* ===== PRUEBA LIMPIA DE LOGO HEADER ===== */
.brand{
  position: static !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  max-width: none !important;
}

.brand img{
  position: static !important;
  left: auto !important;
  top: auto !important;
  width: auto !important;
  height: 40px !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  display: block !important;
  object-fit: contain !important;
}

@media (max-width: 760px){
  .brand img{
    height: 32px !important;
  }
}

/* ===== Logo en lugar del h1 del hero ===== */
.hero-logo-title{
  margin: 16px 0 18px !important;
  line-height: 1 !important;
}

.hero-logo-title img{
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
}

@media (max-width: 760px){
  .hero-logo-title img{
    max-width: 100%;
  }
}


/* ===== Pantalla de carga ===== */
body:not(.site-loaded){
  overflow: hidden;
}

.site-loader{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.675s ease, visibility 0.675s ease;
}

body.site-loaded .site-loader{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-loader__inner{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.site-loader__star{
  width: 180px;
  height: auto;
  animation: siteLoaderPulse 2.025s ease-in-out infinite;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.12));
}

.site-loader__text{
  display: none;
}

@keyframes siteLoaderPulse{
  0%, 100%{
    opacity: 0.28;
    transform: scale(0.88);
  }
  50%{
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 760px){
  .site-loader__star{
    width: 138px;
  }

  .site-loader__text{
    display: none;
  }
}

/* ===== Fondo blanco general, difuminado solo en la foto ===== */
body{
  background: #ffffff !important;
}

.hero{
  background: #ffffff !important;
}

/* ===== Responsive final para celular ===== */
@media (max-width: 900px){
  .header-wrap{
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    padding: 14px 0;
    min-height: auto;
  }

  .main-nav{
    justify-content: center;
    gap: 14px;
  }

  .hero-grid,
  .two-col,
  .team-panel{
    grid-template-columns: 1fr !important;
  }

  .cards-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .social-grid{
    grid-template-columns: 1fr;
  }

  .gallery-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-copy{
    order: 1;
  }

  .hero-visual{
    order: 2;
  }

  .hero-card{
    max-width: 560px;
    margin: 0 auto;
    min-height: 560px;
  }
}

@media (max-width: 640px){
  .site-header{
    position: static;
  }

  .container{
    width: min(100%, calc(100% - 24px));
  }

  .header-wrap{
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 12px 0 14px;
  }

  .brand img{
    height: 30px !important;
  }

  .main-nav{
    justify-content: center;
    gap: 10px 14px;
  }

  .main-nav a{
    font-size: 0.92rem;
  }

  .header-cta{
    min-height: 44px;
    padding: 0 18px;
  }

  .hero{
    padding: 28px 0 24px;
  }

  .hero-logo-title{
    margin: 12px 0 14px !important;
  }

  .hero-logo-title img{
    max-width: 100%;
    width: 100%;
  }

  .hero-lead{
    font-size: 1rem;
    margin-bottom: 18px;
  }

  .hero-actions{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 18px;
  }

  .hero-actions .btn{
    width: 100%;
  }

  .hero-points{
    gap: 8px;
    margin-bottom: 18px;
  }

  .hero-points li{
    width: 100%;
    text-align: center;
    font-size: 0.92rem;
  }

  .hero-logos{
    gap: 10px;
  }

  .hero-logos img{
    height: 44px;
  }

  .hero-card{
    min-height: 420px;
    max-width: 100%;
    border-radius: 26px;
  }

  .hero-mark{
    width: 92px;
    top: 16px;
    right: 16px;
  }

  .hero-person{
    height: 82%;
  }

  .section{
    padding: 52px 0;
  }

  .section h2{
    font-size: 1.8rem;
  }

  .cards-grid,
  .gallery-grid{
    grid-template-columns: 1fr;
  }

  .card{
    padding: 20px;
  }

  .media-card{
    min-height: 280px;
  }

  .team-photo-wrap{
    min-height: 320px;
    padding: 10px;
  }

  .team-item{
    min-height: 52px;
    padding: 10px 14px;
    font-size: 0.95rem;
  }

  .gallery-card{
    min-height: 240px;
  }

  .footer-wrap{
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-links{
    gap: 12px;
  }
}


/* ===== Duplicar tamaño del logo izquierdo ===== */
.hero-logo-main{
  height: 232px !important;
  width: auto !important;
}

@media (max-width: 640px){
  .hero-logo-main{
    height: 132px !important;
  }
}
