/*
Theme Name: Alliance Française Pérou
Theme URI: https://alianzafrancesa.org.pe
Author: Alliance Française
Author URI: https://alianzafrancesa.org.pe
Description: Tema personalizado para Alliance Française Pérou
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: afperu
*/

:root {
    --primary-red: #c41e3a;
    --text-dark: #2c2c2c;
    --text-light: #666;
    --bg-light: #fafafa;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

/* Logo Section */
.logo-container {
    text-align: center;
    padding: 40px 0 30px;
}

.logo-af {
    font-family: 'Playfair Display', serif;
    font-size: 75px;
    font-style: italic;
    color: var(--primary-red);
    margin: 0;
    line-height: 1;
    font-weight: 400;
}

.logo-af img {
    max-width: 100%;
    height: auto;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    margin-top: 8px;
}

.logo-alliance {
    font-size: 21px;
    color: var(--text-dark);
    font-weight: 400;
}

.logo-francaise {
    font-size: 21px;
    color: var(--primary-red);
    font-weight: 400;
}

.logo-perou {
    font-size: 16px;
    color: #aaa;
    font-weight: 300;
    margin-top: 2px;
    letter-spacing: 0.5px;
}

/* Titles */
.main-title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin: 30px 0 12px;
    color: var(--text-dark);
    line-height: 1.2;
    letter-spacing: 0.6px;
}

.subtitle {
    font-size: 16px;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 45px;
    font-weight: 300;
    font-style: italic;
}

.section-title {
    font-size: 19px;
    font-weight: 600;
    text-align: center;
    margin: 50px 0 40px;
    color: var(--text-dark);
    letter-spacing: 0.2px;
}

/* City Cards */
.city-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    padding: 28px;
    margin-bottom: 28px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 22px;
    border: 1px solid rgba(0,0,0,0.03);
}

.city-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-color: rgba(196, 30, 58, 0.1);
}

.city-image {
    width: 105px;
    height: 105px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.city-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.city-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

.city-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--text-dark);
    font-size: 13px;
}

.phone-icon {
    width: 24px;
    height: 24px;
    background-color: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.phone-icon::before {
    content: "📞";
    filter: brightness(0) invert(1);
    font-size: 12px;
}

.city-link {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.city-link:hover {
    gap: 10px;
    color: #a01828;
}

.city-link::after {
    content: "›";
    font-size: 18px;
}

.container-custom {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Why Choose Section */
.why-choose-section {
    margin: 100px 0 80px;
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0,0,0,0.08);
}

.building-image {
    width: 100%;
    height: 100%;
    min-height: 350px;
    object-fit: cover;
    display: block;
}

.why-choose-content {
    padding: 50px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 350px;
}

.why-choose-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
    letter-spacing: 0.8px;
    line-height: 1.4;
}

.why-choose-text {
    font-size: 14px;
    line-height: 1.9;
    color: #555;
    font-weight: 300;
    text-align: justify;
}

/* Events Section */
.events-section {
    margin: 80px 0 100px;
}

.events-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 50px;
    letter-spacing: 0.8px;
}

.event-card {
    background: #fff;
    border-radius: 100px;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0,0,0,0.08);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

.event-image {
    width: 100%;
    height: 100%;
    min-height: 300px;
    max-height: 300px;
    object-fit: cover;
    border-radius: 100px 0 0 100px;
}

.event-content {
    padding: 40px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 300px;
}

.event-date {
    font-size: 12px;
    color: #888;
    margin-bottom: 18px;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.event-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 18px;
    line-height: 1.6;
}

.event-category {
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.event-link {
    color: var(--primary-red);
    text-decoration: none;
    border-bottom: none;
    display: inline-block;
    font-weight: 600;
    align-self: flex-start;
}

.event-link:hover {
    border-bottom: 1px solid var(--primary-red);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    padding: 30px 0;
    text-align: center;
    margin-top: 80px;
    border-top: 3px solid var(--primary-red);
}

.footer p {
    color: #ccc;
    font-size: 12px;
    margin: 0;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.why-choose-media {
    position: relative;
    min-height: 350px;
    overflow: hidden;
}

.why-choose-media .building-image {
    width: 100%;
    height: 100%;
    min-height: 350px;
    object-fit: cover;
    display: block;
}

.why-choose-media::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(
        to right,
        rgba(250,250,250,0) 0%,
        rgba(250,250,250,0.85) 70%,
        #fafafa 100%
    );
}

/* Responsive */
@media (max-width: 991px) {
    .building-image {
        min-height: 300px;
        border-radius: 0;
    }

    .why-choose-content {
        padding: 40px 35px;
        min-height: auto;
    }

    .event-image {
        min-height: 250px;
        max-height: 250px;
        border-radius: 40px 40px 0 0;
    }

    .event-card {
        border-radius: 40px;
        max-width: 100%;
    }

    .event-content {
        padding: 35px 30px;
        min-height: auto;
    }

    .why-choose-media::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .logo-af {
        font-size: 60px;
    }

    .logo-alliance, .logo-francaise {
        font-size: 18px;
    }

    .logo-perou {
        font-size: 14px;
    }

    .main-title {
        font-size: 24px;
    }

    .section-title {
        font-size: 18px;
        margin: 60px 0 40px;
    }

    .city-card {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }

    .city-content {
        align-items: center;
    }

    .city-phone {
        justify-content: center;
    }

    .city-image {
        width: 100px;
        height: 100px;
    }

    .why-choose-content {
        padding: 30px 25px;
    }

    .why-choose-text {
        text-align: left;
        font-size: 13px;
    }

    .event-content {
        padding: 30px 25px;
    }

    .why-choose-section,
    .events-section {
        margin: 60px 0;
    }
}

@media (max-width: 480px) {
    .logo-af {
        font-size: 50px;
    }

    .main-title {
        font-size: 20px;
    }

    .container-custom {
        padding: 0 20px;
    }
}
