/* Font loading */
@font-face {
    font-family: 'Joly';
    src: url('fonts/Joly-Text-Black_1752540703616.woff2') format('woff2');
    font-weight: 900;
    font-display: swap;
}

@font-face {
    font-family: 'Haas';
    src: url('fonts/NeueHaasGrotText-Bold_1752540703617.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Sanchez';
    src: url('fonts/SanchezSlab-SemiBold_1752540703618.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Avenir';
    src: url('fonts/avenir-next-world-bold_1752540703618.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

/* Global reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Times New Roman', serif;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

main {
    width: 100%;
    max-width: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    margin: 0 auto;
    margin-top: 120px; /* Space for fixed header */
    min-height: calc(100vh - 120px);
}

.container {
    text-align: center;
    max-width: 800px;
    width: 100%;
}

/* Header banner styling */
.banner-header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
}

.logo-banner {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
    padding-bottom: 50px;
}

.logo-banner[src=""] {
    display: none;
}

/* Main headline styling */
#titular {
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 3rem;
    color: #000;
    letter-spacing: -0.02em;
    transition: font-family 0.3s ease;
    word-wrap: break-word;
    hyphens: auto;
}

/* Typography classes for rotation */
.font-joly {
    font-family: 'Joly', 'Times New Roman', serif;
}

.font-haas {
    font-family: 'Haas', 'Arial', sans-serif;
}

.font-sanchez {
    font-family: 'Sanchez', 'Georgia', serif;
}

.font-avenir {
    font-family: 'Avenir', 'Arial', sans-serif;
}

/* Button container */
.buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Button base styles */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-width: 180px;
    background: transparent;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

/* Primary button (Generate) */
.btn-primary {
    background-color: #000;
    color: #fff;
    border: 2px solid #000;
}

.btn-primary:hover {
    background-color: #333;
    border-color: #333;
}

/* Secondary button (Share) */
.btn-secondary {
    background-color: #fff;
    color: #000;
    border: 2px solid #000;
}

.btn-secondary:hover {
    background-color: #f5f5f5;
}

/* Responsive design */
@media (max-width: 768px) {
    main {
        padding: 1rem;
        margin-top: 100px;
        min-height: calc(100vh - 100px);
    }
    
    .logo-banner {
        width: 100%;
    }
    
    #titular {
        margin-bottom: 2rem;
    }
    
    .buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    main {
        margin-top: 80px;
        min-height: calc(100vh - 80px);
    }
    
    .logo-banner {
        width: 100%;
    }
    
    #titular {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
        margin-bottom: 1.5rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Print styles */
@media print {
    .buttons {
        display: none;
    }
    
    body {
        background: white;
    }
    
    #titular {
        color: black;
    }
}
