/* Global Styles */
:root {
    --primary-color: #e62e2d;
    --secondary-color: #1e73be;
    --dark-bg: #111;
    --card-bg: #fff;
    --text-main: #333;
    --text-light: #666;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    background-color: #f4f4f4;
    color: var(--text-main);
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

#main-content {
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--white);
    box-shadow: 0 0 40px rgba(0,0,0,0.1);
    min-height: 100vh;
    width: 100%;
}

.home-container {
    padding-bottom: 50px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

img {
    max-width: 100%;
    display: block;
}

/* Header Styling */
.main-header {
    background-color: #000;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.top-bar {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
}

.top-bar a {
    color: #fff;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    padding: 0 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-area img {
    height: 50px;
    display: block;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 25px;
}

.main-nav ul li a {
    display: block;
    padding: 15px 0;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
}

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

/* Submenu Styling */
.main-nav ul li {
    position: relative;
}

.main-nav .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #000;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 0 !important;
    padding: 10px 0 !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    z-index: 1100;
    border-top: 2px solid var(--primary-color);
    
    /* Slide effect */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.main-nav .submenu li {
    width: 100%;
}

.main-nav .submenu li a {
    padding: 12px 20px !important;
    text-transform: none !important;
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
    border-bottom: 1px solid #222;
}

.main-nav .submenu li:last-child a {
    border-bottom: none;
}

.main-nav .submenu li a:hover {
    background-color: #111;
    color: var(--primary-color);
}

.main-nav li:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Third level submenu */
.main-nav .submenu li {
    position: relative;
}

.main-nav .submenu .submenu {
    top: 0;
    left: 100%;
    margin-top: -10px;
    transform: translateX(10px);
}

.main-nav .submenu li:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

/* Hero Slider */
.hero-slider {
    height: 500px;
    position: relative;
    overflow: hidden;
    color: #fff;
    width: 100%;
    margin-bottom: 0;
}

.slider-container {
    height: 100%;
    width: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.nav-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.hero-content-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 60px;
}

.hero-content {
    max-width: 600px;
}

.category-badge {
    background: var(--primary-color);
    padding: 5px 15px;
    font-weight: bold;
    font-size: 12px;
    display: inline-block;
    margin-bottom: 15px;
}

.hero-content h1 {
    font-size: 48px;
    margin: 0 0 10px;
    line-height: 1.1;
    font-weight: 800;
    text-transform: uppercase;
}

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

.btn-red {
    background: var(--primary-color);
    color: #fff;
    padding: 12px 25px;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
}

.btn-red:hover {
    background: #c22120;
}

/* Featured Grid */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 30px 40px 0;
    margin-bottom: 40px;
}

.featured-card {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: 0.5s;
}

.featured-card:hover {
    filter: brightness(1.2);
}

.card-link {
    display: flex;
    height: 100%;
    align-items: flex-end;
    padding: 25px;
    color: #fff;
}

.card-info h3 {
    margin: 10px 0 0;
    font-size: 20px;
    text-transform: uppercase;
    line-height: 1.2;
}

.category-icon {
    font-size: 24px;
}

/* Section Common */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 15px;
    margin: 0 40px;
    border-bottom: 3px solid #eee;
    margin-bottom: 30px;
}

.section-header h2 {
    margin: 0;
    font-size: 24px;
    text-transform: uppercase;
    font-weight: 800;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.view-all {
    font-size: 12px;
    font-weight: bold;
    color: var(--text-light);
    text-transform: uppercase;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0 40px;
}

/* Forms */
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 5px rgba(30, 115, 190, 0.2);
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #444;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.post-card h3 {
    margin: 15px 0 10px;
    font-size: 18px;
    line-height: 1.3;
}

.post-card p {
    font-size: 14px;
    color: var(--text-light);
}

.post-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

/* Single Post & Pages */
.container {
    padding: 20px;
}

.single-post, .collaborator-detail {
    max-width: 900px;
    margin: 0 auto;
}

.post-title, .page-title {
    font-size: 42px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
    line-height: 1.1;
}

.post-date {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 30px;
    text-transform: uppercase;
    font-weight: bold;
}

.post-image-main {
    margin-bottom: 40px;
}

.post-image-main img {
    width: 100%;
    border-radius: 8px;
}

.post-body {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.post-body p {
    margin-bottom: 25px;
}

.back-link-wrapper {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.back-link {
    color: var(--primary-color);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
}

/* Collaborators Grid */
.collaborators-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.collaborator-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
}

.collaborator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

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

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

.collaborator-info h2 {
    font-size: 18px;
    margin: 0;
    text-transform: uppercase;
}

/* Venta Motos Grid */
.venta-motos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.moto-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.moto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.moto-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.moto-info {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.moto-info h2 {
    font-size: 18px;
    margin: 0 0 15px;
    text-transform: uppercase;
}

.buy-button {
    background: var(--primary-color);
    color: #fff;
    padding: 10px 15px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
}

/* Category Columns */
.category-sections {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 40px 40px 0;
}

.section-column .section-header {
    margin: 0 0 20px;
}

.post-card-small {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.post-thumb-small img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}

.post-info-small h4 {
    margin: 0 0 5px;
    font-size: 14px;
    line-height: 1.2;
}

.post-info-small p {
    font-size: 12px;
    color: var(--text-light);
    margin: 0;
}

/* Footer */
.main-footer {
    background-color: #000000;
    color: #fff;
    padding: 20px 0;
    font-size: 12px;
    width: 100%;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.footer-info p {
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-social a {
    color: #fff;
    font-size: 18px;
    transition: color 0.3s;
}

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

/* Tera Contact Form */
.contact-form-wrapper {
    background: #fdfdfd;
    border-radius: 8px;
}

/* Image Utilities */
.image-center {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.image-center img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.image-grid {
    justify-content: center;
}

.d-flex {
    display: flex;
}

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

.gap-3 {
    gap: 1rem;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-3 {
    margin-bottom: 1rem;
}

.flex-wrap {
    flex-wrap: wrap;
}

.image-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.image-grid-2 img {
    width: 100%;
    border-radius: 4px;
}

.tera-banner {
    display: flex;
    justify-content: center;
}

.tera-banner img {
    max-width: 600px !important;
    width: 100%;
    height: auto;
}

.contact-form-wrapper h3 {
    margin-top: 0;
    margin-bottom: 25px;
    font-weight: 800;
    font-size: 22px;
    color: #111;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
}

/* Ad Banner */
.ad-banner {
    background-size: cover;
    background-position: center;
    padding: 100px 40px;
    margin: 60px 0;
    color: #fff;
    text-align: center;
    position: relative;
}

.ad-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}

.ad-banner-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.ad-banner h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.ad-banner p {
    font-size: 20px;
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-slider { height: 400px; }
    .hero-content-wrapper { padding: 30px; }
    .hero-content h1 { font-size: 32px; }
    .category-sections, .cards-grid { grid-template-columns: 1fr; }
    .featured-grid { grid-template-columns: 1fr; }
    .venta-motos-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .venta-motos-grid { grid-template-columns: 1fr; }
    .header-container { padding: 0 20px; }
    .hero-content h1 { font-size: 24px; }
}

/* Cookie Popup */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1a1a1a;
    color: #fff;
    padding: 20px 40px;
    display: none;
    justify-content: space-between;
    align-items: center;
    z-index: 10000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.cookie-banner.show {
    display: flex;
    transform: translateY(0);
}

.cookie-content {
    max-width: 800px;
    font-size: 14px;
}

.cookie-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
}

.form-check {
    display: ruby;
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 20px;
    }
}
