/* ==========================================================================
 Tipografías
========================================================================== */
@font-face {
  font-family: 'Warpen';
  src:
    url('../fonts/Warpen.woff2') format('woff2'),
    url('../fonts/Warpen.woff') format('woff'),
    url('../fonts/Warpen.ttf') format('truetype'),
    url('../fonts/Warpen.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Carga Poppins desde HTML:
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap" rel="stylesheet">
*/

/* ==========================================================================
 Base
========================================================================== */
body {
  background: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  position: relative;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: bold;
  letter-spacing: 2px;
}

.heading { font-size: 30px; }

.subheading {
  font-size: 18px;
  font-weight: bold;
  padding-bottom: 60px;
}

.bold { font-weight: bold; }

p {
  line-height: 28px;
  font-size: 15px;
}

a { /* Mantener accesibilidad: no quitar outline globalmente */ }

a:focus-visible,
button:focus-visible {
  outline: 2px solid #da1c5c;
  outline-offset: 2px;
}

hr{
  width: 180px;
  border: 0;
  border-top: 1px solid #CCC;
}

/* ==========================================================================
 Títulos / Secciones
========================================================================== */
.section-title strong {
  color: #da1c5c;
  font-size: 56px;
}
.section-title h1 { font-size: 24px; }
.section-title { padding-bottom: 32px; }
.medium-icon { font-size: 32px !important; }

#work, #about, #team, #portfolio, #pricing, #contact {
  padding-top: 100px;
  padding-bottom: 100px;
}

/* ==========================================================================
 Tipografía Warpen (una sola definición)
========================================================================== */
.warpen-font {
  font-family: 'Warpen', sans-serif;
  color: #da1c5c;
  font-size: 24px;
  font-weight: bold;
  -webkit-text-stroke: 0.5px #000000; /* soporte real */
  /* text-stroke: 0.5px #000000;  no estándar, se omite */
}

/* ==========================================================================
 Preloader
========================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-flow: row nowrap;
      -ms-flex-flow: row nowrap;
          flex-flow: row nowrap;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-align-items: center;
      -ms-align-items: center;
          align-items: center;
  background: #fff;
}
/* Estado de salida suave del preloader */
.preloader { opacity: 1; visibility: visible; transition: opacity .3s ease; }
.preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.sk-spinner-circle.sk-spinner { width: 22px; height: 22px; position: relative; }
.sk-spinner-circle .sk-circle { width: 100%; height: 100%; position: absolute; left: 0; top: 0; }
.sk-spinner-circle .sk-circle:before {
  content: '';
  display: block;
  margin: 0 auto;
  width: 20%;
  height: 20%;
  background-color: #da1c5c;
  border-radius: 100%;
  -webkit-animation: sk-circleBounceDelay 1.2s infinite ease-in-out;
          animation: sk-circleBounceDelay 1.2s infinite ease-in-out;
  -webkit-animation-fill-mode: both;
          animation-fill-mode: both;
}
.sk-spinner-circle .sk-circle2  { -webkit-transform: rotate(30deg);  transform: rotate(30deg); }
.sk-spinner-circle .sk-circle3  { -webkit-transform: rotate(60deg);  transform: rotate(60deg); }
.sk-spinner-circle .sk-circle4  { -webkit-transform: rotate(90deg);  transform: rotate(90deg); }
.sk-spinner-circle .sk-circle5  { -webkit-transform: rotate(120deg); transform: rotate(120deg); }
.sk-spinner-circle .sk-circle6  { -webkit-transform: rotate(150deg); transform: rotate(150deg); }
.sk-spinner-circle .sk-circle7  { -webkit-transform: rotate(180deg); transform: rotate(180deg); }
.sk-spinner-circle .sk-circle8  { -webkit-transform: rotate(210deg); transform: rotate(210deg); }
.sk-spinner-circle .sk-circle9  { -webkit-transform: rotate(240deg); transform: rotate(240deg); }
.sk-spinner-circle .sk-circle10 { -webkit-transform: rotate(270deg); transform: rotate(270deg); }
.sk-spinner-circle .sk-circle11 { -webkit-transform: rotate(300deg); transform: rotate(300deg); }
.sk-spinner-circle .sk-circle12 { -webkit-transform: rotate(330deg); transform: rotate(330deg); }
.sk-spinner-circle .sk-circle2:before  { -webkit-animation-delay: -1.1s; animation-delay: -1.1s; }
.sk-spinner-circle .sk-circle3:before  { -webkit-animation-delay: -1.0s; animation-delay: -1.0s; }
.sk-spinner-circle .sk-circle4:before  { -webkit-animation-delay: -0.9s; animation-delay: -0.9s; }
.sk-spinner-circle .sk-circle5:before  { -webkit-animation-delay: -0.8s; animation-delay: -0.8s; }
.sk-spinner-circle .sk-circle6:before  { -webkit-animation-delay: -0.7s; animation-delay: -0.7s; }
.sk-spinner-circle .sk-circle7:before  { -webkit-animation-delay: -0.6s; animation-delay: -0.6s; }
.sk-spinner-circle .sk-circle8:before  { -webkit-animation-delay: -0.5s; animation-delay: -0.5s; }
.sk-spinner-circle .sk-circle9:before  { -webkit-animation-delay: -0.4s; animation-delay: -0.4s; }
.sk-spinner-circle .sk-circle10:before { -webkit-animation-delay: -0.3s; animation-delay: -0.3s; }
.sk-spinner-circle .sk-circle11:before { -webkit-animation-delay: -0.2s; animation-delay: -0.2s; }
.sk-spinner-circle .sk-circle12:before { -webkit-animation-delay: -0.1s; animation-delay: -0.1s; }

@-webkit-keyframes sk-circleBounceDelay {
  0%, 80%, 100% { -webkit-transform: scale(0); transform: scale(0); }
  40% { -webkit-transform: scale(1); transform: scale(1); }
}
@keyframes sk-circleBounceDelay {
  0%, 80%, 100% { -webkit-transform: scale(0); transform: scale(0); }
  40% { -webkit-transform: scale(1); transform: scale(1); }
}

/* ==========================================================================
 Navbar
========================================================================== */
.custom-navbar {
  background: #3a3a3a;
  margin-bottom: 0;
}
.custom-navbar .navbar-brand {
  font-family: 'Warpen', sans-serif;
  color: #da1c5c;
  font-size: 28px;
  font-weight: 600;
}
.custom-navbar .nav li a {
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
}
.custom-navbar .nav li a:hover { background: transparent; color: #eeeeee; }
.custom-navbar .nav > li > a:focus { background-color: transparent; color: #ffffff; outline: none; }
.custom-navbar .nav li.active > a { color: #da1c5c; }
.custom-navbar .navbar-toggle { border: none; padding-top: 10px; }
.custom-navbar .navbar-toggle .icon-bar { background: #da1c5c; border-color: transparent; }

@media (min-width: 768px) {
  .custom-navbar { background: transparent; padding: 10px; border-bottom: 0; }
  .custom-navbar.top-nav-collapse { padding: 8px; background: #2f2f2f; }
}

/* ==========================================================================
 Home (no pelear con Backstretch: manda .hero-bleed)
========================================================================== */
#home{
  background: transparent;   /* Backstretch pinta el fondo */
  color: #ffffff;
  text-align: center;
}
#home h1 { font-size: 40px; }
#home h3 { font-size: 14px; }
#home hr { width: 240px; }
#home .btn {
  background: transparent;
  border: 4px solid #ffffff;
  border-radius: 0;
  color: #ffffff;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 2px;
  padding: 12px 42px;
  margin-top: 40px;
  margin-right: 16px;
  transition: all 0.4s ease-in-out;
}
#home .btn:hover { background: #da1c5c; border-color: transparent; }
#home .btn-danger { background: #da1c5c; border-color: transparent; }
#home .btn-danger:hover {
  border: 4px solid #ffffff; border-radius: 0;
  background: transparent; color: #ffffff;
}

/* ==========================================================================
 Work
========================================================================== */
#work { text-align: center; }
#work .col-md-4 {
  padding: 28px;
  position: relative;
  transition: all 0.4s ease-in-out;
}
#work .col-md-4:hover {
  background-color: #ffffff;
  box-shadow: 0px 2px 8px 0px rgba(50, 50, 50, 0.20);
}
#work h3 { font-size: 18px; }

/* ==========================================================================
 About
========================================================================== */
#about { background: #2f2f2f; color: #ffffff; }
.nav-tabs { margin-top: 20px; border-bottom: 1px solid #535252; }
.nav-tabs > li { float: left; margin-bottom: -1px; }
.nav-tabs > li > a {
  display: block; color: #ffffff; font-size: 16px;
  padding: 10px 20px; border: 0; border-radius: 0;
}
.nav-tabs > li > a:hover { background-color: transparent; }
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
  color: #da1c5c; cursor: default; background-color: transparent;
  border: 1px solid transparent; border-bottom-color: transparent;
}
.tab-content { padding-top: 20px; }
/* Enlaces dentro del tab: estilo y hover/ focus consistentes */
.tab-content a{ color:#0CC; text-decoration:none; }
.tab-content a:hover, .tab-content a:focus{ color:#FF0; text-decoration:none; }

/* ==========================================================================
 Team
========================================================================== */
#team { text-align: center; }
#team h3 { color: #da1c5c; font-size: 14px; font-weight: bold; }
#team .col-md-3 { padding-top: 20px; padding-bottom: 20px; }
#team .team-wrapper { overflow: hidden; position: relative; }
#team .team-des {
  background-color: rgba(0,0,0,0.6);
  position: absolute; color: #ffffff; opacity: 0;
  max-width: 500px; width: 100%; height: 100%;
  text-align: center; top: 0; left: 0; right: 0; bottom: 0;
  transition: all 0.4s ease-in-out; margin: 0 auto;
  display: -webkit-flex; display: -ms-flexbox; display: flex;
  -webkit-justify-content: center; -ms-flex-pack: center; justify-content: center;
  -webkit-align-items: center; -ms-align-items: center; align-items: center;
  -webkit-flex-direction: column; -ms-flex-direction: column; flex-direction: column;
}
/* Hover sobre la tarjeta completa (más robusto) */
#team .team-wrapper:hover .team-des{ opacity: 1; }
#team img { margin: 0 auto; }
#team .social-icon li a { color: #fff; }
#team .social-icon li a:hover { color: #da1c5c; }

/* ==========================================================================
 Portfolio
========================================================================== */
#portfolio { background-color: #f6f6f6; text-align: center; }
#portfolio .container { width: 100%; padding: 0; margin: 0; }
#portfolio img { width: 100%; transition: all 0.4s ease-in-out; }
#portfolio img:hover { opacity: 0.5; }

/* Filtros (centrado y sin sangría del UL) */
.filter-wrapper{
  width: 100%;
  margin: 40px 0 24px;
  padding: 0;               /* ← quita la sangría del <ul> */
  list-style: none;         /* ← sin bullets */
  display: flex;            /* ← centrado real */
  flex-wrap: wrap;
  justify-content: center;  /* ← centra horizontal */
  gap: 8px;                 /* espacio entre “chips” */
}

.filter-wrapper li{ 
  margin: 0;                /* con gap ya no hace falta */
}

.filter-wrapper li a{
  color: #999;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 17px;
  display: block;
  text-decoration: none;
  transition: all 0.4s ease-in-out;
}

.filter-wrapper li .selected,
.filter-wrapper li a:focus,
.filter-wrapper li a:hover{
  color: #da1c5c;
  outline: none;
}


/* Isotope grid */
.iso-box-section { width: 100%; }
.iso-box-wrapper { width: 100%; padding: 0; clear: both; position: relative; }
.iso-box { position: relative; min-height: 50px; float: left; overflow: hidden; margin-bottom: 20px; }
.iso-box > a { display: block; width: 100%; height: 100%; overflow: hidden; }
.fluid-img { width: 100%; display: block; }

/* ==========================================================================
 Pricing
========================================================================== */
#pricing { text-align: center; }
#pricing h2 { font-size: 52px; }
#pricing h3 { font-size: 16px; }
#pricing .plan {
  box-shadow: 0px 2px 8px 0px rgba(50, 50, 50, 0.20);
  padding-top: 40px; padding-bottom: 80px; margin-bottom: 32px;
}
#pricing .plan span { font-size: 16px; }
#pricing .plan .plan_title { font-weight: 300; letter-spacing: 2px; padding: 30px; margin-bottom: 20px; }
#pricing .medium-icon {
  box-shadow: 0px 2px 8px 0px rgba(50, 50, 50, 0.20);
  border-radius: 50%; font-size: 52px; width: 120px; height: 120px;
  line-height: 120px; text-align: center; margin-bottom: 32px;
}
#pricing .plan ul { padding: 0; }
#pricing .plan ul li { display: block; font-weight: 500; padding: 12px 0; }
#pricing .plan .btn {
  border: none; border-radius: 0; color: #ffffff; font-size: 16px; font-weight: bold;
  padding: 16px 60px; transition: all 0.4s ease-in-out; margin-top: 20px; text-transform: uppercase;
}
#pricing .plan-one .btn { background-color: #da1c5c; }
#pricing .plan-two .btn { background-color: #ffa400; }
#pricing .plan-three .btn { background-color: #009988; }
#pricing .plan .btn:hover { background-color: #2a2a2a; }

