* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Poppins', 'Arial', sans-serif;
    color: #1a1a1a;
    overflow-x: hidden;
    width: 100%;
}

.hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    background: #ccc url('../img/bg-excavadora.jpg') center/cover no-repeat;
    overflow: hidden;
    padding: 4vh 0;
}

/* Velo blanco plano sobre toda la secci¸«Ńn (da el aspecto "lavado" del lado izquierdo) */
.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.62);
    z-index: 1;
}

/* Franja roja diagonal a la derecha (tapa el velo blanco en esa zona) */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(163, 18, 18, 0.9);
    clip-path: polygon(58% 0, 100% 0, 100% 100%, 40% 100%);
    z-index: 2;
}

.hero-left, .hero-right {
    position: relative;
    z-index: 3;
}

.hero-left {
    width: 40%;
    min-width: 300px;
    padding-left: clamp(24px, 6vw, 90px);
    padding-right: 20px;
}

.logo {
    width: clamp(90px, 8vw, 130px);
    margin-bottom: clamp(16px, 2.5vw, 28px);
    display: block;
}

.hero-left h1 {
    font-size: clamp(1.5rem, 2.4vw, 2.15rem);
    font-weight: 800;
    line-height: 1.28;
    margin-bottom: clamp(16px, 2.5vw, 26px);
    color: #111;
    max-width: 440px;
}

.checklist {
    list-style: none;
    max-width: 440px;
}

.checklist li {
    font-size: clamp(0.95rem, 1.15vw, 1.1rem);
    font-weight: 500;
    margin-bottom: 9px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1a1a1a;
}

.checklist .check {
    color: #2ecc40;
    font-weight: bold;
    flex-shrink: 0;
}

.hero-right {
    width: 46%;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-right: clamp(20px, 5vw, 60px);
    padding-left: 20px;
    color: #fff;
}

.informes {
    align-self: center;
    margin-right: auto;
    margin-left: clamp(0px, 8vw, 90px);
    text-align: left;
    margin-bottom: clamp(16px, 2.5vw, 24px);
}

.informes h2 {
    font-size: clamp(1.05rem, 1.4vw, 1.3rem);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.informes-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.informes-item .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    flex-shrink: 0;
}

.informes-item .icon svg { width: 100%; height: auto; max-width: 26px; }

.informes-text {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: clamp(0.95rem, 1.15vw, 1.05rem);
    line-height: 1.3;
}

.informes-text small {
    font-weight: 500;
    font-size: 0.78em;
    opacity: 0.9;
}

.form-card {
    background: #111;
    border-radius: 14px;
    padding: clamp(22px, 3vw, 34px) clamp(22px, 3.2vw, 40px);
    width: 100%;
    max-width: 380px;
}

.form-card h3 {
    font-size: clamp(1.02rem, 1.2vw, 1.15rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
}

.form-card form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-card input {
    width: 100%;
    padding: 13px 14px;
    border-radius: 8px;
    border: none;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
}

.form-card button {
    background: #2ecc40;
    color: #062b09;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    margin-top: 8px;
    transition: opacity 0.2s;
}

.form-card button:hover { opacity: 0.9; }
.form-card button:disabled { opacity: 0.6; cursor: not-allowed; }

.form-msg {
    margin-top: 10px;
    font-size: 0.88rem;
    min-height: 18px;
    text-align: center;
}

.form-msg.error { color: #ff6b6b; }
.form-msg.success { color: #2ecc40; }

.privacy {
    font-size: 0.78rem;
    margin-top: 18px;
    text-align: center;
    opacity: 0.9;
    line-height: 1.4;
}

.terms { margin-top: 4px; text-align: center; }
.terms a { color: #ff5c5c; font-size: 0.78rem; text-decoration: underline; }

.arrows {
    margin-top: clamp(16px, 2.5vw, 24px);
    text-align: center;
}

.chevrons {
    display: flex;
    justify-content: center;
    margin-bottom: 4px;
}

.chevrons svg { width: clamp(26px, 2.4vw, 34px); height: auto; }

.arrows p {
    font-weight: 700;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    max-width: 340px;
    margin: 0 auto;
}

/* ===== Tablet ===== */
@media (max-width: 1024px) {
    .hero-left { width: 44%; }
    .hero-right { width: 52%; }
    .informes { margin-left: 0; }
}

/* ===== Mobile / stacked layout ===== */
@media (max-width: 860px) {
    .hero {
        flex-direction: column;
        min-height: auto;
        padding: 40px 0;
    }
    .hero::before {
        clip-path: none;
        top: auto;
        bottom: 0;
        height: 62%;
        background: rgba(163, 18, 18, 0.93);
    }
    .hero::after { background: rgba(255,255,255,0.72); }

    .hero-left, .hero-right {
        width: 100%;
        min-width: 0;
        padding-left: 26px;
        padding-right: 26px;
    }

    .hero-left { margin-bottom: 30px; }

    .hero-left h1 { max-width: 100%; font-size: clamp(1.4rem, 5vw, 1.8rem); }

    .hero-right { align-items: center; padding-left: 26px; }

    .informes {
        margin: 0 0 22px 0;
        align-self: center;
        text-align: left;
        width: 100%;
        max-width: 380px;
    }

    .form-card { max-width: 400px; }
}

@media (max-width: 420px) {
    .hero-left h1 { font-size: 1.3rem; }
    .checklist li { font-size: 0.92rem; }
    .form-card { padding: 22px 20px; }
}