/* ==============================
   MÁKSAMMA — ESTILOS COMPARTIDOS
   ============================== */

/* --- VARIABLES GLOBALES --- */
:root {
    --color-bg: #050508;
    --color-card: #151621;
    --accent-gold: #c5a059;
    --accent-blue: #4a7cf5;
    --vine-green: #7ab36e;
    --vine-dark: #4a7a42;
}

/* --- RESET Y BASE --- */
body {
    background-color: var(--color-bg);
    color: #e2e8f0;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

h1,
h2,
h3,
.font-epic {
    font-family: 'Cinzel', serif;
}

.font-serif-text {
    font-family: 'Playfair Display', serif;
}

/* --- FONDO DE ESTRELLAS --- */
.stars-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
    overflow: hidden;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
    animation: twinkle var(--duration) infinite ease-in-out;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
}

@keyframes twinkle {

    0%,
    100% {
        opacity: var(--opacity);
        transform: scale(1);
    }

    50% {
        opacity: 0.3;
        transform: scale(0.5);
    }
}

/* --- NAVEGACIÓN --- */
.nav-container {
    background: rgba(5, 5, 8, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s ease;
}

body.scrolled .nav-container {
    transform: translateY(-100%);
}

.nav-link {
    position: relative;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: #cbd5e1;
    transition: color 0.3s;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: white;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-gold);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: white;
}

.nav-link.active::after {
    width: 100%;
}

/* --- BOTONES --- */
.btn-navy {
    background-color: #0f172a;
    border: 1px solid #1e3a8a;
    color: white;
    transition: all 0.3s;
}

.btn-navy:hover {
    background-color: #1e3a8a;
    box-shadow: 0 0 15px rgba(30, 58, 138, 0.5);
}

/* --- MARCO DE PLANTAS (VINE FRAME) --- */
.vine-wrapper {
    position: relative;
    padding: 8px;
    transition: transform 0.3s ease;
}

.vine-wrapper:hover {
    transform: translateY(-5px);
}

.vine-border {
    position: absolute;
    inset: 0;
    border: 3px solid #5e8c61;
    border-radius: 16px;
    pointer-events: none;
    z-index: 20;
    box-shadow: 0 0 15px rgba(94, 140, 97, 0.3);
}

.vine-corner {
    position: absolute;
    width: 50px;
    height: 50px;
    z-index: 21;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50' fill='none'%3E%3Cpath d='M2 50 C 2 20 20 2 50 2' stroke='%237ab36e' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M15 35 Q 5 35 2 25' stroke='%235e8c61' stroke-width='2'/%3E%3Cpath d='M35 15 Q 35 5 25 2' stroke='%235e8c61' stroke-width='2'/%3E%3Cpath d='M15 35 Q 25 25 25 45' fill='%2388c478'/%3E%3Ccircle cx='15' cy='15' r='3' fill='%23c5a059'/%3E%3C/svg%3E");
}

.vc-tl {
    top: -10px;
    left: -10px;
    transform: rotate(0deg);
}

.vc-tr {
    top: -10px;
    right: -10px;
    transform: rotate(90deg);
}

.vc-br {
    bottom: -10px;
    right: -10px;
    transform: rotate(180deg);
}

.vc-bl {
    bottom: -10px;
    left: -10px;
    transform: rotate(270deg);
}

.vine-content {
    position: relative;
    height: 100%;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    z-index: 10;
    background-color: #0f111a;
}

/* --- ANIMACIONES --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

/* --- FOOTER --- */
footer {
    background: black;
}