/* Fuente Roboto importada desde Google Fonts */

/* Reset básico */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

/* Contenedor general */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* HEADER */
.site-header {
    background-color: #004080;
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.site-header h1 {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 5px;
}

.site-header p {
    font-weight: 300;
    font-size: 1rem;
    margin-bottom: 15px;
}

.site-header nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.site-header nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 6px 10px;
    transition: background-color 0.3s ease;
    border-radius: 4px;
}

.site-header nav ul li a:hover,
.site-header nav ul li a:focus {
    background-color: #0066cc;
    outline: none;
}

/* HERO */
.hero {
    background: linear-gradient(90deg, #004080cc, #0066cccc),
        url('img/1.webp') no-repeat center center/cover;
    color: white;
    padding: 60px 0;
    display: flex;
    align-items: center;
    min-height: 320px;
}

.hero-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.hero-text {
    flex: 1 1 300px;
}

.hero-text h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 25px;
    font-weight: 300;
    max-width: 600px;
}

.hero .btn {
    background-color: #ff6600;
    color: white;
    padding: 12px 25px;
    font-weight: 700;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.hero .btn:hover,
.hero .btn:focus {
    background-color: #e65c00;
    outline: none;
}

.hero-image img {
    max-width: 350px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* INFO SECTION */
.info-section {
    background-color: white;
    padding: 50px 0;
}

.info-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    font-size: 2rem;
}

.info-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.info-item {
    flex: 1 1 250px;
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    background-color: #e6f0ff;
    box-shadow: 0 3px 6px rgba(0, 102, 204, 0.15);
    transition: transform 0.3s ease;
}

.info-item:hover {
    transform: translateY(-6px);
}

.info-item img {
    width: 80px;
    margin-bottom: 15px;
}

/* COMPARATIVA */
.comparativa {
    padding: 50px 0;
}

.comparativa h2 {
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
    font-size: 2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

thead tr {
    background-color: #004080;
    color: white;
}

th, td {
    padding: 15px 12px;
    border: 1px solid #ddd;
    text-align: center;
}

tbody tr:nth-child(even) {
    background-color: #f1f5fb;
}

.logo {
    width: 40px;
    vertical-align: middle;
    margin-right: 8px;
}

a {
    color: #004080;
    text-decoration: none;
    font-weight: 600;
}

a:hover, a:focus {
    text-decoration: underline;
}

.nota {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    text-align: center;
}

/* BLOG */
.blog {
    background-color: white;
    padding: 50px 0;
}

.blog h2 {
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    font-size: 2rem;
}

.blog-grid {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.blog-post {
    background-color: #e6f0ff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 102, 204, 0.15);
    width: 300px;
    display: flex;
    flex-direction: column;
}

.blog-post img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.blog-post h3 {
    padding: 15px 15px 0 15px;
    font-weight: 700;
}

.blog-post p {
    padding: 10px 15px;
    font-weight: 300;
    flex-grow: 1;
}

.blog-post a {
    padding: 10px 15px 15px 15px;
    font-weight: 600;
    color: #004080;
    align-self: flex-start;
}

.blog-post a:hover,
.blog-post a:focus {
    text-decoration: underline;
}

/* CONTACTO */
.contacto {
    background-color: #004080;
    color: white;
    padding: 50px 0;
}

.contacto h2 {
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
    font-size: 2rem;
}

.contacto form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contacto label {
    font-weight: 500;
    margin-bottom: 5px;
}

.contacto input,
.contacto textarea {
    padding: 10px;
    border-radius: 6px;
    border: none;
    font-size: 1rem;
}

.contacto input:focus,
.contacto textarea:focus {
    outline: 2px solid #ff6600;
    background-color: #fff;
    color: #000;
}

.contacto button.btn {
    background-color: #ff6600;
    color: white;
    border: none;
    padding: 15px;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contacto button.btn:hover,
.contacto button.btn:focus {
    background-color: #e65c00;
    outline: none;
}

/* FOOTER */
.site-footer {
    background-color: #002050;
    color: white;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* Responsivo */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-image img {
        max-width: 80%;
        margin: 0 auto;
    }

    .info-grid {
        flex-direction: column;
        gap: 40px;
    }

    .blog-grid {
        flex-direction: column;
        align-items: center;
    }
}
