/* ======================================================
   TU ABOGADO AHORA – LEGALTECH SaaS PREMIUM
   Versión Final Producción Definitiva
====================================================== */


/* ======================================================
   RESET GLOBAL
====================================================== */

*{
box-sizing:border-box;
}

html{
scroll-behavior:smooth;
}

html, body{
margin:0;
padding:0;
height:100%;
width:100%;
overflow-x:hidden;
}

body{

font-family:"Segoe UI", Arial, Helvetica, sans-serif;

background:#F4F6F8;
color:#1F2937;

-webkit-font-smoothing:antialiased;
-moz-osx-font-smoothing:grayscale;

display:flex;
flex-direction:column;

}



/* ======================================================
   HEADER APP BAR
====================================================== */

.app-header{

position:fixed;

top:0;
left:0;

width:100%;
height:56px;

background:#1F3A5F;

display:flex;
align-items:center;
justify-content:center;

padding:0 16px;

z-index:1000;

padding-top:env(safe-area-inset-top);

}


.app-title{

color:white;
font-size:17px;
font-weight:600;

}


.app-logo{

height:28px;
cursor:pointer;

}


.app-back{

position:absolute;
left:16px;

color:white;
text-decoration:none;

font-size:20px;
font-weight:700;

}



/* ======================================================
   CONTENIDO APP
====================================================== */

.app-content{

flex:1;

overflow-y:auto;

padding-top:72px;
padding-bottom:115px;

max-width:820px;
margin:auto;

}



.container{

max-width:720px;

margin-left:auto;
margin-right:auto;

padding:20px;

width:100%;

}



/* ======================================================
   CARDS PREMIUM
====================================================== */

.card{

background:white;

border-radius:18px;

padding:24px;

margin-bottom:20px;

box-shadow:0 6px 20px rgba(0,0,0,0.06);

animation:fadeIn 0.3s ease;

}


.card-light{

background:transparent;
box-shadow:none;
padding:0;

}


.hero{

text-align:center;

}


.subtitle{

color:#6B7280;
margin-top:6px;

}



@keyframes fadeIn{

from{
opacity:0;
transform:translateY(8px);
}

to{
opacity:1;
transform:translateY(0);
}

}



/* ======================================================
   TITULOS
====================================================== */

.card h1{

margin:0 0 12px 0;
font-size:22px;
color:#1F3A5F;

}


.card h2{

margin:0 0 10px 0;
font-size:20px;
font-weight:700;
color:#1F3A5F;

}


.card h3{

margin:0 0 8px 0;
font-size:17px;
color:#1F3A5F;

}



/* ======================================================
   ALERTAS
====================================================== */

.alert{

padding:14px;
border-radius:12px;

font-size:14px;
font-weight:600;

margin-bottom:16px;

background:#FEE2E2;
color:#991B1B;

border:1px solid #FCA5A5;

}


.alert.success{

background:#DCFCE7;
color:#166534;
border:1px solid #86EFAC;

}



/* ======================================================
   BOTONES PRINCIPALES
====================================================== */

.btn{

display:block;
width:100%;

padding:14px;

border-radius:14px;

text-decoration:none;
border:none;

cursor:pointer;

margin-top:16px;

font-weight:600;
text-align:center;

transition:all 0.2s ease;

}


.btn,
.btn:visited,
.btn:active{
text-decoration:none;
}


.btn-primary,
.btn-primary:visited{
background:#1F3A5F;
color:white;
}


.btn-primary:hover{
background:#162B47;
}


.btn-secondary,
.btn-secondary:visited{
background:#E5E7EB;
color:#1F3A5F;
}


.btn-secondary:hover{
background:#D1D5DB;
}


.btn:hover{
transform:translateY(-2px);
}



/* ======================================================
   BOTONES PEQUEÑOS
====================================================== */

.btn-small{

display:inline-block;

padding:8px 14px;

border-radius:10px;

background:#1F3A5F;
color:white;

font-size:13px;

text-decoration:none;

}



/* ======================================================
   ÁREAS JURÍDICAS
====================================================== */

.area-list{

display:flex;
flex-wrap:wrap;

gap:14px;

margin-top:14px;

}


.area{

display:inline-block;

padding:10px 16px;

border-radius:22px;

background:#EEF2F7;

color:#1F3A5F;

font-size:14px;
font-weight:600;

text-decoration:none;

transition:all 0.2s ease;

border:1px solid #D1D5DB;

margin-bottom:6px;

}


.area:hover{

background:#1F3A5F;
color:white;

transform:translateY(-1px);

}



/* ======================================================
   FORMULARIOS
====================================================== */

.form-consulta label{

display:block;
margin-top:16px;

font-weight:600;
font-size:14px;

}


.form-consulta input,
.form-consulta select,
.form-consulta textarea{

width:100%;

padding:13px;

border-radius:12px;

border:1px solid #D1D5DB;

margin-top:6px;

font-size:15px;

background:white;

}


.form-consulta input:focus,
.form-consulta select:focus,
.form-consulta textarea:focus{

outline:none;

border-color:#2F6FB2;

box-shadow:0 0 0 2px rgba(47,111,178,0.15);

}



/* ======================================================
   BADGES
====================================================== */

.badge{

display:inline-block;

padding:6px 12px;

border-radius:999px;

font-size:12px;
font-weight:600;

}


