/*
Theme Name: CRUALF Industrial
Theme URI: https://crualf.com
Author: CRUALF Team
Author URI: https://crualf.com
Description: Tema personalizado para CRUALF - Empresa de maquinaria industrial. Incluye sistema de gestión de maquinaria con ficha técnica.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: crualf
Domain Path: /languages
Tags: industrial, machinery, responsive, custom-post-types
*/

/* ============================================
   CRUALF INDUSTRIAL - WORDPRESS THEME
   Colores corporativos:
   - Primary Blue: #186694
   - Secondary Teal: #599198
   - Light Background: #fbfbfb
   - Accent Light Blue: #DBEEF9
   - Complementary Blue-Gray: #83A9B6
   - Dark Text: #1a1a1a
   ============================================ */

/* Reset y Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #fbfbfb;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    color: #186694;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #599198;
}

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

/* ============================================
   UTILIDADES
   ============================================ */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-dark {
    background-color: #186694;
    color: #fff;
}

.section-light {
    background-color: #fbfbfb;
}

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

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background-color: #186694;
    color: #fff;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

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

.top-bar-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-bar-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.top-bar-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

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

.top-bar-links span {
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   HEADER Y NAVEGACIÓN
   ============================================ */
.site-header {
    position: absolute;
    top: 2.5rem;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 0;
}

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

.site-logo img {
    height: 60px;
    width: auto;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.main-navigation a {
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #DBEEF9;
    transition: width 0.3s ease;
}

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

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #fff;
}

/* Menú móvil */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0.5rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.4), rgba(0,0,0,0.7));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 2rem;
}

.hero-logo {
    max-width: 500px;
    margin: 0 auto 2rem;
}

