/* ==========================
   CATALOGO SECTION
========================== */

.catalogo-section {
    padding: 120px 0 120px;
    background: #fffbf8;
}

.catalogo-title {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-weight: 800; /* ExtraBold */
    font-size: 100px; /* ESPECIFICACIÓN */
    line-height: 1;
    letter-spacing: 2px;
    color: #223975;
    margin-bottom: 80px;
}

/* GRID */
.catalogo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-content: center;   /* centra todo */
    gap: 60px 60px;
}

/* TARJETA */
.catalogo-item {
    background: #223975;
    color: white;

    width: 335px;          /* ESPECIFICACIÓN */
    height: 184px;         /* ESPECIFICACIÓN */

    border-radius: 32px;   /* más cercano al diseño */

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 29px;       /* ESPECIFICACIÓN */
    line-height: 1.15;

    text-decoration: none;

    box-shadow: 0 18px 30px rgba(0,0,0,0.18);
    transition: .3s ease;
}

.catalogo-item {
    transition: 
        background .3s ease,
        box-shadow .3s ease,
        transform .3s ease;
}

/* Hover iluminado */
.catalogo-item:hover {
    background: #009ee2; /* azul marca */
    transform: translateY(-8px);
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.25),
        0 0 25px rgba(31,160,209,0.55); /* glow azul */
}


/* ==========================
   RESPONSIVE LIMPIO
========================== */

/* Desktop */
@media (max-width: 1400px) {
    .catalogo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablets (incluye iPad Pro) */
@media (max-width: 1200px) {
    .catalogo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet */
@media (max-width: 992px) {

    .catalogo-section{
        padding: 120px 0 120px;
    }

    .catalogo-grid {
        grid-template-columns: repeat(2, 1fr); /* 🔥 2 por fila */
        gap: 40px;
    }

    .catalogo-title {
        font-size: 60px;
    }
}

/* Móvil */
@media (max-width: 576px) {
    .catalogo-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .catalogo-item {
        height: auto;
        width: 100%;
        padding: 30px 20px;
        font-size: 22px;
    }

    .catalogo-title {
        font-size: 40px;
    }
}

/* ==========================
   CATEGORIA VIEW
========================== */

.categoria-section {
    padding: 120px 0 120px;
    background: #fffbf8;
}

.categoria-title {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 100px;
    color: #1fa0d1;
    text-align: center;
    margin-bottom: 60px;
    line-height: 1.05;
}

/* ==========================
   LAYOUT PRINCIPAL
========================== */

.categoria-layout{
  display: block;
}

/* GRID PRINCIPAL (desktop: 3 cols) */
.categoria-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: start;
}

/* Solo en desktop la primera horizontal ocupa 2 columnas */
@media (min-width: 1201px){
  .anuncio-horizontal:first-child{
    grid-column: span 1;
  }
}

/* Tablet */
@media (max-width: 1200px){
  .categoria-grid{
    grid-template-columns: repeat(2, 1fr);
  }

  .anuncio-horizontal{
    grid-column: span 2; /* ocupa la fila completa */
  }
}

/* Mobile */
@media (max-width: 768px){
  .categoria-grid{
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .anuncio-horizontal{
    grid-column: span 1; /* normal */
  }
}

/* Vertical ocupa 1 columna */
.anuncio-vertical{
  grid-column: span 1;
}

/* ==========================
   CARD ESTILO REVISTA
========================== */

.anuncio-card{
  background: #ffffff;
  border-radius: 32px;
  padding: 20px;
  box-shadow: 0 25px 50px rgba(0,0,0,.18);
  transition: .25s ease;
}

.anuncio-card:hover{
  transform: translateY(-6px);
}

/* ==========================
   IMAGEN (con marco blanco)
========================== */

.anuncio-img{
  background: #ffffff;
  border-radius: 24px;
  padding: 10px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 12px 50px rgba(0,0,0,.15);
}

/* Aspect ratios por tipo */
.anuncio-vertical .anuncio-img{
  aspect-ratio: auto;
}

.anuncio-horizontal .anuncio-img{
  aspect-ratio: 16 / 9;
}

.anuncio-img img{
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  display: block;
}

/* ==========================
   CONTACTO
========================== */

.anuncio-contacto {
  text-align: center;
  font-weight: 800;
  font-size: 20px;   /* más impactante */
  color: #223975;
  line-height: 1.2;
}

.nombre-linea {
  display: block;
}


/* Línea azul debajo */
.anuncio-divider{
  height: 2px;
  width: 70%;
  margin: 0 auto 18px;
  background: #2f4583;
  border-radius: 2px;
}

/* ==========================
   ICONOS
========================== */

.anuncio-icons{
  display: flex;
  justify-content: center;
  gap: 18px;
}

.icon-circle{
  width: 62px;
  height: 62px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 18px rgba(0,0,0,.20);
  transition: .2s ease;
  text-decoration: none;
}

.icon-circle img{
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.icon-circle:hover{
  transform: translateY(-4px);
  box-shadow: 0 14px 25px rgba(0,0,0,.28);
}

/* ==========================
   RESPONSIVE
========================== */

/* Tablet: 2 columnas, horizontal ocupa fila completa */
@media (max-width: 1200px){
  .categoria-grid{
    grid-template-columns: repeat(2, 1fr);
  }
  .anuncio-horizontal{
    grid-column: span 2;
  }
}

/* Mobile: 1 columna */
@media (max-width: 768px){
  .categoria-title{
    margin-top: 10px;
    font-size: 2.7rem;
  }

  .categoria-grid{
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .anuncio-horizontal{
    grid-column: span 1;
  }

  .icon-circle{
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 576px){
  .categoria-section{
    padding: 100px 0 90px;
  }
}