.badge-nueva{
background:#DBEAFE;
color:#1D4ED8;
}

.badge-contactada{
background:#FEF3C7;
color:#92400E;
}

.badge-en_proceso{
background:#EDE9FE;
color:#5B21B6;
}

.badge-cerrada{
background:#DCFCE7;
color:#166534;
}



/* ======================================================
   PLANES
====================================================== */

.plan{
position:relative;
}


.plan-price{

font-size:28px;
font-weight:800;

margin:10px 0;

color:#1F3A5F;

}


.plan-price span{

font-size:14px;
font-weight:400;
color:#6B7280;

}


.launch-tag{

display:inline-block;

background:#E5E7EB;

color:#374151;

padding:4px 10px;

border-radius:12px;

font-size:12px;
font-weight:600;

margin-top:6px;

}


.recomendado{

position:absolute;

top:-12px;
right:15px;

background:#1F3A5F;
color:white;

padding:5px 12px;

border-radius:20px;

font-size:12px;
font-weight:600;

}



/* ======================================================
   BOTTOM NAV
====================================================== */

.bottom-nav{

position:fixed;

bottom:0;
left:0;

width:100%;
height:72px;

background:white;

box-shadow:0 -4px 18px rgba(0,0,0,0.08);

display:flex;

justify-content:space-around;
align-items:center;

z-index:999;

padding-bottom:env(safe-area-inset-bottom);

}


.bottom-nav a{

flex:1;

text-align:center;

text-decoration:none;

color:#6B7280;

font-size:12px;
font-weight:500;

display:flex;
flex-direction:column;

align-items:center;
justify-content:center;

transition:all 0.2s ease;

}


.bottom-nav a i{

font-size:20px;
margin-bottom:4px;

}


.bottom-nav a.active{

color:#1F3A5F;
font-weight:600;

}


.bottom-nav .nav-center{

position:relative;
top:-18px;

background:#1F3A5F;
color:white !important;

width:60px;
height:60px;

border-radius:50%;

display:flex;
align-items:center;
justify-content:center;

font-size:24px;

box-shadow:0 6px 16px rgba(0,0,0,0.2);

transition:0.2s;

}


.bottom-nav .nav-center:hover{

transform:scale(1.08);

}



/* ======================================================
   FOOTER LEGAL
====================================================== */

.footer-legal{

text-align:center;

font-size:12px;

color:#6B7280;

padding:10px 0 30px 0;

}



/* ======================================================
   RESPONSIVE
====================================================== */

@media(max-width:600px){

.container{
padding:16px;
}

.card{
padding:18px;
}

}



/* ======================================================
   DESKTOP APP MODE
====================================================== */

@media(min-width:900px){

body{
background:#E9EEF4;
}

.app-content{
padding-top:80px;
padding-bottom:130px;
}

.container{
max-width:760px;
}

.card{
border-radius:22px;
}

}



/* ======================================================
   CAPA VISUAL MODERNA 2025
====================================================== */

.card{
border:1px solid rgba(0,0,0,0.04);
box-shadow:0 10px 28px rgba(0,0,0,0.06);
transition:all .2s ease;
}

.card:hover{
transform:translateY(-2px);
box-shadow:0 14px 32px rgba(0,0,0,0.08);
}

.btn-primary{
box-shadow:0 6px 14px rgba(31,58,95,0.25);
}

.btn-primary:hover{
box-shadow:0 10px 20px rgba(31,58,95,0.35);
}

.bottom-nav{
backdrop-filter:blur(10px);
background:rgba(255,255,255,0.95);
border-top:1px solid rgba(0,0,0,0.06);
}

.bottom-nav a i{
font-size:22px;
}

.bottom-nav .nav-center{
box-shadow:0 10px 24px rgba(31,58,95,0.35);
}

a{
transition:all .15s ease;
}

.area:hover{
box-shadow:0 6px 16px rgba(0,0,0,0.08);
}

.app-header{
box-shadow:0 2px 10px rgba(0,0,0,0.06);
}

.app-content{
-webkit-overflow-scrolling:touch;
}

.card p{
line-height:1.45;
}

/* =========================
FORMULARIOS PROFESIONALES
========================= */

.perfil-card{
    max-width: 700px;
    margin: 0 auto;
    padding: 25px;
}

.form-layout{
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* GRID 2 COLUMNAS */

.grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* FORM GROUP */

.form-group{
    display: flex;
    flex-direction: column;
}

.form-group.full{
    grid-column: 1 / -1;
}

/* LABELS */

.form-group label{
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #2c3e50;
}

/* INPUTS */

.form-group input,
.form-group select,
.form-group textarea{
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #dcdcdc;
    font-size: 14px;
    background: #fff;
    transition: 0.2s;
}

/* FOCUS */

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
    outline: none;
    border-color: #1F3A5F;
    box-shadow: 0 0 0 2px rgba(31,58,95,0.1);
}

/* TEXTAREA */

textarea{
    resize: vertical;
}

/* CHECKBOX */

.form-group.checkbox{
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

/* BOTÓN FULL */

.btn-full{
    width: 100%;
    margin-top: 10px;
}

/* CENTER */

.card.center{
    text-align: center;
}

/* RESPONSIVE */

@media(max-width: 768px){

    .grid{
        grid-template-columns: 1fr;
    }

}