@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    background-color: #ffffff;
}

/* ===== HEADER ===== */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

/* ===== LOGO ===== */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 60px;
    height: auto;
}

.logo h1 {
    font-size: 1.3rem;
    color: rgb(0, 0, 0);
    padding: 5px 12px;
    border-radius: 10px;
}

/* ===== MENÚ ===== */
.menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
}

.menu a {
    text-decoration: none;
    background-color: #d32020;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-weight: 600;
    transition: background 0.3s;
}

.menu a:hover {
    background-color: #b81818;
}

/* ===== HAMBURGUESA ===== */
.menu-icon {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: #d32020;
}

#menu-toggle {
    display: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .menu-icon {
        display: block;
    }

    .menu ul {
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 0;
        background-color: #fff7ec;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        border-top: 2px solid #d32020;
        padding: 0;
    }

    #menu-toggle:checked + .menu-icon + .menu ul {
        max-height: 250px;
        transition: max-height 0.4s ease-in;
    }

    .menu ul li {
        text-align: center;
        padding: 10px 0;
    }
}


/* ===== SECCIÓN PRESENTACIÓN ===== */
.presentacion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 80px 50px;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
    background-image: url("img/fondo.png");
    background-size: cover;       /* la imagen cubre toda la sección */
    background-position: center;  /* centrada */
    background-repeat: no-repeat; /* no se repite */

    position: relative;
    overflow: hidden;
}

/* LOGO IZQUIERDA */
.presentacion-logo img {
    width: 500px;
    max-width: 100%;
}

/* TEXTO CENTRO */
.presentacion-texto {
    flex: 1;
    text-align: center;
    padding: 0 30px;
}

.presentacion-texto h2 {
    font-size: 4rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: #000000;
}

.presentacion-texto p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 10px;
    color: #000000;
}

/* GATO DERECHA */
.presentacion-gato img {
    width: 450px;
    max-width: 100%;
    border-radius: 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .presentacion {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }

    .presentacion-logo,
    .presentacion-gato {
        margin-bottom: 20px;
    }
    .presentacion-logo img {
        width: 300px;
        align-items: center;
    }

    .presentacion-texto {
        padding: 0;
    }

    .presentacion-texto h2 {
        font-size: 2rem;
    }

    .presentacion-texto p {
        font-size: 1rem;
    }

    .presentacion-gato img {
        width: 300px;
    }
}


/* ===== SECCIÓN CON IMAGEN DE FONDO ===== */
.imagen-fondo {
    position: relative;
    width: 100%;
    height: 100vh; /* Ocupa toda la altura visible del navegador */
    background-image: url("img/maincon\ grande.png"); /* tu imagen 1920x1080 */
    background-size: cover; /* Ajusta sin deformar */
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Capa semitransparente encima (opcional) */
.overlay {
    background-color: rgba(0, 0, 0, 0.4); /* oscurece ligeramente */
    color: white;
    text-align: center;
    padding: 30px;
    border-radius: 10px;
}

.overlay h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.overlay p {
    font-size: 1.2rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .imagen-fondo {
        background-position: center top; /* En móviles, centra arriba */
    }

    .overlay {
        padding: 20px;
    }

    .overlay h2 {
        font-size: 1.5rem;
    }

    .overlay p {
        font-size: 1rem;
    }
}

/* ===== HISTORIAS DE LAS RAZAS ===== */
.razas-historias {
    background-color: #fff7ec;
    padding: 60px 40px;
    text-align: center;
}

.razas-historias h2 {
    color: #b81818;
    font-size: 2rem;
    margin-bottom: 40px;
    font-weight: 700;
}

/* Contenedor de las razas */
.contenedor-razas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Cada raza */
.raza {
    background-color: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.raza:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.15);
}

/* Imagen */
.raza-img {
    width: 100%;
    max-width: 250px;
    height: auto;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 12px;
}

/* Texto */
.raza h3 {
    color: #000;
    font-size: 1.4rem;
    margin-bottom: 10px;
    border-bottom: 2px solid #d32020;
    display: inline-block;
    padding-bottom: 5px;
}

.raza p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .razas-historias {
        padding: 40px 20px;
    }

    .razas-historias h2 {
        font-size: 1.5rem;
    }

    .raza {
        padding: 20px;
    }

    .raza-img {
        max-width: 200px;
        align-items: center;
    }
}

.raza-img {
    width: 100%;
    max-width: 250px;
    height: auto;
    object-fit: contain;
    margin: 0 auto 15px auto; /* centrado horizontal */
    border-radius: 12px;
    display: block; /* asegura que el margin auto funcione */
}

/* En responsive */
@media (max-width: 768px) {
    .raza {
        text-align: center; /* centra también el texto */
        padding: 20px;
    }

    .raza-img {
        max-width: 220px;
        margin: 0 auto 20px auto; /* centrado y espacio inferior */
    }
}

/* ===== GALERÍA ===== */
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background-color: #fffaf4;
}

.galeria {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(to bottom, #fff8f1, #fff);
}

.galeria h2 {
  font-size: 1.8rem;
  color: #b81818;
  margin-bottom: 20px;
}

.slider {
  position: relative;
  max-width: 450px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  display: none;
  width: 100%;
  height: 100%;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  display: block;
  opacity: 1;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

/* Botones de navegación */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.7);
  border: none;
  font-size: 28px;
  color: #b81818;
  cursor: pointer;
  padding: 10px 16px;
  border-radius: 50%;
  transition: all 0.3s ease;
  user-select: none;
}

.prev:hover,
.next:hover {
  background-color: #b81818;
  color: white;
}

.prev { left: 10px; }
.next { right: 10px; }

/* Responsive */
@media (max-width: 768px) {
  .galeria h2 {
    font-size: 1.4rem;
  }

  .prev, .next {
    font-size: 22px;
    padding: 8px 12px;
  }
}

/* ===== SECCIÓN CONTACTO ===== */
.contacto {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(to bottom, #fff8f1, #fff);
}

.contacto h2 {
  font-size: 2rem;
  color: #b81818;
  margin-bottom: 15px;
}

.contacto p {
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: 1rem;
  color: #444;
}

.redes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.red {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: white;
  border: 2px solid #b81818;
  color: #b81818;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.red i {
  font-size: 1.3rem;
}

.red:hover {
  background: #b81818;
  color: white;
  transform: translateY(-3px);
}

@media (max-width: 600px) {
  .red {
    width: 80%;
    justify-content: center;
    font-size: 0.95rem;
  }

  .redes {
    gap: 15px;
  }
}

/* ===== FOOTER ===== */
.footer {
  background-color: #fff3f3;
  color: rgb(0, 0, 0);
  padding: 50px 20px;
  text-align: center;
}

.footer-contenido {
  max-width: 900px;
  margin: 0 auto;
}

.footer-logo img {
  width: 90px;
  border-radius: 50%;
  margin-bottom: 10px;
}

.footer-logo h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.footer-texto {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-redes {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-redes a {
  color: white;
  font-size: 1.4rem;
  transition: all 0.3s ease;
}

.footer-redes a:hover {
  color: #ffd6d6;
  transform: translateY(-4px);
}

/* Responsive */
@media (max-width: 600px) {
  .footer-logo img {
    width: 70px;
  }
  .footer-logo h3 {
    font-size: 1.1rem;
  }
  .footer-texto {
    font-size: 0.85rem;
  }
}