.hero-tagline {
    font-size: 1.5rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #186694;
    color: #fff;
    padding: 1rem 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #599198;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(24, 102, 148, 0.3);
    color: #fff;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ============================================
   INTRO SECTION
   ============================================ */
.intro-section {
    padding: 5rem 0;
    background-color: #fbfbfb;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.intro-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.intro-title .italic {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    color: #599198;
}

.intro-text {
    font-size: 1.125rem;
    color: #666;
    line-height: 1.8;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.image-grid img {
    border-radius: 8px;
    object-fit: cover;
    height: 200px;
    width: 100%;
}

/* ============================================
   SERVICIOS
   ============================================ */
.services-section {
    background-color: #186694;
    color: #fff;
    padding: 5rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.service-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    color: #DBEEF9;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
}

/* ============================================
   SOBRE NOSOTROS / STATS
   ============================================ */
.about-section {
    padding: 5rem 0;
    background-color: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.about-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    min-height: 400px;
}

.about-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(24, 102, 148, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    color: #fff;
}

.stats-card {
    background-color: #DBEEF9;
    padding: 2rem;
    border-radius: 12px;
}

.stat-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(24, 102, 148, 0.1);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #186694;
    line-height: 1;
}

.stat-label {
    color: #666;
    font-size: 0.9375rem;
    margin-top: 0.5rem;
}

/* ============================================
   CATÁLOGO DE MAQUINARIA
   ============================================ */
.catalog-section {
    background-color: #0d1f2d;
    color: #fff;
    padding: 5rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.section-subtitle {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
}

.section-title .italic {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    color: #83A9B6;
}

.view-all-link {
    color: #DBEEF9;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Grid de maquinaria */
.machinery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.machinery-card {
    position: relative;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.machinery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.machinery-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.machinery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.machinery-card:hover .machinery-image img {
    transform: scale(1.05);
}

.machinery-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: #186694;
    color: #fff;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
}

.machinery-year {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 4px;
}

.machinery-content {
    padding: 1.5rem;
}

.machinery-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.machinery-content p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.machinery-link {
    color: #DBEEF9;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ============================================
   PÁGINA INDIVIDUAL DE MAQUINARIA
   ============================================ */
.machinery-single {
    padding: 8rem 0 5rem;
    background-color: #fbfbfb;
}

.machinery-single-header {
    margin-bottom: 3rem;
}

.machinery-single-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.machinery-single-meta {
    display: flex;
    gap: 2rem;
    color: #666;
}

.machinery-single-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.machinery-single-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.machinery-gallery {
    position: relative;
}

.machinery-main-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}

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

.machinery-info {
    background-color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.machinery-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 2rem;
}

/* Ficha Técnica */
.tech-specs {
    margin-top: 2rem;
}

.tech-specs h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #186694;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid #eee;
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table td {
    padding: 1rem 0;
}

.specs-table td:first-child {
    font-weight: 600;
    color: #186694;
    width: 40%;
}

.specs-table td:last-child {
    color: #444;
}

/* Características */
.features-list {
    margin-top: 2rem;
}

.features-list h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #186694;
}

.features-list ul {
    list-style: none;
}

.features-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #444;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #186694;
    font-weight: bold;
}

/* Botón de contacto */
.contact-cta {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.contact-cta p {
    margin-bottom: 1rem;
    color: #666;
}

/* ============================================
   LISTADO DE MAQUINARIA (ARCHIVE)
   ============================================ */
.archive-header {
    background-color: #186694;
    color: #fff;
    padding: 8rem 0 3rem;
    text-align: center;
}

.archive-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.archive-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

.archive-content {
    padding: 4rem 0;
    background-color: #fbfbfb;
}

/* Filtros */
.archive-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background-color: #fff;
    border: 2px solid #186694;
    color: #186694;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #186694;
    color: #fff;
}

/* ============================================
   TESTIMONIOS
   ============================================ */
.testimonials-section {
    padding: 5rem 0;
    background-color: #fff;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background-color: #DBEEF9;
    padding: 2.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    background-color: #186694;
    color: #fff;
}

.testimonial-card:hover p {
    color: rgba(255, 255, 255, 0.9);
}

.testimonial-quote {
    font-size: 3rem;
    line-height: 1;
    color: #186694;
    opacity: 0.2;
    margin-bottom: 1rem;
}

.testimonial-card:hover .testimonial-quote {
    color: #fff;
    opacity: 0.3;
}

.testimonial-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 2rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.testimonial-role {
    font-size: 0.875rem;
    color: #666;
}

.testimonial-card:hover .testimonial-role {
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   FAQ / PREGUNTAS FRECUENTES
   ============================================ */
.faq-section {
    background-color: #186694;
    color: #fff;
    padding: 5rem 0;
}

.faq-list {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.125rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.faq-cta {
    text-align: center;
    margin-top: 3rem;
}

.faq-cta p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.btn-white {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #fff;
    color: #186694;
    padding: 1rem 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50px;
}

.btn-white:hover {
    background-color: #DBEEF9;
    color: #186694;
}

/* ============================================
   MARCAS / BRANDS SECTION
   ============================================ */
.brands-section {
    padding: 5rem 0;
    background-color: #fbfbfb;
    overflow: hidden;
}

.brands-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 3rem;
}

.brands-marquee::before,
.brands-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.brands-marquee::before {
    left: 0;
    background: linear-gradient(to right, #fbfbfb, transparent);
}

.brands-marquee::after {
    right: 0;
    background: linear-gradient(to left, #fbfbfb, transparent);
}

.brands-track {
    display: flex;
    gap: 4rem;
    animation: scroll-brands 30s linear infinite;
}

.brands-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-brands {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.brand-logo {
    flex-shrink: 0;
    width: 150px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.brand-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.brand-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.brand-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #186694;
    text-align: center;
}

/* ============================================
   CONTACTO / CONTACT SECTION
   ============================================ */
.contact-section {
    padding: 5rem 0;
    background-color: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    padding-right: 2rem;
}

.contact-description {
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: #DBEEF9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #186694;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: #1a1a1a;
}

.contact-item a,
.contact-item p {
    color: #666;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.contact-item a:hover {
    color: #186694;
}

/* Formulario de Contacto */
.contact-form-wrapper {
    background-color: #fbfbfb;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem 1.25rem;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    background-color: #fff;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #186694;
    box-shadow: 0 0 0 3px rgba(24, 102, 148, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' 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: 1rem;
    padding-right: 3rem;
}

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

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Mensajes de formulario */
.form-message {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background-color: #fbfbfb;
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand img {
    height: 60px;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: #666;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.footer-column h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #186694;
    margin-bottom: 1.5rem;
}

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

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: #666;
    font-size: 0.9375rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #186694;
}

.footer-contact p {
    color: #666;
    margin-bottom: 0.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: #DBEEF9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #186694;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: #186694;
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #eee;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: #999;
    font-size: 0.875rem;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: #999;
    font-size: 0.875rem;
}

.footer-bottom-links a:hover {
    color: #186694;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .intro-grid,
    .machinery-single-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-info {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .top-bar-links {
        display: none;
    }
    
    .main-navigation ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #186694;
        flex-direction: column;
        padding: 1rem;
    }
    
    .main-navigation ul.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .social-links {
        display: none;
    }
    
    .hero-tagline {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .machinery-single-title {
        font-size: 2rem;
    }
    
    .machinery-single-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    /* Marcas responsive */
    .brands-marquee::before,
    .brands-marquee::after {
        width: 80px;
    }
    
    .brand-logo {
        width: 120px;
        height: 70px;
    }
    
    .brands-track {
        gap: 2rem;
    }
    
    /* Contacto responsive */
    .contact-grid {
        gap: 2rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .form-row.two-columns {
        grid-template-columns: 1fr;
    }
    
    .contact-item {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
}

/* ============================================
   WORDPRESS SPECIFIC
   ============================================ */
/* Admin bar fix */
body.admin-bar .site-header {
    top: calc(2.5rem + 32px);
}

/* Alignment */
.alignleft {
    float: left;
    margin-right: 1.5rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* WordPress gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.gallery-item {
    margin: 0;
}

.gallery-item img {
    border-radius: 8px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    padding: 0.75rem 1rem;
    background-color: #fff;
    border: 1px solid #eee;
    color: #186694;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
    background-color: #186694;
    color: #fff;
    border-color: #186694;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 1rem 0;
    font-size: 0.875rem;
    color: #666;
}

.breadcrumbs a {
    color: #186694;
}

.breadcrumbs .separator {
    margin: 0 0.5rem;
    color: #ccc;
}
