/* Variables de Colores */
:root {
    --color-primario: #5b3e9a;
    --color-secundario: #f1a35d;
    --color-fondo: #f8f6f0;
    --color-texto: #333333;
    --color-fondo-tarjeta: #ffffff;
}

/* Base y Fuentes */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--color-fondo);
    color: var(--color-texto);
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--color-primario);
}

a {
    text-decoration: none;
    color: var(--color-primario);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-secundario);
}

section {
    padding: 100px 5%;
    position: relative;
    overflow: hidden;
}

/* Encabezado */
.encabezado {
    position: fixed;
    width: 100%;
    top: 0;
    padding: 20px 5%;
    background: rgba(248, 246, 240, 0.9);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 1.8em;
    font-weight: 700;
}

.nav a {
    margin-left: 30px;
    font-weight: 600;
    font-size: 1.1em;
    color: var(--color-texto);
}

.nav a:hover {
    color: var(--color-primario);
}

/* Botones */
.boton-cta {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--color-primario);
    color: #fff;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(91, 62, 154, 0.3);
}
.boton-cta:hover {
    background-color: var(--color-secundario);
    box-shadow: 0 5px 20px rgba(241, 163, 93, 0.4);
    transform: translateY(-3px);
}
.boton-cta-secundario {
    display: inline-block;
    padding: 15px 40px;
    background: none;
    border: 2px solid var(--color-secundario);
    color: var(--color-secundario);
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    border-radius: 50px;
    transition: all 0.3s ease;
}
.boton-cta-secundario:hover {
    background-color: var(--color-secundario);
    color: #fff;
    transform: translateY(-3px);
}

/* --- Sección Hero (Index) --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
    gap: 50px;
    padding-top: 100px;
}
.hero-fondo-forma {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 80%;
    height: 120%;
    background: linear-gradient(45deg, var(--color-fondo), #e0d9c4);
    transform: rotate(20deg);
    border-radius: 50%;
    z-index: -1;
    animation: rotarForma 20s infinite alternate ease-in-out;
}
.hero-contenido {
    text-align: left;
    max-width: 50%;
    z-index: 10;
}
.hero h1 {
    font-size: 3.8em;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}
.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #555;
}
.hero-beneficios {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    font-weight: bold;
    color: var(--color-texto);
}
.hero-beneficios .beneficio i {
    color: var(--color-secundario);
    margin-right: 5px;
}
.hero-perro-imagen {
    position: relative;
    max-width: 45%;
    z-index: 1;
}
.hero-perro-imagen img {
    width: 100%;
    height: auto;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    object-fit: cover;
}

/* --- Quiénes Somos --- */
.nosotros {
    background-color: var(--color-primario);
    color: #fff;
    position: relative;
    padding-bottom: 150px;
}
.nosotros-divisor-arriba {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 150px;
    background-color: var(--color-primario);
    clip-path: polygon(0 100%, 100% 0, 100% 100%, 0 100%);
}
.nosotros-divisor-abajo {
    position: absolute;
    bottom: -100px;
    left: 0;
    width: 100%;
    height: 150px;
    background-color: var(--color-fondo);
    clip-path: polygon(0 0, 100% 100%, 100% 0, 0 0);
}
.nosotros-contenedor {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
    position: relative;
    z-index: 2;
}
.nosotros-imagen img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.nosotros-texto h2 {
    color: #fff;
    font-size: 2.8em;
    margin-bottom: 20px;
}
.nosotros-texto p {
    font-size: 1.1em;
    margin-bottom: 20px;
}
.nosotros-texto ul {
    list-style: none;
    margin-bottom: 30px;
}
.nosotros-texto ul li {
    font-size: 1.1em;
    margin-bottom: 10px;
}
.nosotros-texto ul li i {
    color: var(--color-secundario);
    margin-right: 10px;
}

/* --- Programas Destacados --- */
.programas {
    padding-top: 200px;
    background-color: var(--color-fondo);
    text-align: center;
}
.programas h2 {
    font-size: 2.8em;
    margin-bottom: 60px;
}
.programas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}
.tarjeta-programa {
    background-color: var(--color-fondo-tarjeta);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}
.tarjeta-programa:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.tarjeta-programa img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}
.contenido-tarjeta {
    padding: 30px;
    position: relative;
}
.contenido-tarjeta h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
    font-weight: 600;
}
.contenido-tarjeta p {
    color: #666;
}
.contenido-tarjeta i {
    position: absolute;
    top: -20px;
    right: 30px;
    font-size: 3em;
    color: var(--color-secundario);
    opacity: 0.7;
}
.llamada-a-explorar {
    margin-top: 60px;
}

/* --- Sección Testimonios (Con Parallax) --- */
.testimonios {
    padding: 100px 5%;
    text-align: center;
    position: relative;
    background-color: #f0ebe2;
}

