/* Global Styles */
body {
    background-color: #1a1a1a;
    background-image: url('fondo_trama_fibra.jpeg');
    background-repeat: repeat;
    color: #ffffff;
    font-family: 'Open Sans', Helvetica, Arial, Lucida, sans-serif;
    margin: 0;
    padding: 0;
}

#main-content {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
    color: #000;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Header Styles */
.main-header {
    background-color: #0a0a0a;
    min-height: 230px;
}

#et-info-phone::before {
  content: "\e090";
  position: relative;
  top: 2px;
  margin-right: 2px;
}

.top-bar {
    background-color: #1e73be;
    color: #fff;
    font-size: 12px;
    padding: 9px 0;
    font-weight: 100;
    width: 100%;
}

.top-bar .container {
    display: flex;
    justify-content: left;
    align-items: left;
    gap: 30px;
}

.social-links a {
    color: #fff;
    margin-left: 15px;
    text-decoration: none;
}
.social-links i {
    font-size: 14px;
}

.main-nav {
    background-color: #0a0a0a;
}

.logo {
    text-align: center;
    margin-bottom: 10px;
    padding: 10px 0px 0px;
}

nav {
    height: 50px;
}
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    height: 100%;
}

nav ul li {
    margin: 0 10px;
    position: relative;
    padding-right: 5px;
    display: flex;
    align-items: center;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 100;
    font-size: 11px;
    text-transform: uppercase;
    transition: color 0.3s;
    height: 100%;
    display: flex;
    align-items: center;
}

nav ul li a:hover {
    opacity: 0.7;
    -webkit-transition: all 0.4s ease-in-out;
    transition: all 0.4s ease-in-out;
}

/* Submenu Styles */
.submenu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 260px;
    box-shadow: 0 2px 28px rgba(0,0,0,0.1);
    border-top: 3px solid #1e73be;
    z-index: 1000;
    padding: 20px 0;
    list-style: none;
    text-align: left;
    /* Dropdown effect */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.4s ease;
}

.submenu li {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

.submenu li a {
    color: #333 !important;
    padding: 12px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 1px;
    transition: background 0.3s;
}

.submenu li a:hover {
    background-color: #f9f9f9;
    opacity: 1 !important;
}

.has-submenu:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Side Submenu */
.side-menu {
    top: -3px;
    left: 100%;
    border-top: 3px solid #1e73be;
}

nav ul li a i {
    font-size: 10px;
    margin-left: 5px;
}

/* Page Title */
.page-title {
    text-align: center;
    color: #e62e2d;
    font-size: 32px;
    margin-top: 50px;
    margin-bottom: 40px;
    text-transform: uppercase;
}

/* Blog Grid */
.blog-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 50px;
}

.blog-card {
    background-color: #fff;
    flex: 1 1 calc(33.333% - 30px);
    box-shadow: 0 1px 10px rgba(0,0,0,0.1);
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
}

.blog-image img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-content {
    padding: 20px;
    flex-grow: 1;
}

.blog-content h2 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.blog-content h2 a {
    color: #333;
    text-decoration: none;
}

.blog-content h2 a:hover {
    color: #e62e2d;
}

.post-date {
    color: #888;
    font-size: 12px;
    margin-bottom: 15px;
}

.excerpt {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.read-more {
    color: #e62e2d;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

/* Single Post */
.single-post {
    background-color: #fff;
    padding: 40px;
    margin-top: 50px;
    margin-bottom: 50px;
    border-radius: 5px;
}

.post-title {
    color: #e62e2d;
    margin-top: 0;
}

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

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

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

.back-link-wrapper {
    margin-top: 40px;
}

.back-link {
    color: #e62e2d;
    text-decoration: none;
    font-weight: bold;
}

/* Quienes Somos Page Specifics */
.single-page {
    padding: 40px;
    margin-bottom: 50px;
}

.image-center {
    text-align: center;
    margin: 30px 0;
}

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

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

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

.section-title {
    color: #1e73be;
    margin-top: 40px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

/* Footer */
.main-footer {
    background-color: #1e73be;
    padding: 20px 0;
    color: #fff;
    font-size: 14px;
}

.main-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-info p {
    margin: 0;
}

.footer-info strong {
    font-weight: 800;
}

.footer-social a {
    color: #fff;
    text-decoration: none;
    margin-left: 15px;
    font-size: 20px;
}

/* Collaborators & Infierno Verde Grid */
.collaborators-grid, .infierno-verde-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 50px;
}

.collaborator-card, .moto-card {
    background-color: #fff;
    flex: 1 1 calc(33.33% - 20px);
    box-shadow: 0 1px 10px rgba(0,0,0,0.1);
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.collaborator-card:hover {
    transform: translateY(-5px);
}

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

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

.collaborator-info h2 {
    margin: 0;
    color: #333;
    font-size: 16px;
    text-transform: uppercase;
}

.moto-info {
    padding: 20px;
}

.moto-info h2 {
    margin-top: 0;
    color: #333;
}

.description-preview {
    color: #666;
    line-height: 1.6;
}

.buy-button {
    display: inline-block;
    background-color: #25d366;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 15px;
    transition: background 0.3s;
}

.buy-button:hover {
    background-color: #128c7e;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-card {
        flex: 1 1 100%;
    }
    nav ul {
        display: none; /* In a real scenario we'd add a mobile menu */
    }
    .main-nav .container {
        justify-content: center;
    }
}
