* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
}

header {
    background: linear-gradient(to right, #1a1a1a, #2c3e50);
    color: white;
    padding: 2rem;
    text-align: center;
}

header nav ul {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    list-style: none;
}

header nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

header nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

aside {
    width: 250px;
    background: #ffffff;
    padding: 2rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

aside h3 {
    margin-bottom: 1rem;
    border-bottom: 2px solid #000000;
    padding-bottom: 0.5rem;
}

aside ul {
    padding-left: 0rem;
}

aside a {
    color: #333;
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

aside a:hover {
    color: #007bff;
}

main {
    flex: 1;
    padding: 2rem;
    background: white;
    margin-left: 2rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);


    .formContacto {
        max-width: 600px;
        margin: 20px auto;
        padding: 20px;
        background: #f9f9f9;
        border: 1px solid #ccc;
        border-radius: 5px;
    }
    
    .formContacto .form-group {
        margin-bottom: 15px;
    }
    
    .formContacto label {
        display: block;
        margin-bottom: 5px;
        font-weight: bold;
    }
    
    .formContacto input[type="text"],
    .formContacto input[type="email"],
    .formContactotextarea {
        width: 100%;
        padding: 8px;
        border: 1px solid #ccc;
        border-radius: 4px;
    }
    
    .formContacto fieldset {
        border: none;
        margin-bottom: 15px;
    }
    
    .formContacto legend {
        font-weight: bold;
        margin-bottom: 5px;
    }
    
    .formContacto input[type="radio"],
    .formContacto input[type="checkbox"] {
        margin-right: 5px;
    }
    
    .formContacto button {
        padding: 10px 20px;
        background: #00529F;
        color: #fff;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }
    
    .formContacto button:hover {
        background: #003e7e;
    }
    
    footer .footer-contenido {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

section {
    margin-bottom: 3rem;
}

h2 {
    color: #2c3e50;
    border-bottom: 2px solid #eee;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.devices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.device-card {
    border: 1px solid #ddd;
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s;
}

.device-card:hover {
    transform: translateY(-5px);
}

.device-specs ul {
    list-style-position: inside;
    padding-left: 1rem;
}

.comparison-table {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 2rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    border: 1px solid #ddd;
    text-align: left;
}

.comparison-table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

footer {
    background: linear-gradient(to right, #1a1a1a, #2c3e50);
    color: white;
    padding: 3rem 2rem;
    margin-top: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.5rem;
}

.footer-section ul {
    list-style-position: inside;
    padding-left: 1rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #ffd700;
}

/* Estilos para enlaces internos */
a[href^="#"] {
    position: relative;
    padding-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 1rem;
    }
    aside {
        width: 100%;
        margin-bottom: 2rem;
    }
    main {
        margin-left: 0;
        margin-bottom: 2rem;
    }
    header nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
    
}