/*
Theme Name: losdemkt-theme
Author: losdemkt
Author URI: https://losdemkt.com/
Theme URI: https://losdemkt.com/
Tags: full-site-editing, block-patterns
Text Domain: losdemkt-theme
Requires at least: 6.4
Requires PHP: 7.4
Tested up to: 6.4
Version: 100.0

License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* Styles intended only for the front.*/
html {
	scroll-behavior: smooth;
}

@media screen and (prefers-reduced-motion: reduce) {

	html {
		scroll-behavior: auto;
	}
}

body {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}
footer{
	margin:0;
}
.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content{
	text-decoration:none;
}
.wp-block-navigation-submenu{
	background:#fff !important;
}

/* details */
details {
    margin: 0;
    padding: 0;
	background: #fff;
    border-radius: 10px;
}

summary {
    list-style: none;
    outline: none;
	padding: 0.5rem 3rem 0.5rem 0.5rem;
    margin: 0;
    cursor: pointer;
    padding-right: 1.5em; 
    transition: background-color 0.3s ease; 
    position:relative;
    border-bottom:1px solid #F1F1F1;
}

details summary::before {
    content: "";
    background-image: url('https://losdemkt.com/wp-content/uploads/2026/07/flecha-faq-box.svg');
    background-size: contain;
    background-repeat: no-repeat;
    width: 1.5em;
    height: 1.5em;
    position: absolute;
    bottom: 0;
    right:1rem;
    top: 0;
    transition: transform 0.3s ease;
    margin: auto;
	background-color: #F3F5FC;
}

details[open] summary::before {
  transform: rotate(180deg); 
}
details p{
	padding: 0 15px;

}
summary:hover {
    background:#e7f1ff;
	border-radius: 10px;
}

summary::-webkit-details-marker {
  display: none;  /* Elimina la flechita en WebKit (Chrome, Safari) */
}
/*Modal*/

.modal-hidden {
  display: none !important;
}

#custom-modal {
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  top: 0; left: 0;
}

.modal-content {
  position: relative;
  background: #fff;
  padding: 30px 40px;
  z-index: 10000;
  border-radius: 8px;
  max-width: 700px;
  width: 90%;
}

.modal-header{
	display:flex;
	justify-content: space-between;
}
.modal-content h2{
	margin:0;
}
.close-modal{
	background: none;
    border: 0;
    cursor: pointer;
}
.form-row p{
	display:flex;
	margin:0;
	width:100%;
	gap:20px;
}
.form-row p span{
	width:100%;
}
.form-row br{
	display:none;
}

input[type="text"], input[type="email"], input[type="tel"] {
    border-radius: 5px;
    border: 2px solid #ccc;
    padding: 12px 15px;
	width: fit-content;
	max-width:320px;
    margin-bottom: 15px;
    outline: none;
	font-family:"Inter", sans-serif;;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, textarea:focus {
    border: 2px solid #0050ff;
}
#telefono{
	max-width:340px;
}
.iti--allow-dropdown {
	margin-bottom:15px;
}
textarea{
		font-family:"Inter", sans-serif;	
	border-radius: 5px;
    border: 2px solid #ccc;
    padding: 12px 15px;
	width: 94%;
    margin-bottom: 10px;
    height: 80px;
    outline: none;
}
input[type="submit"]{
	border-radius:30px;
	padding: 8px 30px;
}
/*Responsive*/
/* Small devices (landscape phones, 576px and up)*/
@media screen and (min-width: 320px) and (max-width: 768px) {
	textarea{
		width:auto;
	}
	.form-row p{
	display:block;
	margin:0;
	gap:0;
	}
	
}
/* 
/* rotador de palabras*/

/* Rotador dentro de headings FSE */
.rotator{
  position: relative;
  display: inline-grid;
  grid-auto-rows: 1fr;
  height: 1.5em;              /* altura estable a línea del H2 */
  vertical-align: baseline;
  overflow: hidden;
  font-weight: inherit;
  line-height: inherit;
}

/* --- Truco de ancho reservado: mantiene todas las palabras alineadas --- */
.rotator::before{
  content: attr(data-longest);   /* reserva el ancho usando la palabra más larga */
  visibility: hidden;
  white-space: nowrap;
}

/* Palabras rotadas ocupan exactamente el mismo lugar (grid superpuesto) */
.rotator-item{
  grid-area: 1 / 1;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(100%);
  animation: rotate-text 9s ease-in-out infinite;
}

.rotator-item:nth-child(1){ animation-delay: 0s; }
.rotator-item:nth-child(2){ animation-delay: 3s; }
.rotator-item:nth-child(3){ animation-delay: 6s; }

@keyframes rotate-text{
  0%   { opacity: 0; transform: translateY(100%); }
  6%   { opacity: 1; transform: translateY(0%); }
  30%  { opacity: 1; transform: translateY(0%); }
  36%  { opacity: 0; transform: translateY(-100%); }
  100% { opacity: 0; transform: translateY(-100%); }
}

/* Accesibilidad: menos movimiento si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce){
  .rotator-item{
    animation: none !important;
    opacity: 1;
    position: static;
    display: none;
    transform: none;
  }
  .rotator-item:first-child{ display: inline; }
}

/* Card hover */

/* =========================
   Card con efecto hover
   ========================= */
.card-hover {
  /* Vars para ajustar fácilmente */
  --card-hover-bg: #262626;  /* fondo en hover */
  --circle-bg: #fff;         /* color del círculo */
  --circle-size: clamp(56px, 10vw, 85px);

  background-color: #ffffff;
  color: #000000;
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s ease;
  text-align: center;
}

.card-hover:hover {
  background-color: var(--card-hover-bg);
  color: #ffffff;
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}

/* Forzar color de títulos, párrafos y enlaces dentro de la card */
.card-hover h2,
.card-hover h3,
.card-hover p,
.card-hover a {
  transition: color 0.3s ease;
  color: inherit;
}

.card-hover:hover h2,
.card-hover:hover h3,
.card-hover:hover p,
.card-hover:hover a {
  color: #ffffff;
}

/* =========================
   Número dentro de un CÍRCULO
   ========================= */
.card-hover .numero{
  /* círculo perfecto y responsive */
  width: var(--circle-size);
  aspect-ratio: 1 / 1;          /* asegura proporción 1:1 */
  border-radius: 50%;
  background-color: var(--circle-bg);
  color: #000000;                /* número en estado normal */
  font-weight: 700;

  /* centrar contenido y neutralizar herencias */
  display: grid;
  place-items: center;
  padding: 0 !important;
  line-height: 1 !important;
  box-sizing: border-box;

  /* animación suave del color del número */
  transition: color 0.3s ease;
}

/* HOVER: número MISMO tono que el círculo (monocromo) */
.card-hover:hover .numero{
  background-color: var(--circle-bg); /* el círculo se mantiene igual */
  color: var(--circle-bg);            /* número toma el mismo tono del círculo */
}

/* Si adentro del círculo el número está envuelto en un h/p/span */
.card-hover .numero > *{
  margin: 0;
  line-height: 1 !important;
}

/* color KPI contadores numeros abajo de testimonios */
.kpi__sign { color:#0157ff; }  /* + azul */
.kpi__num  { color:#000000; }  /* número negro */

/* ===== SOLO MÓVIL: opacidad 100% en todas las tarjetas ===== */
@media (max-width: 768px){
  .testimonios-slider .tns-item,
  .testimonios-slider .tns-item.is-near,
  .testimonios-slider .tns-item.is-center {
    opacity: 1 !important;
  }
}
