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

:root {
    --primary: #c41e3a;
    --primary-dark: #8b1528;
    --secondary: #003d82;
    --light: #f5f5f5;
    --dark: #1a1a1a;
    --text: #333;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text);
    line-height: 1.6;
    text-align: justify;
}

p {
    text-align: justify;
}

h1, h2, h3, h4, h5, h6 {
    text-align: center;
}

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

/* HEADER */
.header {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/fondo-centro-comercial.jpg') center/cover no-repeat;
    background-attachment: fixed;
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    height: 200px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.3));
}

.title-section h1 {
    font-size: 60px;
    font-weight: 800;
    color: white;
    margin-bottom: 5px;
    text-shadow: 
        2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 1px;
    font-style: normal;
}

.subtitle {
    font-size: 14px;
    color: #ddd;
    font-weight: 400;
}

.header .contact-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    background: rgba(0, 0, 0, 0.85);
    padding: 20px 25px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.header .phone {
    background: transparent;
    padding: 8px 0;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    width: 100%;
}

.header .phone:last-of-type {
    border-bottom: none;
}

.header .phone strong {
    color: white;
    font-size: 16px;
    font-weight: 700;
    flex: 1;
}

.header .phone a {
    font-size: 18px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.header .phone a:hover {
    transform: scale(1.2);
}

.header .email {
    background: transparent;
    padding: 8px 0;
    border-radius: 0;
    width: 100%;
    border-top: 1px solid rgba(0,0,0,0.08);
    padding-top: 12px;
}

.header .email a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
}

.header .email a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* BOTÓN VOLVER ARRIBA */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}
}

.email a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

.phone a {
    font-size: 18px;
    text-decoration: none;
    transition: transform 0.3s;
    color: white;
}

.phone a:hover {
    transform: scale(1.15);
}

.email a:hover {
    text-decoration: underline;
}

/* NAVEGACIÓN */
.navbar {
    background: var(--dark);
    padding: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    gap: 0;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    font-weight: 600;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    background: var(--primary);
    border-bottom-color: var(--primary);
    color: white;
}

/* SECCIONES */
section {
    padding: 40px 0;
}

h2 {
    font-size: 32px;
    font-weight: 900;
    color: var(--secondary);
    margin-bottom: 30px;
    text-align: center;
}

h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

/* SECCIÓN MÁQUINAS */
.maquinas-section {
    background: var(--light);
}

.maquinas-img-large {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: block;
    margin: 0 auto 30px;
}

.maquinas-small-container {
    text-align: center;
    margin-top: 30px;
}

.ficha-tecnica-full {
    background: var(--light);
    padding: 30px;
    border-radius: 10px;
    margin-top: 30px;
}

.ficha-tecnica-full h3 {
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
    text-align: center;
}

.ficha-table-large {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.ficha-table-large th,
.ficha-table-large td {
    padding: 10px 8px;
    text-align: center;
    border: 1px solid #ddd;
}

.ficha-table-large th {
    background: var(--primary);
    color: white;
    font-weight: 700;
    font-size: 14px;
}

.ficha-table-large td:first-child {
    text-align: left;
    font-weight: 700;
    color: var(--primary);
    background: rgba(196, 30, 58, 0.05);
}

.ficha-table-large tr:hover {
    background: rgba(196, 30, 58, 0.08);
}

.ficha-table-large tr:nth-child(even) td:first-child {
    background: rgba(196, 30, 58, 0.08);
}

.maquinas-img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: block;
    margin: 0 auto;
}

/* SECCIÓN IFEMA */
.ifema-section {
    background: white;
}

.ifema-img {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: block;
    margin: 0 auto;
}

