/* =============================
    RESET
============================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =============================
    LAYOUT / GRID
============================= */
.gridp {
    width: 100%;
    display: grid;
    background-color: rgb(255, 255, 255);
    padding: 0px;
    grid-template-areas:
        "header"
        "main"
        "footer";
}

/* HEADER */
.header {
    display: flex;
    justify-content: center;
    grid-area: header;
    background-color: black;
    backdrop-filter: blur(10px); /* Difumina lo que está detrás */
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.591); /* Color semitransparente */
    position: fixed;
    width: 100%;
    z-index: 10;
    
}

.secciones{
    display: flex;
    justify-content: center;
    text-align: center;
    gap: 1rem;
    padding-top: 5rem;
}
.secciones a{
    text-decoration: none;
    cursor: pointer;
    position: relative;
    padding: 10px 24px;
    font-size: 18px;
    color: rgb(0, 0, 0);
    border: 2px solid rgb(193, 163, 98);
    border-radius: 34px;
    background-color: transparent;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    overflow: hidden;
}

.ubi{
  color: rgb(193, 163, 98) ;
  background-color:rgb(193, 163, 98) ;
}
a::before {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 50px;
    height: 50px;
    border-radius: inherit;
    scale: 0;
    z-index: -1;
    background-color: rgb(200, 107, 31);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

a:hover::before {
    scale: 3;
}

a:hover {
    color: #212121;
    scale: 1.1;
    box-shadow: 0 0px 20px rgba(209, 121, 21, 0.4);
}

a:active {
    scale: 1;
}


/*MAIN*/
.main{
    margin-top: 7.7rem;
    grid-area: main;
    background-color: rgb(255, 255, 255);
}
.card0{
    display: grid;
    background-image: url("img/ia.jpeg") ;
    background-size: cover;      /* Ajusta la imagen al div */
    background-position: center; /* Centra la imagen */
    background-repeat: no-repeat;/* Evita que se repita */
    height: 620px;
    text-align: center;
    align-items: center;
}
.textoia{
    backdrop-filter: blur(10px); /* Difumina lo que está detrás */
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.2); /* Color semitransparente */
    padding: 20px;
}
.card2{
    height: 660px;
    background-color: rgb(255, 255, 255);
}
.card2 h2{
    text-align: center;
    padding-top: 1rem;
    color: chocolate;
    justify-content: center;
}
.containerbox{
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}
.boxes{
  width: 300px;
  height: 400px;
  border-radius: 8px;
  background: linear-gradient(145deg, #333, #000);
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.4em;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.boxes p {
  flex: 1;
  overflow: hidden;
  cursor: pointer;
  border-radius: 8px;
  transition: flex 0.5s;
  display: flex;
  justify-content: center;
  align-items: center;
}
.box1{
    background-image: url("img/crosbancIA.jpeg");
    background-size: cover;      /* Ajusta la imagen al div */
    background-position: center; /* Centra la imagen */
    background-repeat: no-repeat;/* Evita que se repita */
}
.box2{
    background-image: url("img/carpaIA.jpeg");
    background-size: cover;      /* Ajusta la imagen al div */
    background-position: center; /* Centra la imagen */
    background-repeat: no-repeat;/* Evita que se repita */
}
.box3{
    background-image: url("img/inflaIA.jpeg");
    background-size: cover;      /* Ajusta la imagen al div */
    background-position: center; /* Centra la imagen */
    background-repeat: no-repeat;/* Evita que se repita */
}

.boxes p:hover {
  flex: 4;
}

.boxes p span {
  padding: 0.2em;
  text-align: center;
  transform: rotate(-0deg);
  transition: transform 0.5s;
  text-transform: uppercase;
  color: #000000;
  background-color: aliceblue;
  border-radius: 10PX;
  font-weight: "bold";
  letter-spacing: 0.1em;
  position: relative;
  z-index: 1;
}

.boxes p:hover span {
  transform: rotate(0);
}

.boxes p::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  z-index: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  opacity: 0;
}

.boxes p:hover::before {
  opacity: 1;
}

/*FOOTER*/
.footer{
    color: rgb(0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background-color: rgba(61, 61, 61, 0.526);
    grid-area: footer;
    text-align: center;
    margin-top: 3rem;
}
.fot{
    text-align: center;
    align-items: center;
}


.whatsapp {
    display: block;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    z-index: 9999;
}

.whatsapp img {
    width: 100%;
    height: auto;
}



/*GALERIA*/

:root{
  --gap:16px;
  --radius:12px;
  --shadow:0 6px 18px rgba(0,0,0,0.1);
}

*{
  box-sizing:border-box;
}

body{
  margin:0;
  padding:32px;
  font-family:Arial, Helvetica, sans-serif;
  background:#ffffff;
}

h2{
  text-align:center;
  margin-bottom:24px;
}

/* --- CONTENEDOR DE GALERÍA --- */
.hs{
    padding-top: 2rem;
}
.gallery{
  display:flex;
  flex-wrap:wrap;
  gap:var(--gap);
  justify-content:center;
  max-width:1200px;
  margin:auto;
  padding-top: 2rem;
}

/* --- TARJETA --- */
.card{
  background:rgb(211, 105, 33);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
  transition:transform .25s ease, box-shadow .25s ease;

  flex:1 1 calc(100% - var(--gap));
  max-width:calc(100% - var(--gap));
}

.card:hover{
  transform:translateY(-6px);
  box-shadow:0 18px 40px rgba(0,0,0,0.15);
}

.card img{
  width:100%;
  height:200px;
  object-fit:cover;
}

.card-content{
  padding:14px;
}

.title{
  font-weight:600;
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 1rem;
}

.desc{
  font-size:.9rem;
  color:#555;
}

/* Responsive */
@media (min-width:480px){
  .card{
    flex:1 1 calc(50% - var(--gap));
    max-width:calc(50% - var(--gap));
  }
}

@media (min-width:900px){
  .card{
    flex:1 1 calc(33.33% - var(--gap));
    max-width:calc(33.33% - var(--gap));
  }
}

@media (min-width:1200px){
  .card{
    flex:1 1 calc(25% - var(--gap));
    max-width:calc(25% - var(--gap));
  }
}


/*EMPRESA*/
ul{
    color: white;
    font-size: 1rem;
    padding: 1rem;
}
.imgem{
    padding: 2rem;
    height: 20rem;
    justify-content: center;

}
.imgem img{
  border: 2px solid rgb(201, 140, 27);
  width: 15rem;
}

.card3{
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(1,1fr);
    text-align: center;
}