.testimonios-parallax {
    background-image: url('https://images.unsplash.com/photo-1535930891776-0c2dfb7fda1a?q=80&w=1074&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D'); 
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff;
}
.testimonios-parallax::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}
.testimonios-parallax h2,
.testimonios-parallax .testimonios-grid {
    position: relative;
    z-index: 2;
}
.testimonios-parallax h2 {
    color: #fff;
}
.testimonios-parallax .testimonio-card {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--color-texto);
}
.testimonios-parallax .testimonio-card h4 {
    color: var(--color-primario);
}
.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}
.testimonio-card {
    background-color: var(--color-fondo-tarjeta);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.testimonio-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}
.testimonio-card p {
    font-style: italic;
    color: #666;
    margin-bottom: 20px;
}
.testimonio-card h4 {
    color: var(--color-primario);
    font-weight: 600;
}

/* --- Sección FAQ (Mejorado) --- */
.faq {
    padding: 100px 5%;
    background-color: var(--color-fondo);
    text-align: center;
}
.faq h2 {
    font-size: 2.8em;
    margin-bottom: 60px;
}
.faq-contenedor {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}
.pregunta-faq {
    background-color: var(--color-fondo-tarjeta);
    margin-bottom: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}
.boton-acordeon {
    width: 100%;
    text-align: left;
    padding: 20px 30px;
    font-size: 1.2em;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--color-primario);
    background: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.boton-acordeon:hover {
    background-color: #f7f3e8;
}
.contenido-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.contenido-panel p {
    padding: 20px 30px;
    border-top: 1px solid #e0e0e0;
    color: #555;
    background-color: #f9f7f3;
}
.boton-acordeon i {
    transition: transform 0.3s ease;
    font-size: 1em;
    color: var(--color-secundario);
}
.boton-acordeon .fa-chevron-up {
    transform: rotate(180deg);
}

/* --- Paseos y Cuidados (Index) --- */
.paseos {
    padding: 100px 5%;
    background-color: var(--color-secundario);
    color: #fff;
    position: relative;
}
.paseos-contenedor {
    display: flex;
    flex-direction: row-reverse;
    gap: 80px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    text-align: right;
}
.paseos-imagen img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.paseos-contenido h2 {
    color: #fff;
    font-size: 2.8em;
    margin-bottom: 20px;
}
.paseos-contenido p {
    font-size: 1.1em;
    margin-bottom: 30px;
}

/* --- Sección Quiz (Index) --- */
.quiz {
    background: 
        radial-gradient(circle, rgba(255, 255, 255, 0.2) 2px, transparent 2px),
        radial-gradient(circle, rgba(255, 255, 255, 0.2) 2px, transparent 2px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    background-color: var(--color-primario);
    clip-path: polygon(0 0, 100% 50%, 100% 100%, 0 100%);
    color: #fff;
    padding: 150px 5%;
    text-align: center;
    position: relative;
    clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 95%);
    margin: 100px 0;
}
.quiz-contenedor {
    max-width: 800px;
    margin: 0 auto;
}
.quiz h2 {
    font-size: 3em;
    color: #fff;
    margin-bottom: 10px;
}
.quiz p {
    font-size: 1.5em;
    margin-bottom: 30px;
}

/* --- Pie de página --- */
.pie-de-pagina {
    padding: 20px;
    background-color: var(--color-texto);
    color: #fff;
    text-align: center;
}

/* --- Animaciones --- */
.animar-zoom-in,
.animar-desvanecer-arriba,
.hero-perro-imagen {
    opacity: 0;
    transform: translateY(20px);
}
.animar-zoom-in.visible {
    animation: zoomIn 1s forwards cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.animar-desvanecer-arriba.visible {
    animation: fadeUp 1s forwards;
}
.hero-perro-imagen.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1s ease-out 0.9s, transform 1s ease-out 0.9s;
}

.animar-desvanecer-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}
.animar-desvanecer-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes rotarForma {
    from { transform: rotate(20deg); }
    to { transform: rotate(10deg); }
}

/* --- Servicios Page Hero --- */
.servicios-hero {
    background-image: url('img/perro-caminando.avif');
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
}
.servicios-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}
.servicios-hero-contenido {
    position: relative;
    z-index: 2;
    max-width: 800px;
}
.servicios-hero-contenido h1 {
    font-size: 3.5em;
    color: #fff;
    margin-bottom: 10px;
}
.servicios-hero-contenido p {
    font-size: 1.2em;
}

/* --- Servicios Page Programas Detalle --- */
.detalle-programas {
    background-color: var(--color-fondo);
    padding: 100px 5%;
}
.detalle-programas-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
}
.detalle-programa-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background-color: var(--color-fondo-tarjeta);
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    overflow: hidden;
    align-items: center;
}
.detalle-programa-card:nth-child(even) {
    grid-template-columns: 1fr 1fr;
    direction: rtl;
}
.detalle-programa-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.detalle-programa-contenido {
    padding: 40px;
    direction: ltr;
}
.detalle-programa-contenido h3 {
    font-size: 2.2em;
    margin-bottom: 15px;
}
.detalle-programa-contenido p {
    margin-bottom: 20px;
    color: #666;
}
.detalle-programa-contenido ul {
    list-style: none;
    margin-bottom: 30px;
}
.detalle-programa-contenido ul li {
    font-size: 1.1em;
    margin-bottom: 10px;
}
.detalle-programa-contenido ul li i {
    color: var(--color-secundario);
    margin-right: 10px;
}

