/* ESTILOS GENERALES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
   font-family: 'Poppins', sans-serif, -apple-system,sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #fdfdfd 0%, #f0f8ff 100%);
}

/* HERO PRINCIPAL */


.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    padding: 3rem 2rem;
    text-align: center;

    background:
    linear-gradient(rgba(255,255,255,0.92),
    rgba(255,255,255,0.80)),
    url("portada.jpeg");

    background-size: 1700px;
    background-position: center;
    background-repeat: no-repeat;
}
.hero-contenido {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-logo {
    display: block;
    width: 180px;
    height: 180px;
    margin: 0 auto;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}





.hero h2 {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: #cd6e8c;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero p {
    font-size: 1.15rem;
    color: #555;
    margin-bottom: 2rem;
}
.boton {
    display: inline-block;
    background: linear-gradient(135deg, #ff9a9e, #de6ab9);
    color: white;
    padding: 1rem 2rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.boton:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* HEADER MEJORADO */
/* HEADER */
header {
    background: linear-gradient(
        135deg,
        #ff9a9e 0%,
        #de6ab9 50%,
        #fad0c4 100%
    );
    height: auto;
    width: 100%;
    color: white;
    text-align: center;
    padding: 20px 15px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(255, 154, 158, 0.3);
    transition: transform 0.3s ease;
}

header h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.subtitulo {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
}

nav a {
    color: white;
    text-decoration: none;
    background: rgba(255,255,255,0.2);
    padding: 0.7rem 1rem;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

nav a:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
/* MAIN */
main {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem;
}

section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.8);
}

section h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #e86a8b;
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #ff9a9e, #fad0c4);
    border-radius: 2px;
}

/* TARJETAS */
.tarjetas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.tarjeta {
    background: linear-gradient(135deg, #fff7fa 0%, #fff0f5 100%);
    border-radius: 15px;
    padding: 1.5rem;
    border: 2px solid #ffe4e6;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.tarjeta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #ff9a9e, #de6ab9);
}

.tarjeta:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(232, 106, 139, 0.15);
}

.tarjeta h3 {
    color: #bc5b7a;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* GALERÍA CORREGIDA */
.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.gato {
    background: linear-gradient(135deg, #fff7fa 0%, #fff0f5 100%);
    border-radius: 15px;
    padding: 1.2rem;
    text-align: center;
    border: 2px solid #ffe4e6;
    transition: all 0.3s ease;
}

.gato:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(232, 106, 139, 0.2);
}

.foto {
    width: 100%;
    height: 160px;
    border-radius: 12px;
    margin-bottom: 1rem;
    background-size: cover;
    background-position: center;
    border: 3px solid rgba(255,255,255,0.8);
}

.gato1 { background-image: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); }
.gato2 { background-image: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }
.gato3 { background-image: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }

.gato h3 {
    color: #c14d71;
    margin-bottom: 0.5rem;
}

/* LISTAS */
#colabora ul, #contacto ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

#colabora li, #contacto li {
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
}

.aviso {
    margin-top: 1.5rem;
    font-style: italic;
    color: #a33e5c;
    background: #fff5f8;
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid #e86a8b;
}

#contacto a {
    color: #e86a8b;
    font-weight: 500;
    text-decoration: none;
}

#contacto a:hover {
    color: #c14d71;
    text-decoration: underline;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 2rem;
    color: #666;
    background: white;
    margin-top: 3rem;
    border-top: 1px solid #eee;
}

/* SECCIÓN ADOPCIÓN */

#adopcion iframe,
#Adopción iframe {
    width: 100%;
    min-height: 950px;
    border: none;
    border-radius: 18px;
    margin-top: 1.5rem;
    background: white;
    box-shadow: 0 10px 30px rgba(232, 106, 139, 0.12);
}

#Adopción p {
    margin-bottom: 1rem;
    color: #555;
    font-size: 1.05rem;
}

#Adopción .aviso {
    text-align: center;
    font-weight: 500;
    font-size: 1.05rem;
}

#Adopción h2 {
    color: #e86a8b;
}

header h1 {
  font-size: 32px; /* tamaño normal */
}

@media (max-width: 768px) {


    .hero {
        min-height: 40vh;
        padding: 2rem 1rem;

        background:
        linear-gradient(
            rgba(255,255,255,0.84),
            rgba(255,255,255,0.84)
        ),
        url("portada.jpeg");

        background-size: 450px;
        background-position: center 10px;
        background-repeat: no-repeat;
    }

    .hero-logo {
        width: 120px;
        height: 120px;
    }

    .hero h2 {
        font-size: 1.1rem;
        line-height: 1.4;
    }

    .hero p {
        font-size: 0.95rem;
        padding: 0 10px;
    }

    .boton {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
  header nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  header nav a {
    flex: 0 0 calc(33.33% - 8px);
    box-sizing: border-box;
    text-align: center;
    white-space: nowrap;
    padding: 10px 8px;
    font-size: 13px;
  }
}