/* --- CONFIGURACIÓN GENERAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #333;
}

/* --- HERO / HEADER CON SLIDER DEGRADADO --- */
.hero {
    position: relative;
    color: white;
    padding: 20px 10% 100px 10%;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 42, 58, 0.75);
    z-index: 2;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    z-index: 1;
    animation: crossfadeTimeline 12s infinite ease-in-out;
}

.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 4s; }
.slide:nth-child(3) { animation-delay: 8s; }

.logo-container, .hero-content {
    position: relative;
    z-index: 3;
}

@keyframes crossfadeTimeline {
    0% { opacity: 0; }
    6% { opacity: 1; }
    33% { opacity: 1; }
    39% { opacity: 0; }
    100% { opacity: 0; }
}

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

.logo-img {
    max-height: 95px;
    width: auto;
    display: inline-block;
}

.hero-content {
    display: flex;
    align-items: center;
    max-width: 650px;
}

.hero-text h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    color: #e0e0e0;
}

.btn-primary {
    display: inline-block;
    background-color: #b83a24;
    color: white;
    padding: 14px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
}

.btn-primary:hover {
    background-color: #962f1c;
    transform: translateY(-2px);
}

/* --- LO QUE OFRECEMOS --- */
.services {
    padding: 80px 10%;
    text-align: center;
}

.services h2, .why-us h2, .about-us h2, .video-section-title, .marketplace-title, .contact-form-section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #222;
    position: relative;
}

.services h2::after, .about-us h2::after, .video-section-title::after, .contact-form-section h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #b83a24;
    margin: 10px auto 0 auto;
}

