/* =============================================
   VARIABLES Y RESET
   ============================================= */
:root {
    --primary-color: #f59e0b;
    --primary-hover: #d97706;
    --dark-text: #1a1a1a;
    --light-text: #4b5563;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --border-radius: 8px;
    --container-width: 1200px;
}

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

body {
    font-family: 'Manrope', sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
    background-color: var(--white);
}

html {
    scroll-behavior: smooth;
}

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

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

/* =============================================
   HEADER / NAVEGACIÓN
   ============================================= */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    height: 80px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

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

.nav-links a {
    color: var(--dark-text);
    font-weight: 500;
    font-size: 0.95rem;
}

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

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    background-image: url('img/ih4.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
    margin-top: 0;
    font-family: 'Helvetica Neue', sans-serif;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    margin-left: 10%;
}

.hero h1 {
    font-size: 6.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero h2 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}


.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    font-weight: 300;
}

/* =============================================
   BOTONES
   ============================================= */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
    margin-right: 15px;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--dark-text);
}

.btn-outline-dark {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid #d1d5db;
    color: var(--dark-text);
    border-radius: 4px;
    font-weight: 600;
    background: transparent;
}

.btn-outline-dark:hover {
    border-color: var(--dark-text);
    background: var(--dark-text);
    color: var(--white);
}

/* =============================================
   SECCIÓN ABOUT / LA EMPRESA
   ============================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.subtitle {
    display: block;
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 10px;
}

.about-info h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.about-info p {
    color: var(--light-text);
    margin-bottom: 40px;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

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

.stat-icon {
    width: 50px;
    height: 50px;
    background: #fff4e0;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px auto;
    color: var(--primary-color);
}

.stat-icon svg {
    width: 24px;
    height: 24px;
}

.stat-item h4 {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
}

.about-image img {
    border-radius: 16px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* =============================================
   SECCIÓN SERVICIOS
   ============================================= */
.servicios {
    padding: 90px 20px;
    background: #f6f8fa;
}

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

.servicios-title {
    font-size: 2.4rem;
    color: #222;
    margin-bottom: 10px;
}

.servicios-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 50px;
    max-width: 700px;
}

.servicios-list {
    list-style: none;
    padding: 40px 60px;
    margin: 0;
    columns: 2;
    column-gap: 80px;
    background: #fff;
    border-left: 6px solid #f4b400;
}

.servicios-list li {
    font-size: 1.25rem;
    color: #222;
    margin-bottom: 20px;
    padding-left: 28px;
    position: relative;
    font-weight: 500;
}

.servicios-list li::before {
    content: "●";
    position: absolute;
    left: 0;
    color: #f4b400;
    font-size: 0.9rem;
    top: 4px;
}

/* =============================================
   SECCIÓN HISTORIA Y PROYECTOS
   ============================================= */
.history {
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.subtitle-dark {
    font-size: 1rem;
    font-weight: 600;
    color: var(--light-text);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.project-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.card-image {
    height: 200px;
    overflow: hidden;
}

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

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

.card-content {
    padding: 25px;
}

.card-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.card-content p {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 20px;
    line-height: 1.5;
}

.project-year {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
}

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

/* =============================================
   SECCIÓN MAQUINARIA
   ============================================= */
.maquinaria {
    padding: 90px 20px;
    background: #f6f8fa;
}

.maquinaria-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.maquinaria-title {
    font-size: 2.4rem;
    color: #222;
    margin-bottom: 10px;
}

.maquinaria-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.maquinaria-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.maquina-card {
    width: 350px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: transform .3s ease, box-shadow .3s ease;
}

.maquina-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.15);
}

.maquina-img {
    height: 360px;
    overflow: hidden;
    border-bottom: 4px solid #f4b400;
}

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

.maquina-card h3 {
    padding: 18px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
}

/* =============================================
   SECCIÓN CONTACTO
   ============================================= */
.contacto {
    padding: 90px 20px;
    background: #fff;
}

.contacto-container {
    max-width: 900px;
    margin: 0 auto;
}

.contacto-title {
    font-size: 2.4rem;
    color: #222;
    margin-bottom: 10px;
}

.contacto-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 50px;
    max-width: 600px;
}

.contacto-info {
    background: #f6f8fa;
    padding: 50px 60px;
    border-left: 6px solid #f4b400;
}

.contacto-item {
    margin-bottom: 30px;
}

.contacto-label {
    display: block;
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contacto-item a {
    font-size: 1.3rem;
    color: #222;
    text-decoration: none;
    font-weight: 600;
}

.contacto-item a:hover {
    color: #f4b400;
}

.contacto-redes a {
    margin-right: 20px;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
    text-align: center;
    padding: 40px;
    background: var(--white);
    color: var(--light-text);
    font-size: 0.9rem;
    border-top: 1px solid #f3f4f6;
}

/* =============================================
   RESPONSIVE (MÓVIL)
   ============================================= */
@media (max-width: 700px) {
    .servicios-list {
        columns: 1;
        padding: 30px;
    }
}

@media (max-width: 768px) {
    /* Navegación móvil */
    .nav-links {
        display: none;
        width: 100%;
        position: absolute;
        top: 80px;
        left: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px 0;
        text-align: center;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        z-index: 999;
        border-top: 1px solid #eee;
    }

    .nav-links.active {
        display: flex !important;
    }

    .nav-links li {
        margin: 15px 0;
        width: 100%;
    }

    .nav-links a {
        display: block;
        font-size: 1.1rem;
        padding: 10px;
    }

    .menu-toggle {
        display: block;
        font-size: 1.8rem;
        cursor: pointer;
        color: var(--dark-text);
        padding: 10px;
        user-select: none;
    }

    /* Hero móvil */
    .hero {
        text-align: center;
        justify-content: center;
    }

    .hero-content {
        margin: 0;
        padding: 0 15px;
        width: 100%;
    }

    .hero h1 {
        font-size: 3rem;
        width: 85vw;
        margin-inline: auto;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
        margin: 0;
    }

    /* About móvil */
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
        margin-bottom: 30px;
    }
}

@media (max-width: 400px) {
    .hero h1 {
        font-size: 2.4rem;
    }
}

@media (max-width: 350px) {
    .hero h1 {
        font-size: 2.2rem;
    }
}

.logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}