:root {
    --bg-dark: #0a110a;
    --bg-accent: #151d15;
    --gold: #c5a059;
    --gold-bright: #e5c07b;
    --olive: #2d3a2d;
    --text-light: #e0e7e0;
    --text-dim: #a0b0a0;
    --glass: rgba(26, 36, 24, 0.6);
    --glass-border: rgba(197, 160, 89, 0.2);
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Base Misty Background */
.misty-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 10% 20%, rgba(26, 46, 26, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(197, 160, 89, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--olive);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 3%;
    /* More side room */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.4s ease;
    background: rgba(10, 17, 10, 0.85);
    backdrop-filter: blur(15px);
}

nav.scrolled {
    padding: 0.6rem 3%;
    background: rgba(10, 17, 10, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    margin-right: 1.5rem;
}

@media (max-width: 768px) {
    .logo img {
        height: 60px !important;
    }
}

.nav-links {
    display: flex;
    gap: 1.4rem;
    /* Better breathing room */
    list-style: none;
    align-items: center;
    flex-grow: 1;
    justify-content: flex-end;
    /* Push links towards the right grouping */
    margin-right: 1rem;
}

.nav-links li {
    flex-shrink: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.82rem;
    /* Increased for better visibility */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.3s;
    opacity: 0.8;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--gold);
    opacity: 1;
}

.nav-social {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-left: 0.5rem;
    padding-left: 1.2rem;
    border-left: 1px solid rgba(197, 160, 89, 0.3);
    flex-shrink: 0;
}

.nav-social a {
    color: var(--gold);
    font-size: 1.05rem;
    /* Slightly larger to balance */
    transition: all 0.3s ease;
}

.nav-social a:hover {
    color: #fff;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 10% 60px;
    /* Better top/bottom distribution */
    position: relative;
    background: linear-gradient(rgba(10, 17, 10, 0.4), var(--bg-dark)), url('../assets/img/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-content {
    max-width: 900px;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(3rem, 10vw, 5.5rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 30%, var(--gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 3rem;
    letter-spacing: 1px;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.btn-gold {
    padding: 1.2rem 2.8rem;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    display: inline-block;
}

.btn-gold:hover {
    background: var(--gold);
    color: var(--bg-dark);
    box-shadow: 0 0 40px rgba(197, 160, 89, 0.3);
    transform: translateY(-5px);
}

/* Diplomado Banner Section */
.banner-section {
    padding: 4rem 10%;
    margin-top: -10vh;
    z-index: 5;
    position: relative;
}

.banner-img {
    width: 100%;
    max-width: 1000px;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    margin: 0 auto;
    display: block;
    transform: translateY(0);
    transition: transform 0.5s ease;
}

.banner-img:hover {
    transform: translateY(-10px);
}

/* Sections */
.section-container {
    padding: 4rem 10% 6rem;
    /* More compact for laptops */
    position: relative;
    scroll-margin-top: 90px;
    /* Adjusted anchor point */
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title span {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    display: block;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .section-title h2 {
        font-size: 2.2rem !important;
    }
}

@media (max-width: 480px) {
    .section-title h2 {
        font-size: 1.8rem !important;
    }
}

.section-title h2 {
    font-size: 3rem;
    color: #fff;
    font-weight: 800;
}

/* Staff Grid Specific */
.staff-grid {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 0;
}

@media (max-width: 1200px) {
    .staff-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .staff-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .staff-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Generic Teacher Grid (used by Graduates) */
.teacher-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    gap: 2rem !important;
    max-width: 1300px !important;
    margin: 0 auto !important;
    padding: 2rem 0 !important;
}

.teacher-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem 1.2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    height: 430px;
    /* Balanced height */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.teacher-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    background: rgba(45, 58, 45, 0.5);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.teacher-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 2px solid var(--gold);
    background: var(--olive);
    padding: 0;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.teacher-card h3 {
    font-size: 1.1rem;
    color: var(--gold-bright);
    margin-bottom: 0.4rem;
    min-height: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
    font-weight: 700;
}

.teacher-role {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gold);
    margin-bottom: 1.2rem;
    min-height: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    font-weight: 600;
}

.teacher-bio {
    font-size: 0.8rem;
    color: var(--text-light);
    opacity: 0.85;
    font-weight: 300;
    display: -webkit-box;
    line-clamp: 5;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .teacher-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 2rem;
    }

    .teacher-card {
        height: auto;
        min-height: 480px;
    }
}

@media (max-width: 900px) {
    .teacher-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .teacher-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Director Section Flex */
.director-flex {
    display: flex;
    gap: 3rem;
    align-items: center;
    max-width: 1100px;
    margin: 1.5rem auto;
    padding: 2.5rem;
    background: rgba(15, 23, 15, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 40px;
    border: 1px solid rgba(197, 160, 89, 0.15);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 10;
}

.director-photo-container {
    flex: 0 0 320px;
    height: 320px;
    position: relative;
    background: var(--olive);
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(197, 160, 89, 0.2);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4);
}

.director-photo {
    width: 280px;
    height: 280px;
    object-fit: cover;
    display: block;
    border-radius: 50%;
    border: 3px solid var(--gold);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.info-logo {
    width: 260px;
    max-width: 90%;
    margin: 0 0 1.5rem;
    display: block;
}

.director-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .director-info {
        align-items: center;
        text-align: center;
    }

    .info-logo {
        margin: 0 auto 1.5rem;
    }
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    width: 30px;
    height: 2px;
    background: var(--gold);
    transition: all 0.3s;
}

.mobile-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .section-container {
        padding: 6rem 5%;
    }

    .director-flex {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 5%;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s ease;
        backdrop-filter: blur(20px);
        border-left: 1px solid var(--glass-border);
    }

    .nav-links.active {
        right: 0;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .director-flex {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
        padding: 2.5rem 1.5rem;
    }

    .director-photo-container {
        flex: 0 0 260px;
        width: 260px;
        height: 260px;
        margin: 0 auto;
    }

    .director-photo {
        width: 220px;
        height: 220px;
        margin: 0 auto;
    }

    .section-title h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.4rem;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .btn-gold {
        padding: 0.8rem 1.8rem;
        font-size: 0.8rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .flyer-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

/* Countries Grid (Modular) */
.countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.country-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.country-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    background: rgba(45, 58, 45, 0.4);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(197, 160, 89, 0.2);
}

.country-card .flag-container {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--glass-border);
    transition: all 0.3s ease;
    background: var(--bg-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.country-card:hover .flag-container {
    border-color: var(--gold);
    transform: scale(1.1);
}

.flag-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.country-card h4 {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Course Card & Grid Responsiveness */
.course-grid {
    display: grid;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.course-specs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(197, 160, 89, 0.1);
}

@media (max-width: 640px) {
    .course-specs {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .course-specs>div {
        border-right: none !important;
        border-bottom: 1px solid rgba(197, 160, 89, 0.1);
        padding-bottom: 8px;
    }

    .course-specs>div:nth-child(even) {
        border-right: none !important;
    }

    .course-specs>div:nth-last-child(-n+2) {
        border-bottom: none;
        padding-bottom: 0;
    }
}

@media (max-width: 768px) {
    .course-detail-flex {
        grid-template-columns: 1fr !important;
    }
}

.country-card .grad-count {
    font-size: 0.75rem;
    color: var(--gold);
    font-weight: 700;
    opacity: 0.8;
}

/* Map Styling (Modular) */
.map-path {
    fill: rgba(45, 58, 45, 0.6);
    stroke: var(--gold);
    stroke-width: 0.5;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.map-path:hover,
.map-path.has-grads {
    fill: rgba(197, 160, 89, 0.2);
    stroke-width: 1.5;
}

.map-path.has-grads {
    fill: rgba(197, 160, 89, 0.4);
}

.map-path:hover {
    filter: drop-shadow(0 0 10px var(--gold));
    transform: scale(1.02);
}

.graduate-card {
    border: 1px solid rgba(197, 160, 89, 0.1);
    background: rgba(15, 23, 15, 0.95) !important;
    backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 620px;
    /* Increased height to ensure everything fits */
    display: flex;
    flex-direction: column;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.graduate-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(197, 160, 89, 0.1);
}

/* Teacher Grid (Used by Staff and Graduates) */
.teacher-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    gap: 2rem !important;
    max-width: 1400px;
    margin: 0 auto !important;
    padding: 2rem 0 !important;
}

@media (max-width: 768px) {
    .teacher-grid {
        grid-template-columns: 1fr !important;
        padding: 1rem 0 !important;
        gap: 1.5rem !important;
    }
}



.graduate-photo-container {
    width: 100%;
    height: 250px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(197, 160, 89, 0.2);
    background: #000;
    cursor: zoom-in;
    /* Indicate zoomable */
    position: relative;
}

.graduate-photo-container::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 5px;
    border-radius: 5px;
    font-size: 0.8rem;
    opacity: 0;
    transition: 0.3s;
}

.graduate-photo-container:hover::after {
    opacity: 1;
}

.graduate-card .teacher-photo {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 0 !important;
    margin: 0 !important;
}

.modality-status {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #2ecc71;
    /* Green Light */
    border-radius: 50%;
    box-shadow: 0 0 10px #2ecc71;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(46, 204, 113, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
    }
}

.graduate-card h3 {
    font-size: 1.3rem;
    color: var(--gold-bright);
    margin-bottom: 0.5rem;
    line-height: 1.2;
    min-height: 3.2rem;
    /* Increased to allow 2 lines without cutting */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.loc-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background: rgba(197, 160, 89, 0.05);
    border: 1px solid rgba(197, 160, 89, 0.15);
    border-radius: 4px;
    color: var(--gold);
    font-size: 0.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
    text-align: center;
}

.teacher-bio {
    font-size: 0.85rem;
    color: var(--text-light);
    opacity: 0.7;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 0;
    flex-grow: 1;
    /* Pushes content below to bottom */
    display: -webkit-box;
    line-clamp: 6;
    /* Allow more lines for description */
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.card-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(197, 160, 89, 0.1);
    width: 100%;
}

.graduate-card .btn-gold {
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.graduate-card .btn-gold:hover {
    filter: brightness(1.2);
    transform: scale(1.02);
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.modal-overlay.active {
    display: flex;
}

.modal-overlay img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    border: 2px solid var(--gold);
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    transition: 0.3s;
}

.modal-close:hover {
    color: var(--gold);
    transform: scale(1.1);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
    background: #128c7e;
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5);
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 28px;
        bottom: 20px;
        right: 20px;
    }
}

footer {
    padding: 6rem 10% 4rem;
    background: #0a110a;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    width: 100%;
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 110px;
    width: auto;
    margin: 0 auto;
    display: block;
}

#social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--gold);
    border-radius: 50%;
    color: var(--gold);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--gold);
    color: #0a110a;
    transform: translateY(-5px);
}

/* Retiros Styles */
.retiros-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.retiro-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
}

.retiro-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    background: rgba(45, 58, 45, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.retiro-img-container {
    position: relative;
    width: 100%;
    height: 155px;
    overflow: hidden;
}

.retiro-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.retiro-card:hover .retiro-img {
    transform: scale(1.1);
}

.retiro-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--gold);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--gold);
    backdrop-filter: blur(5px);
}

.retiro-info {
    padding: 1rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.retiro-info h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.retiro-loc {
    color: var(--gold);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 1.2rem;
    display: block;
}

.retiro-phrase {
    font-size: 0.82rem;
    /* Slightly smaller */
    line-height: 1.4;
    font-style: italic;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.retiro-gallery {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: auto;
}

.retiro-thumb {
    width: 85px;
    height: 85px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    cursor: zoom-in;
}

.retiro-thumb:hover {
    transform: scale(1.1);
    border-color: var(--gold);
}

@media (max-width: 992px) {
    .retiros-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .retiros-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .retiro-img-container {
        height: 180px;
    }
}