/* components/threePhotos/threePhotos.css */

/* ================================
   Variables de diseño
   ================================ */
   :root {
    --tp-gap:             32px;
    --tp-radius:          12px;
    --tp-shadow:          0 8px 24px rgba(0, 0, 0, 0.15);
    --tp-primary:         #34495e;    /* Azul grisáceo */
    --tp-accent:          #e74c3c;    /* Rojo vivo */
    --tp-bg-section:      #ecf0f1;    /* Gris muy claro */
    --tp-text-primary:    #2c3e50;    /* Gris oscuro */
    --tp-text-secondary:  #7f8c8d;    /* Gris medio */
    --tp-max-width:       1200px;
  }
  
  /* ================================
     Sección full-width con fondo
     ================================ */
  .threePhotos_fullWidth {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background: var(--tp-bg-section);
    padding: var(--tp-gap) 0;
  }
  
  /* ================================
     Contenedor interno centrado
     ================================ */
  .threePhotosContainer {
    max-width: var(--tp-max-width);
    margin: 0 auto;
    padding: 0 var(--tp-gap);
    box-sizing: border-box;
    display: grid;
    gap: var(--tp-gap);
    text-align: center;
    font-family: 'Segoe UI', Tahoma, sans-serif;
  }
  
  /* ================================
     Título / Enunciado estilizado
     ================================ */
  .threePhotos_statement {
    color: var(--tp-text-primary);
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    position: relative;
  }
  .threePhotos_statement::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--tp-accent);
    margin: var(--tp-gap) auto 0;
    border-radius: 2px;
  }
  
  /* ================================
     Grid dinámico de imágenes
     ================================ */
  .threePhotos_images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--tp-gap);
  }
  
  /* ================================
     Tarjeta de imagen con overlay
     ================================ */
  .threePhoto {
    position: relative;
    width: 100%;
    background-size: cover;
    background-position: center;
    border-radius: var(--tp-radius);
    overflow: hidden;
    box-shadow: var(--tp-shadow);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
  }
  .threePhoto::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
  }
  .threePhoto:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.2);
  }
  .threePhoto:hover::before {
    opacity: 1;
  }
  
  /* ================================
     Descripción bajo las fotos
     ================================ */
  .threePhotos_description {
    color: var(--tp-text-secondary);
    font-size: 1.125rem;
    line-height: 1.6;
    margin: var(--tp-gap) auto 0;
    max-width: 800px;
  }
  
  /* ================================
     Variantes de sección
     ================================ */
  #almacenaje-block .threePhotos_fullWidth {
    background-color: #fff3e0;
  }
  #almacenaje-block .threePhotos_statement,
  #almacenaje-block .threePhotos_description {
    color: var(--tp-text-dark, #212121);
  }
  #transporte-block .threePhotos_fullWidth {
    border-top-left-radius: var(--tp-radius);
    border-top-right-radius: var(--tp-radius);
  }
  #tratamiento-block .threePhotos_fullWidth {
    border-bottom-left-radius: var(--tp-radius);
    border-bottom-right-radius: var(--tp-radius);
  }
  
  /* ================================
     Responsive adjustments
     ================================ */
  @media (max-width: 768px) {
    .threePhotos_statement {
      font-size: 2rem;
    }
    .threePhotos_images {
      grid-template-columns: 1fr;
    }
  }
  