/**
 * Estilos Generales
 * Sabores de Sol by MAYBELL S.A.C.
 */

/* Variables CSS */
:root {
    --primary-color: #5a9d34; /* Verde natural */
    --secondary-color: #f7a325; /* Naranja cálido */
    --accent-color: #e5e059; /* Amarillo suave */
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #333333;
    --background-color: #ffffff;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Botón Intranet */
.intranet-btn {
    background-color: var(--primary-color);
    color: white !important;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.intranet-btn:hover {
    background-color: #4a8029;
    color: white;
}

.intranet-btn::after {
    display: none;
}

/* Botones de idioma */
.language-switcher {
    display: flex;
    gap: 5px;
    margin-left: 15px !important;
}

.lang-btn {
    padding: 6px 12px !important;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background-color: var(--primary-color);
    color: white !important;
}

.lang-btn.active {
    background-color: var(--primary-color);
    color: white !important;
}

.lang-btn.active::after {
    display: none;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../../img/hero-bg.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    margin-top: 90px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

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

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1.2s ease;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    animation: fadeInUp 1.4s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background-color: #e69012;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ============================================
   SECTIONS
   ============================================ */
section {
    padding: 80px 0;
}

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

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    height: 3px;
    width: 70px;
    background-color: var(--secondary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    background-color: #f9f9f9;
}

.about-cards {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 30px;
}

.about-card {
    flex: 0 0 calc(33.33% - 30px);
    background-color: white;
    padding: 30px;
    margin: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.about-card p {
    color: #666;
}

.about-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
#products {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 20px 0;
}

#products .section-header {
    margin-bottom: 10px;
}

#products .section-header h2 {
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

#products .section-header p {
    font-size: 1.2rem;
    margin-bottom: 0;
}

#products .section-header p strong {
    color: var(--secondary-color);
    font-size: 1.3rem;
}

.brand-logo {
    text-align: center;
    padding: 5px 0 15px 0;
}

.brand-logo img {
    max-width: 250px !important;
}

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

.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-img {
    height: 200px;
    background-color: #f1f1f1;
    background-size: cover;
    background-position: center;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.product-info p {
    color: #666;
    margin-bottom: 15px;
    text-align: center;
}

/* ============================================
   PROCESS SECTION
   ============================================ */
.process-steps {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    counter-reset: process-counter;
}

.process-step {
    flex: 0 0 calc(25% - 30px);
    margin: 15px;
    text-align: center;
    position: relative;
    padding-top: 40px;
}

.process-step::before {
    counter-increment: process-counter;
    content: counter(process-counter);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 20px;
    left: calc(50% + 20px);
    width: calc(100% - 20px);
    height: 2px;
    background-color: var(--primary-color);
}

.process-step:last-child::after {
    display: none;
}

.process-step h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.process-step p {
    color: #666;
}

.process-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: #f1f1f1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--secondary-color);
}

/* ============================================
   CERTIFICATIONS SECTION
   ============================================ */
.certifications {
    background-color: #f9f9f9;
}

.cert-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.cert-item {
    flex: 0 0 200px;
    margin: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.cert-item:hover {
    transform: scale(1.05);
}

.cert-img {
    width: 150px;
    height: 150px;
    margin: 0 auto 15px;
    background-color: #f1f1f1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    border: 3px solid var(--primary-color);
}

.cert-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.cert-item p {
    color: #666;
    font-size: 0.9rem;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-content {
    display: flex;
    flex-wrap: wrap;
}

.contact-info {
    flex: 0 0 40%;
    padding-right: 40px;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-details p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    color: #666;
}

.contact-details p i {
    width: 30px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.contact-form {
    flex: 0 0 60%;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #f5c6cb;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #4a8029;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background-color: #333;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-col {
    flex: 0 0 calc(25% - 30px);
    margin-bottom: 30px;
}

.footer-col h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-col p {
    margin-bottom: 15px;
    color: #bbb;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
}

.social-media {
    display: flex;
}

.social-media a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #444;
    border-radius: 50%;
    margin-right: 10px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-media a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
}

.footer-bottom p {
    color: #bbb;
    font-size: 0.9rem;
}

/* Estilo para la columna del mapa (doble ancho) */
.footer-col-map {
    flex: 0 0 calc(50% - 30px);
}

/* Estilo para el contenedor del mapa */
.map-container {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    height: 180px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 992px) {
    .about-card {
        flex: 0 0 calc(50% - 30px);
    }
    
    .process-step {
        flex: 0 0 calc(50% - 30px);
    }
    
    .process-step:nth-child(2)::after {
        display: none;
    }
    
    .contact-info, .contact-form {
        flex: 0 0 100%;
    }
    
    .contact-info {
        margin-bottom: 40px;
        padding-right: 0;
    }
    
    .footer-col,
    .footer-col-map {
        flex: 0 0 calc(50% - 30px);
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .hero {
        margin-top: 140px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .footer-col,
    .footer-col-map {
        flex: 0 0 100%;
    }
}

@media (max-width: 576px) {
    .about-card {
        flex: 0 0 100%;
    }
    
    .process-step {
        flex: 0 0 100%;
    }
    
    .process-step::after {
        display: none;
    }
    
    .footer-col {
        flex: 0 0 100%;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}