/*
 Theme Name: Blocksy Child
 Template: blocksy
*/

/* Hide Blocksy default single parts (only on portfolio singles) */
body.single-portfolio .ct-breadcrumbs,
body.single-portfolio .entry-header,
body.single-portfolio .hero-section,
body.single-portfolio .ct-featured-image {
  display: none !important;
}

/* Main container */
.nf-portfolio-single .nf-container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* Page head: title left + breadcrumbs right + gray background bar */
.nf-pagehead{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;

  background: #F9F9F9;
  padding: 22px 24px;

  margin: -40px -24px 28px; /* cancels container padding so it feels full width */
  border-bottom: 1px solid #eee;
}

.nf-title{
  margin:0;
  font-size: 20px;
  font-weight: 600;
  color: #505050;
}

.nf-breadcrumbs{
  font-size: 12px;
  color:#888;
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.nf-breadcrumbs a{ color:#888; text-decoration:none; }
.nf-breadcrumbs a:hover{ text-decoration:underline; }
.nf-bc-prefix{ color:#999; }
.nf-bc-sep{ color:#bbb; }

/* Two-column layout */
.nf-topgrid{
  display:grid;
  grid-template-columns: 1.75fr 1fr;
  gap: 48px;
  align-items:start;
}

/* Image */
.nf-image img{
  width:100%;
  height:auto;
  display:block;
  border-radius: 4px;
}

/* Right column content */
.nf-content{
  color:#777;
  font-size: 14px;
  line-height: 1.7;
}

.nf-content p{ margin: 0 0 16px; }

/* Section headings (Descripción / Puntos Claves) with divider line */
.nf-content h2,
.nf-content h3{
  display:flex;
  align-items:center;
  gap:16px;
  font-size: 20px;
  font-weight: 500;
  color:#444;
  margin: 0 0 14px;
}

.nf-content h2::after,
.nf-content h3::after{
  content:"";
  height:1px;
  background:#e6e6e6;
  flex:1;
  transform: translateY(1px);
}

/* Puntos Clave */
.nf-content ul{
  list-style: none;
  padding: 0;
  margin: 0;
}

.nf-content ul li{
  display: flex;
  align-items: center;     /* <-- alinea verticalmente icono y texto */
  gap: 8px;               /* separación icono-texto */
  margin: 0px 0;
  padding: 0;              /* <-- elimina el padding-left anterior */
  color: #777;
}

/* SVG checkmark (red circle + white check) */
.nf-content ul li::before{
  content: "";
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Ccircle cx='7' cy='7' r='7' fill='%23e53935'/%3E%3Cpath d='M4.1 7.2l1.7 1.8L10 4.9' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  transform: translateY(1px); /* micro-ajuste como el original */
}



/* Recent Work */
.nf-recent{ margin-top: 60px; }

.nf-recent-title{
  font-size: 22px;
  margin: 0 0 18px;
}

.nf-recent-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.nf-recent-item a{ text-decoration:none; display:block; }
.nf-recent-thumb img{ width:100%; height:auto; display:block; border-radius:4px; }
.nf-recent-item-title{ font-size: 14px; margin: 10px 0 0; color:#333; }

/* Responsive */
@media (max-width: 980px){
  .nf-pagehead{
    flex-direction:column;
    align-items:flex-start;
    margin: -40px -24px 20px;
    padding: 18px 18px;
  }

.nf-topgrid{
  display: grid;
  grid-template-columns: 2.15fr 1fr; /* antes 1.75fr 1fr */
  gap: 48px;
  align-items: start;
}


.nf-image img{
  width: 100%;
  height: auto;
  display: block;
}

  .nf-recent-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px){
  .nf-recent-grid{ grid-template-columns: 1fr; }
}

/* Recent Work (like original) */
.nf-recent-work{
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid #eee;
}

.nf-recent-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom: 18px;
}

.nf-recent-h{ order: 1; }


/* La línea queda en el medio y ocupa el espacio */
.nf-recent-head::after{
  order: 2;
  flex: 1 1 auto;
}

/* Flechas al final (derecha) */
.nf-recent-arrows{
  order: 3;
  margin-left: 12px !important; /* separación respecto a la línea */
}

.nf-card:hover .nf-card-title{
  background: #EF4123;
  color: #fff;
}

.nf-recent-h{
  font-size: 22px;
  font-weight: 600;
  color:#333;
  margin:0;
}

/* decorative arrows like the original UI */
.nf-recent-arrows{
  display:flex;
  gap:6px;
}

.nf-arrow{
  width: 28px;
  height: 28px;
  display:grid;
  place-items:center;
  border:1px solid #e6e6e6;
  background:#f7f7f7;
  color:#777;
  border-radius: 2px;
  line-height: 1;
  font-size: 16px;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.nf-arrow-btn:hover{
  background: #EF4123;
  border-color: #EF4123;
  color: #fff; /* works if the chevron inherits */
}

.nf-arrow-btn:hover .nf-chevron{
  color: #fff;
}

/* 4 cards grid */
.nf-recent-grid-4{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

/* card style */
.nf-card{
  background: #fff;
  border:1px solid #eee;
}

.nf-card-link{
  display:block;
  text-decoration:none;
}

.nf-card-img img{
  width:100%;
  height:auto;
  display:block;
}

.nf-card-title{
  margin-top: -1px;
  padding: 20px 12px;
  text-align:center;
  font-size: 16px;
  color:#505050;
  border-top: 1px solid #eee;
  font-weight: 500;
}

@media (max-width: 980px){
  .nf-recent-grid-4{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .nf-recent-grid-4{ grid-template-columns: 1fr; }
}

/* ===== Recent Work Carousel (matches original) ===== */
.nf-recent-work{
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid #eee;
}

.nf-recent-head{
  display:flex;
  align-items:center;
  gap:16px;
  margin-bottom: 18px;
}

.nf-recent-h{
  font-size: 18px;
  font-weight: 500;
  color:#555;
  margin:0;
  white-space: nowrap;
}

/* line running to the right like the screenshot */
.nf-recent-head::after{
  content:"";
  height:1px;
  background:#e6e6e6;
  flex:1;
  transform: translateY(1px);
}

.nf-recent-arrows{
  display:flex;
  gap:6px;
  margin-left: 12px;
}

.nf-arrow-btn{
  width: 28px;
  height: 28px;
  display:grid;
  place-items:center;
  border:1px solid #e6e6e6;
  background:#f7f7f7;
  color:#777;
  border-radius: 2px;
  line-height: 1;
  font-size: 28px;
  cursor: pointer;
  padding: 0;
}


.nf-arrow-btn .nf-chevron{
  font-size: 28px;
  line-height: 1;
  display: block;
}

/* Move only the glyph, not the button */
.nf-arrow-btn[data-dir="prev"] .nf-chevron{
  transform: translateY(-4px);
}

.nf-arrow-btn[data-dir="next"] .nf-chevron{
  transform: translateY(-4px);
}


.nf-arrow-btn:disabled{
  opacity: .65;
  cursor: not-allowed;
}

/* viewport + track */
.nf-carousel-viewport{
  overflow: hidden;
}

.nf-carousel-track{
  display:flex;
  gap: 22px;
  will-change: transform;
  transition: transform .35s ease;
}

/* 4 cards visible */
.nf-card{
  background:#fff;
  border:1px solid #eee;
  flex: 0 0 calc((100% - 3 * 22px) / 4);
}

.nf-card-link{ display:block; text-decoration:none; }
.nf-card-img img{ width:100%; height:auto; display:block; }

/* Responsive */
@media (max-width: 980px){
  .nf-carousel-track{ gap: 18px; }
  .nf-card{ flex-basis: calc((100% - 1 * 18px) / 2); }
}

@media (max-width: 520px){
  .nf-card{ flex-basis: 100%; }
}

/* === Quitar divisor extra arriba de Recent Work === */
.nf-recent-work{
  border-top: 0 !important;
  padding-top: 0 !important;
}

/* ===== Fix layout on tablet/mobile ===== */

/* Tablet and down: single column, better spacing */
@media (max-width: 980px){
  .nf-topgrid{
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }

  /* make image look full width */
  .nf-image{
    width: 100%;
  }

  .nf-image img{
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  /* reduce side padding so content has room */
  .nf-portfolio-single .nf-container{
    padding: 28px 16px !important;
  }

  /* the gray header bar should match new padding */
  .nf-pagehead{
    margin: -28px -16px 18px !important;
    padding: 16px 16px !important;
  }

  /* slightly smaller headings so they don’t dominate */
  .nf-content h2,
  .nf-content h3{
    font-size: 18px !important;
  }
}

/* Mobile: a bit tighter + image corners look good */
@media (max-width: 520px){
  .nf-portfolio-single .nf-container{
    padding: 22px 14px !important;
  }

  .nf-pagehead{
    margin: -22px -14px 16px !important;
    padding: 14px 14px !important;
  }

  .nf-image img{
    border-radius: 6px;
  }

  .nf-title{
    font-size: 22px !important;
  }

  .nf-content{
    font-size: 14px !important;
  }
}

/* Base circle container */
.circulo-home-hover,
.hover-circle{
  position: relative;
  overflow: visible;
  border-radius: 50%;
  transition: background-color .25s ease, transform .25s ease;
}

/* The pulse ring (hidden by default) */
.circulo-home-hover::after,
.hover-circle::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(239, 65, 35, 0.25); /* low opacity pulse */
  transform: scale(1);
  opacity: 0;
  pointer-events: none;
}

/* Hover state: circle turns red */
.circulo-home-hover:hover,
.hover-circle:hover{
  background: #EF4123;
}

/* Trigger the pulse on hover, then fade out */
.circulo-home-hover:hover::after,
.hover-circle:hover::after{
  animation: nfPulse 500ms ease-out 1;
}

/* Pulse animation */
@keyframes nfPulse{
  0%   { transform: scale(1);   opacity: .85; }
  70%  { transform: scale(1.40); opacity: .60; }
  100% { transform: scale(1.55); opacity: 0.3; }
}

/* Make icon white when parent container is hovered */
.circulo-home-hover:hover .hover-circle-whiteicon,
.hover-circle:hover .hover-circle-whiteicon{
  color: #fff !important;
}

/* If the icon is an SVG (Elementor uses SVG), force the path to white */
.circulo-home-hover:hover .hover-circle-whiteicon svg,
.circulo-home-hover:hover .hover-circle-whiteicon svg * ,
.hover-circle:hover .hover-circle-whiteicon svg,
.hover-circle:hover .hover-circle-whiteicon svg *{
  fill: #fff !important;
}

/* ===== Portfolio archive grid  ===== */
.nf-portfolio-archive .nf-container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

.nf-archive-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.nf-archive-card{
  border: 1px solid #eee;
  background: #fff;
}

.nf-archive-link{
  display: block;
  text-decoration: none;
}

.nf-archive-thumb {
    margin-bottom: -1px;
}
.nf-archive-thumb img{
  width: 100%;
  height: auto;
  display: block;
}

.nf-archive-meta{
  border-top: 1px solid #eee;
  padding: 14px 12px 16px;
  text-align: center;
}

.nf-archive-title{
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 500;
  color: #555;
}

.nf-archive-lang{
  font-size: 12px;
  color: #9a9a9a;
}

/* hover like your style */
.nf-archive-card:hover .nf-archive-meta{
  background: #EF4123;
}
.nf-archive-card:hover .nf-archive-title,
.nf-archive-card:hover .nf-archive-lang{
  color: #fff;
}

/* Responsive */
@media (max-width: 980px){
  .nf-archive-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .nf-archive-grid{ grid-template-columns: 1fr; }
}

.dropcap{
  float:left;
  font-size:52px;
  line-height:1;
  margin-right:10px;
  margin-top:0px;
  font-weight:400;
  color:#EF4123;
  display:block;
}

/* Make Elementor Icon List look like colored bars */
.lista-caracteristicas .elementor-icon-list-item{
  background: #EF4123;
  padding: 8px 14px;
  border-radius: 2px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.lista-caracteristicas .elementor-icon-list-icon{
  margin-right: 2px;
}

.lista-caracteristicas .elementor-icon-list-text{
  color: #fff;
  font-weight: 600;
}

/* remove last gap */
.lista-caracteristicas .elementor-icon-list-item:last-child{
  margin-bottom: 0;
}

/* Create the full-width line behind ONLY these headings */
.dash-detras{
  position: relative;
}

.dash-detras::before{
  content: "";
  position: absolute;
  left: 45%;
  right: 0%;
  top: 34%;
  transform: translateY(-50%);
  height: 1px;
  background: rgba(0,0,0,0.18);  
  opacity: 0.35;
  z-index: 0;
}

/* Put the actual H2 text above the line */
.dash-detras .elementor-heading-title{
  position: relative;
  z-index: 1;
  display: inline-block;     
}

/* dash line para columnas mas cortas */
.dash-detras2{
  position: relative;
}

.dash-detras2::before{
  content: "";
  position: absolute;
  left: 35%;
  right: 0%;
  top: 34%;
  transform: translateY(-50%);
  height: 1px;
  background: rgba(0,0,0,0.18);  
  opacity: 0.35;
  z-index: 0;
}

/* Put the actual H2 text above the line */
.dash-detras2 .elementor-heading-title{
  position: relative;
  z-index: 1;
  display: inline-block;     
}

/* dash line para columnas mas cortas */
.dash-detras3{
  position: relative;
}

.dash-detras3::before{
  content: "";
  position: absolute;
  left: 23%;
  right: 0%;
  top: 34%;
  transform: translateY(-50%);
  height: 1px;
  background: rgba(0,0,0,0.18);  
  opacity: 0.35;
  z-index: 0;
}

/* Put the actual H2 text above the line */
.dash-detras3 .elementor-heading-title{
  position: relative;
  z-index: 1;
  display: inline-block;     
}


/* --- Carrusel: botones con fondo oscuro + hover rojo (SIN movimiento) --- */
.carrusel-fotos .elementor-swiper-button{
  width: 45px;
  height: 65px;
  background: rgba(0,0,0,0.45);
  border-radius: 3px; 
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}



.carrusel-fotos .elementor-swiper-button svg{
  width: 32px;
  height: 32px;
}

/* fuerza el chevron a blanco (tu SVG trae fill inline) */
.carrusel-fotos .elementor-swiper-button svg path{
  fill: #fff !important;
}

.carrusel-fotos .elementor-swiper-button:hover{
  background: #e53935;
}

/* --- Mobile (tablets/phones) --- */
@media (max-width: 767px){
  .carrusel-fotos .elementor-swiper-button{
    width: 40px;
    height: 54px;
    border-radius: 3px;
    background: rgba(0,0,0,0.42);
  }

  .carrusel-fotos .elementor-swiper-button svg{
    width: 26px;
    height: 26px;
  }
}

/* --- Extra small phones --- */
@media (max-width: 480px){
  .carrusel-fotos .elementor-swiper-button{
    width: 36px;
    height: 48px;
  }

  .carrusel-fotos .elementor-swiper-button svg{
    width: 24px;
    height: 24px;
  }
}

/* ===== Animación de “carga” (100%) sin tocar tu estilo base ===== */
.lista-caracteristicas .elementor-icon-list-item{
  position: relative;
  overflow: hidden; /* para que la capa no se salga */
}

/* capa gris encima que se va quitando (revela el rojo) */
.lista-caracteristicas .elementor-icon-list-item::after{
  content: "";
  position: absolute;
  inset: 0;
  background: #f2f2f2;      /* color de la parte “no cargada” */
  z-index: 0;
  transform: translateX(0);
  animation: listaFill 1.1s ease-out forwards;
  animation-delay: var(--delay, 0s);
}

/* asegura que el texto/icono queden por encima de la capa */
.lista-caracteristicas .elementor-icon-list-icon,
.lista-caracteristicas .elementor-icon-list-text{
  position: relative;
  z-index: 1;
}

/* animación: la capa se va totalmente => 100% rojo */
@keyframes listaFill{
  to { transform: translateX(100%); }
}

/* efecto en cascada (solo timing, todas llegan a 100%) */
.lista-caracteristicas .elementor-icon-list-item:nth-child(1){ --delay: 0.00s; }
.lista-caracteristicas .elementor-icon-list-item:nth-child(2){ --delay: 0.12s; }
.lista-caracteristicas .elementor-icon-list-item:nth-child(3){ --delay: 0.24s; }
.lista-caracteristicas .elementor-icon-list-item:nth-child(4){ --delay: 0.36s; }
.lista-caracteristicas .elementor-icon-list-item:nth-child(5){ --delay: 0.48s; }

/* accesibilidad */
@media (prefers-reduced-motion: reduce){
  .lista-caracteristicas .elementor-icon-list-item::after{
    animation: none;
    transform: translateX(100%);
  }
}

/* 1. Target the card on hover and change its background */
.servicios-card:hover {
    background-color: #EF4123 !important; /* Use !important to override inline Elementor background setting */
    transition: background-color 0.3s ease; /* Optional: adds a smooth transition */
}

/* 2. Target the heading (text) inside the card on hover and change its color to white */
.servicios-card:hover .elementor-heading-title {
    color: #FFFFFF !important;
    transition: color 0.3s ease;
}

/* 3. Target the text editor content (paragraph) inside the card on hover and change its color to white */
.servicios-card:hover .elementor-widget-text-editor p {
    color: #FFFFFF !important;
    transition: color 0.3s ease;
}

/* 4. Target the icon inside the card on hover and change its color to white */
/* This targets both the main icon wrapper and the SVG path, which is often necessary for Elementor icons */
.servicios-card:hover .elementor-icon,
.servicios-card:hover .elementor-icon svg,
.servicios-card:hover .elementor-icon svg path {
    fill: #FFFFFF !important; /* 'fill' is for SVG icons */
    color: #FFFFFF !important; /* 'color' is for font icons */
    transition: fill 0.3s ease, color 0.3s ease;
}

/* Chevron en cada categoría */
.categorias-blog-idf .cat-item{
  position: relative;
  padding-left: 18px; /* espacio para el chevron */
}

.categorias-blog-idf .cat-item::before{
  content: "›";               /* chevron */
  position: absolute;
  left: 0;
  top: 0.1em;
  color: #EF4123;             /* cambia el color */
  font-size: 18px;
  line-height: 1;
}

@media (max-width: 767px){
  .justify-center-slider{
    text-align: center !important;
  }
}

/* Vertically center the Polylang flag inside the header menu */
.hfe-creative-menu .lang-item > a{
  display: inline-flex;
  align-items: center;
}







