:root {
    --bg-main: #F6F1E8; /* Marfil cálido */
    --bg-light: #E8DDCF; /* Beige arena */
    --accent: #CBB89D; /* Dorado sutil */
    --accent-soft: #D9C2BC; /* Rosa palo */
    --text-main: #4E403B; /* Marrón profundo */
    --text-muted: #6A5A54; /* Taupe */
    --whatsapp: #25D366;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0,0,0,0.05);
    --radius: 12px;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate {
    animation: fadeIn 1s ease forwards;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .category-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container.narrow {
    max-width: 800px;
}

/* Header */
.main-header {
    background-color: rgba(246, 241, 232, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(203, 184, 157, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 60px;
    object-fit: contain;
}

.desktop-nav {
    display: flex;
    gap: 30px;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s;
}

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

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-main) 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background-color: var(--accent-soft);
    filter: blur(100px);
    opacity: 0.3;
    z-index: -1;
}

.hero-text {
    max-width: 700px;
}

.badge {
    background-color: var(--accent-soft);
    color: #ffffff;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
}

.accent-text {
    color: var(--accent);
    font-style: italic;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 35px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 40px;
}

.hero-trust {
    display: flex;
    gap: 30px;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.hero-trust i {
    color: var(--accent);
    margin-right: 5px;
}

/* Buttons */
.btn {
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background-color: var(--whatsapp);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-primary:hover {
    background-color: #1ebe57;
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background-color: var(--accent);
    color: white;
}

.btn-text {
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.big-btn {
    font-size: 1.2rem;
    padding: 20px 50px;
}

/* Story Section */
.story-section {
    padding: 100px 0;
    text-align: center;
}

.story-box {
    background-color: var(--white);
    padding: 60px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    border: 1px solid rgba(203, 184, 157, 0.1);
}

.quote-icon {
    font-size: 3rem;
    color: var(--accent-soft);
    position: absolute;
    top: -20px;
    left: 40px;
    background: var(--white);
    padding: 0 10px;
}

.story-box h2 {
    margin-bottom: 20px;
    font-size: 2.2rem;
}

/* Catalog Section */
.catalog-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    width: 60px;
    height: 3px;
    background-color: var(--accent);
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.category-block {
    margin-bottom: 80px;
}

.category-title {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--text-muted);
    border-left: 4px solid var(--accent);
    padding-left: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.badge-mini {
    background-color: var(--accent);
    color: white;
    font-size: 0.7rem;
    font-family: 'Montserrat', sans-serif;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.product-card {
    background-color: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(78, 64, 59, 0.06);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(203, 184, 157, 0.2);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(78, 64, 59, 0.12);
}

.product-card.highlight {
    border: 2px solid var(--accent);
    background-color: #fff9f0;
}

.product-img-container {
    width: 100%;
    aspect-ratio: 3 / 4; /* Formato vertical como pidió el usuario */
    background-color: var(--bg-accent); /* Fondo consistente (beige cálido) */
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Esto hace que la imagen llene el cuadrado sin deformarse */
    transition: transform 0.5s ease;
}

.product-card:hover .product-img-container img {
    transform: scale(1.08); /* Efecto de zoom elegante al pasar el mouse */
}

/* Custom Cover Placeholder para Devocionales */
.custom-cover-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-main) 0%, var(--bg-light) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-main);
    z-index: 1;
}

.custom-cover-placeholder-inner {
    border: 1px dashed rgba(203, 184, 157, 0.8);
    margin: 15px;
    width: calc(100% - 30px);
    height: calc(100% - 30px);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.4);
    box-shadow: inset 0 0 20px rgba(255,255,255,0.5);
}

.placeholder-icon {
    font-size: 3.5rem;
    color: var(--accent);
    margin-bottom: 15px;
    opacity: 0.9;
}

.placeholder-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

/* Icono temporal si no hay imagen en absoluto (Fallback original) */
.product-img-container::before {
    content: '\eb07'; /* Icono de imagen de Remix Icon */
    font-family: 'remixicon';
    font-size: 2rem;
    color: var(--accent);
    opacity: 0.3;
    position: absolute;
}

.product-img-container img:not([src=""]) {
    z-index: 1;
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-main);
    min-height: 2.2em;
    display: flex;
    align-items: flex-start;
}

.price {
    font-weight: 700;
    color: var(--accent);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    flex-grow: 1;
}

.btn-product {
    background-color: var(--whatsapp);
    color: white;
    text-align: center;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
    transition: opacity 0.3s;
}

.btn-product:hover {
    opacity: 0.9;
}

/* Info Section (Personalization) */
.info-section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.grids-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.big-icon {
    font-size: 8rem;
    color: var(--accent);
    opacity: 0.5;
}

.check-list {
    list-style: none;
    margin: 30px 0;
}

.check-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.check-list i {
    color: var(--accent);
    font-size: 1.4rem;
}

/* Steps Section */
.steps-section {
    padding: 100px 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.step-card {
    text-align: center;
    padding: 30px;
}

.step-num {
    width: 50px;
    height: 50px;
    background-color: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    font-weight: 700;
}

/* FAQ Section */
.faq-accordion {
    margin-top: 40px;
}

details {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 15px;
    box-shadow: var(--shadow);
}

summary {
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary::-webkit-details-marker {
    display: none;
}

details[open] summary {
    margin-bottom: 15px;
    color: var(--accent);
}

details p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Final CTA */
.final-cta {
    padding: 120px 0;
    background-color: var(--text-main);
    color: var(--bg-main);
}

.final-cta h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.final-cta p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.small-info {
    margin-top: 20px;
    font-size: 0.8rem !important;
    opacity: 0.7;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-left: 4px solid var(--accent);
}

.stars {
    color: var(--accent);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.client-name {
    display: block;
    margin-top: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
}

.guarantee-section {
    padding: 80px 0;
    color: var(--text-main);
}

.guarantee-section .big-icon { /* Modified to be specific to guarantee-section */
    font-size: 6rem;
    color: var(--accent);
    opacity: 0.8;
}

.bg-accent {
    background-color: var(--bg-accent);
}

/* Footer */
.main-footer {
    background-color: var(--secondary);
    color: var(--white);
    padding: 80px 0 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 70px;
    margin-bottom: 20px;
}

.footer-links h4, .footer-contact h4 {
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(0,0,0,0.05);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* WhatsApp Floating */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--whatsapp);
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    z-index: 2000;
    transition: transform 0.3s;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 { font-size: 2.8rem; }
    .grids-2 { grid-template-columns: 1fr; gap: 40px; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .footer-brand, .footer-links, .footer-contact { align-items: center; }
    .footer-contact p { justify-content: center; }
}

@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .small-hide { display: none; }
    .hero { padding: 40px 0; text-align: center; }
    .hero-btns { flex-direction: column; }
    .hero-trust { justify-content: center; }
    .section-title { font-size: 2.2rem; }
    .story-box { padding: 40px 20px; }
    .whatsapp-btn { width: 55px; height: 55px; font-size: 2rem; bottom: 20px; right: 20px; }
}

@media (max-width: 480px) {
    .steps-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.2rem; }
}
