/* =========================
   FULL STYLESHEET (Desktop preserved)
   Responsive overrides for:
     - max-width: 1024px (tablet)
     - max-width: 768px  (large mobile)
     - max-width: 480px  (small mobile)
   Paste this whole file — desktop rules are the original base,
   responsive rules below adjust only lighter screens.
   ========================= */

/* ---------- Base / Desktop (kept as-is) ---------- */
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'inter', sans-serif;
}
.commer-hero{
    position: relative;
    min-height: 100vh;
    background: url('/assets/commer-hero-bg.png');
    background-position: top 5% center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
}
.commer-hero .gradient-overlay{
/* background: linear-gradient(0deg, rgba(191, 39, 45, 0) 7.77%, #750307ca 51.61%); */
background-image:linear-gradient(to top, #8c4e1fc5,#1d1d1b7e);
background-blend-mode: multiply;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.commer-hero-content{
    position: relative;
    z-index: 9999;
    color: white;
}
.commer-hero-content h1{
    font-size: 3rem;
    font-weight: 400;
    background: #1D1D1B;
    padding: 1rem;
    border-radius: 1.5rem;
}

.commer-section-2{
    max-width: 1200px;
    margin: 80px auto;
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 2rem;
    position: relative;
}

.commer-section-2-card{
    max-width: 50%;
    margin-left: 60px;
    margin-top: -50px;
    padding: 40px 80px;
    padding-left: 40px;
    z-index: 9999;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.commer-section-2-card p{
    max-width: 70%;
    font-size: 1rem;
}
.commer-info-box {
    position: absolute;
    max-width: 380px;
    background: #1a1a1a;          
    color: #ffffff;
    padding: 28px 40px;
    border-radius: 30px;
    bottom: -50px;
    right: 20%;
    z-index: 99999;
    line-height: 1.6;
}

.commer-info-box ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.commer-info-box ul li {
    position: relative;
    margin: 20px 0;
    padding-left: 28px;
    font-size: 1rem;
}

.commer-info-box ul li::before {
    content: "";
    width: 14px;
    height: 14px;
    background: #9a4f1f; 
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 8px;
}

.commer-section-2-card h2{
    font-size: 36px;
    color: #8C4E1F;
}
.commer-section-2-card p{
    font-size: 22px;
    padding-right: 20;
}
.commer-section-2-img{
    margin-left: -80px;
    z-index: 9999;
    margin-top: 20px;
    position: relative;
}
.commer-section-2-img .img-overlay{
    position: absolute;
    inset: 0;
    background: #51230673;
}
.commer-section-2-img img{
    max-width: 600px;
    max-height: 400px;
}


.cobertura-section {
    background: #f6f6f6;
    padding: 40px 0 70px;
    margin-bottom: 120px;
}

.cobertura-container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
}
.cobertura-logo-light{
    position: absolute;
    right: 80px;
    bottom: 120px;   
}
.cobertura-logo-light img{
    width: 360px;
}
.cobertura-content{
    /* max-width: 600px; */
    display: flex;
    justify-content: space-between;
}
/* Title */
.cobertura-title h2 {
    font-size: 42px;
    font-weight: 400;
    color: #8c4e1f;;
    margin-bottom: 25px;
    margin-left: 18rem;
}

.cobertura-title h2 span {
    color: #8c4e1f;
    font-weight: 600;
}

/* Top black box */
.cobertura-info {
    background: #1a1a1a;
    color: white;
    padding: 18px 20px;
    border-radius: 12px;
    width: 300px;
    font-size: 15px;
    line-height: 1.4;
    position: absolute;
    top: 0;
    right: 20%;
}

/* Map */
.cobertura-map {
    position: relative;
    margin-top: 40px;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cobertura-map img {
    width: 500px;
    margin: auto;
    max-width: 100%;
}


/* Bottom brown bar */
.cobertura-bottom {
    background: #8c4e1f;
    color: #fff;
    padding: 20px 25px;
    border-radius: 15px;
    font-size: 15px;
    line-height: 1.4;
    width: 50%;
    margin: 0 auto;
    margin-left: 30%;
    margin-top: 80px;
    margin-bottom: -100px;
}

/* Responsive */
@media(max-width: 900px) {
    .cobertura-info {
        position: static;
        margin-top: 20px;
        width: 100%;
    }
    .cobertura-title h2{
    margin-left: 2rem;
    }

    .cobertura-bottom {
        width: 100%;
    }
}

.metales-section {
    background: #f7f7f7;
    padding: 40px 0 70px;
    text-align: center;
}

/* Main title */
.metales-title {
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 40px;
    color: #6d4024;
}

.metales-title span {
    color: #8c4e1f;
    font-weight: 700;
}

/* Gradient background bar */
.metales-bg {
    width: 100%;
    max-height: 400px;
    margin: 0 auto;
    padding: 50px 0;
    background: linear-gradient(90deg, #1b1b1b, #8c4e1f);
    position: relative;
    margin-bottom: 200px;
}

/* Subtitle */
.metales-subtitle {
    color: white;
    font-size: 26px;
    text-align: left;
    margin-left: 90px;
    margin-bottom: 30px;
}

/* Cards wrapper */
.metales-cards {
    display: flex;
    justify-content: center;
    margin-top: 120px;
    margin-bottom: -180px;
    gap: 12px;
}

/* Card container */
.metal-card {
    width: 220px;
    position: relative;
}
.metal-card:nth-child(2){
    margin-top: -120px;
}
.metal-card img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    border-radius: 3px;
}

/* Labels */
.metal-label {
    background: linear-gradient(90deg, #8c4e1f, #1b1b1b);
    color: white;
    padding: 10px;
    font-size: 16px;
    font-weight: 600;
    position: absolute;
    left: 0;
    width: 100%;
    text-align: center;
}

/* Top labels */
.metal-label.top {
    top: -50px;
}

/* Bottom labels */
.metal-label.bottom {
    bottom: 80px;
}

/* Responsive */
@media (max-width: 900px) {
    .metales-cards {
        flex-direction: column;
        gap: 80px;
    }

    .metal-card {
        margin: 0 auto;
    }

    .metales-subtitle {
        text-align: center;
        margin-left: 0;
    }
}

/* METALES SECTION - 2 */
.metales-section-2 {
    background: #f7f7f7;
    padding: 40px 0 70px;
    margin-bottom: 40px;
    text-align: center;
}

/* Main title */
.metales-title-2 {
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 40px;
    color: #6d4024;
}

.metales-title-2 span {
    color: #8c4e1f;
    font-weight: 700;
}
.metals-section-content{
    max-width: 1200px;
    margin: auto;
}
/* Gradient background bar */
.metales-bg-2 {
    width: 100%;
    /* max-width: 1200px; */
    max-height: 400px;
    margin: 0 auto;
    padding: 50px 0;
    background: linear-gradient(90deg, #1b1b1b, #8c4e1f);
    /* border-radius: 4px; */
    position: relative;
    margin-bottom: 200px;
}

/* Subtitle */
.metales-subtitle-2 {
    color: white;
    font-size: 26px;
    text-align: left;
    margin-left: 90px;
    margin-bottom: 30px;
}

/* Cards wrapper */
.metales-cards-2 {
    display: flex;
    justify-content: center;
    margin-top: 120px;
    margin-bottom: -180px;
    gap: 12px;
}

/* Card container */
.metal-card-2 {
    width: 220px;
    position: relative;
}
.metal-card-2:nth-child(2),.metal-card-2:nth-child(4){
    margin-top: -120px;
}
.metal-card-2 img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    border-radius: 3px;
}

/* Labels */
.metal-label-2 {
    background: linear-gradient(90deg, #8c4e1f, #1b1b1b);
    color: white;
    padding: 10px;
    font-size: 16px;
    font-weight: 600;
    position: absolute;
    left: 0;
    width: 100%;
    text-align: center;
}

/* Top labels */
.metal-label-2.top {
    top: -50px;
}

/* Bottom labels */
.metal-label-2.bottom {
    bottom: 80px;
}

/* Responsive */
@media (max-width: 900px) {
    .metales-cards-2 {
        flex-direction: column;
        gap: 80px;
    }

    .metal-card-2 {
        margin: 0 auto;
    }

    .metales-subtitle-2 {
        text-align: center;
        margin-left: 0;
    }
}


@media (max-width:700px){
    .commer-hero{
        padding-left: 0;
        justify-content: center;
        min-height: 60vh;
    }
    .commer-hero-border{
        min-height: 40px;
        max-height: 60px;
        top: -30px;
        left: -12px;
    }
    .commer-section-2{
        flex-direction: column;
    }
    .commer-hero-border img{
        max-height: 140px;
    }
    .commer-hero-content h2{
        font-size: 24px;
    }
    .commer-hero-content h1{
        font-size: 30px;
    }
    .commer-section-2-card{
        font-size: 24px;
        max-width: 100%;
        padding: 16px;
        padding-bottom: 30px;
        margin-left: 0;
    }
    .commer-section-2-card h2{
        font-size: 32px;
    }
    .commer-section-2-card p{
        font-size: 20px;
    }
    .commer-section-2-img{
        margin-left: 0;
        margin-top: -20px;
    }
    .commer-section-3{
        min-height: 250px;
    }
    .commer-section-3 h2{
        font-size: 2rem;
    }
    .commer-section-4 p{
        font-size: 18px;
        line-height: 1.6;
    }

}

/* ---------- New Responsive Overrides (Option A & breakpoints set to 1024 / 768 / 480) ---------- */

/* --------------------------
   Tablet and smaller (<= 1024px)
   -------------------------- */
@media (max-width: 1024px) {
    /* Ensure hero scales well */
    .commer-hero{
        min-height: 60vh;
        padding-top: 60px;
        padding-left: 20px;
        padding-right: 20px;
    }
    .commer-hero-content h1{
        font-size: 2.4rem;
        padding: 0.8rem;
        border-radius: 1rem;
    }

    /* Section 2 becomes more flexible */
    .commer-section-2{
        max-width: 980px;
        margin: 60px auto;
        gap: 1.25rem;
        align-items: flex-start;
    }
    .commer-section-2-card{
        max-width: 55%;
        padding: 32px 48px;
        margin-left: 30px;
        margin-top: -30px;
    }
    .commer-section-2-card p{
        max-width: 90%;
        font-size: 18px;
    }
    .commer-section-2-card h2{
        font-size: 28px;
    }
    .commer-section-2-img{
        margin-left: -40px;
        margin-top: 10px;
    }
    .commer-section-2-img img{
        max-width: 520px;
        max-height: 350px;
    }

    /* Info box: move slightly with percent -> keep visibility */
    .commer-info-box {
        right: 10%;
        bottom: -35px;
        max-width: 340px;
        padding: 22px 28px;
    }

    /* Cobertura adjustments */
    .cobertura-container { width: 92%; }
    .cobertura-logo-light{ right: 40px; bottom: 80px; }
    .cobertura-logo-light img{ width: 300px; }

    .cobertura-title h2 {
        font-size: 36px;
        margin-left: 12rem;
    }
    .cobertura-info {
        right: 12%;
        width: 320px;
    }
    .cobertura-map img{ width: 460px; }
    .cobertura-bottom {
        width: 70%;
        margin-left: 15%;
    }

    /* Metales */
    .metales-bg { padding: 40px 0; margin-bottom: 160px; }
    .metales-subtitle { margin-left: 60px; font-size: 22px; }
    .metales-cards { margin-top: 100px; gap: 10px; }
    .metal-card img, .metal-card-2 img { height: 420px; }

    /* Metales 2 */
    .metales-subtitle-2 { margin-left: 60px; font-size: 22px; }
    .metales-cards-2 { margin-top: 100px; gap: 10px; }

    /* Reduce extreme negative margins for overlapping cards */
    .metal-card:nth-child(2),
    .metal-card-2:nth-child(2),
    .metal-card-2:nth-child(4){
        margin-top: -80px;
    }

    /* Keep any other desktop behavior but allow wrapping */
    .metales-cards, .metales-cards-2 {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* --------------------------
   Large mobile (<= 768px)
   -------------------------- */
@media (max-width: 768px) {
    /* Hero */
    .commer-hero{
        padding-top: 40px;
        min-height: 55vh;
        background-position: center top;
    }
    .commer-hero-content h1{
        font-size: 1.9rem;
        padding: 0.7rem;
        border-radius: 1rem;
    }

    /* Section 2 -> stacked vertical, full width card above/beside image */
    .commer-section-2{
        flex-direction: column-reverse;
        align-items: center;
        margin: 40px 16px;
        gap: 12px;
    }
    .commer-section-2-card{
        width: 100%;
        max-width: 680px;
        margin: 0;
        padding: 20px;
        margin-top: 0;
        box-shadow: none;
        background: transparent;
    }
    .commer-section-2-card h2{ font-size: 26px; }
    .commer-section-2-card p{ font-size: 18px; padding-right: 0; max-width: 100%; }

    .commer-section-2-img{
        margin-left: 0;
        margin-top: 0;
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 0 10px;
    }
    .commer-section-2-img img{
        width: 100%;
        max-width: 520px;
        height: auto;
    }

    /* Info box: make it relative and flow in document */
    .commer-info-box {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: 18px;
        max-width: 100%;
        width: calc(100% - 32px);
        padding: 18px 20px;
        border-radius: 12px;
    }

    /* Cobertura: stack and center */
    .cobertura-content{
        flex-direction: column;
        gap: 18px;
        align-items: center;
    }
    .cobertura-title h2{
        margin-left: 0;
        text-align: center;
        font-size: 30px;
    }
    .cobertura-info{
        position: static;
        width: 100%;
        max-width: 720px;
    }
    .cobertura-map img{
        width: 100%;
        max-width: 480px;
    }
    .cobertura-logo-light{
        position: relative;
        right: auto;
        bottom: auto;
        display: flex;
        justify-content: center;
        margin-top: 10px;
    }
    .cobertura-logo-light img{ width: 260px; }

    .cobertura-bottom{
        width: 92%;
        margin-left: auto;
        margin-right: auto;
        margin-top: 24px;
        margin-bottom: 10px;
    }

    /* Metales: column layout */
    .metales-subtitle, .metales-subtitle-2 {
        margin-left: 0;
        text-align: center;
        font-size: 20px;
    }
    .metales-cards, .metales-cards-2 {
        flex-direction: column;
        gap: 56px;
        margin-top: 40px;
        margin-bottom: 0;
    }
    .metal-card, .metal-card-2 {
        width: 90%;
        max-width: 360px;
        margin: 0 auto;
    }
    .metal-card img, .metal-card-2 img {
        height: auto;
        max-height: none;
        aspect-ratio: 3 / 4;
        object-fit: cover;
    }
    .metal-label.top { top: -30px; }
    .metal-label.bottom { bottom: 40px; }

    /* Reduce labels size */
    .metal-label, .metal-label-2 {
        font-size: 14px;
        padding: 8px;
    }

    /* Ensure any large paddings are reduced */
    .metales-bg, .metales-bg-2 {
        padding: 30px 12px;
        margin-bottom: 80px;
    }

    /* Make sure any large fixed width containers behave */
    .commer-section-2-card p { line-height: 1.45; }
}

/* --------------------------
   Small mobile (<= 480px)
   -------------------------- */
@media (max-width: 480px) {
    html, body { -webkit-text-size-adjust: 100%; }

    
    /* Hero compress */
    .commer-hero {
        padding-top: 28px;
        min-height: 80vh;
        background-position: center top;
    }
    .commer-hero-content h1{
        font-size: 1.6rem;
        padding: 0.6rem;
        border-radius: 0.8rem;
    }

    /* Section 2 - tight mobile spacing */
    .commer-section-2{
        margin: 20px 12px;
        gap: 10px;
    }
    .commer-section-2-card{
        padding: 14px 14px;
    }
    .commer-section-2-card h2{ font-size: 22px; }
    .commer-section-2-card p{ font-size: 16px; }

    .commer-section-2-img img{
        width: 100%;
        max-width: 420px;
        height: auto;
    }

    /* Info box minimal */
    .commer-info-box {
        padding: 14px 16px;
        border-radius: 10px;
        font-size: 14px;
        line-height: 1.45;
    }
    .commer-info-box ul li { margin: 10px 0; padding-left: 20px; }
    .commer-info-box ul li::before { width: 10px; height: 10px; top: 6px; }

    /* Cobertura */
    .cobertura-logo-light{
    position: absolute;
    top:0px;
}
    .cobertura-title h2 { font-size: 2rem; margin-left: 0; }
    .cobertura-map img { width: 100%; max-width: 360px; }
    .cobertura-logo-light img{ width: 230px; }

    .cobertura-info { font-size: 14px; padding: 12px 14px; border-radius: 8px; }
    .cobertura-bottom { width: 94%; margin-top: 18px; margin-bottom: 8px; padding: 14px; border-radius: 10px; }

    /* Metales */
    .metales-section, .metales-section-2{
        padding: 0;
    }
    .metales-title, .metales-title-2 { font-size: 2rem; padding-top: 1rem; }
    .metales-subtitle, .metales-subtitle-2 { font-size: 1.5rem; }
 
    .metales-bg,  .metales-bg-2{
        max-height: 600px;
    }
    .metales-cards, .metales-cards-2 {display: grid; grid-template-columns: repeat(2,1fr); gap: 40px; margin-top: 24px; }
    .metal-card, .metal-card-2 { width: 92%; }
    .metal-card img, .metal-card-2 img { height: auto; border-radius: 6px; }

    .metal-label, .metal-label-2 { font-size: 13px; padding: 6px; }
    .metal-label.top,.metal-label-2.top { top: -20px; }
    .metal-label.bottom, .metal-label-2.bottom { top: -24px; bottom: auto; }
    .commer-section-2-card p, .cobertura-info, .cobertura-bottom, .metales-subtitle {
        font-size: 1.5rem;
    }

    .metal-card:nth-child(2),
    .metal-card-2:nth-child(2),
    .metal-card-2:nth-child(4) {
        margin-top: 0;
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}


body, .cobertura-container, .commer-section-2, .metales-cards, .metales-cards-2 {
    -webkit-overflow-scrolling: touch;
}


a, button {
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0,0,0,0.06);
}

