/* =====================================================
   COMEX RYD - cotizar.css
   Página de consulta / cotización
   ===================================================== */

.cotizar-page{
    min-height:100vh;
    background:#000;
    color:#fff;
}

.cotizar-header{
    min-height:78px;
    display:flex;
    align-items:center;
    gap:28px;
    padding:10px clamp(22px,5vw,92px);
    background:rgba(5,8,13,.96);
    border-bottom:1px solid rgba(255,255,255,.08);
    position:sticky;
    top:0;
    z-index:100;
}

.cotizar-brand{
    display:flex;
    align-items:center;
    flex:0 0 auto;
}

.cotizar-brand img{
    width:205px;
    height:62px;
    object-fit:contain;
    object-position:center;
    filter:drop-shadow(0 6px 16px rgba(0,0,0,.35));
}

.cotizar-nav{
    display:flex;
    align-items:center;
    gap:26px;
    margin-left:auto;
}

.cotizar-nav a{
    color:#f5f7fb;
    text-decoration:none;
    font-size:13px;
    font-weight:600;
    transition:.2s ease;
    white-space:nowrap;
}

.cotizar-nav a:hover{
    color:#F57C00;
}

.cotizar-whatsapp{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:42px;
    height:42px;
    padding:0 15px;
    border-radius:999px;
    background:#22c55e;
    color:#fff;
    text-decoration:none;
    font-size:13px;
    font-weight:700;
    box-shadow:0 10px 26px rgba(34,197,94,.2);
}

.cotizar-language{
    border:1px solid rgba(255,255,255,.22);
    border-radius:999px;
    padding:10px 13px;
    font-size:12px;
    font-weight:700;
    color:#f6f7fb;
    white-space:nowrap;
}

.cotizar-main{
    min-height:calc(100vh - 78px);
    background:#000;
}

.cotizar-hero{
    position:relative;
    overflow:hidden;
    min-height:320px;
    padding:76px clamp(22px,8vw,145px) 46px;
    display:flex;
    align-items:flex-end;
    background:
        linear-gradient(90deg,rgba(0,0,0,.92) 0%,rgba(0,0,0,.7) 44%,rgba(0,0,0,.12) 100%),
        linear-gradient(180deg,rgba(0,0,0,.06) 0%,rgba(0,0,0,.92) 100%),
        url('buque-noche.jpg') center/cover no-repeat;
}

.cotizar-hero-overlay{
    position:absolute;
    inset:0;
    pointer-events:none;
}

.cotizar-intro{
    position:relative;
    z-index:2;
    max-width:900px;
}

.cotizar-kicker{
    display:inline-flex;
    align-items:center;
    gap:12px;
    color:#F57C00;
    font-size:14px;
    font-weight:700;
    letter-spacing:3px;
}

.cotizar-kicker::before{
    content:"";
    width:28px;
    height:2px;
    background:#F57C00;
    display:block;
}

.cotizar-intro h1{
    margin:18px 0 12px;
    font-size:clamp(42px,5vw,72px);
    line-height:.98;
    font-weight:800;
    letter-spacing:-1.5px;
}

.cotizar-intro p{
    margin:0;
    max-width:690px;
    color:#d3d7df;
    font-size:18px;
    line-height:1.65;
}

.cotizar-alert{
    max-width:1260px;
    margin:28px auto 0;
    padding:14px 18px;
    border:1px solid rgba(255,124,0,.4);
    background:rgba(255,124,0,.1);
    color:#fff;
    border-radius:12px;
}

.cotizar-form{
    max-width:1260px;
    margin:-16px auto 0;
    padding:0 24px 80px;
    position:relative;
    z-index:5;
    display:grid;
    grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);
    gap:22px;
}

.cotizar-card{
    background:rgba(10,14,19,.94);
    border:1px solid rgba(255,255,255,.12);
    border-radius:16px;
    padding:22px;
    box-shadow:0 20px 50px rgba(0,0,0,.2);
    backdrop-filter:blur(10px);
}

.cotizar-card + .cotizar-card{
    margin-top:22px;
}

.cotizar-side{
    min-width:0;
}

.cotizar-card-title{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:22px;
}

.cotizar-card-title > span{
    width:34px;
    height:34px;
    border-radius:50%;
    background:#F57C00;
    color:#111;
    display:grid;
    place-items:center;
    font-weight:800;
}

.cotizar-card-title h2{
    margin:0;
    color:#fff;
    font-size:20px;
    font-weight:800;
}

.cotizar-fieldset{
    border:0;
    padding:0;
    margin:0 0 18px;
}

