@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:opsz,wght@6..12,200;6..12,300;6..12,400;6..12,500;6..12,600&display=swap');

:root {
    --rojo-oscuro: #4a0000;
    --blanco: #ffffff;
    --fuente-principal: 'Nunito Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--fuente-principal);
    font-weight: 300;
    background-color: var(--blanco);
    color: var(--rojo-oscuro);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- NAVBAR --- */
header {
    background-color: var(--rojo-oscuro);
    color: var(--blanco);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-left {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.logo {
    color: var(--blanco);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-center {
    flex: 2;
    display: flex;
    justify-content: center;
}

.search-bar {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 500px;
    border: 1px solid var(--blanco);
    border-radius: 50px;
    padding: 5px 5px 5px 20px;
    background: transparent;
}

.search-bar input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: var(--blanco);
    font-family: var(--fuente-principal);
    font-weight: 300;
    outline: none;
    font-size: 1rem;
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-btn {
    background: var(--blanco);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: var(--rojo-oscuro);
    transition: opacity 0.3s;
}

.search-btn:hover {
    opacity: 0.8;
}

.nav-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.nav-right a {
    color: var(--blanco);
    text-decoration: none;
    font-weight: 300;
    transition: opacity 0.3s;
}

.nav-right a:hover {
    opacity: 0.7;
}

/* --- HOME PAGE (Diseño UX Mejorado) --- */
.hero {
    position: relative;
    height: 100vh; 
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%);
    z-index: -1;
}

.hero-content {
    color: var(--blanco);
    width: 60%;
    padding-left: 8%;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 400;
    width: fit-content;
    margin-bottom: 10px;
}

.hero-text {
    font-size: 4.2rem;
    font-weight: 500;
    line-height: 1.1;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.3);
    margin: 0;
}

.hero-subtext {
    font-size: 1.3rem;
    font-weight: 200;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 90%;
    margin-bottom: 20px;
    text-shadow: 1px 1px 10px rgba(0,0,0,0.3);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.btn-hero-primary {
    background-color: var(--blanco);
    color: var(--rojo-oscuro);
    padding: 14px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.3);
    background-color: #f8f8f8;
}

.btn-hero-secondary {
    background-color: transparent;
    color: var(--blanco);
    padding: 14px 35px;
    text-decoration: none;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    font-weight: 300;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--blanco);
    transform: translateY(-3px);
}

/* --- SECCIÓN GALERÍA Y CARRUSEL INFINITO --- */
.carousel-section {
    padding: 80px 0;
    background-color: var(--blanco);
    text-align: center;
}

.carousel-section h2 {
    font-weight: 200;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--rojo-oscuro);
}

.carousel-container {
    overflow: hidden;
    white-space: nowrap;
    margin-bottom: 40px;
}

.carousel-track {
    display: inline-flex;
    animation: scroll 20s linear infinite;
}

.carousel-item {
    width: 300px;
    margin: 0 20px;
    text-align: center;
    flex-shrink: 0;
}

.carousel-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06); 
    transition: transform 0.3s ease;
}

.carousel-item:hover img {
    transform: scale(1.02);
}

.carousel-item p {
    margin-top: 15px;
    font-size: 1.1rem;
    font-weight: 300;
    color: #444;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-340px * 3)); }
}

.btn-catalogo {
    display: inline-block;
    background-color: var(--rojo-oscuro);
    color: var(--blanco);
    padding: 12px 35px;
    text-decoration: none;
    border-radius: 50px;
    transition: opacity 0.3s, transform 0.3s;
    font-weight: 300;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.btn-catalogo:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- FIGURA POR ENCARGO --- */
.custom-figure-section {
    padding: 80px 10%;
    background-color: var(--rojo-oscuro);
    color: var(--blanco);
    text-align: center;
}

.custom-figure-section h2 {
    font-weight: 200;
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.custom-figure-section p {
    font-weight: 200;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: rgba(255, 255, 255, 0.9);
}

.btn-encargar {
    display: inline-block;
    background-color: var(--blanco);
    color: var(--rojo-oscuro);
    padding: 12px 35px;
    text-decoration: none;
    border-radius: 50px;
    transition: background-color 0.3s, color 0.3s;
    font-weight: 400;
    font-size: 1.1rem;
}

.btn-encargar:hover {
    background-color: #f0f0f0;
}

/* --- RESEÑAS --- */
.reviews-section {
    padding: 80px 10%;
    background-color: #f9f9f9;
    text-align: center;
}

.reviews-section h2 {
    font-weight: 200;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.review-card {
    padding: 30px;
    border-radius: 12px;
    background: var(--blanco);
    color: #444;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
}

.review-card h4 {
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--rojo-oscuro);
}

.review-card p {
    font-weight: 300;
}

.review-card p:last-child {
    font-style: italic;
    color: #666;
}

/* --- CATÁLOGO Y PRODUCTOS --- */
.container {
    padding: 60px 10%;
    flex: 1;
}

.page-title {
    text-align: center;
    margin-bottom: 50px;
    font-weight: 200;
    font-size: 2.8rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
}

.product-card {
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-8px);
}

.product-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.06); 
    margin-bottom: 20px;
    background-color: #fafafa;
}

