/*
Theme Name: Moray Theme
Theme URI: http://example.com/
Author: Moray Team
Author URI: http://example.com/
Description: Plantilla oficial para Moray, integrada con WooCommerce.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: moray
*/

/* Reset and Base Styles */
:root {
    --primary-color: #F2A900;
    --primary-hover: #D99700;
    --secondary-color: #3A5F2D;
    --dark-bg: #2C4C22;
    --light-bg: #F5EBE0;
    --text-color: #4A4A4A;
    --heading-color: #243B1C;
    --white: #ffffff;
    --transition: all 0.3s ease;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--light-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.mt-4 {
    margin-top: 1.5rem;
}

.text-primary {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-heading);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 14px rgba(242, 169, 0, 0.3);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--heading-color);
    border: 2px solid #e2e8f0;
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.125rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Typography elements */
.subtitle {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-family: var(--font-heading);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background-color: transparent;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    font-family: var(--font-heading);
    color: var(--heading-color);
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary-color);
}

.logo img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transform: translateZ(0);
    backface-visibility: hidden;
    display: block;
}

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

.nav-links a {
    font-weight: 500;
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-icon {
    font-size: 1.2rem;
    color: var(--primary-color);
    position: relative;
}

.cart-icon .badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 0 100px;
    background-color: #f1f5f9;
    overflow: hidden;
}

.hero-bg-shape {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-color: var(--secondary-color);
    border-bottom-left-radius: 200px;
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    padding-right: 50px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-content h1 span {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.hero-content h1 span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    background-color: rgba(242, 169, 0, 0.2);
    z-index: -1;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: var(--text-color);
    max-width: 500px;
}

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

.video-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--heading-color);
    font-family: var(--font-heading);
}

