body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
#btn{
  text-decoration: overline 2px    #042c8c  ;
}
html, body {
    height: 100%;   
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

header {
    background-color: white;
    color: brown;
    padding-bottom: 8px;
    font-family: "Roboto Condensed", serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: 700;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.4);
      
}
nav {
    
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding-top: 20px ;
}

nav a {
    display: flex; 
    align-items: center;
    color: rgb(0, 0, 0);
    text-decoration: none;
}

nav a:hover {
    color: #048dc2  ;
}

nav a img {

    max-width: 160px; 
    height: auto;

}

.btn-flotante {
    animation: aparecer 2s ease-out forwards; 
    position: fixed;
    bottom: 40px;
    right: 40px;
    transition: all 300ms ease 0ms;
    z-index: 99;
}
.btn-flotante img {
    width: 60px;
    height: 60px;
    margin-right: 11%;
    border-radius: 50%;
    box-shadow: 2px 4px 5px rgba(0, 0, 0, 1.5);
    vertical-align: middle;
    border-style: none;
    overflow: clip;
}

.container p{
    font-size: 16px;
}
.container {
    background-image:url(img/f4.svg);
    background-size: cover; 
    background-repeat: no-repeat;
    height: 100%;
    background-position: center; 
    font-family: "Roboto Condensed", sans-serif;
    text-align: center;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    display: flex; 
    justify-content: center; 
    align-items: center;     
}
.container h1{
    font-size: 3vw; 
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    animation: aparecer 2s ease-out forwards; 
  
}

#nosotros{
    border-top:5px solid  #042c8c  ;
}
#nosotros p{
    text-align: center;
    font-family: "Roboto Condensed", serif;
    font-optical-sizing: auto;
    font-style: normal;  
}

#pys{
    border-top:5px solid  #042c8c ;
}

h2{margin-left: 2%;}
 
.aparecer {
    opacity: 1; 
    transform: translateY(0); 
}

.tarjetas-container {
    padding-bottom: 4%;
    display: flex;
    gap: 60px; 
    justify-content: center;
    flex-wrap: wrap; 
}

.tarjeta {
    width: 360px;
    aspect-ratio: 1/0.7;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.tarjeta .img-box {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.tarjeta .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease-in-out;
}

/* Contenido */
.contenido {
    position: relative;
    visibility: hidden;
    text-align: center;
    z-index: 2;
}

/* Efecto hover */
.tarjeta::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid white;
    border-radius: inherit;
    opacity: 0;   
    transition: 0.4s ease-in-out;
}

.tarjeta:hover::after {
    inset: 20px;
    opacity: 1;
}

.tarjeta:hover img {
    filter: grayscale(1) brightness(0.4);
}

.tarjeta:hover .contenido {
    visibility: visible;
    color: white;
    transition: color 0.4s ease-in-out;
}


/* Responsive */
@media (max-width: 768px) {
    .tarjeta {
        width: 100%; /* Ocupar todo el ancho en pantallas chicas */
    }
}



#contacto{
    border-top:3px solid  #042c8c ;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.fila {
    display: flex;
    gap: 40px; /* Espaciado entre columnas */
    align-items: center;
}

.columna {
    display: flex;
    align-items: center;
    gap: 10px; /* Espaciado entre icono y texto */
}

svg {
    text-decoration: none;
    width: 30px; 
    height: 30px;
    color: rgb(0, 0, 0); 
}

.columna span {
    font-size: 16px;
   
}

#ig:hover{
    color: rgb(209, 3, 106);
}
#wpp:hover{
    color: rgb(18, 167, 50);
}
#mail:hover{
    color: rgb(221, 32, 32);
}
@media (max-width: 768px) {
    .fila {
        flex-direction: column;
        gap: 20px;
    }

    .columna {
        justify-content: center;
        text-align: center;
    }
}

#ubicacion{
    border-top:3px solid  #042c8c  ;
}



footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

@media (max-width: 600px) {
    nav {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    nav a {
        margin: 5px 0;
    }
}
@keyframes aparecer {
    0% {
        opacity: 0; /* Empieza invisible */
        transform: translateY(-50px); /* Que baje de arriba */
    }
    100% {
        opacity: 1; /* Termina visible */
        transform: translateY(0); /* Llega a su lugar */
    }
}
