/* 
   ISFD "Dr. Pedro Ignacio de Castro Barros"
   Ivy League Inspired Design System
*/

:root {
    /* Prestigious Institutional Palette */
    --primary-navy: #002147;
    /* Oxford Blue */
    --primary-gold: #C5A059;
    /* Champagne Gold */
    --gold-light: #E5D5B7;
    --white: #FFFFFF;
    --text-main: #1A1A1A;
    --text-muted: #555555;
    --bg-base: #F8F9FA;

    /* Glassmorphism & Shadow Effects */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(197, 160, 89, 0.2);
    --shadow-soft: 0 10px 30px rgba(0, 33, 71, 0.08);
    --shadow-elevated: 0 20px 40px rgba(0, 33, 71, 0.12);

    /* Typography */
    --font-serif: "Playfair Display", serif;
    --font-sans: "Inter", sans-serif;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-x: hidden;
}

/* Elegant Geometric Background Pattern */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background-color: var(--bg-base);
    background-image:
        radial-gradient(var(--primary-gold) 0.5px, transparent 0.5px),
        radial-gradient(var(--primary-gold) 0.5px, var(--bg-base) 0.5px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    opacity: 0.08;
}

/* Main Premium Container */
.container {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    width: 100%;
    max-width: 480px;
    border-radius: 4px;
    /* Classic Ivy League: less rounded, more sharp elegance */
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    padding: 50px 30px;
    text-align: center;
    position: relative;
    z-index: 10;
    transition: var(--transition-smooth);
}

/* Header Section */
header {
    margin-bottom: 40px;
}

.logo-container {
    margin-bottom: 25px;
    display: inline-block;
    padding: 15px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 33, 71, 0.05);
    border: 1px solid rgba(197, 160, 89, 0.1);
}

.logo {
    width: 100px;
    height: auto;
    display: block;
}

h1 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-navy);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 10px;
}

.subtitle {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
}

/* Divider with textual context */
.divider-text {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-muted);
    margin: 30px 0 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-transform: lowercase;
}

.divider-text::before,
.divider-text::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(197, 160, 89, 0.3), transparent);
}

.links-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.priority-links {
    gap: 14px;
}

.featured-link {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    text-align: left;
    color: var(--primary-navy);
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.featured-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-elevated);
}

.featured-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.featured-kicker {
    color: var(--primary-gold);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.featured-title {
    font-family: var(--font-serif);
    color: var(--primary-navy);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.15;
}

.featured-detail {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.35;
}

.feria-feature {
    position: relative;
    overflow: hidden;
    padding: 12px 16px 12px 12px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 249, 250, 0.96) 58%, rgba(229, 213, 183, 0.45) 100%),
        var(--white);
    border: 1px solid rgba(0, 33, 71, 0.08);
}

.feria-feature::after {
    content: "";
    position: absolute;
    inset: 0;
    border-left: 4px solid var(--primary-gold);
    pointer-events: none;
}

.feria-image {
    width: 118px;
    height: 110px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 3px;
}

.steam-feature {
    padding: 15px 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(197, 160, 89, 0.08));
    border: 1px solid rgba(197, 160, 89, 0.45);
}

.steam-feature .featured-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    color: var(--primary-gold);
    background: rgba(197, 160, 89, 0.12);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 50%;
}

.steam-feature .featured-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.link-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    padding: 16px 25px;
    background-color: var(--white);
    color: var(--primary-navy);
    border: 1px solid rgba(0, 33, 71, 0.08);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    transition: var(--transition-smooth);
    border-radius: 4px;
}

.link-button i {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

/* Primary style: Bold Navy */
.link-button.primary {
    background-color: var(--primary-navy);
    color: var(--white);
    border: none;
}

.link-button.primary i {
    color: var(--primary-gold);
}

/* Secondary/Program style: Gold flavored */
.link-button.secondary {
    border-color: var(--primary-gold);
    color: var(--primary-navy);
    background-color: rgba(197, 160, 89, 0.05);
}

.link-button.secondary i {
    color: var(--primary-gold);
}

/* Hover Effects */
.link-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-elevated);
    border-color: var(--primary-gold);
}

.link-button.primary:hover {
    background-color: #002e63;
}

.link-button.secondary:hover {
    background-color: rgba(197, 160, 89, 0.1);
}

/* Social Row */
.social-row {
    display: flex;
    gap: 12px;
    margin-top: 5px;
}

.social-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    padding: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    transition: var(--transition-smooth);
    border-radius: 4px;
}

.social-button i {
    width: 16px;
    height: 16px;
}

.instagram {
    background-color: #E1306C;
}

.facebook {
    background-color: #1877F2;
}

.social-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: var(--shadow-soft);
}

/* Google Sponsored Button */
.link-button.google-sponsored {
    background: var(--white);
    border: 1px solid #E0E0E0;
    padding: 12px 20px;
    justify-content: flex-start;
    text-align: left;
    gap: 15px;
}

.google-logo {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.google-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.google-text .label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.google-text .brand {
    font-size: 0.95rem;
    color: #5F6368;
    font-weight: 500;
}

.link-button.google-sponsored:hover {
    border-color: #4285F4;
    background-color: rgba(66, 133, 244, 0.02);
}

/* Footer Section */
footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 33, 71, 0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

footer p {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.divider-small {
    width: 20px;
    height: 1px;
    background: var(--primary-gold);
}

.gestion {
    color: var(--primary-navy) !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem !important;
}

/* Responsive Adjustments */
@media (max-width: 520px) {
    body {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0;
        align-items: flex-start;
    }

    .container {
        padding: 40px 20px;
        max-width: 100%;
        border-radius: 0;
        border: none;
        backdrop-filter: none;
        background: var(--white);
    }
}

@media (max-width: 380px) {
    .feria-feature {
        align-items: flex-start;
    }

    .feria-image {
        width: 94px;
        height: 86px;
    }

    .featured-title {
        font-size: 1rem;
    }

    .featured-detail {
        font-size: 0.74rem;
    }
}