.product-card h3 {
    font-weight: 400;
    font-size: 1.3rem;
    color: #333;
}

.price {
    font-weight: 400;
    font-size: 1.1rem;
    color: var(--rojo-oscuro);
    margin-top: 5px;
    display: block;
}

/* --- PRODUCTO INDIVIDUAL --- */
.single-product {
    display: flex;
    gap: 60px;
    align-items: center;
}

.single-product img {
    width: 50%;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.product-info {
    width: 50%;
}

.product-info h1 {
    font-weight: 200;
    font-size: 3rem;
    margin-bottom: 10px;
}

.product-info .price {
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.product-info h3 {
    margin-top: 20px;
    font-weight: 400;
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 15px;
}

.product-info p {
    color: #555;
    font-size: 1.05rem;
}

.btn-contactar {
    display: inline-block;
    background-color: var(--rojo-oscuro);
    color: var(--blanco);
    padding: 15px 35px;
    text-decoration: none;
    margin-top: 40px;
    border-radius: 50px;
    transition: opacity 0.3s;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.btn-contactar:hover {
    opacity: 0.8;
}

/* --- CONTACTO (Minimalista y Elegante) --- */
.contact-container {
    max-width: 650px;
    margin: 0 auto;
    padding-bottom: 80px;
}

.contact-container .page-title {
    margin-bottom: 60px;
    letter-spacing: 1px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 40px; 
    background: transparent;
}

.contact-form input, 
.contact-form select, 
.contact-form textarea {
    width: 100%;
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid rgba(74, 0, 0, 0.2);
    border-radius: 0;
    font-family: var(--fuente-principal);
    font-weight: 300;
    background-color: transparent;
    color: var(--rojo-oscuro);
    font-size: 1.1rem;
    transition: border-bottom-color 0.3s ease;
    outline: none;
}

.contact-form input::placeholder, 
.contact-form textarea::placeholder {
    color: rgba(74, 0, 0, 0.4);
    font-weight: 300;
}

.contact-form select {
    color: rgba(74, 0, 0, 0.4);
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%234a0000%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 0 top 50%;
    background-size: .65em auto;
    padding-right: 20px;
}

.contact-form select:focus, 
.contact-form select:valid {
    color: var(--rojo-oscuro);
}

.contact-form input:focus, 
.contact-form select:focus, 
.contact-form textarea:focus {
    border-bottom: 1px solid var(--rojo-oscuro);
}

.contact-form button {
    background-color: transparent;
    color: var(--rojo-oscuro);
    border: 1px solid var(--rojo-oscuro);
    padding: 15px 50px;
    cursor: pointer;
    font-family: var(--fuente-principal);
    font-weight: 300;
    font-size: 1.1rem;
    border-radius: 50px;
    margin-top: 20px;
    transition: all 0.3s ease;
    align-self: center;
    letter-spacing: 1px;
}

.contact-form button:hover {
    background-color: var(--rojo-oscuro);
    color: var(--blanco);
    transform: translateY(-2px);
}

#no-found-msg {
    display: none;
    text-align: center;
    color: var(--rojo-oscuro);
    margin-bottom: 40px;
    font-size: 1.2rem;
    padding: 20px;
    background-color: #fef8f8;
    border-radius: 8px;
    border: 1px solid rgba(74,0,0,0.1);
}

/* --- FOOTER --- */
footer {
    background-color: var(--rojo-oscuro);
    color: var(--blanco);
    text-align: center;
    padding: 30px 20px;
    margin-top: auto;
    font-weight: 200;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}