/* SECCIÓN EXPERIENCIA */
.experience-section {
    background: linear-gradient(135deg, var(--secondary) 0%, #004a9f 100%);
    color: white;
    text-align: left;
}

.experience-content {
    max-width: 900px;
    margin: 0 auto;
}

.experience-section p {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.8;
}

.experience-section h2 {
    color: white;
    font-size: 32px;
    margin-bottom: 20px;
}

.experience-section h3 {
    color: #ffd700;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 18px;
}

/* SECCIÓN SERVICIOS */
.services-section {
    background: var(--light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

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

.service-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.service-card p {
    color: #666;
    font-size: 14px;
}

/* SECCIÓN CONTACTO */
.contact-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.btn-contact {
    display: inline-block;
    background: white;
    color: var(--primary);
    padding: 15px 40px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s;
    margin-top: 20px;
}

.btn-contact:hover {
    background: var(--light);
    transform: scale(1.05);
}

/* PÁGINA MODELOS */
.page-title {
    background: linear-gradient(135deg, var(--secondary) 0%, #004a9f 100%);
    color: white;
    padding: 30px 0;
}

.page-title h2 {
    color: white;
    margin-bottom: 0;
}

.modelos-section {
    background: white;
}

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

.modelo-card {
    background: var(--light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

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

.modelo-card h3 {
    padding: 15px 20px 5px;
    font-size: 20px;
    margin-bottom: 0;
}

.ficha-tecnica {
    padding: 15px 20px;
    background: white;
}

.ficha-tecnica p {
    font-size: 12px;
    margin: 5px 0;
    color: #666;
}

/* SECCIÓN COLORES */
.colores-section {
    background: var(--light);
    text-align: center;
}

.colores-img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* SECCIÓN SERVICIO */
.servicio-section {
    background: white;
}

.servicio-section p {
    font-size: 16px;
    color: #666;
    max-width: 800px;
    margin: 0 auto 30px;
    text-align: center;
}

.despiece-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: block;
    margin: 0 auto;
}

/* FOOTER */
.footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 30px 0;
    border-top: 3px solid var(--primary);
}

.footer p {
    margin: 5px 0;
    font-size: 14px;
}

/* VENTAJAS DE MODELOS */
.ventajas-modelos-section {
    background: var(--light);
}

.ventajas-modelos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.ventaja-modelo {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-left: 4px solid var(--primary);
}

.ventaja-modelo h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--primary);
}

.ventaja-modelo p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* SECCION CONTACTO */
.contact-page-section {
    background: white;
    padding: 40px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info h3 {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 15px;
    margin-top: 0;
}

.contact-info p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.8;
}

.contact-methods {
    background: var(--light);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.contact-method {
    margin-bottom: 20px;
}

.contact-method:last-child {
    margin-bottom: 0;
}

.contact-method h4 {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 8px;
}

.contact-method p {
    margin: 5px 0;
    font-size: 14px;
}

.contact-method a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.contact-method a:hover {
    text-decoration: underline;
}

.contact-form-section h3 {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 20px;
    margin-top: 0;
}

.contact-form {
    background: var(--light);
    padding: 25px;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 5px rgba(196, 30, 58, 0.3);
}

.btn-submit {
    background: var(--primary);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    width: 100%;
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(196, 30, 58, 0.3);
}

/* SECCIÓN MANIOBRABILIDAD */
.maniobrabilidad-section {
    background: white;
    padding: 30px 0;
    text-align: center;
    margin: 30px 0;
}

.maniobrabilidad-img {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    display: block;
    margin: 0 auto;
}

/* COMPARATIVA DE GIROS */
.comparativa-giros-section {
    background: white;
    padding: 30px 0;
    text-align: center;
    margin: 30px 0;
}

.comparativa-giros-img {
    width: 100%;
    max-width: 1000px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    display: block;
    margin: 0 auto;
}

/* SECCION PRIVACIDAD */
.privacy-section {
    background: white;
}

.privacy-section h3 {
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 18px;
}

.privacy-section p {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.8;
}

.privacy-section ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.privacy-section li {
    margin-bottom: 8px;
    color: #666;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 5px rgba(196, 30, 58, 0.3);
}

.btn-submit {
    background: var(--primary);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    width: 100%;
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(196, 30, 58, 0.3);
}

@media (max-width: 1024px) {
    .maquinas-ficha-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ficha-table {
        font-size: 12px;
    }
    
    .ficha-table th,
    .ficha-table td {
        padding: 8px 6px;
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .maquinas-ficha-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .logo {
        height: 60px;
    }

    .title-section h1 {
        font-size: 28px;
    }

    .contact-section {
        flex-direction: column;
        width: 100%;
    }

    .phone {
        width: 100%;
    }

    .navbar .container {
        flex-direction: column;
        gap: 0;
    }

    .nav-link {
        padding: 12px 15px;
        border-bottom: none;
        border-right: 3px solid transparent;
    }

    .nav-link:hover,
    .nav-link.active {
        border-right-color: var(--primary);
    }

    h2 {
        font-size: 24px;
    }

    .modelos-grid {
        grid-template-columns: 1fr;
    }
}

/* SECCIÓN FUNCIONAMIENTO */
.funcionamiento-section {
    background: white;
    padding: 50px 0;
}

.funcionamiento-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary);
    font-size: 32px;
}

.video-container {
    margin-bottom: 40px;
    text-align: center;
}

.video-container video {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-radius: 10px;
}

.funcionamiento-text {
    background: var(--light);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.funcionamiento-text h3 {
    color: var(--primary);
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 15px;
}

.funcionamiento-text p {
    color: #666;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.funcionamiento-text p:last-child {
    margin-bottom: 0;
}

.maquinas-elevadas-container {
    text-align: center;
    margin-top: 40px;
}

.maquinas-elevadas-img {
    width: 100%;
    max-width: 1000px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .funcionamiento-section {
        padding: 30px 0;
    }
    
    .funcionamiento-text {
        padding: 20px;
    }
    
    .funcionamiento-text h3 {
        font-size: 20px;
    }
    
    .funcionamiento-text p {
        font-size: 14px;
    }
}

/* FOOTER LOGO */
.footer-logo {
    text-align: center;
    margin-bottom: 20px;
}

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

/* FOOTER LINKS */
.footer-links {
    text-align: center;
    margin: 15px 0;
}

.footer-links a {
    color: var(--primary);
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}


/* INFO SECTION */
.info-section {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    padding: 40px 0;
    margin: 30px 0;
}

.info-section h2 {
    color: var(--primary);
    font-size: 32px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
}

.info-section p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 15px;
    text-align: justify;
}

.info-section strong {
    color: var(--primary);
    font-weight: 700;
}

/* INFO POSVENTA */
.info-posventa {
    background: #f9f9f9;
    padding: 30px;
    border-left: 4px solid var(--primary);
    margin-top: 30px;
    border-radius: 4px;
}

.info-posventa h3 {
    color: var(--primary);
    font-size: 22px;
    margin-bottom: 15px;
}

.info-posventa p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 12px;
    text-align: justify;
}

/* EMAIL CONTACT */
.email {
    background: rgba(255,255,255,0.15);
    padding: 10px 15px;
    border-radius: 5px;
    border-left: 3px solid var(--primary);
}

.email a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s ease;
}