.services-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.card {
    background: white;
    padding: 40px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    width: 300px;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.card .icon {
    font-size: 3.5rem;
    color: #b83a24;
    margin-bottom: 20px;
}

.icon-image-container {
    height: 3.5rem;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-icon-img {
    height: 3.8rem;
    width: auto;
    object-fit: contain;
}

.card h3 {
    margin-bottom: 12px;
    color: #111;
    font-size: 1.3rem;
}

.card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

/* --- ¿POR QUÉ ELEGIRNOS? --- */
.why-us {
    background-color: #b83a24;
    color: white;
    padding: 50px 10%;
    text-align: center;
}

.why-us h2 {
    color: white;
    margin-bottom: 35px;
}

.benefits-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.benefit {
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.benefit i {
    font-size: 1.3rem;
}

/* --- SOBRE NOSOTROS --- */
.about-us {
    padding: 80px 10%;
    background-color: #ffffff;
    text-align: center;
}

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

.history-text {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 50px;
}

.mv-columns {
    display: table;
    width: 100%;
    table-layout: fixed;
    margin-top: 20px;
}

.mv-columns-row {
    display: table-row;
}

.mv-column-left, .mv-column-right {
    display: table-cell;
    vertical-align: top;
    text-align: left;
}

.mv-column-left { padding-right: 40px; }
.mv-column-right { padding-left: 40px; }

.about-us h3 {
    font-size: 1.4rem;
    color: #1a2a3a;
    margin-bottom: 15px;
    position: relative;
}

.mv-column-left h3, .mv-column-right h3 {
    padding-left: 12px;
    border-left: 4px solid #b83a24;
}

.mv-columns p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

.values-section {
    margin-top: 70px;
    text-align: center;
}

.values-title {
    font-size: 2rem !important;
    color: #222 !important;
    display: inline-block;
    position: relative;
    margin-bottom: 40px;
}

.values-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #b83a24;
    margin: 10px auto 0 auto;
}

.values-grid {
    margin-top: 10px;
    text-align: center;
}

.value-item {
    display: inline-block;
    background-color: #b83a24;
    color: #ffffff;
    padding: 14px 28px;
    margin: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(184, 58, 36, 0.2);
    transition: transform 0.2s;
}

.value-item:hover { transform: scale(1.05); }

/* --- SECCIÓN DE VIDEO --- */
.video-section {
    padding: 60px 10% 80px 10%;
    background-color: #f5f6f7;
    text-align: center;
}

.video-container-box {
    max-width: 800px;
    margin: 20px auto 0 auto;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    overflow: hidden;
    background-color: #000;
}

.main-video {
    width: 100%;
    height: auto;
    display: block;
}

/* --- SECCIÓN MERCADO LIBRE --- */
.marketplace-section {
    padding: 70px 10%;
    background-color: #b83a24;
    color: #ffffff;
    text-align: center;
}

.marketplace-title {
    font-size: 2rem !important;
    color: #ffffff !important;
    display: inline-block;
    position: relative;
    margin-bottom: 20px;
}

.marketplace-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #ffffff;
    margin: 10px auto 0 auto;
}

.marketplace-text {
    font-size: 1.1rem;
    color: #f0f0f0;
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-marketplace {
    display: inline-block;
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s, color 0.3s, transform 0.2s;
}

.btn-marketplace i { margin-right: 8px; }

.btn-marketplace:hover {
    background-color: #ffffff;
    color: #b83a24;
    transform: translateY(-2px);
}

/* --- FORMULARIO DE COTIZACIÓN --- */
.contact-form-section {
    padding: 80px 10%;
    text-align: center;
}

.contact-form {
    max-width: 550px;
    margin: 20px auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    outline: none;
    background-color: #fff;
    transition: border-color 0.3s;
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: #b83a24;
}

.btn-submit {
    background-color: #b83a24;
    color: white;
    border: none;
    padding: 16px;
    font-size: 1.05rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover { background-color: #962f1c; }

/* --- FOOTER (ESTRUCTURA CORREGIDA) --- */
footer {
    background-color: #1c1e21;
    color: #a0a0a0;
    padding: 50px 10% 30px 10%;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    border-bottom: 1px solid #2d3035; 
    padding-bottom: 40px;
}

.footer-section h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.social-link {
    display: flex !important;
    align-items: center;
    gap: 8px;
    color: #a0a0a0 !important;
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 0.95rem;
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-link i {
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.link-facebook:hover { color: #1877f2 !important; transform: translateX(3px); }
.link-instagram:hover { color: #e1306c !important; transform: translateX(3px); }
.link-tiktok:hover { color: #00f2fe !important; transform: translateX(3px); }

.footer-section p {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    line-height: 1;
}

.footer-section p i {
    width: 16px;
    text-align: center;
}

.footer-link-email {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-block !important; 
    line-height: 1;
}

.footer-link-email:hover { color: #ffffff !important; }

/* BLOQUE DE HASTA ABAJO */
.footer-bottom {
    text-align: center;
    padding-top: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* Aviso de Privacidad: Independiente, centrado y sin líneas */
.footer-link-legal {
    font-size: 0.85rem;
    color: #6c7278 !important;
    text-decoration: none !important;
    border-bottom: none !important;
    transition: color 0.2s;
}

.footer-link-legal:hover {
    color: #ffffff !important;
}

.footer-copyright {
    font-size: 0.85rem;
    color: #6c7278;
}

/* --- MODAL / LOADER --- */
.status-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.status-modal-overlay.active { opacity: 1; pointer-events: auto; }

.status-modal-box {
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: 8px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: transform 0.4s ease;
}

.status-modal-overlay.active .status-modal-box { transform: translateY(0); }

.circle-loader-container {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px auto;
}

.circle-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.circle-bg { fill: none; stroke: #f3f3f3; stroke-width: 4; }

.circle-fill {
    fill: none;
    stroke: #b83a24;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 126;
    stroke-dashoffset: 126;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    animation: spinLoader 2s linear infinite;
}

@keyframes spinLoader {
    0% { transform: rotate(0deg); transform-origin: center; }
    100% { transform: rotate(360deg); transform-origin: center; }
}

.success-icon-box {
    font-size: 4rem;
    color: #2e7d32;
    margin-bottom: 20px;
    animation: scaleUpIcon 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleUpIcon {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.status-modal-box h3 {
    font-size: 1.4rem;
    color: #1a2a3a;
    margin-bottom: 12px;
    font-weight: 600;
}

.status-modal-box p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
}

.btn-modal-close {
    background-color: #1a2a3a;
    color: #ffffff;
    border: none;
    padding: 10px 30px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-modal-close:hover { background-color: #b83a24; }

/* --- RESPONSIVE MÓVIL --- */
@media (max-width: 768px) {
    .hero { padding: 20px 5% 60px 5%; min-height: auto; }
    .logo-img { max-height: 75px; }
    .hero-text h1 { font-size: 2.1rem; }
    .benefits-container {
        flex-direction: column;
        align-items: flex-start;
        max-width: 250px;
        margin: 0 auto;
        gap: 20px;
    }
    .mv-columns, .mv-columns-row, .mv-column-left, .mv-column-right {
        display: block;
        width: 100%;
        padding: 0;
    }
    .mv-column-left { margin-bottom: 35px; }
    .value-item { display: block; margin: 10px 0; }
    .video-section { padding: 50px 5% 60px 5%; }
    .btn-marketplace {
        display: block;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        padding: 14px 20px;
        font-size: 1rem;
    }
    .footer-container { flex-direction: column; gap: 30px; }
    .footer-link-legal {
        margin-top: 0 !important;
    }
}