/* ========================= */
/* TU CSS ORIGINAL DEL FONDO */
/* ========================= */

html {
  height:100%;
}

body {
  margin:0;
}

body, .box span {
    font-family: 'Coolvetica', sans-serif;
    font-size: 30px;
}

.bg {
  animation:slide 3s ease-in-out infinite alternate;
  background-image: linear-gradient(-60deg, #04474b 50%, #e4981e 50%);
  bottom:0;
  left:-50%;
  opacity:.5;
  position:fixed;
  right:-50%;
  top:0;
  z-index:-1;
}

.bg2 {
  animation-direction:alternate-reverse;
  animation-duration:4s;
}

.bg3 {
  animation-duration:5s;
}

@keyframes slide {
  0% { transform:translateX(-25%); }
  100% { transform:translateX(25%); }
}

/* ========================= */
/* RECUADROS CON IMAGEN */
/* ========================= */
.container {
    position: relative;
    z-index: 10; /* Encima del fondo */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90vh;
    gap: 40px;
}

.box {
    margin-top: 1px !important;
    width: 350px;
    height: 350px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 22px;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.3);

    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

/* Oscurecido */
.box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    z-index: 1;
    transition: background 0.3s ease;
}

/* Texto */
.box span {
    position: relative;
    z-index: 2;
}

/* Hover */
.box:hover {
    transform: scale(1.15);
}

.box:hover::before {
    background: rgba(0,0,0,0.35);
}

/* ========================= */
/* RESPONSIVE */
/* ========================= */

/* Tablets (pantallas medianas) */
@media (max-width: 900px) {
    .container {
        flex-wrap: wrap;
        gap: 20px;
        padding: 20px;
        height: auto;
        margin-top: 60px;
    }

    .box {
        width: 220px;
        height: 220px;
    }
}

/* Móviles (pantallas pequeñas) */
@media (max-width: 600px) {
 .contacto-btn {
        margin: 25px auto 40px; /* más separación abajo */
        font-size: 20px;
    }
    .container {
        flex-direction: column;
        height: auto;
        gap: 25px;
        padding: 40px 0;
    }
    
    .box {
        width: 85vw;      /* Ocupa casi todo el ancho */
        height: 200px;    /* Más bajo para móvil */
        font-size: 18px;
    }

    .box:hover {
        transform: scale(1.05); /* Hover más suave en móvil */
    }
}

/* ========================= */
/* BOTÓN DE CONTACTO REDONDO */
/* ========================= */


.contacto-btn {
    display: block;
    
    width: fit-content;
    margin: 20px auto 10px; /* escritorio: poco margen arriba y abajo */

    background: #ff7a00;
    color: white;
    font-family: 'Coolvetica', sans-serif;
    font-size: 32px;

    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;

    box-shadow: 0 0 12px rgba(0,0,0,0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    opacity: 0.9;
}




.contacto-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 18px rgba(0,0,0,0.6);
    opacity: 1;
}
