:root {
    --massafarm-green: #4A7C59;
    --massafarm-green-light: #5a8d69;
    --massafarm-green-dark: #3a5f47;
    --massafarm-orange: #F39C12;
    --massafarm-orange-light: #f5b041;
    --massafarm-light: #f5f5f5;
    --massafarm-dark: #2c3e50;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--massafarm-dark);
    background: #fafafa;
}

.navbar {
    background-color: white !important;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    padding: 0.75rem 1rem;
}

.navbar-brand img {
    max-height: 120px;
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.is-interior-page .navbar-brand img {
    max-height: 90px;
}

.navbar-brand:hover img {
    transform: scale(1.02);
}

.navbar-item,
.navbar-link {
    color: var(--massafarm-dark) !important;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.navbar-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--massafarm-orange);
    transform: translateX(-50%);
    transition: var(--transition);
}

.navbar-item:hover::after {
    width: 80%;
}

.navbar-item:hover,
.navbar-link:hover {
    color: var(--massafarm-green) !important;
    background-color: transparent !important;
}

.navbar-item.whatsapp-link {
    background-color: transparent !important;
    color: #25D366 !important;
    border: 2px solid #25D366;
    border-radius: 20px;
    padding: 5px 12px !important;
    margin-left: 1rem;
    font-weight: 700;
    transition: var(--transition);
    height: auto !important;
    min-height: auto !important;
    display: inline-flex !important;
    align-items: center;
    align-self: center;
}

.navbar-item.whatsapp-link:hover {
    background-color: rgba(37, 211, 102, 0.08) !important;
    border-color: #1fb855;
    color: #1fb855 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.15);
}

.navbar-item.whatsapp-link::after {
    display: none;
}

.hero {
    background: linear-gradient(135deg, var(--massafarm-green) 0%, var(--massafarm-green-light) 50%, var(--massafarm-green) 100%);
    color: white;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-50px, 50px) rotate(180deg); }
}

.hero-logo-container {
    background: white;
    padding: 3rem;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    display: inline-block;
    margin-bottom: 2rem;
    animation: fadeInScale 0.8s ease-out;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-logo-container img {
    max-height: 240px;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.hero-body {
    padding: 4rem 1.5rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.95;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-image-section {
    margin-top: 3rem;
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

.hero-image-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.hero-image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
}

.hero-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.section {
    padding: 4rem 1.5rem;
}

.prices-section {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-md);
    margin: 2rem auto;
    max-width: 1200px;
    position: relative;
    overflow: hidden;
}

.prices-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--massafarm-green), var(--massafarm-orange), var(--massafarm-green));
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.prices-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--massafarm-green);
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.prices-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--massafarm-orange);
    border-radius: 2px;
}

.prices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.price-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 3px solid transparent;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--massafarm-green), var(--massafarm-green-light));
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.price-card > * {
    position: relative;
    z-index: 1;
}

.price-card:hover::before {
    opacity: 0.05;
}

.price-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--massafarm-green);
}