.cotizar-fieldset legend{
    margin-bottom:10px;
    color:#fff;
    font-size:13px;
    font-weight:700;
}

.cotizar-types{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:9px;
}

.cotizar-type{
    position:relative;
    min-height:48px;
    border:1px solid rgba(255,255,255,.14);
    border-radius:9px;
    background:#121820;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    cursor:pointer;
    font-weight:700;
    font-size:13px;
    transition:.2s ease;
}

.cotizar-type:hover,
.cotizar-type.selected{
    border-color:#F57C00;
    box-shadow:inset 0 0 0 1px #F57C00;
}

.cotizar-type input{
    position:absolute;
    opacity:0;
    pointer-events:none;
}

.cotizar-type-icon{
    color:#F57C00;
    font-size:18px;
    width:20px;
    height:20px;
    display:grid;
    place-items:center;
}

.cotizar-type-icon svg,
.cotizar-upload-icon svg,
.cotizar-floating-whatsapp svg{
    width:100%;
    height:100%;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.cotizar-grid{
    display:grid;
    gap:14px;
    margin-top:14px;
}

.cotizar-grid.one{grid-template-columns:1fr;}
.cotizar-grid.two{grid-template-columns:repeat(2,minmax(0,1fr));}
.cotizar-grid.three{grid-template-columns:repeat(3,minmax(0,1fr));}

.cotizar-field{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.cotizar-field span{
    font-size:12px;
    font-weight:700;
    color:#f5f7fb;
}

.cotizar-field b{
    color:#F57C00;
}

.cotizar-field input,
.cotizar-field textarea{
    width:100%;
    min-height:46px;
    border:1px solid rgba(255,255,255,.12);
    border-radius:8px;
    padding:12px 14px;
    color:#fff;
    background:#141a21;
    outline:none;
    font:inherit;
    font-size:13px;
    transition:border-color .18s ease,box-shadow .18s ease;
}

.cotizar-field textarea{
    min-height:96px;
    resize:vertical;
}

.cotizar-field input::placeholder,
.cotizar-field textarea::placeholder{
    color:#818996;
}

.cotizar-field input:focus,
.cotizar-field textarea:focus{
    border-color:#F57C00;
    box-shadow:0 0 0 3px rgba(255,122,0,.12);
}

.cotizar-field-full{
    margin-top:14px;
}

.cotizar-help{
    color:#aeb5c0;
    font-size:13px;
    line-height:1.55;
    margin:-6px 0 18px;
}

.cotizar-dropzone{
    min-height:230px;
    border:1px dashed rgba(255,255,255,.25);
    border-radius:12px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding:30px;
    gap:10px;
    background:rgba(255,255,255,.02);
    cursor:pointer;
    transition:.2s ease;
}

.cotizar-dropzone:hover,
.cotizar-dropzone.dragging{
    border-color:#F57C00;
    background:rgba(255,122,0,.05);
}

.cotizar-dropzone input{
    display:none;
}

.cotizar-upload-icon{
    width:52px;
    height:52px;
    border-radius:50%;
    border:1px solid rgba(255,122,0,.4);
    color:#F57C00;
    display:grid;
    place-items:center;
    font-size:30px;
}

.cotizar-dropzone strong{
    font-size:13px;
}

.cotizar-dropzone small{
    color:#7f8793;
    line-height:1.5;
}

.cotizar-file-list{
    display:flex;
    flex-direction:column;
    gap:6px;
    margin-top:12px;
}

.cotizar-file-row{
    padding:8px 10px;
    border-radius:8px;
    background:#141a21;
    color:#d8dce3;
    font-size:12px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.cotizar-submit-wrap{
    grid-column:1 / -1;
    text-align:center;
    padding-top:2px;
}

.cotizar-submit{
    border:0;
    min-width:min(540px,100%);
    min-height:58px;
    border-radius:10px;
    background:#F57C00;
    color:#fff;
    font:inherit;
    font-size:15px;
    font-weight:800;
    letter-spacing:.3px;
    cursor:pointer;
    box-shadow:0 14px 28px rgba(255,122,0,.2);
    transition:.2s ease;
}

.cotizar-submit span{
    margin-left:10px;
    font-size:19px;
}

.cotizar-submit:hover{
    transform:translateY(-1px);
    filter:brightness(1.06);
}

.cotizar-privacy{
    margin:12px 0 0;
    color:#858d99;
    font-size:11px;
}

.cotizar-floating-whatsapp{
    position:fixed;
    right:28px;
    bottom:28px;
    width:58px;
    height:58px;
    border-radius:50%;
    background:#25d366;
    color:#fff;
    display:grid;
    place-items:center;
    text-decoration:none;
    font-size:28px;
    z-index:120;
    box-shadow:0 12px 30px rgba(0,0,0,.28);
}

.cotizar-honeypot{
    position:absolute!important;
    left:-10000px!important;
    width:1px!important;
    height:1px!important;
    overflow:hidden!important;
}

@media(max-width:1080px){
    .cotizar-nav{gap:15px;}
    .cotizar-header{gap:15px;padding-left:22px;padding-right:22px;}
    .cotizar-brand img{width:175px;}
}

@media(max-width:900px){
    .cotizar-nav{display:none;}
    .cotizar-header{justify-content:space-between;}
    .cotizar-form{grid-template-columns:1fr; margin-top:0;}
    .cotizar-submit-wrap{grid-column:auto;}
}

@media(max-width:640px){
    .cotizar-header{min-height:68px;padding:7px 15px;}
    .cotizar-brand img{width:145px;height:55px;}
    .cotizar-whatsapp span{display:none;}
    .cotizar-whatsapp{width:40px;min-width:40px;padding:0;}
    .cotizar-language{padding:8px 9px;}
    .cotizar-hero{min-height:300px;padding:52px 20px 34px;}
    .cotizar-intro h1{font-size:39px;}
    .cotizar-intro p{font-size:15px;}
    .cotizar-form{padding:0 14px 60px;}
    .cotizar-card{padding:17px;border-radius:13px;}
    .cotizar-types{grid-template-columns:1fr;}
    .cotizar-grid.two,
    .cotizar-grid.three{grid-template-columns:1fr;}
    .cotizar-submit{width:100%;min-width:0;}
    .cotizar-floating-whatsapp{width:50px;height:50px;right:17px;bottom:17px;}
}

/* =====================================================
   TEMA CLARO - COTIZAR
   Mantiene la misma lógica de tema de COMEX RYD.
   ===================================================== */

html.tema-claro .cotizar-page{
    background:#ffffff;
    color:#0b1220;
}

html.tema-claro .cotizar-header{
    background:rgba(255,255,255,.96);
    border-bottom-color:rgba(11,18,32,.10);
    box-shadow:0 6px 20px rgba(11,18,32,.05);
}

html.tema-claro .cotizar-nav a{
    color:#0b1220;
}

html.tema-claro .cotizar-nav a:hover{
    color:#F57C00;
}

html.tema-claro .cotizar-language{
    border-color:rgba(11,18,32,.16);
    color:#0b1220;
    background:#ffffff;
}

html.tema-claro .cotizar-main{
    background:#ffffff;
}

html.tema-claro .cotizar-hero{
    background:
        linear-gradient(90deg,rgba(255,255,255,.94) 0%,rgba(255,255,255,.72) 42%,rgba(255,255,255,.12) 100%),
        linear-gradient(180deg,rgba(255,255,255,.04) 0%,rgba(255,255,255,.88) 100%),
        url('buque-dia.jpg') center/cover no-repeat;
}

html.tema-claro .cotizar-intro h1{
    color:#0b1220;
}

html.tema-claro .cotizar-intro p{
    color:#48566b;
}

html.tema-claro .cotizar-alert{
    background:rgba(245,124,0,.08);
    border-color:rgba(245,124,0,.35);
    color:#0b1220;
}

html.tema-claro .cotizar-card{
    background:rgba(255,255,255,.96);
    border-color:rgba(11,18,32,.11);
    box-shadow:0 18px 42px rgba(11,18,32,.08);
}

html.tema-claro .cotizar-card-title h2,
html.tema-claro .cotizar-fieldset legend,
html.tema-claro .cotizar-field span,
html.tema-claro .cotizar-dropzone strong{
    color:#0b1220;
}

html.tema-claro .cotizar-type{
    background:#f7f8fa;
    border-color:rgba(11,18,32,.12);
    color:#0b1220;
}

html.tema-claro .cotizar-field input,
html.tema-claro .cotizar-field textarea{
    background:#ffffff;
    border-color:rgba(11,18,32,.14);
    color:#0b1220;
}

html.tema-claro .cotizar-field input::placeholder,
html.tema-claro .cotizar-field textarea::placeholder{
    color:#8b97a8;
}

html.tema-claro .cotizar-help{
    color:#48566b;
}

html.tema-claro .cotizar-dropzone{
    background:#f8f9fb;
    border-color:rgba(11,18,32,.18);
}

html.tema-claro .cotizar-dropzone small{
    color:#667085;
}

html.tema-claro .cotizar-file-row{
    background:#f2f4f7;
    color:#344054;
}

html.tema-claro .cotizar-privacy{
    color:#667085;
}
