/* Estilos para el sitio web de Valle Frutal SpA */

/* Variables */
:root {
    --primary-color: #4CAF50;
    --secondary-color: #FF9800;
    --dark-color: #333;
    --light-color: #f8f9fa;
    --text-color: #333;
    --border-radius: 5px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Reset y estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

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

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
    border: 2px solid var(--secondary-color);
}

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

.section {
    padding: 80px 0;
}

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

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 15px auto;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: white;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 40px;
    height: 40px;
    position: relative;
}

.double-bounce1, .double-bounce2 {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0.6;
    position: absolute;
    top: 0;
    left: 0;
    animation: bounce 2s infinite ease-in-out;
}

.double-bounce2 {
    animation-delay: -1.0s;
}

@keyframes bounce {
    0%, 100% { transform: scale(0); }
    50% { transform: scale(1); }
}

/* Header */
.top-bar {
    background-color: var(--dark-color);
    color: white;
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar a {
    color: white;
    margin-right: 15px;
}

.top-bar a:hover {
    color: var(--secondary-color);
}

.contact-info {
    display: flex;
    align-items: center;
}

.social-links {
    display: inline-flex;
    margin-right: 20px;
}

.social-links a {
    margin-right: 10px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

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

.language-selector {
    display: inline-flex;
}

.language-selector a {
    margin-right: 5px;
    padding: 2px 5px;
    border-radius: 3px;
}

.language-selector a.active {
    background-color: var(--primary-color);
}

.navbar {
    background-color: white;
    box-shadow: var(--box-shadow);
    padding: 15px 0;
}

.navbar-brand img {
    height: 50px;
}

.navbar-nav .nav-link {
    color: var(--dark-color);
    font-weight: 600;
    padding: 10px 15px;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    z-index: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.hero-content {
    color: white;
    max-width: 800px;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.hero-content .btn {
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

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

/* Nuestra Esencia Section */
.content-box {
    padding: 30px;
}

.content-highlight {
    background-color: var(--light-color);
    padding: 20px;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 500;
}

.features {
    margin-top: 30px;
}

.feature {
    display: flex;
    margin-bottom: 20px;
}

.feature-icon {
    flex: 0 0 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 1.2rem;
}

.feature-content h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.image-box {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.image-box img {
    transition: var(--transition);
}

.image-box:hover img {
    transform: scale(1.05);
}

/* Productos Section */
.product-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
    transition: var(--transition);
}

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

.product-image {
    height: 250px;
    overflow: hidden;
}

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

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

.product-content {
    padding: 20px;
}

.product-content h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Catálogo Section */
.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.filter-btn {
    background-color: var(--light-color);
    color: var(--dark-color);
    border: none;
    padding: 10px 20px;
    margin: 5px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.catalog-item {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.catalog-item:hover {
    transform: translateY(-10px);
}

.catalog-image {
    height: 200px;
    overflow: hidden;
}

.catalog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.catalog-item:hover .catalog-image img {
    transform: scale(1.1);
}

.catalog-content {
    padding: 20px;
}

.catalog-content h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.catalog-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #666;
}

.catalog-description {
    margin-bottom: 15px;
}

.view-more-btn {
    text-align: center;
    margin-top: 40px;
}

/* Disponibilidad Section */
.availability-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    background-color: white;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.availability-table th,
.availability-table td {
    padding: 15px;
    text-align: center;
    border: 1px solid #eee;
}

.availability-table th {
    background-color: var(--primary-color);
    color: white;
}

.availability-table tr:nth-child(even) {
    background-color: var(--light-color);
}

.availability-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
}

.available {
    background-color: var(--primary-color);
}

.limited {
    background-color: var(--secondary-color);
}

.unavailable {
    background-color: #ddd;
}

.availability-legend {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin: 0 15px;
}

.legend-indicator {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin-right: 5px;
}

/* Mercados Section */
.map-container {
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

.market-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.stat-card {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.stat-title {
    color: #666;
    font-size: 1.1rem;
}

/* Ventajas Section */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.advantage-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.advantage-card:hover {
    transform: translateY(-10px);
}

.advantage-icon {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    font-size: 2.5rem;
}

.advantage-content {
    padding: 20px;
}

.advantage-content h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Testimonios Section */
.testimonial-slider {
    margin-top: 40px;
}

.testimonial-card {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 15px;
}

.testimonial-content {
    position: relative;
    padding: 20px 0;
}

.testimonial-content::before {
    content: '\201C';
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: -20px;
    left: -10px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h5 {
    margin-bottom: 5px;
}

.author-info p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Contacto Section */
.contact-info-box {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    margin-bottom: 20px;
}

.contact-icon {
    flex: 0 0 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 1.2rem;
}

.contact-content h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.contact-form {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 0;
}

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

.footer-about p {
    margin-bottom: 20px;
}

.footer-title {
    color: white;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer-links li {
    margin-bottom: 10px;
    list-style: none;
}

.footer-links a {
    color: #ddd;
    transition: var(--transition);
}

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

.footer-contact li {
    margin-bottom: 15px;
    list-style: none;
    display: flex;
}

.footer-contact-icon {
    margin-right: 15px;
    color: var(--primary-color);
}

.footer-newsletter p {
    margin-bottom: 20px;
}

.newsletter-form {
    position: relative;
}

.newsletter-input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.newsletter-input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.2);
}

.newsletter-btn {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    padding: 0 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .navbar-collapse {
        background-color: white;
        padding: 15px;
        border-radius: var(--border-radius);
        box-shadow: var(--box-shadow);
    }
}

@media (max-width: 767px) {
    .top-bar {
        text-align: center;
    }
    
    .contact-info, .social-links, .language-selector {
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .feature, .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon, .contact-icon {
        margin: 0 auto 15px;
    }
    
    .footer-widget {
        margin-bottom: 30px;
    }
}

@media (max-width: 575px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 1.2rem;
    }
}
#scrollToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: background 0.2s, transform 0.2s;
    font-size: 24px;
}

#scrollToTopBtn:hover {
    background: #218838;
    transform: scale(1.08);
}