/* CSS Variables for Premium Aesthetic */
:root {
    --color-primary: #F9F8F6; /* Soft linen / off-white */
    --color-text: #F9F8F6;
    --color-text-muted: rgba(249, 248, 246, 0.7);
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    min-height: 100vh;
    width: 100%;
    background-color: #1A1817; /* Very dark earthy background as fallback */
    font-family: var(--font-sans);
    color: var(--color-text);
    overflow-x: hidden; /* Prevent horizontal scroll */
    overflow-y: auto; /* Allow vertical scroll on very small screens */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background Configuration */
body {
    /* Using one of the provided premium lifestyle images */
    background-image: url('anyma-hero-ruana.jpg');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
}

/* Dark Overlay to ensure text readability and set a moody, elegant tone */
.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient overlay: slightly darker at the bottom */
    background: linear-gradient(180deg, rgba(26, 24, 23, 0.75) 0%, rgba(15, 14, 13, 0.95) 100%);
    z-index: 1;
}

/* Layout Container */
.container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem 2rem;
}

/* Header */
header {
    text-align: center;
    animation: fadeInDown 2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.isotipo {
    width: 140px; /* Larger size for stronger presence */
    height: auto;
    margin-bottom: 1.5rem;
    mix-blend-mode: screen; /* Drops out the black background against the dark overlay */
    animation: fadeInUp 2.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.brand-name {
    font-family: var(--font-serif);
    font-size: 2.4rem; /* Increased size for brand presence */
    font-weight: 300;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    /* Optical adjustment for the letter spacing */
    margin-right: -0.5em; 
}

/* Main Content */
main {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content {
    text-align: center;
    max-width: 650px;
}

.subtitle {
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    animation: fadeInUp 2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s forwards;
    opacity: 0;
    margin-right: -0.4em;
}

.main-title {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 2.5rem;
    animation: fadeInUp 2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.9s forwards;
    opacity: 0;
}

.main-title em {
    font-style: italic;
    color: #D4C2A3; /* Subtle gold/champagne accent for 'lujo silencioso' */
}

/* Elegant Divider Line */
.divider {
    width: 1px;
    height: 80px;
    background-color: rgba(212, 194, 163, 0.3);
    margin: 0 auto 2.5rem auto;
    animation: scaleY 2s cubic-bezier(0.2, 0.8, 0.2, 1) 1.2s forwards;
    transform: scaleY(0);
    transform-origin: top;
}

.description {
    font-size: 1.05rem;
    font-weight: 200;
    line-height: 1.8;
    color: var(--color-text-muted);
    animation: fadeInUp 2s cubic-bezier(0.2, 0.8, 0.2, 1) 1.5s forwards;
    opacity: 0;
}

/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleY {
    from {
        transform: scaleY(0);
    }
    to {
        transform: scaleY(1);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        padding: 2rem 1.5rem;
        justify-content: center; /* Center better on shorter screens */
        gap: 3rem; /* Add spacing between header and main on mobile */
    }

    .main-title {
        font-size: 2.8rem;
        margin-bottom: 1.5rem;
    }
    
    .isotipo {
        width: 110px; /* Adjusted scale for tablet/mobile */
        margin-bottom: 1rem;
    }

    .brand-name {
        font-size: 1.8rem;
    }
    
    .description {
        font-size: 0.95rem;
    }
    
    .divider {
        height: 60px;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 2rem 1.2rem;
        gap: 2rem;
    }

    .main-title {
        font-size: 2.2rem;
    }

    .isotipo {
        width: 90px; /* Properly scaled down for small mobile */
    }

    .brand-name {
        font-size: 1.5rem;
    }
}
