/* Reset de márgenes y paddings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", serif;

    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

.header{
    display: flex;
    width: 80%;
    margin: auto;
    height: 100px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 100px;
    flex-wrap: wrap;
    
}
.header a{
    background: #CD1C2A;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
}

@media screen and (max-width:768px) {

    .header{
       
        justify-content: center;
        gap:55px;
        
    
    }
}

h1 {
    text-align: center;
    color: #CD1C2A;
    margin-bottom: 20px;
}

form {
    background: white;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 80%;
    margin: auto;
}

fieldset {
    border: 2px solid #CD1C2A;
    margin-bottom: 20px;
    padding: 40px;
}

legend {
    font-weight: bold;
    color: #CD1C2A;
    font-size: 18px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    transition: border 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
textarea:focus {
    border: 1px solid #4CAF50;
}

input[type="radio"],
input[type="checkbox"] {
    margin-right: 10px;
}

input[type="submit"] {
    background: #CD1C2A;
    color: white;
    border: none;
    padding: 15px 30px;
    cursor: pointer;
    transition: background 0.3s;
    font-family: "Poppins", serif;
    font-weight: 700;
    font-size: 18px;
}

input[type="submit"]:hover {
    background: #96121d;
}
