:root {
    --primary: #0a2e1b;
    --secondary: #165633;
    --accent: #e5c05e;
    --text-light: #e8f5e9;
    --text-dark: #05140b;
    --overlay: rgba(3, 15, 8, 0.75);
    --leaf-green: #4ade80;
}

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

body {
    font-family: 'Lora', sans-serif;
    background-color: var(--primary);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: linear-gradient(var(--overlay), var(--overlay)), url('https://images.unsplash.com/photo-1542273917363-3b1817f69a2d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1080&q=75&fm=webp');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(229, 192, 94, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.container {
    width: 100%;
    max-width: 650px;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 1s ease-out;
    position: relative;
    z-index: 1;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.header-card {
    background-color: #1a1a1a;
    width: 100%;
    border-radius: 0;
    padding: 0 0 35px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0;
    min-height: 100vh;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    overflow: hidden;
}

.logo-wrapper {
    width: 100%;
    background: linear-gradient(to bottom, #ffffff 0%, #ffffff 70%, #1a1a1a 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 75%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 75%, transparent 100%);
    display: flex;
    justify-content: center;
    padding: 0;
    margin-bottom: 10px;
}

.main-logo {
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: cover;
    mix-blend-mode: multiply;
    transition: opacity 1s ease;
}

.title {
    font-family: 'Lora', sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 10px;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    padding: 0 20px;
}

.subtitle {
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    color: var(--leaf-green);
    line-height: 1.5;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    padding: 0 20px;
    margin-bottom: 10px;
}

.description {
    font-size: 0.85rem;
    font-weight: 400;
    text-align: center;
    color: #e8f5e9;
    line-height: 1.6;
    padding: 0 25px;
    opacity: 0.9;
}

.links-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 20px;
}

.link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px 75px; /* 75px de cada lado evita que el texto choque con el icono y lo mantiene centrado */
    background: rgba(22, 86, 51, 0.4);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 50px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.link-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.link-btn:hover::before {
    left: 100%;
}

.link-btn:hover {
    background: rgba(22, 86, 51, 0.7);
    border-color: var(--leaf-green);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    color: #fff;
}

.link-btn i, .link-btn .btn-icon {
    position: absolute;
    transition: transform 0.3s ease;
}

.link-btn i {
    left: 35px;
    font-size: 1.7rem;
    color: var(--accent);
}

.link-btn .btn-icon {
    left: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.link-btn:hover i {
    transform: scale(1.2);
    color: var(--leaf-green);
}

.link-btn:hover .btn-icon {
    transform: scale(1.2);
}

.footer {
    font-size: 0.9rem;
    color: rgba(232, 245, 233, 0.6);
    margin-top: auto;
    padding-bottom: 25px;
    padding-top: 40px;
    text-align: center;
}

.slideshow-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}
.slideshow-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 0;
    transition: opacity 0.8s ease-in-out; 
}
.slideshow-container img.active {
    opacity: 1;
}

@keyframes autoHover {
    0%, 100% {
        background: rgba(22, 86, 51, 0.4);
        border-color: rgba(74, 222, 128, 0.3);
        transform: translateY(0);
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
        color: var(--text-light);
    }
    15%, 35% {
        background: rgba(22, 86, 51, 0.7);
        border-color: var(--leaf-green);
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.5);
        color: #fff;
    }
    50% {
        background: rgba(22, 86, 51, 0.4);
        border-color: rgba(74, 222, 128, 0.3);
        transform: translateY(0);
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
        color: var(--text-light);
    }
}

@keyframes autoHoverIcon {
    0%, 100%, 50% { transform: scale(1); }
    15%, 35% { transform: scale(1.2); }
}

@keyframes autoHoverShine {
    0%, 100%, 50% { left: -100%; }
    15%, 35% { left: 100%; }
}

.link-btn {
    animation: autoHover 7s infinite;
}

.link-btn .btn-icon {
    animation: autoHoverIcon 7s infinite;
}

.link-btn::before {
    animation: autoHoverShine 7s infinite;
}

.link-btn:nth-child(1), .link-btn:nth-child(1) .btn-icon, .link-btn:nth-child(1)::before { animation-delay: 2.0s; }
.link-btn:nth-child(2), .link-btn:nth-child(2) .btn-icon, .link-btn:nth-child(2)::before { animation-delay: 2.5s; }
.link-btn:nth-child(3), .link-btn:nth-child(3) .btn-icon, .link-btn:nth-child(3)::before { animation-delay: 3.0s; }
.link-btn:nth-child(4), .link-btn:nth-child(4) .btn-icon, .link-btn:nth-child(4)::before { animation-delay: 3.5s; }
.link-btn:nth-child(5), .link-btn:nth-child(5) .btn-icon, .link-btn:nth-child(5)::before { animation-delay: 4.0s; }
.link-btn:nth-child(6), .link-btn:nth-child(6) .btn-icon, .link-btn:nth-child(6)::before { animation-delay: 4.5s; }

@media (max-width: 400px) { .link-btn { font-size: 1rem; padding: 20px 65px; } }
