@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* Variables de colores */
:root {
    --color-crema: #F5F5DC;
    --color-crema-claro: #FFFEF7;
    --color-azul-celeste: #5B9BD5;
    --color-azul-oscuro: #4A90A4;
    --color-texto-oscuro: #2C3E50;
    --color-texto-medio: #5A6C7D;
    --color-verde: #90C695;
    --color-dorado: #E8C547;
    --sombra-suave: 0 4px 20px rgba(0, 0, 0, 0.08);
    --sombra-media: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Escala global al 80% - Ajuste de font-size base */
html {
    font-size: 80%; /* Reduce el tamaño base de 16px a 12.8px (80% de 16px) */
}

/* Evitar desbordamiento horizontal en todas las páginas */
html, body {
    overflow-x: hidden;
}

/* Medios e imágenes responsivos */
img, svg, video, canvas {
    max-width: 100%;
    height: auto;
}

/* select global movido a header.css para unificación de estilos */

body.pagina-inicio {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, rgba(245, 245, 220, 0.85) 0%, rgba(255, 254, 247, 0.9) 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Fondo decorativo */
body.pagina-inicio::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(245, 245, 220, 0.85) 0%, rgba(255, 254, 247, 0.9) 100%);
    z-index: 0;
}

/* Molinos de papel (origami) decorativos de fondo */
body.pagina-inicio::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        /* Molino superior izquierdo */
        radial-gradient(circle at 15% 15%, rgba(91, 155, 213, 0.08) 0%, transparent 50%),
        /* Molino superior derecho */
        radial-gradient(circle at 85% 20%, rgba(232, 197, 71, 0.08) 0%, transparent 50%),
        /* Molino inferior izquierdo */
        radial-gradient(circle at 10% 85%, rgba(144, 198, 149, 0.08) 0%, transparent 50%),
        /* Molino inferior derecho */
        radial-gradient(circle at 90% 80%, rgba(91, 155, 213, 0.08) 0%, transparent 50%);
    background-size: 300px 300px, 250px 250px, 280px 280px, 260px 260px;
    background-position: 10% 10%, 85% 15%, 5% 90%, 92% 85%;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

/* Molinos de papel individuales con forma de origami */
body.pagina-inicio .molino-origami-1,
body.pagina-inicio .molino-origami-2,
body.pagina-inicio .molino-origami-3,
body.pagina-inicio .molino-origami-4 {
    position: fixed;
    width: 120px;
    height: 120px;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
    animation: rotar-molino 20s linear infinite;
}

body.pagina-inicio .molino-origami-1 {
    top: 10%;
    left: 8%;
    background: conic-gradient(
        from 0deg at 50% 50%,
        var(--color-azul-celeste) 0deg,
        rgba(91, 155, 213, 0.3) 90deg,
        var(--color-crema-claro) 180deg,
        rgba(91, 155, 213, 0.3) 270deg,
        var(--color-azul-celeste) 360deg
    );
    border-radius: 50%;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

body.pagina-inicio .molino-origami-2 {
    top: 15%;
    right: 10%;
    background: conic-gradient(
        from 45deg at 50% 50%,
        var(--color-dorado) 0deg,
        rgba(232, 197, 71, 0.3) 90deg,
        var(--color-crema-claro) 180deg,
        rgba(232, 197, 71, 0.3) 270deg,
        var(--color-dorado) 360deg
    );
    border-radius: 50%;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation-duration: 25s;
    animation-direction: reverse;
}

body.pagina-inicio .molino-origami-3 {
    bottom: 12%;
    left: 5%;
    background: conic-gradient(
        from 90deg at 50% 50%,
        var(--color-verde) 0deg,
        rgba(144, 198, 149, 0.3) 90deg,
        var(--color-crema-claro) 180deg,
        rgba(144, 198, 149, 0.3) 270deg,
        var(--color-verde) 360deg
    );
    border-radius: 50%;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation-duration: 30s;
}

body.pagina-inicio .molino-origami-4 {
    bottom: 8%;
    right: 8%;
    background: conic-gradient(
        from 135deg at 50% 50%,
        var(--color-azul-celeste) 0deg,
        rgba(91, 155, 213, 0.3) 90deg,
        var(--color-crema-claro) 180deg,
        rgba(91, 155, 213, 0.3) 270deg,
        var(--color-azul-celeste) 360deg
    );
    border-radius: 50%;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation-duration: 22s;
    animation-direction: reverse;
}

@keyframes rotar-molino {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Contenedor principal */
.contenido-principal {
    position: relative;
    z-index: 1;
    width: 100%;
}

.contenedor-seccion {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.titulo-seccion {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-texto-oscuro);
    text-align: center;
    margin-bottom: 3rem;
    line-height: 1.2;
}

.seccion-hero {
    position: relative;
    width: 100%;
    min-height: 600px;
    background-image: url('../images/FondoKinitos.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
    margin-bottom: 4rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(535deg, rgba(245, 245, 220, 0.45) 0%, rgba(255, 254, 247, 0.75) 100%);
    z-index: 1;
}

.hero-contenido {
    position: relative;
    z-index: 2;
    max-width: 900px;
    text-align: center;
    color: var(--color-texto-oscuro);
}

.titulo-hero {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-texto-oscuro);
    margin-bottom: 2rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8);
}

.texto-hero {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.parrafo-hero {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--color-texto-oscuro);
    text-shadow: 0 1px 5px rgba(255, 255, 255, 0.8);
}

/* Sección de Valores */
.seccion-valores {
    padding: 5rem 0;
}

.grid-valores {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.tarjeta-valor {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: var(--sombra-suave);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta-valor:hover {
    transform: translateY(-5px);
    box-shadow: var(--sombra-media);
}

.icono-valor {
    color: var(--color-azul-celeste);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.titulo-valor {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-texto-oscuro);
    margin-bottom: 1rem;
}

.texto-valor {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-texto-medio);
}

/* Sección de Productos */
.seccion-productos {
    padding: 5rem 0;
    background: white;
}

.carrusel-productos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding-bottom: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.carrusel-productos::-webkit-scrollbar {
    height: 8px;
}

.carrusel-productos::-webkit-scrollbar-track {
    background: var(--color-crema);
    border-radius: 10px;
}

.carrusel-productos::-webkit-scrollbar-thumb {
    background: var(--color-azul-celeste);
    border-radius: 10px;
}

.producto {
    background: var(--color-crema-claro);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--sombra-suave);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.producto:hover {
    transform: translateY(-5px);
    box-shadow: var(--sombra-media);
}

.imagen-producto {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: white;
}

.imagen-producto img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    transition: transform 0.3s ease;
}

.producto:hover .imagen-producto img {
    transform: scale(1.05);
}

.nombre-producto {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-texto-oscuro);
    padding: 1rem 1.5rem 0.5rem;
    margin: 0;
}

