@charset "utf-8";
.titulo-portada{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    font-family: 'Pacifico', cursive;
    font-size: 5rem;
    color: white;
    text-align: center;

    text-shadow:
        3px 3px 10px rgba(0,0,0,0.8),
        0 0 20px rgba(0,0,0,0.6);

    z-index: 10;

    animation: salto 2s infinite ease-in-out;
}

/* Animación de salto */
@keyframes salto {
    0%, 100% {
        transform: translate(-50%, -50%);
    }

    25% {
        transform: translate(-50%, -65%);
    }

    50% {
        transform: translate(-50%, -50%);
    }

    75% {
        transform: translate(-50%, -58%);
    }
}
.portada{
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.portada img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.titulo-portada{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    font-family: 'Pacifico', cursive;
    font-size: 5rem;
    color: white;

    text-align: center;

    text-shadow:
        3px 3px 10px rgba(0,0,0,0.8),
        0 0 20px rgba(0,0,0,0.6);

    z-index: 10;
}
#resultados{
    position:absolute;
    top:60px;
    left:20px;
    width:300px;
    max-height:250px;
    overflow-y:auto;
    background:#fff;
    border-radius:10px;
    box-shadow:0 4px 15px rgba(0,0,0,.2);
    z-index:9999;
}

.resultado-item{
    padding:10px;
    cursor:pointer;
    border-bottom:1px solid #ddd;
}

.resultado-item:hover{
    background:#f0f0f0;
}
.card {
    width: 200px;
    margin: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

/* Imagen dentro de la tarjeta */
.card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Animación al pasar el cursor */
.card:hover {
    transform: scale(1.05); /* agranda la tarjeta */
    box-shadow: 0 8px 20px rgba(0,0,0,0.25); /* sombra más intensa */
}

.card:hover img {
    transform: scale(1.2); /* zoom en la imagen */
}

/* Permite que la imagen se “salga” del marco */
.card img {
    display: block;
    z-index: 1;
}

/* Estilo para el nombre */
.card a.nombre {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s ease;
    background-color: #fff;
    position: relative;
    z-index: 2;
}

.card a.nombre:hover {
    color: #0077cc;
}
.image-click-overlay {
  position:fixed;
  inset:0;
  display:none;
  justify-content:center;
  align-items:center;
  background: radial-gradient(circle at center, rgba(0,0,0,0.25), rgba(0,0,0,0.55));
  z-index:99999;
  overflow:hidden;
  animation:fondoEntrada 0.5s ease;
  backdrop-filter:blur(4px);
}

.mosaico { position:relative; width:100%; height:100%; display:flex; justify-content:center; align-items:center; }
.mosaico img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; animation:zoomElegante 2.2s ease forwards; }
.mosaico-capa { position:absolute; inset:0; background:linear-gradient(rgba(0,0,0,0.05), rgba(0,0,0,0.20)); box-shadow:inset 0 0 60px rgba(0,0,0,0.35); }
.mosaico-texto { position:absolute; bottom:55px; left:50%; transform:translateX(-50%); padding:18px 42px; border-radius:40px; font-size:46px; color:white; font-family:'Cinzel', serif; font-weight:700; text-transform:uppercase; background:rgba(0,0,0,0.28); border:1px solid rgba(255,255,255,0.18); animation:textoGlow 2s infinite alternate; }

/* Animaciones */
@keyframes zoomElegante { from{transform:scale(1.22);opacity:0.2;} to{transform:scale(1);opacity:1;} }
@keyframes fondoEntrada { from{opacity:0;} to{opacity:1;} }
@keyframes textoGlow { from{opacity:0.85;} to{opacity:1;} }
@keyframes mosaicoMovimiento { from{transform:translateY(0px);} to{transform:translateY(85px);} }

body {
    font-family: Arial;
    background: #f5f5f5;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    padding: 20px;
}

.card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

.card:hover {
    transform: scale(1.05);
}

.card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
}

.nombre {
    display: block;
    padding: 10px;
    text-decoration: none;
    font-weight: bold;
    color: black;
}

