/* ============================================
   Bonita Theme - Custom CSS
   ============================================ */

/* Variables CSS */
:root {
    --primary: #2c3e50;
    --secondary: #e74c3c;
    --accent: #f39c12;
    --light: #ecf0f1;
    --dark: #1a252f;
    --text: #333;
    --text-light: #7f8c8d;
    --border: #ddd;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 5px 20px rgba(0,0,0,0.15);
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: #f8f9fa;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 { font-size: 2.5em; }
h2 { font-size: 2em; }
h3 { font-size: 1.5em; }
h4 { font-size: 1.2em; }

p { margin-bottom: 1rem; }

a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* Header */
header {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
}

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

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
}

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

.search-box {
    display: flex;
    align-items: center;
    background: var(--light);
    padding: 8px 15px;
    border-radius: 20px;
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    width: 200px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
    color: white;
}

.hero p {
    font-size: 1.3em;
    max-width: 600px;
    margin: 0 auto 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--secondary);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

/* Sections */
.section { padding: 60px 0; }

.section-title {
    font-size: 2em;
    margin-bottom: 40px;
    text-align: center;
    color: var(--primary);
}

/* Featured Section */
.featured {
    padding: 60px 0;
}

/* Categories Section */
.categories {
    background: white;
    padding: 60px 0;
}

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

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

.footer-col h4 {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: white;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--light); }
.footer-col a:hover { color: var(--secondary); }

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

/* Featured Grid */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.featured-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.featured-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.featured-card-content { padding: 25px; }

.featured-card .category {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.85em;
    margin-bottom: 15px;
}

.featured-card h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
}

.featured-card h3 a { color: var(--primary); }
.featured-card p { color: var(--text-light); margin-bottom: 15px; }

.featured-card .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
    color: var(--text-light);
}

/* Categories Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--light);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: var(--primary);
    transition: background 0.3s, transform 0.3s;
}

.category-card:hover {
    background: var(--secondary);
    color: white;
    transform: scale(1.05);
}

.category-card .icon {
    font-size: 2.5em;
    margin-bottom: 15px;
}

/* Blog Layout */
.blog-section { padding: 60px 0; }

.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.blog-post {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 300px 1fr;
}

.blog-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-post-content { padding: 25px; }

.blog-post .category {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    margin-bottom: 10px;
}

.blog-post h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
}

.blog-post h3 a { color: var(--primary); }

.blog-post .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
    color: var(--text-light);
    margin-top: 15px;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.sidebar-widget h4 {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: var(--primary);
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 10px;
}

.popular-posts { list-style: none; }

.popular-posts li {
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.popular-posts li:last-child { border-bottom: none; }
.popular-posts a { text-decoration: none; color: var(--text); font-weight: 500; }
.popular-posts a:hover { color: var(--secondary); }

.popular-posts .date {
    display: block;
    font-size: 0.85em;
    color: var(--text-light);
    margin-top: 5px;
}

/* Single Post */
.single-post {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 40px auto;
}

.single-post h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    color: var(--text-light);
    flex-wrap: wrap;
}

.post-hero-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
}

.post-content {
    font-size: 1.1em;
    line-height: 1.8;
}

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

.post-content img {
    width: 100%;
    border-radius: 10px;
    margin: 30px 0;
}

.post-content h2 {
    font-size: 1.8em;
    margin: 40px 0 20px;
}

.post-content h3 {
    font-size: 1.4em;
    margin: 30px 0 15px;
}

.post-content ul,
.post-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.post-content li { margin-bottom: 10px; }

.post-content blockquote {
    border-left: 4px solid var(--secondary);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: var(--text-light);
}

/* Related Posts */
.related-posts {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.related-posts h3 {
    font-size: 1.8em;
    margin-bottom: 30px;
    text-align: center;
}

/* Búsqueda */
.search-section { padding: 60px 0; }

.search-form {
    max-width: 600px;
    margin: 0 auto 40px;
    display: flex;
    gap: 10px;
}

.search-form input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid var(--border);
    border-radius: 25px;
    font-size: 1em;
    outline: none;
    transition: border-color 0.3s;
}