/* --- Paseos y Cuidados Grid --- */
.paseos-cuidados-seccion {
    text-align: center;
    background-color: #f0ebe2;
}
.paseos-cuidados-seccion h2 {
    font-size: 2.8em;
    margin-bottom: 60px;
}
.paseos-cuidados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}
.paseos-cuidados-card {
    background-color: var(--color-fondo-tarjeta);
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    overflow: hidden;
    text-align: center;
}
.paseos-cuidados-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.paseos-cuidados-card h3 {
    font-size: 1.8em;
    padding: 20px 20px 10px;
}
.paseos-cuidados-card p {
    padding: 0 20px 30px;
    color: #666;
}

/* --- Quiz Page --- */
.seccion-quiz-pagina {
    padding: 150px 5%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 100vh;
}
.quiz-hero-fondo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--color-primario), var(--color-secundario));
    clip-path: polygon(0 0, 100% 50%, 100% 100%, 0 100%);
    z-index: -1;
    opacity: 0.8;
}
.quiz-contenedor-pagina {
    background-color: var(--color-fondo-tarjeta);
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    max-width: 700px;
}
.quiz-contenedor-pagina h1 {
    font-size: 2.8em;
    margin-bottom: 10px;
}
.quiz-contenedor-pagina p {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #666;
}
.quiz-opcion {
    display: block;
    width: 100%;
    padding: 20px;
    font-size: 1.2em;
    font-weight: 600;
    background-color: #eee;
    border: none;
    border-radius: 10px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--color-primario);
}
.quiz-opcion:hover {
    background-color: var(--color-secundario);
    color: #fff;
    transform: translateY(-3px);
}
.quiz-opcion:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(91, 62, 154, 0.4);
}
.quiz-resultado {
    text-align: center;
}
.quiz-resultado h3 {
    font-size: 2.2em;
    margin-bottom: 10px;
}
.quiz-resultado p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

/* --- Contacto Page --- */
.seccion-contacto {
    min-height: 100vh;
    padding: 150px 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.contacto-fondo-forma {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primario), #a888c3);
    clip-path: polygon(0 0, 100% 25%, 100% 100%, 0 75%);
    z-index: -1;
    opacity: 0.8;
}
.contacto-contenedor {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    background-color: var(--color-fondo-tarjeta);
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    max-width: 1000px;
    overflow: hidden;
}
.contacto-info {
    padding: 50px;
    background-color: var(--color-primario);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.contacto-info h1 {
    color: #fff;
    font-size: 2.8em;
    margin-bottom: 15px;
}
.contacto-info p {
    font-size: 1.1em;
    margin-bottom: 30px;
}
.info-detalles p {
    font-size: 1.1em;
    margin-bottom: 15px;
}
.info-detalles i {
    margin-right: 15px;
    font-size: 1.2em;
    color: var(--color-secundario);
}
.formulario-contacto {
    padding: 50px;
}
.formulario-contacto input,
.formulario-contacto textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid #ccc;
    border-radius: 10px;
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
    color: var(--color-texto);
}
.formulario-contacto input:focus,
.formulario-contacto textarea:focus {
    outline: none;
    border-color: var(--color-primario);
    box-shadow: 0 0 0 3px rgba(91, 62, 154, 0.2);
}

/* --- Media Queries (Responsive) --- */
@media (max-width: 768px) {
    .encabezado {
        flex-direction: column;
    }
    .nav {
        margin-top: 15px;
    }
    .nav a {
        margin: 0 10px;
        font-size: 1em;
    }
    .hero {
        flex-direction: column;
        padding-top: 100px;
        height: auto;
    }
    .hero-contenido {
        max-width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }
    .hero-perro-imagen {
        max-width: 80%;
        bottom: 0;
        right: 0;
        margin-top: 50px;
    }
    .hero-perro-imagen img{
        border-radius: 20px;
    }
    .nosotros-contenedor, .paseos-contenedor {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
    .nosotros-texto, .paseos-contenido {
        text-align: center;
    }
    .paseos-contenedor {
        flex-direction: column;
    }
    .programas-grid {
        grid-template-columns: 1fr;
    }
    .detalle-programa-card, .detalle-programa-card:nth-child(even) {
        grid-template-columns: 1fr;
        direction: ltr;
    }
    .detalle-programa-contenido {
        text-align: center;
    }
    .paseos-cuidados-grid {
        grid-template-columns: 1fr;
    }
    .seccion-quiz-pagina {
        height: auto;
        padding: 100px 5%;
    }
    .contacto-contenedor {
        grid-template-columns: 1fr;
    }
    .contacto-info {
        text-align: center;
    }
}