/*
Theme Name: El Riego
Theme URI: https://elriego.es
Description: Tema profesional, futurista y cálido para El Riego - Gestión Integral de Productos
Version: 1.0.0
Author: El Riego
Author URI: https://elriego.es
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: el-riego
Domain Path: /languages
Requires at least: 5.0
Requires PHP: 7.4
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

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

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #fafaf7;
    color: #1a1a1a;
    line-height: 1.6;
}

/* ===== HEADER ===== */
.site-header {
    background: linear-gradient(180deg, #1a472a 0%, #2d5a3d 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-title {
    font-size: 28px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #e8a76a 0%, #d4845c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.site-description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Navigation */
.main-navigation {
    display: flex;
    gap: 30px;
}

.main-navigation a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #e8a76a 0%, #d4845c 100%);
    transition: width 0.3s ease;
}

.main-navigation a:hover {
    color: white;
}

.main-navigation a:hover::after {
    width: 100%;
}

.main-navigation a.active {
    color: white;
}

.main-navigation a.active::after {
    width: 100%;
}

/* ===== MAIN CONTENT ===== */
.site-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, #1a472a 0%, #2d5a3d 25%, #d4845c 75%, #e8a76a 100%);
    color: white;
    padding: 100px 20px;
    border-radius: 16px;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(232, 167, 106, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(26, 71, 42, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(30px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    display: inline-block;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #1a472a 0%, #2d5a3d 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(26, 71, 42, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(26, 71, 42, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #d4845c 0%, #e8a76a 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(212, 132, 92, 0.2);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(212, 132, 92, 0.3);
}

/* ===== CARDS SECTION ===== */
.cards-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-left: 4px solid;
    border-image: linear-gradient(135deg, #1a472a 0%, #d4845c 100%) 1;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    right: -50px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(232, 167, 106, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

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

.card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a472a;
    font-family: 'Poppins', sans-serif;
}

.card p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

/* ===== FEATURES SECTION ===== */
.features-section {
    background: linear-gradient(135deg, rgba(26, 71, 42, 0.05) 0%, rgba(212, 132, 92, 0.05) 100%);
    padding: 60px 20px;
    border-radius: 16px;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    background: linear-gradient(135deg, #1a472a 0%, #d4845c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Poppins', sans-serif;
}

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

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1a472a 0%, #2d5a3d 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
}

.feature-item h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a472a;
    font-family: 'Poppins', sans-serif;
}

.feature-item p {
    color: #666;
    font-size: 14px;
}

/* ===== FOOTER ===== */
.site-footer {
    background: linear-gradient(180deg, #1a472a 0%, #2d5a3d 100%);
    color: white;
    padding: 60px 20px 30px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

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

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #e8a76a;
}

.footer-bottom {
    border-top: 1px solid rgba(232, 167, 106, 0.3);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

/* ===== POSTS ===== */
.post {
    background: white;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    border-left: 4px solid #d4845c;
}

.post-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a472a;
    font-family: 'Poppins', sans-serif;
}

.post-meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 20px;
}

.post-content {
    color: #555;
    line-height: 1.8;
}

.post-content p {
    margin-bottom: 15px;
}

.post-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 30px 0 15px;
    color: #1a472a;
    font-family: 'Poppins', sans-serif;
}

.post-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 25px 0 12px;
    color: #2d5a3d;
    font-family: 'Poppins', sans-serif;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
}

/* ===== SIDEBAR ===== */
.sidebar {
    background: white;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #1a472a;
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a472a;
    font-family: 'Poppins', sans-serif;
    padding-bottom: 15px;
    border-bottom: 2px solid #e8a76a;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    margin-bottom: 12px;
    padding-left: 15px;
    position: relative;
}

.widget ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: #d4845c;
    border-radius: 50%;
}

.widget a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.widget a:hover {
    color: #d4845c;
}

/* ===== FORMS ===== */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    background: #fafaf7;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #d4845c;
    background: white;
    box-shadow: 0 0 0 4px rgba(212, 132, 92, 0.1);
}

label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a472a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .site-header-inner {
        flex-direction: column;
        gap: 15px;
    }

    .main-navigation {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .hero-section {
        padding: 60px 20px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .section-title {
        font-size: 28px;
    }

    .cards-section,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .site-content {
        padding: 40px 20px;
    }
}

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

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

.mt-30 {
    margin-top: 30px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mt-60 {
    margin-top: 60px;
}

.mb-60 {
    margin-bottom: 60px;
}