.price-card.featured {
    border-color: var(--massafarm-orange);
    background: linear-gradient(135deg, #fff8f0 0%, #ffffff 100%);
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.price-card.featured:hover {
    transform: translateY(-8px) scale(1.05);
}

.price-size {
    font-size: 1.3rem;
    color: var(--massafarm-green);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.price-card.featured .price-size {
    color: var(--massafarm-orange);
}

.price-description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.price-value {
    font-size: 3rem;
    color: var(--massafarm-orange);
    font-weight: 800;
    margin: 1.5rem 0;
    line-height: 1;
}

.price-currency {
    font-size: 1.3rem;
    font-weight: 600;
}

.update-time {
    font-size: 0.9rem;
    color: #888;
    margin-top: 2rem;
    text-align: center;
    font-style: italic;
    padding-top: 1.5rem;
    border-top: 2px solid #f0f0f0;
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #1fb855 100%) !important;
    color: white !important;
    border: none !important;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 1.25rem 2.5rem;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.whatsapp-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.whatsapp-btn:hover::before {
    width: 300px;
    height: 300px;
}

.whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

.section-title {
    color: var(--massafarm-green);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--massafarm-orange);
    border-radius: 2px;
}

.has-text-centered .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.product-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--massafarm-green);
}

.full-width-image {
    width: 100%;
    height: auto;
    display: block;
}

.product-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.product-image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.image-section {
    margin: 4rem 0;
}

.image-section img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

.chart-container {
    position: relative;
    width: 100%;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    margin-bottom: 3rem;
}

.chart-title {
    font-size: 1.5rem;
    color: var(--massafarm-green);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer {
    background: linear-gradient(135deg, var(--massafarm-green-dark) 0%, var(--massafarm-green) 100%);
    color: white;
    padding: 3rem 1.5rem;
    margin-top: 4rem;
}

.footer a {
    color: var(--massafarm-orange-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: white;
    text-decoration: underline;
}

.contact-info {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    border-left: 5px solid var(--massafarm-orange);
}

.contact-info h3 {
    color: var(--massafarm-green);
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 1.5rem;
}

.contact-info p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-info a {
    color: var(--massafarm-orange);
    text-decoration: none;
    font-weight: 600;
}

.contact-info a:hover {
    text-decoration: underline;
}

.admin-login-box {
    max-width: 450px;
    margin: 4rem auto;
    padding: 3rem;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.admin-dashboard {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.message.is-success,
.message.is-danger {
    margin-bottom: 2rem;
    border-radius: 12px;
}

@media screen and (max-width: 1024px) {
    .navbar-brand img {
        max-height: 100px;
    }
    
    .is-interior-page .navbar-brand img {
        max-height: 75px;
    }
    
    .hero-logo-container img {
        max-height: 200px;
    }
    
    .chart-container canvas {
        max-height: 300px;
    }
    
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media screen and (max-width: 768px) {
    .navbar-brand img {
        max-height: 80px;
    }
    
    .is-interior-page .navbar-brand img {
        max-height: 65px;
    }
    
    .hero-logo-container {
        padding: 2rem;
    }
    
    .hero-logo-container img {
        max-height: 160px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-body {
        padding: 3rem 1rem;
    }
    
    .section {
        padding: 3rem 1rem;
    }
    
    .prices-section {
        margin: 1rem;
        padding: 2rem 1.5rem;
    }
    
    .prices-title {
        font-size: 1.8rem;
    }
    
    .prices-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .price-card {
        padding: 2rem 1.5rem;
    }
    
    .price-card.featured {
        transform: scale(1);
        order: -1;
    }
    
    .price-value {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .whatsapp-btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        min-height: 44px;
        min-width: 44px;
    }
    
    .button {
        min-height: 44px;
    }
    
    .navbar-item {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .chart-container {
        padding: 1.5rem;
    }
    
    .chart-container canvas {
        max-height: 250px;
    }
    
    .contact-info {
        padding: 2rem;
    }
    
    .product-card {
        padding: 2rem;
    }
    
    .hero-image-container {
        max-height: 350px;
    }
}

@media screen and (max-width: 480px) {
    .navbar-brand img {
        max-height: 70px;
    }
    
    .is-interior-page .navbar-brand img {
        max-height: 55px;
    }
    
    .hero-logo-container {
        padding: 1.5rem;
    }
    
    .hero-logo-container img {
        max-height: 120px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .prices-section {
        padding: 1.5rem 1rem;
    }
    
    .prices-title {
        font-size: 1.5rem;
    }
    
    .price-size {
        font-size: 1.1rem;
    }
    
    .price-value {
        font-size: 2rem;
    }
    
    .whatsapp-btn {
        width: 100%;
        margin-bottom: 1rem;
        font-size: 1rem;
        padding: 1rem 1.5rem;
    }
    
    .hero-image-container {
        max-height: 250px;
    }
    
    .table {
        font-size: 0.875rem;
    }
    
    .table td, .table th {
        padding: 0.5rem 0.25rem;
    }
}

@media screen and (max-width: 375px) {
    .hero-logo-container img {
        max-height: 100px;
    }
    
    .prices-section {
        padding: 1rem;
        margin: 0.5rem;
    }
    
    .prices-title {
        font-size: 1.3rem;
    }
    
    .price-value {
        font-size: 1.75rem;
    }
    
    .price-card {
        padding: 1.5rem 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .navbar-brand img {
        max-height: 60px;
    }
    
    .is-interior-page .navbar-brand img {
        max-height: 50px;
    }
    
    body {
        font-size: 15px;
    }
}
