/* Fondo general */
* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}


body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    min-height: 100vh;
}


/* Contenedor principal */

.container {

    width: 90%;
    max-width: 900px;
    margin: 40px auto;

    background: white;

    padding: 35px;

    border-radius: 20px;

    box-shadow: 
        0 15px 35px rgba(0,0,0,0.2);

}


/* Títulos */

h1 {

    text-align: center;

    color: #333;

    margin-bottom: 10px;

}


h2 {

    color: #555;

    border-bottom: 3px solid #667eea;

    padding-bottom: 10px;

}



/* Texto IP */

p {

    text-align: center;

    color: #777;

}



/* Formulario */


form {

    background: #f8f9ff;

    padding: 25px;

    border-radius: 15px;

    margin-bottom: 30px;

}


label {

    display: block;

    margin-top: 15px;

    font-weight: bold;

    color: #444;

}


input {

    width: 100%;

    padding: 12px;

    margin-top: 8px;

    border-radius: 10px;

    border: 1px solid #ccc;

    font-size: 15px;

    transition: 0.3s;

}



input:focus {

    outline: none;

    border-color: #667eea;

    box-shadow: 0 0 8px rgba(102,126,234,.5);

}



/* Botón */


button {

    width: 100%;

    margin-top: 25px;

    padding: 14px;

    background: linear-gradient(
        135deg,
        #667eea,
        #764ba2
    );

    color: white;

    border: none;

    border-radius: 12px;

    font-size: 17px;

    font-weight: bold;

    cursor: pointer;

    transition: .3s;

}


button:hover {

    transform: translateY(-3px);

    box-shadow:
        0 8px 15px rgba(0,0,0,.2);

}



/* Tabla */


table {

    width: 100%;

    border-collapse: collapse;

    margin-top: 20px;

    overflow: hidden;

    border-radius: 12px;

}



thead {

    background: #667eea;

    color:white;

}



th {

    padding: 15px;

    text-align: center;

}



td {

    padding: 12px;

    text-align:center;

    border-bottom:1px solid #ddd;

}



tr:hover {

    background:#f2f4ff;

}



/* Responsive para celular */

@media(max-width:600px){

    .container{

        width:95%;

        padding:20px;

    }


    table{

        font-size:12px;

    }

}