.video-btn i {
    width: 50px;
    height: 50px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.video-btn:hover i {
    background-color: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.featured-on {
    display: flex;
    align-items: center;
    gap: 15px;
}

.featured-on span {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.brands {
    display: flex;
    gap: 15px;
    font-size: 1.5rem;
    color: #94a3b8;
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    width: 450px;
    height: auto;
    animation: float 6s ease-in-out infinite;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 30px 40px rgba(0,0,0,0.3));
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(242, 169, 0, 0.3) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 1;
}

.floating-badge {
    position: absolute;
    background: var(--white);
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--heading-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 3;
}

.floating-badge i {
    color: #10b981;
    font-size: 1.2rem;
}

.badge-1 {
    top: 20%;
    left: -20px;
    animation: float 5s ease-in-out infinite reverse;
}

.badge-2 {
    bottom: 20%;
    right: 20px;
    animation: float 7s ease-in-out infinite 1s;
}

/* Features */
.features {
    padding: 100px 0;
    background-color: var(--white);
}

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

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 5px 30px rgba(0,0,0,0.03);
    border: 1px solid #f1f5f9;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border-color: var(--primary-color);
}

.feature-card .icon-box {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: var(--transition);
}

/* Flavor Coding: Extended B2C Palette */
.feature-card:nth-child(1) .icon-box { color: #846BC9; background-color: rgba(132, 107, 201, 0.1); }
.feature-card:nth-child(2) .icon-box { color: #F35B84; background-color: rgba(243, 91, 132, 0.1); }
.feature-card:nth-child(3) .icon-box { color: #FA961D; background-color: rgba(250, 150, 29, 0.1); }
.feature-card:nth-child(4) .icon-box { color: #B9D452; background-color: rgba(185, 212, 82, 0.1); }

.feature-card:nth-child(1):hover .icon-box { background-color: #846BC9; color: var(--white); }
.feature-card:nth-child(2):hover .icon-box { background-color: #F35B84; color: var(--white); }
.feature-card:nth-child(3):hover .icon-box { background-color: #FA961D; color: var(--white); }
.feature-card:nth-child(4):hover .icon-box { background-color: #B9D452; color: var(--white); }

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 0.95rem;
}

/* Products */
.products {
    padding: 100px 0;
    background-color: var(--light-bg);
}

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

.product-card {
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    position: relative;
    transition: var(--transition);
    padding: 30px;
    border: 1px solid #f1f5f9;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.discount-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #ef4444;
    color: var(--white);
    font-weight: bold;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    z-index: 2;
}

.product-image {
    background-color: #f8fafc;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
}

.product-image img {
    max-height: 100%;
    max-width: 100%;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-info {
    text-align: center;
}

.rating {
    color: #f59e0b;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.product-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.product-info h3 a:hover {
    color: var(--primary-color);
}

.product-info .price {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.product-info .old-price {
    color: #94a3b8;
    text-decoration: line-through;
    font-size: 0.95rem;
    margin-left: 10px;
}

/* Ingredients */
.ingredients {
    padding: 100px 0;
    background-color: var(--secondary-color);
    color: var(--white);
}

.ingredients-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.ingredients-text {
    flex: 1;
}

.ingredients-text .subtitle,
.ingredients-text h2 {
    color: var(--white);
}

.ingredients-text p {
    color: #cbd5e1;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.ingredient-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: #f8fafc;
}

.ingredient-list li i {
    color: var(--primary-color);
    background-color: rgba(242, 169, 0, 0.1);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ingredients-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.ingredients-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
}

/* Pricing */
.pricing {
    padding: 100px 0;
    background-color: var(--white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: center;
}

.pricing-card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.pricing-card.popular {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: scale(1.05);
    border-color: var(--secondary-color);
    box-shadow: 0 20px 50px rgba(13, 27, 42, 0.2);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-5px);
}

.pricing-card.popular h3,
.pricing-card.popular .plan-price {
    color: var(--white);
}

.pricing-card.popular .btn {
    border-color: var(--primary-color);
}

.popular-badge {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 1px;
    width: 80%;
}

.plan-header h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.plan-header p {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 30px;
}

.pricing-card.popular .plan-header p {
    color: #94a3b8;
}

.plan-price {
    font-size: 4rem;
    font-weight: 900;
    font-family: var(--font-heading);
    color: var(--heading-color);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    line-height: 1;
    margin-bottom: 10px;
}

.plan-price .currency {
    font-size: 2rem;
    margin-top: 5px;
}

.plan-price .period {
    font-size: 1rem;
    font-weight: 500;
    align-self: flex-end;
    margin-bottom: 10px;
    color: #64748b;
}

.total-price {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.save-badge {
    display: inline-block;
    background-color: #10b981;
    color: var(--white);
    padding: 5px 15px;
    border-radius: 5px;
    font-weight: bold;
    margin-bottom: 30px;
}

/* Newsletter */
.newsletter {
    padding: 80px 0;
    background-color: var(--primary-color);
    background-image: linear-gradient(135deg, var(--primary-color), #D99700);
}

.newsletter-box {
    text-align: center;
    color: var(--white);
    max-width: 700px;
    margin: 0 auto;
}

.newsletter-box h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.newsletter-box p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    background: var(--white);
    padding: 8px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.newsletter-form input {
    flex: 1;
    border: none;
    padding: 15px 25px;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    font-family: var(--font-body);
}

.newsletter-form .btn {
    padding: 15px 35px;
    box-shadow: none;
}

/* Footer */
.footer {
    background-color: var(--dark-bg);
    color: #94a3b8;
    padding: 100px 0 30px;
}

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

.brand-widget .logo {
    color: var(--white);
    display: inline-block;
    margin-bottom: 20px;
}

.brand-widget p {
    margin-bottom: 25px;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.footer-widget h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 25px;
}

.footer-widget ul li {
    margin-bottom: 15px;
}

.footer-widget ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-widget ul li {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.contact-widget ul li i {
    color: var(--primary-color);
    margin-top: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Animations & Keyframes */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.visible {
    opacity: 1;
    transform: translate(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .hero-content h1 { font-size: 3rem; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-bg-shape { width: 40%; }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions .btn { display: none; }
    .mobile-toggle { display: block; }
    
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content { padding-right: 0; margin-bottom: 50px; }
    .hero-content p { margin: 0 auto 30px; }
    .hero-buttons { justify-content: center; }
    .featured-on { justify-content: center; }
    
    .hero-bg-shape { display: none; }
    
    .product-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-card.popular { transform: none; }
    .pricing-card.popular:hover { transform: translateY(-5px); }
    
    .ingredients-content { flex-direction: column; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 480px) {
    .features-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.5rem; }
    .newsletter-form { flex-direction: column; background: transparent; padding: 0; box-shadow: none; gap: 15px; }
    .newsletter-form input { width: 100%; }
    .floating-badge { display: none; }
}

/* Swiper Carousel Styles */
.product-swiper {
    padding: 20px 10px 50px 10px; /* Add padding for shadow and pagination */
}
.swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
}
.swiper-button-next, .swiper-button-prev {
    color: var(--primary-color) !important;
}

/* Libro de Reclamaciones Badge */
.libro-reclamaciones-badge {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 15px;
    text-decoration: none;
    color: #333 !important;
    transition: all 0.3s ease;
    max-width: 300px;
}
.libro-reclamaciones-badge:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.libro-icon {
    font-size: 2rem;
    color: #1e3a8a; /* Dark Blue */
    margin-right: 15px;
}
.libro-text {
    display: flex;
    flex-direction: column;
}
.libro-text strong {
    font-size: 0.95rem;
    font-weight: 800;
    color: #b91c1c; /* Dark Red */
    line-height: 1.1;
    margin-bottom: 2px;
}
.libro-text span {
    font-size: 0.65rem;
    color: #64748b;
    line-height: 1.2;
}
