/* =========================================================
   BASE
   ========================================================= */

:root {
    --jdg-rojo: #c3322b;
    --jdg-rojo-claro: #e14a3b;
    --jdg-azul: #1e3a8a;
    --texto-principal: #111827;
    --texto-secundario: #374151;
    --gris-suave: #eee;
}

* {
    box-sizing: border-box;
}


/* =========================================================
   TÍTULOS DE SECCIÓN (USO GENERAL)
   ========================================================= */






/* =========================================================
   SECCIÓN TALLER – CASILLAS
   ========================================================= */

.taller-casillas {
    max-width: 1100px;
    margin: 0 auto 40px;
    padding: 32px;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
    background: #fff;
}

.taller-contenido {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}

/* Vídeo / imagen */
.taller-video-wrapper,
.taller-foto {
    margin-bottom: 20px;
}

.taller-video-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.video-taller,
.taller-foto img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.taller-foto {
    border: 1px solid var(--gris-suave);
    border-radius: 12px;
    padding: 0;
}


/* Texto del taller */
.taller-intro {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 14px;
    color: var(--texto-secundario);
}

.taller-puntos {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 16px;
}

.taller-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.taller-item .icono {
    font-size: 22px;
    flex-shrink: 0;
    color: var(--jdg-rojo);
}

.taller-item .texto h3 {
    font-size: 15px;
    margin: 0 0 4px;
    font-weight: 600;
    color: var(--texto-principal);
}

.taller-item .texto p {
    font-size: 14px;
    margin: 0;
    color: #555;
    line-height: 1.5;
}


/* CTA taller */
.taller-cta {
    border-top: 1px solid var(--gris-suave);
    padding-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

.taller-cta p {
    margin: 0;
    font-size: 14px;
    color: #444;
}

.btn-presupuesto-taller {
    display: inline-block;
    padding: 9px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--jdg-rojo), var(--jdg-rojo-claro));
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    transition: transform 0.08s ease-out, box-shadow 0.08s ease-out;
    white-space: nowrap;
}

.btn-presupuesto-taller:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

.btn-presupuesto-taller:active {
    transform: scale(0.97);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}


/* =========================================================
   HERO SERVICIOS
   ========================================================= */

.hero-servicio {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 40px;
}

.hero-imagen img {
    display: block;
    width: 100%;
    max-width: 420px;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.16);
    object-fit: cover;
}

.breadcrumb-servicio {
    font-size: 13px;
    color: #777;
    margin-bottom: 6px;
}


/* =========================================================
   BOTÓN WHATSAPP AVANZADO
   ========================================================= */

.btn-wa-avatar {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
}

.btn-wa-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-wa-online-dot {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #25D366;
    border: 2px solid #fff;
}

.btn-wa-texto {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.btn-wa-texto-principal {
    font-size: 13px;
    font-weight: 600;
}

.btn-wa-texto-secundaria {
    font-size: 11px;
    opacity: 0.95;
}


/* =========================================================
   RESPONSIVE – MOBILE FIRST
   ========================================================= */

@media (max-width: 768px) {


    .taller-casillas {
        margin: 0 10px 30px;
        padding: 18px 14px 24px;
    }
}

@media (max-width: 360px) {
    .btn-wa-texto-principal {
        font-size: 12px;
    }

    .btn-wa-texto-secundaria {
        font-size: 10px;
    }
}


/* === EFECTO SOLDADURA EN ROJO INDUSTRIAL === */

.efecto-soldadura .texto-soldadura {
    position: relative;
    display: inline-block;
    padding-bottom: 4px;
}
/* Contenedor de la palabra */
.efecto-soldadura .texto-soldadura {
    position: relative;
    display: inline-block;
    padding-bottom: 4px;
}

/* Línea de soldadura roja */
.efecto-soldadura .texto-soldadura::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg,
        rgba(255, 120, 120, 1),
        rgba(255, 0, 0, 1),
        rgba(195, 50, 43, 1)
    );
    border-radius: 999px;
    box-shadow: 0 0 10px rgba(255, 70, 70, 0.9);
    animation: soldar-linea-roja 1.6s ease-out forwards;
}

/* Chispas que saltan */
.efecto-soldadura .texto-soldadura::before {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;

    /* varias chispas en diferentes posiciones */
    background: #ffffff;
    box-shadow:
        0 0 8px rgba(255, 255, 255, 0.9),
        4px -2px 0 0 rgba(255, 200, 200, 0.9),
        -3px -3px 0 0 rgba(255, 230, 230, 0.8),
        2px -6px 0 0 rgba(255, 255, 255, 0.9);

    animation: chispa-salto 1.6s ease-out forwards;
}

/* Línea que se “suelda” de izquierda a derecha */
@keyframes soldar-linea-roja {
    0%   { width: 0; opacity: 1; }
    85%  { width: 100%; opacity: 1; }
    100% { width: 100%; opacity: 0.9; box-shadow: 0 0 0 rgba(0,0,0,0); }
}

/* Chispas que suben y avanzan (como soldando) */
@keyframes chispa-salto {
    0%   { transform: translateX(0) translateY(0); opacity: 0; }
    10%  { opacity: 1; }
    40%  { transform: translateX(25%) translateY(-6px); opacity: 1; }
    80%  { transform: translateX(100%) translateY(-14px); opacity: 1; }
    100% { transform: translateX(100%) translateY(-16px); opacity: 0; }
}


/* ================================
   INTRO SECCIÓN (texto + leer más)
   ================================ */

.intro-seccion{
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: #222;
 
}

.intro-seccion strong{
  font-weight: 800;
}

/* Si ya tienes .subrayo-azul no lo toco.
   Si no existe, descomenta este bloque:

.subrayo-azul{
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}
*/

/* --------- DETAILS (móvil) --------- */
.intro-mas{
  margin-top: 10px;
  max-width: 72ch;
}

.intro-mas summary{
  cursor: pointer;
  font-weight: 800;
  user-select: none;
  list-style: none; /* quita el marcador en algunos navegadores */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #111;
}

/* Quita el triangulito default (Chrome/Safari) */
.intro-mas summary::-webkit-details-marker{
  display: none;
}

/* Flecha custom (sin iconos externos) */
.intro-mas summary::after{
  content: "›";
  display: inline-block;
  transform: rotate(90deg);
  transition: transform .2s ease;
  font-size: 18px;
  line-height: 1;
}

/* Al abrir, rota */
.intro-mas[open] summary::after{
  transform: rotate(-90deg);
}

/* Texto interno del details */
.intro-mas p{
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: #333;
}

/* Desktop: oculta el details (si quieres que en PC se quede solo el párrafo) */
@media (min-width: 768px){
  .intro-mas{ display: none; }
  .intro-seccion{ font-size: 16px; }
}

/* Móvil: ajusta tamaño para lectura */
@media (max-width: 767.98px){
  .intro-seccion{ font-size: 14.5px; }
}