.nombre:hover {
    background: #999;
    color: white;
}
.hero {
    height: 100vh;
    background: url("AMEALCO.jpeg") no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
}
.overlay h1 {
    color: white;
    font-size: 80px;
    font-style: italic;
    font-family: "Georgia", serif;
    letter-spacing: 3px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}
.overlay h1{
    margin-top: -120px;
}
.overlay h1:hover {
    transform: scale(1.2);
}

.overlay h1 {
    font-family: 'Pacifico', cursive;
}
#resultados{
    width: 300px;
    background: white;
    border-radius: 15px;
    margin-top: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    overflow: hidden;
    position: absolute;
    z-index: 1000;
}

.resultado-item{
    display: block;
    padding: 15px;
    text-decoration: none;
    color: black;
    font-size: 18px;
    transition: 0.3s;
    border-bottom: 1px solid #eee;
}

.resultado-item:hover{
    background: #f2f2f2;
    padding-left: 25px;
}
.topbar{
    position: absolute;
    top: 30px;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 1000;
}

#buscador{
    width: 260px;
    padding: 12px;
    font-size: 16px;
    border-radius: 30px;
    border: none;
    outline: none;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

#resultados{
    width: 260px;
    background: white;
    border-radius: 15px;
    margin-top: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.resultado-item{
    display: block;
    padding: 12px;
    text-decoration: none;
    color: black;
    font-size: 16px;
    transition: 0.3s;
    border-bottom: 1px solid #eee;
}

.resultado-item:hover{
    background: #f2f2f2;
    padding-left: 18px;
}.topbar button{
    margin-top: 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 30px;
    background: white;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: 0.3s;
}

.topbar button:hover{
    transform: scale(1.05);
    background: #399;
}.mapa-btn{
    margin-top: 10px;
    padding: 10px 20px;
    background: white;
    color: black;
    text-decoration: none;
    border-radius: 30px;
    font-size: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: 0.3s;
    text-align: center;
}

.mapa-btn:hover{
    transform: scale(1.05);
    background: #f2f2f2;
}

.seccion-comentarios-corta {
    padding: 30px 20px;
    background-color: #fcfcfc;
    display: flex;
    justify-content: center;
    border-top: 1px solid #eee;
    font-family: sans-serif;
}

.caja-comentario {
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.caja-comentario h3 {
    font-size: 18px;
    color: #444;
    margin-bottom: 15px;
}

.formulario-compacto {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Espacio pequeño entre elementos */
}

.formulario-compacto input,
.formulario-compacto textarea {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background-color: #fff;
    transition: all 0.2s ease;
}

.formulario-compacto input:focus,
.formulario-compacto textarea:focus {
    border-color: #888;
    outline: none;
}

.formulario-compacto textarea {
    resize: none; /* Evita que el usuario lo deforme */
}

.formulario-compacto button {
    background-color: #333; /* Color neutro y elegante */
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease;
}

.formulario-compacto button:hover {
    background-color: #555;
}

/* ======================================= */
/* BUSCADOR */
/* ======================================= */

.buscador-box{

  display:flex;

  justify-content:center;

  align-items:center;

  margin-top:35px;

  margin-bottom:10px;

  position:relative;

}



/* ======================================= */
/* ICONO LUPA */
/* ======================================= */

.buscador-box::after{

  content:"";

  position:absolute;

  right:calc(50% - 240px);

  width:40px;

  height:40px;

  background-image:url("LUPA.PNG");

  background-size:contain;

  background-repeat:no-repeat;

  background-position:center;

  pointer-events:none;

  opacity:0.95;

  filter:
  drop-shadow(0 0 6px rgba(255,255,255,0.35));

}

#buscador::placeholder{

  color:#e2e2e2;

}

#buscador:focus{

  transform:scale(1.03);

  background:
  rgba(255,255,255,0.22);

  box-shadow:
  0 0 22px rgba(255,255,255,0.18);

}

#resultados{
    width: 260px;
    background: white;
    border-radius: 15px;
    margin-top: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: absolute;
    z-index: 1000;
}

.resultado-item{
    display: block;
    padding: 12px;
    text-decoration: none;
    color: black;
    font-size: 16px;
    transition: 0.3s;
    border-bottom: 1px solid #eee;
}

.resultado-item:hover{
    background: #f2f2f2;
    padding-left: 18px;
}