.search-form input:focus { border-color: var(--secondary); }

.search-results {
    max-width: 800px;
    margin: 0 auto;
}

.search-result {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.search-result h3 { margin-bottom: 10px; }
.search-result .date { color: var(--text-light); font-size: 0.9em; }

/* Paginación */
.pagination {
    margin: 40px 0;
    text-align: center;
}

.pagination ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination li a,
.pagination li .current {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s, color 0.3s;
}

.pagination li a {
    background: white;
    color: var(--text);
    box-shadow: var(--shadow);
}

.pagination li a:hover {
    background: var(--secondary);
    color: white;
}

.pagination li .current {
    background: var(--secondary);
    color: white;
}

.pagination .prev,
.pagination .next { font-weight: 600; }

/* Newsletter Section */
.newsletter {
    background: var(--primary);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.newsletter h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: white;
}

.newsletter p {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.newsletter .newsletter-form {
    max-width: 500px;
    margin: 30px auto 0;
    display: flex;
    gap: 10px;
}

.newsletter .newsletter-form input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 25px;
    font-size: 1em;
    outline: none;
}

.newsletter .newsletter-form .btn {
    background: var(--secondary);
    border: none;
    cursor: pointer;
}

/* Sidebar Newsletter (diferente) */
.sidebar-widget .newsletter-form {
    display: flex;
    flex-direction: column;
}

.sidebar-widget .newsletter-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 5px;
    margin-bottom: 10px;
    font-size: 1em;
}

/* Tienda */
.tienda-section { padding: 60px 0; }

.tienda-intro {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    font-size: 1.1em;
    color: var(--text-light);
}

.tienda-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
}