.precio-producto {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-azul-celeste);
    padding: 0 1.5rem;
    margin: 0;
}

.boton-producto {
    width: calc(100% - 3rem);
    margin: 1rem 1.5rem 1.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--color-azul-celeste) 0%, var(--color-azul-oscuro) 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(91, 155, 213, 0.3);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    margin-top: auto;
}

.boton-producto:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91, 155, 213, 0.4);
    color: white;
    text-decoration: none;
}

/* Sección de Catálogo */
.seccion-catalogo {
    padding: 5rem 0;
}

.grid-catalogo {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.tarjeta-catalogo {
    text-decoration: none;
    display: block;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--sombra-suave);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta-catalogo:hover {
    transform: translateY(-5px);
    box-shadow: var(--sombra-media);
}

.imagen-catalogo {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.imagen-catalogo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tarjeta-catalogo:hover .imagen-catalogo img {
    transform: scale(1.1);
}

.overlay-catalogo {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 2rem;
    text-align: center;
}

.texto-catalogo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Sección de Reseñas - Carrusel */
.seccion-resenas {
    padding: 5rem 0;
    background: white;
}

/* Contenedor del carrusel */
.carrusel-resenas-contenedor {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 4rem;
}

.carrusel-resenas-wrapper {
    overflow: hidden;
    border-radius: 20px;
    min-height: 320px; /* Contenedor estable para evitar saltos verticales */
}

.carrusel-resenas {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.slide-resena {
    min-width: 100%;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    display: none;
}

.slide-resena.active {
    opacity: 1;
    display: block;
}

.tarjeta-resena {
    background: var(--color-crema-claro);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: var(--sombra-suave);
    text-align: center;
    margin: 0 auto;
    max-width: 600px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 300px; /* Altura uniforme de las tarjetas */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tarjeta-resena:hover {
    transform: translateY(-5px);
    box-shadow: var(--sombra-media);
}

.estrellas {
    color: #FFD700;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.2rem;
}

.estrella {
    display: inline-block;
}

.texto-resena {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-texto-medio);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.autor-resena {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-texto-oscuro);
}

/* Flechas de navegación */
.carrusel-flecha {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid rgba(91, 155, 213, 0.2);
    border-radius: 50%;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: var(--color-azul-celeste);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.carrusel-flecha:hover {
    background: var(--color-azul-celeste);
    color: white;
    border-color: var(--color-azul-celeste);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(91, 155, 213, 0.3);
}

.carrusel-flecha:active {
    transform: translateY(-50%) scale(0.95);
}

.carrusel-flecha svg {
    width: 1.5rem;
    height: 1.5rem;
}

.carrusel-flecha-izquierda {
    left: 0;
}

.carrusel-flecha-derecha {
    right: 0;
}

/* Indicadores de posición */
.carrusel-indicadores {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
}

.indicador {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: rgba(91, 155, 213, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicador:hover {
    background: rgba(91, 155, 213, 0.5);
    transform: scale(1.2);
}

.indicador.active {
    background: var(--color-azul-celeste);
    width: 2rem;
    border-radius: 0.375rem;
    border-color: var(--color-azul-celeste);
}


/* Media Queries para Diseño Responsivo */

/* Tablets (menos de 968px) */
@media (max-width: 967px) {
    .grid-valores {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .grid-catalogo {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .carrusel-resenas-contenedor {
        padding: 0 3rem;
    }
    .carrusel-resenas-wrapper {
        min-height: 300px;
    }
    
    .carrusel-flecha {
        width: 3rem;
        height: 3rem;
    }
    
    .carrusel-flecha svg {
        width: 1.25rem;
        height: 1.25rem;
    }
    
    .titulo-hero {
        font-size: 2.5rem;
    }
    
    .parrafo-hero {
        font-size: 1.1rem;
    }
    
    .titulo-seccion {
        font-size: 2rem;
    }
}

/* Tablets (768px a 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .carrusel-productos {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* Móviles (menos de 768px) */
@media (max-width: 767px) {
    .seccion-hero {
        min-height: 500px;
        padding: 3rem 1rem;
        background-attachment: scroll;
    }
    
    .titulo-hero {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .parrafo-hero {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .seccion-valores,
    .seccion-productos,
    .seccion-catalogo,
    .seccion-resenas,
    .seccion-newsletter {
        padding: 2.5rem 0;
    }
    .carrusel-resenas-wrapper {
        min-height: 280px;
    }
    
    .contenedor-seccion {
        padding: 0 1rem;
    }
    
    .titulo-seccion {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    .grid-valores {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .tarjeta-valor {
        padding: 1.5rem 1.25rem;
    }
    
    .icono-valor {
        margin-bottom: 1rem;
    }
    
    .icono-valor svg {
        width: 40px;
        height: 40px;
    }
    
    .titulo-valor {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .texto-valor {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .carrusel-productos {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .producto {
        min-width: 0;
    }
    
    .imagen-producto {
        height: 200px;
    }
    
    .nombre-producto {
        font-size: 0.95rem;
        padding: 0.75rem 1rem 0.25rem;
    }
    
    .precio-producto {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .boton-producto {
        width: calc(100% - 2rem);
        margin: 0.75rem 1rem 1rem;
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .grid-catalogo {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .imagen-catalogo {
        height: 250px;
    }
    
    .texto-catalogo {
        font-size: 1.5rem;
    }
    
    .overlay-catalogo {
        padding: 1.5rem;
    }
    
    .grupo-newsletter {
        flex-direction: column;
    }
    
    .boton-newsletter {
        width: 100%;
    }
    
    .titulo-newsletter {
        font-size: 2rem;
    }
    
    .subtitulo-newsletter {
        font-size: 1rem;
    }
    
    /* Ocultar molinos de origami en móviles */
    body.pagina-inicio .molino-origami-1,
    body.pagina-inicio .molino-origami-2,
    body.pagina-inicio .molino-origami-3,
    body.pagina-inicio .molino-origami-4 {
        display: none;
    }
}

/* Pantallas muy pequeñas (menos de 480px) */
@media (max-width: 479px) {
    .seccion-hero {
        min-height: 400px;
        padding: 2rem 0.75rem;
    }
    
    .titulo-hero {
        font-size: 1.75rem;
    }
    
    .parrafo-hero {
        font-size: 0.95rem;
    }
    
    .seccion-valores,
    .seccion-productos,
    .seccion-catalogo,
    .seccion-resenas,
    .seccion-newsletter {
        padding: 2.5rem 0;
    }
    .carrusel-resenas-wrapper {
        min-height: 260px;
    }
    .tarjeta-resena {
        min-height: 240px;
    }
    
    .contenedor-seccion {
        padding: 0 0.75rem;
    }
    
    .titulo-seccion {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .tarjeta-valor {
        padding: 1.5rem 1rem;
    }
    
    .titulo-valor {
        font-size: 1.25rem;
    }
    
    .texto-valor {
        font-size: 0.95rem;
    }
    
    .carrusel-productos {
        grid-template-columns: 1fr;
    }
    
    .imagen-producto {
        height: 250px;
    }
    
    .imagen-catalogo {
        height: 250px;
    }
    
    .texto-catalogo {
        font-size: 1.25rem;
    }
    
    .carrusel-resenas-contenedor {
        padding: 0 2.5rem;
    }
    
    .carrusel-flecha {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .carrusel-flecha svg {
        width: 1rem;
        height: 1rem;
    }
    
    .tarjeta-resena {
        padding: 2rem 1.5rem;
    }
    
    .texto-resena {
        font-size: 1rem;
    }
    
    .titulo-newsletter {
        font-size: 1.75rem;
    }
    
    .subtitulo-newsletter {
        font-size: 0.95rem;
    }
}

/* Pantallas grandes (más de 1200px) */
@media (min-width: 1200px) {
    .contenedor-seccion {
        padding: 0 2rem;
    }
    
    .titulo-hero {
        font-size: 4rem;
    }
    
    .parrafo-hero {
        font-size: 1.3rem;
    }
    
    .seccion-valores,
    .seccion-productos,
    .seccion-catalogo,
    .seccion-resenas {
        padding: 6rem 0;
    }
    
    .imagen-catalogo {
        height: 450px;
    }
}
