/* General Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    margin: 20px;
    background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), 
                url('../patron/patron02.png');
    background-size: 100px 100px;
    background-repeat: repeat;
    background-position: center;
    background-attachment: fixed;
    color: #333;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
    width: 100%;
}

h2 {
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    text-transform: uppercase;
    color: #222;
    background-color: white;
    padding: 12px 25px;
    border-radius: 8px;
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.15);
    display: inline-block;
    margin-bottom: 15px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    justify-items: center;
    width: 100%;
    max-width: 1200px;
}

/* Title Styles */
.title-main {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    color: #222;
    background-color: white;
    padding: 15px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: inline-block;
    margin-bottom: 15px;
}

.subtitle {
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    display: inline-block;
}

/* Card Styles */
.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    width: 220px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.foto {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #ddd;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-info a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    color: #007bff;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* CV Button */
.cv-button {
    background: red;
    color: white;
    border: none;
    padding: 8px 40px;
    margin-top: 15px;
    cursor: pointer;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s;
}

.cv-button:hover {
    background: darkred;
}