.email a:hover {
    color: #ddd;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .header {
        padding: 10px 0;
    }
    
    .header-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .logo-section {
        flex-direction: column;
        gap: 5px;
        width: 100%;
        justify-content: center;
    }
    
    .logo {
        height: 350px;
        width: auto;
        max-width: 95vw;
    }
    
    .title-section h1 {
        font-size: 28px;
    }
    
    .title-section {
        text-align: center;
    }
    
    .contact-section {
        width: 100%;
        align-items: center;
    }
    
    .info-section h2 {
        font-size: 24px;
    }
    
    .info-section p {
        font-size: 14px;
    }
    
    .info-posventa {
        padding: 20px;
    }
    
    .info-posventa h3 {
        font-size: 18px;
    }
    
    .info-posventa p {
        font-size: 13px;
    }
}

/* CONTACTO RÁPIDO */
.contacto-rapido-section {
    background: linear-gradient(135deg, var(--primary) 0%, #a01f3a 100%);
    padding: 40px 0;
    margin: 30px 0;
}

.contacto-rapido-box {
    background: rgba(255,255,255,0.95);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
}

.contacto-rapido-box h2 {
    color: var(--primary);
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 700;
}

.contacto-rapido-box p {
    color: #666;
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.6;
}

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

.btn-email,
.btn-whatsapp {
    display: inline-block;
    padding: 15px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

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

.btn-email:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(196, 30, 58, 0.3);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    border-color: #25D366;
}

.btn-whatsapp:hover {
    background: white;
    color: #25D366;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

@media (max-width: 768px) {
    .contacto-rapido-box {
        padding: 25px;
    }
    
    .contacto-rapido-box h2 {
        font-size: 24px;
    }
    
    .contacto-rapido-box p {
        font-size: 14px;
    }
    
    .btn-email,
    .btn-whatsapp {
        padding: 12px 20px;
        font-size: 14px;
    }
}