/* ==========================================================================
 Contacto
========================================================================== */
#contact {
  background: #2a2a2a url('../images/contact-bg.jpg') no-repeat center center;
  background-size: cover; color: #ffffff;
}
#contact h2 { padding-bottom: 20px; }
#contact h3 { font-size: 16px; font-weight: bold; letter-spacing: 1px; }
#contact .medium-icon { padding-top: 10px; padding-right: 10px; }
#contact .contact-info div { padding-top: 14px; padding-bottom: 14px; }
#contact form { padding-top: 60px; }
#contact .form-control {
  border: 2px solid #ffffff; border-radius: 0; box-shadow: none;
  margin-top: 10px; margin-bottom: 10px; transition: all 0.4s ease-in-out;
}
#contact input { height: 40px; }
#contact input[type="submit"] {
  background: #da1c5c; border: 3px solid #da1c5c;
  letter-spacing: 1px; margin-top: 18px; height: 50px; color: #ffffff;
}
#contact input[type="submit"]:hover { color: #000000; }

/* ==========================================================================
 Footer
========================================================================== */
footer { text-align: center; padding-top: 60px; padding-bottom: 60px; }
footer p { padding-top: 20px; }
.social-icon { padding: 0; margin: 0; }
.social-icon li { list-style: none; display: inline-block; padding: 6px; }
.social-icon li a {
  box-shadow: 0px 2px 8px 0px rgba(50, 50, 50, 0.09);
  color: #808080; font-size: 20px; width: 56px; height: 56px;
  line-height: 60px; text-align: center; text-decoration: none;
  transition: all 0.4s ease-in-out;
}
.social-icon li a:hover { color: #da1c5c; }

/* ==========================================================================
 Bloques personalizados
========================================================================== */
.black-box-title {
  background-color: black; color: white;
  padding: 10px 16px; border-radius: 10px;
  font-weight: 300; font-size: 16px;
  display: inline-block; max-width: 90%; line-height: 1.4;
  margin-bottom: 10px;
  white-space: nowrap;
  overflow-x: auto;
}

.equal-button {
  background-color: #da1c5c; color: white;
  border: none; padding: 10px 20px; border-radius: 30px;
  font-weight: bold; transition: all 0.3s ease;
  text-align: center; display: inline-block;
  box-sizing: border-box; /* asegura que el ancho incluya padding */
}

/* ==========================================================================
 Responsive
========================================================================== */
@media (max-width: 768px) {
  .black-box-title {
    font-size: 11px; padding: 4px 8px; max-width: 90vw;
    margin-left: auto; margin-right: auto; text-align: center;
    white-space: nowrap; overflow-x: auto; display: block;
    -ms-overflow-style: none; scrollbar-width: none;
  }
  .black-box-title::-webkit-scrollbar { display: none; }

  .warpen-font:not(#hero-title) { font-size: 16px; }
  #home h1 { font-size: 20px; }
  #home h3 { font-size: 12px; }

  /* En pantallas ≤768px mantenemos columna y centrado */
  .button-container {
    display: flex; flex-direction: column;
    align-items: center; gap: 10px;
  }
  /* Igual ancho por botón en secciones fuera del héroe (tope genérico) */
  .equal-button { width: 100%; max-width: 300px; }
}

/* Reglas específicas para el héroe en móvil (≤576px) */
@media (max-width: 576px){
  .hero-bleed{ min-height: 60vh; }
  .black-box-title{ font-size: 18px; line-height: 1.25; }
 .warpen-font:not(#hero-title) { font-size: 20px; }

  /* Contenedor con ancho tope y los hijos estirados */
  .button-container{
    display: flex;
    flex-direction: column;
    align-items: stretch;          /* ← todos los hijos ocupan el mismo ancho */
    gap: 10px;
    width: min(90vw, 220px);       /* ← tope cómodo en teléfonos */
    margin: 0 auto;                /* ← centra el bloque */
  }

  .button-container .equal-button{
    width: 100%;                   /* ← todos igual de anchos */
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 22px;
    line-height: 1.2;
    white-space: nowrap;
  }
}

@media (min-width: 769px) {
  .button-container { display: flex; justify-content: center; gap: 15px; }
}

/* ==========================================================================
 Botones flotantes
========================================================================== */
.btn-custom { background-color: #da1c5c; color: #fff; border: none; }

.btn-flotante {
  position: fixed; bottom: 20px; right: 20px; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: bold; color: #fff; text-decoration: none;
  border-radius: 30px; padding: 12px 18px;
  box-shadow: 0px 4px 8px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  gap: 8px;
  line-height: 1;
  white-space: nowrap;
}
.btn-flotante:hover { transform: scale(1.05); }

.btn-flotante:hover .fa-gear { animation: spin .6s linear; }
@keyframes spin { to { transform: rotate(360deg); } }

.btn-contacto { background-color: #da1c5c; bottom: 20px; right: 20px; }

/* WhatsApp */
.btn-whatsapp {
  background-color: #25D366; width: 55px; height: 55px;
  font-size: 24px; border-radius: 50%;
  bottom: 90px; right: 25px;
}
.btn-whatsapp i { margin: 0 auto; }

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* HERO */
.hero-bleed{
  position: relative; overflow: hidden;
  min-height: 100vh;
  min-height: 100svh; /* mejor en móviles modernos */
  display: flex; align-items: center; justify-content: center; text-align: center;
}

/* Degradado sobre fondo */
.hero-bleed::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,.15) 40%, rgba(0,0,0,0));
  z-index: 1; pointer-events: none;
}

/* Contenido por encima */
.hero-content{ position: relative; z-index: 2; padding: 16px; }

@media (min-width: 992px){
  .hero-bleed{ min-height: 100vh; min-height: 100svh; } 
}

.hero-slides{ position:absolute; inset:0; z-index:0; overflow:hidden; }
.hero-slides .slide{
  position:absolute; inset:0;
  background-position:center; background-size:cover; background-repeat:no-repeat;
  opacity:0; animation:xfade 16s infinite; will-change:opacity;
}

/* Rutas del slideshow */
.hero-slides .s1{ background-image:url('../images/home-bg-slideshow1.jpg'); animation-delay:0s; }
.hero-slides .s2{ background-image:url('../images/home-bg-slideshow2.jpg'); animation-delay:4s; }
.hero-slides .s3{ background-image:url('../images/home-bg-slideshow3.jpg'); animation-delay:8s; }
.hero-slides .s4{ background-image:url('../images/home-bg-slideshow4.jpg'); animation-delay:12s; }

/* 0–27% visible, 27–33% fade out, luego escondida */
@keyframes xfade{
  0% { opacity:1; }
  27% { opacity:1; }
  33% { opacity:0; }
  94% { opacity:0; }
  100% { opacity:1; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  .hero-slides .slide{ animation:none; }
  .hero-slides .s1{ opacity:1; }
}

/* Encuadre específico de la s1 */
.hero-slides .s1{ background-position: 50% center; }

@media (max-width: 576px){
  .hero-slides .s1{ background-position: 70% center; }
}

@media (max-aspect-ratio: 9/16){
  .hero-slides .s1{ background-position: 88% 40%; }
}

/* Título grande del hero */
#hero-title{
  /* escala entre 14px (móvil) y 42px (desktop) */
  font-size: clamp(14px, 5vw, 42px);
  line-height: 1.15;
  
  title-box {
    padding:8px 6px;          /* menos ancho en móvil */
    border-radius:12px;       /* un poco más redondeado */
  }
}

/* Desktop (igual que antes) */
.xmotion-box{ display:flex; justify-content:center; margin:10px 0; }
.xmotion-link{
  display:flex; align-items:center; gap:12px;
  border:1px solid #ddd; border-radius:12px; padding:10px 18px;
  text-decoration:none; color:#677; max-width:800px;
}
.xmotion-logo{ height:70px; flex:0 0 auto; }          /* tamaño PC */
.xmotion-text{ font-weight:500; font-size:16px; line-height:1.25; }

/* Móvil */
@media (max-width: 768px){
  .xmotion-link{ flex-direction:column; gap:6px; padding:10px 14px; }
  .xmotion-logo{ height:42px; }                       /* reduce logo */
  .xmotion-text{ font-size:clamp(12px, 3.5vw, 14px);  text-align:center; }
}
