/* ==== ESTILOS GENERALES ==== */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    color: #333;
}

header,
footer {
    background-color: #333;
    color: white;
    padding: 1em;
    text-align: center;
}

/* ==== ENCABEZADO ==== */
.encabezado {
    background-color: #2d2d2d;
    color: white;
    padding: 1em 0;
}

.contenedor-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
    flex-wrap: wrap;
}

.logo {
    height: 160px;
}

.texto-header {
    text-align: center;
}

/* ==== MENÚ PRINCIPAL ==== */
nav {
    background-color: #555;
    padding: 0.8em;
    text-align: center;
}

nav a {
    color: white;
    margin: 0 1em;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #ffcc00;
}

/* ==== SECCIONES ==== */
section {
    padding: 2em;
}

/* ==== GALERÍA ==== */
.gallery img {
    width: 200px;
    margin: 10px;
    border-radius: 10px;
}

/* ==== BUSCADOR ==== */
.buscador {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 30px;
    flex-wrap: wrap;
}

.buscador a {
    text-decoration: none;
    color: #333;
    width: 200px;
    text-align: center;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

.buscador a:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

.buscador img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.buscador span {
    display: block;
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    background: #f0f0f0;
}

/* ==== SECCIÓN DE CONTACTO CON REDES ==== */
.contacto-redes {
    background-color: #777;
    padding: 1em;
    text-align: center;
}

.contacto-redes .info-contacto {
    display: flex;
    justify-content: center;
    gap: 2em;
    flex-wrap: wrap;
    align-items: center;
}

.contacto-redes a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5em;
    transition: transform 0.2s ease;
}

.contacto-redes a:hover {
    transform: scale(1.05);
}

.contacto-redes img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

/* ==== VIDEO ==== */
.video-presentacion {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2em 0;
    background-color: #f4f4f4;
}

.video-contacto {
    width: 100%;
    max-width: 1000px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

/* ==== SECCIÓN CONTACTO TARJETAS ==== */
.seccion-contacto {
    padding: 40px 20px;
    background-color: #f2f2f2;
    text-align: center;
}

.seccion-contacto h2 {
    font-size: 2em;
    margin-bottom: 30px;
    color: #333;
}

.contacto-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.contacto-card {
    background-color: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 260px;
    text-align: center;
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.contacto-card:hover {
    transform: translateY(-8px);
}

.contacto-card img {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
}

/* ==== SERVICIOS ==== */
.servicios {
    padding: 50px 20px;
    text-align: center;
    background-color: #f9f9f9;
}

.servicios h2 {
    font-size: 2.2em;
    margin-bottom: 40px;
    color: #2c2c2c;
}

.contenedor-servicios {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.servicio {
    background-color: #fff;
    border-radius: 15px;
    width: 250px;
    padding: 15px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.servicio:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 18px rgba(0,0,0,0.2);
}

.servicio img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: block;
    margin: 20px auto 15px auto;
}

.servicio h3 {
    font-size: 1.2em;
    margin: 10px 0;
    font-weight: bold;
    text-transform: uppercase;
    color: #333;
}

.servicio p {
    font-size: 0.95em;
    color: #666;
    margin: 0;
}

/* ==== MODAL VIDEO ==== */
.modal {
    display: none;              /* oculto al inicio */
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);

    /* FLEX para centrar */
    justify-content: center;
    align-items: center;
}


.modal-contenido {
    background: white;
    padding: 15px;
    border-radius: 12px;
    max-width: 700px;
    width: 90%;
    position: relative;
}

.cerrar {
    position: absolute;
    top: 8px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

/* ==== FOOTER ==== */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 18px;
    margin-top: 50px;
    font-size: 0.9em;
}

/* ==== MISIÓN Y NOSOTROS ==== */
.mision {
    padding: 4em 2em;
    text-align: center;
    background-color: #f9f9f9;
}

.mision .titulo {
    font-size: 2.2em;
    margin-bottom: 1em;
    color: #222;
    font-weight: bold;
}

.contenedor-mision {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2em;
}

.tarjeta {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 2em;
    max-width: 350px;
    text-align: center;
    transition: transform 0.3s ease;
}

.tarjeta:hover {
    transform: translateY(-5px);
}

.tarjeta img {
    width: 80px;
    margin-bottom: 1em;
}

.tarjeta h3 {
    font-size: 1.3em;
    color: #333;
    margin-bottom: 0.5em;
}

.tarjeta p {
    font-size: 0.95em;
    color: #555;
    line-height: 1.5em;
}

.nosotros-section {
    padding: 50px 0;
    background-color: #f9f9f9;
    text-align: center;
}

.nosotros-card {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px 40px;
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1em;
    color: #333;
    line-height: 1.6;
}

.titulo-seccion {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 30px;
    color: #222;
}

/* ==== ANIMACIONES ==== */
.animar-entrada {
    opacity: 0;
    transform: translateY(20px);
    animation: aparecer 1s ease-out forwards;
}

.animar-entrada:nth-of-type(1) { animation-delay: 0.2s; }
.animar-entrada:nth-of-type(2) { animation-delay: 0.6s; }

@keyframes aparecer {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==== RESPONSIVE ==== */
@media (max-width: 768px) {
    nav a {
        display: block;
        margin: 0.5em 0;
    }

    .contenedor-header {
        flex-direction: column;
    }

    .logo {
        height: 120px;
    }

    .contacto-redes .info-contacto {
        flex-direction: column;
        gap: 1em;
    }

    .contacto-card, .servicio {
        width: 90%;
        max-width: 100%;
    }

    .contenedor-servicios,
    .contacto-grid {
        flex-direction: column;
        gap: 20px;
    }

    .modal-contenido {
        width: 95%;
    }

    section {
        padding: 1em;
    }
}

/* ==== GALERÍAS ==== */
.galeriacocina,
.galeriabaño,
.galeriaisla,
.galeriarep,
.catalogo {
  padding: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

.galeriacocina,
.galeriabaño,
.galeriaisla,
.galeriarep {
  column-count: 4;
  column-gap: .5rem;
}

.galeriacocina img,
.galeriabaño img,
.galeriaisla img,
.galeriarep img {
  width: 100%;
  margin-bottom: .5rem;
  border-radius: .5rem;
  display: block;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  -moz-column-break-inside: avoid;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform .3s ease, box-shadow .3s ease;
}

.galeriacocina img:hover,
.galeriabaño img:hover,
.galeriaisla img:hover,
.galeriarep img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* Responsivo galerías */
@media (max-width: 992px) {
  .galeriacocina, .galeriabaño, .galeriaisla, .galeriarep { column-count: 3; }
}
@media (max-width: 640px) {
  .galeriacocina, .galeriabaño, .galeriaisla, .galeriarep { column-count: 2; }
}
@media (max-width: 420px) {
  .galeriacocina, .galeriabaño, .galeriaisla, .galeriarep { column-count: 1; }
}

/* ==== CATÁLOGO ==== */
.catalogo {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.item {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.2s ease;
}

.item:hover {
  transform: scale(1.05);
}

.item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.nombre {
  padding: 0.8rem;
  font-size: 1rem;
  color: #333;
  font-style: italic;
}
