@import url("header.css");

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #202122;
    overflow-x: hidden;
}

section {
    padding: 20px;
    margin: 20px auto;
    background: #fff;
    border: 1px solid #ddd;
    text-align: left;
    text-wrap: balance;
    border-radius: 8px;
}

/* Estilos titulos y subtitulos */
.titol-principal,
.titol,
.subtitol {
    text-transform: uppercase;
}

.titol-principal {
    font-size: 28px;
    margin-bottom: 10px;
    color: #333;
}

.titol {
    font-size: 20px;
    margin-bottom: 8px;
    color: #333;
}

.subtitol {
    font-size: 18px;
    color: #555;
}

p {
    text-wrap: balance;
    margin: 10px 0;
    color: #666;
}

.text {
    line-height: 1.6;
    color: #666;
}

/* Tipos */
.types {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.type-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: transform .18s ease, box-shadow .18s ease;
}

.type-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.type-card a {
    display: inline-block;
    margin-top: 10px;
    color: var(--accent);
    text-decoration: none;
    font-weight: bold;
}

/* Recommendations page styles */
.contenido {
    width: 100%;
    max-width: 1200px;
    margin-top: 20px;
    padding: 0 20px;
}

.contenido > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    justify-content: center;
}

.contenido div > div {
    background: #fff;
    border: 1px solid #ddd;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 12px;
    height: 100%;
}

.contenido div > div:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.contenido h3 {
    margin-bottom: 8px;
    margin-top: 0;
    color: #333;
    font-size: 1.1em;
    text-transform: uppercase;
    line-height: 1.3;
}

.contenido p {
    margin-bottom: 12px;
    margin-top: 0;
    color: #666;
    line-height: 1.4;
    text-align: left;
    flex-grow: 1;
}

.contenido a {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
    margin-top: auto;
    margin-bottom: 8px;
}

.contenido a:hover {
    color: #d8491d;
}

.contenido > div > div > div {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 180px;
}

.contenido img {
    max-width: 100%;
    height: auto;
    max-height: 160px;
    object-fit: contain;
    border-radius: 4px;
}

/* Ver más links */
.ver-mas {
    display: inline-block;
    background: var(--accent);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
    margin-top: 10px;
}

.ver-mas span {
    color: white;
}

.ver-mas:hover {
    background: #d8491d;
}

/* Contact form styles */
form {
    max-width: 600px;
    margin: 20px auto 0;
    background: transparent;
    padding: 20px 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

form input,
form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.3s;
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

form button {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s;
}

form button:hover {
    background: #d8491d;
}