.tienda-filters {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filter-widget {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.filter-widget h4 {
    margin-bottom: 15px;
    color: var(--primary);
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 10px;
}

.filter-widget ul { list-style: none; }
.filter-widget li { margin-bottom: 10px; }

.filter-widget select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 1em;
}

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

/* Product Card */
.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

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

.product-card-content { padding: 20px; }

.product-card-category {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    margin-bottom: 10px;
}

.product-card-title {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.product-card-title a { color: var(--primary); }
.product-card-rating { margin-bottom: 10px; }
.product-card-price { margin-bottom: 15px; }

.product-card-price .price {
    font-size: 1.5em;
    color: var(--secondary);
    font-weight: bold;
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9em;
}

/* Producto Individual */
.producto-page { padding: 60px 0; }

.producto-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.producto-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.producto-image img {
    width: 100%;
    height: auto;
}

.producto-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.producto-category {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    align-self: flex-start;
}

.producto-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.star {
    color: var(--border);
    font-size: 1.5em;
}

.star.filled { color: var(--accent); }

.rating-value {
    margin-left: 10px;
    color: var(--text-light);
}

.producto-price { margin: 20px 0; }

.producto-price .price {
    font-size: 2.5em;
    color: var(--secondary);
    font-weight: bold;
}

.btn-affiliate {
    display: inline-block;
    padding: 15px 40px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1em;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-affiliate:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.stock-status { font-weight: 600; }
.stock-status.in-stock { color: #27ae60; }
.stock-status.out-of-stock { color: #e74c3c; }

.producto-description {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.producto-description h2 {
    margin-bottom: 20px;
    color: var(--primary);
}

.producto-description h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h1 { font-size: 2em; }
    
    .search-box input { width: 150px; }
    
    .featured-grid { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    
    .blog-layout { grid-template-columns: 1fr; }
    
    .blog-post { grid-template-columns: 1fr; }
    .blog-post img { height: 200px; }
    
    .single-post { padding: 20px; }
    .single-post h1 { font-size: 1.8em; }
    .post-content img { width: 100%; height: auto; }
    
    .tienda-layout { grid-template-columns: 1fr; }
    .tienda-filters { order: 2; }
    .product-grid { grid-template-columns: 1fr; }
    .producto-layout { grid-template-columns: 1fr; }
    .producto-price .price { font-size: 2em; }
    
    .post-meta { flex-direction: column; gap: 10px; }
}

@media (max-width: 480px) {
    .hero { padding: 40px 0; }
    .hero h1 { font-size: 1.5em; }
    .hero p { font-size: 1em; }
    .section { padding: 30px 0; }
    .section-title { font-size: 1.5em; }
    .category-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Form Styles (Modern & Comfortable UI)
   ============================================ */

.contact-card-container {
    max-width: 740px;
    margin: 2rem auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 3rem 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid #eaeaea;
}

.contact-header {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-header h1 {
    font-size: 2.2rem;
    color: var(--primary, #2c3e50);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.contact-header p {
    color: #666;
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Grav Form Field Styling */
.form-field {
    margin-bottom: 1.6rem;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.form-label .required,
span.required {
    color: #e74c3c;
    margin-left: 3px;
}

.form-input-wrapper,
.form-textarea-wrapper,
.form-select-wrapper,
.form-field {
    width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
}

.form-input-wrapper input[type="text"],
.form-input-wrapper input[type="email"],
.form-select-wrapper select,
.form-textarea-wrapper textarea,
.contact-form-wrapper input[type="text"],
.contact-form-wrapper input[type="email"],
.contact-form-wrapper select,
.contact-form-wrapper textarea {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    padding: 0.9rem 1.15rem;
    font-size: 1rem;
    font-family: inherit;
    color: #333;
    background-color: #fcfcfc;
    border: 1.5px solid #dcdfe6;
    border-radius: 10px;
    transition: all 0.25s ease-in-out;
    box-sizing: border-box !important;
}

.form-input-wrapper input[type="text"]:focus,
.form-input-wrapper input[type="email"]:focus,
.form-select-wrapper select:focus,
.form-textarea-wrapper textarea:focus,
.contact-form-wrapper input:focus,
.contact-form-wrapper select:focus,
.contact-form-wrapper textarea:focus {
    background-color: #ffffff;
    border-color: #e74c3c;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.12);
    outline: none;
}

.form-select-wrapper select,
.contact-form-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c3e50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2em;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-textarea-wrapper textarea,
.contact-form-wrapper textarea {
    resize: vertical;
    min-height: 220px !important;
    line-height: 1.6;
}

/* Checkbox & GDPR */
.form-field-checkbox {
    margin-top: 1.25rem;
}

.form-input-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #e74c3c;
    margin-right: 10px;
    cursor: pointer;
    vertical-align: middle;
}

.form-field-checkbox label.inline {
    font-size: 0.95rem;
    color: #555;
    cursor: pointer;
    line-height: 1.5;
    vertical-align: middle;
}

.form-field-checkbox label.inline a {
    color: #e74c3c;
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.2s;
}

.form-field-checkbox label.inline a:hover {
    color: #c0392b;
}

/* Buttons */
.form-field-button,
.form-actions {
    margin-top: 2rem;
    text-align: center;
}

.form-field-button button,
.form-field-button input[type="submit"],
.contact-form-wrapper button[type="submit"],
.contact-form-wrapper input[type="submit"] {
    display: inline-block;
    width: 100%;
    max-width: 280px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0.95rem 2rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(231, 76, 60, 0.35);
    transition: all 0.25s ease;
}

.form-field-button button:hover,
.form-field-button input[type="submit"]:hover,
.contact-form-wrapper button[type="submit"]:hover,
.contact-form-wrapper input[type="submit"]:hover {
    background: linear-gradient(135deg, #ff5252 0%, #d63031 100%);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.45);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .contact-card-container {
        padding: 2rem 1.5rem;
        margin: 1rem auto;
    }
}


/* Breadcrumbs */
.breadcrumbs {
    margin: 1rem 0 2rem 0;
    font-size: 0.9rem;
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0;
    margin: 0;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
}

.breadcrumbs a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.breadcrumbs .separator {
    margin: 0 0.5rem;
    color: var(--text-light);
}

.breadcrumbs [aria-current="page"] {
    color: var(--text);
    font-weight: 500;
}
