/* =========================================
   RESET
========================================= */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

/* =========================================
   BODY
========================================= */
body{
    font-family:'Segoe UI',sans-serif;
    background:linear-gradient(135deg,#f5e6ea,#ffffff);
    min-height:100vh;
    color:#333;
}

/* =========================================
   CONTENEDOR
========================================= */
.container{
    width:100%;
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:20px;
}

/* =========================================
   TARJETA
========================================= */
.card{
    width:100%;
    max-width:900px;
    background:#fff;
    padding:30px;
    border-radius:20px;
    box-shadow:0 15px 40px rgba(0,0,0,.08);
}

/* =========================================
   TITULOS
========================================= */
h2{
    text-align:center;
    margin-bottom:25px;
    color:#222;
}

.section{
    margin-bottom:30px;
}

.section h3{
    margin-bottom:15px;
    padding-bottom:8px;
    border-bottom:2px solid #f1f1f1;
    color:#444;
}

/* =========================================
   GRIDS
========================================= */
.grid-2{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:15px;
}

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

.grid-4{
    display:grid;
    grid-template-columns:120px 1fr 1fr 1fr;
    gap:15px;
}

/* =========================================
   INPUTS
========================================= */
input,
select,
textarea{
    width:100%;
    padding:12px 14px;
    border:1px solid #dcdcdc;
    border-radius:10px;
    font-size:15px;
    background:#fff;
    transition:.3s;
}

input:focus,
select:focus,
textarea:focus{
    border-color:#e91e63;
    box-shadow:0 0 0 4px rgba(233,30,99,.15);
    outline:none;
}

input[readonly]{
    background:#f7f7f7;
    cursor:not-allowed;
}

/* =========================================
   DIRECCIONES Y TELEFONOS
========================================= */
.direccion-item,
.telefono-item{
    border:1px dashed #ddd;
    border-radius:12px;
    padding:15px;
    margin-bottom:15px;
    background:#fafafa;
}

/* =========================================
   BOTONES
========================================= */
.btn-main{
    width:100%;
    padding:14px;
    border:none;
    border-radius:12px;
    background:#e91e63;
    color:#fff;
    font-size:16px;
    font-weight:600;
    cursor:pointer;
    transition:.3s;
}

.btn-main:hover{
    background:#c2185b;
    transform:translateY(-2px);
}

.btn-add{
    background:none;
    border:none;
    color:#e91e63;
    font-weight:600;
    cursor:pointer;
    margin-top:8px;
    transition:.3s;
}

.btn-add:hover{
    color:#c2185b;
}

/* =========================================
   ALERTAS
========================================= */
.alert{
    background:#ffe7ef;
    color:#c2185b;
    border-left:4px solid #e91e63;
    padding:12px;
    margin-bottom:15px;
    border-radius:8px;
}

/* =========================================
   LOGIN LINK
========================================= */
.login-link{
    text-align:center;
    margin-top:20px;
}

.login-link a{
    color:#e91e63;
    text-decoration:none;
    font-weight:600;
}

.login-link a:hover{
    text-decoration:underline;
}


.acciones-direccion,
.acciones-telefono{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:10px;
}

.btn-remove{
    background:none;
    border:none;
    color:#e91e63;
    font-weight:600;
    cursor:pointer;
    margin-top:8px;
    transition:.3s;
}

.btn-remove:hover{
    background:#bb2d3b;
}

@media(max-width:768px){

    .acciones-direccion,
    .acciones-telefono{
        flex-direction:column;
    }

    .acciones-direccion button,
    .acciones-telefono button{
        width:100%;
    }

}

/* =========================================
   TABLETS
========================================= */
@media(max-width:768px){

    .card{
        padding:20px;
    }

    .grid-2,
    .grid-3{
        grid-template-columns:1fr;
    }

    .grid-4{
        grid-template-columns:1fr;
    }

}

/* =========================================
   MOVILES PEQUEÑOS
========================================= */
@media(max-width:480px){

    .container{
        padding:10px;
    }

    .card{
        padding:15px;
        border-radius:15px;
    }

    h2{
        font-size:24px;
    }

    .section h3{
        font-size:16px;
    }

    input,
    select,
    textarea{
        font-size:14px;
        padding:11px;
    }

    .btn-main{
        font-size:15px;
        padding:12px;
    }

}

/* =========================================
   PANTALLAS GRANDES
========================================= */
@media(min-width:1400px){

    .card{
        max-width:1100px;
    }

}