@import url('fonts.css');

:root {
    --color-bg: #FDFBF7;
    --color-text: #4A4643;
    --color-heading: #2C2A28;
    --color-gold: #D4AE5D;
    --color-gold-light: #E8CC8E;
    --color-dark: #1A1918;
    --color-white: #FFFFFF;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    color: var(--color-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}

.section-padding {
    padding: 120px 0;
}

.text-gold {
    color: var(--color-gold);
}

.btn-primary {
    display: inline-block;
    padding: 16px 40px;
    background: var(--color-gold);
    color: var(--color-white);
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid var(--color-gold);
    transition: var(--transition);
}

.btn-primary:hover {
    background: transparent;
    color: var(--color-gold);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

header.scrolled {
    background: rgba(26, 25, 24, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(212, 174, 93, 0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-gold);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero */
.hero {
    height: 100vh;
    background-image: linear-gradient(rgba(26, 25, 24, 0.7), rgba(26, 25, 24, 0.4)), url('../img/arle_hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 900px;
    margin-top: 80px;
}

.hero-subtitle {
    display: block;
    color: var(--color-gold);
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 20px;
    font-size: 1rem;
}

.hero h1 {
    color: var(--color-white);
    font-size: 5rem;
    margin-bottom: 30px;
    line-height: 1.1;
    font-style: italic;
}

.hero p {
    color: rgba(255,255,255,0.8);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 50px;
}

/* About / Nosotros (Bento Box) */
.about {
    background: var(--color-white);
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 30px;
}

.bento-box {
    background: var(--color-bg);
    padding: 60px;
    border: 1px solid rgba(212, 174, 93, 0.2);
}

.bento-large {
    grid-row: span 2;
    background-image: url('../img/arle_metals.jpg');
    background-size: cover;
    background-position: center;
    min-height: 600px;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.bento-large::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 25, 24, 0.95), rgba(26, 25, 24, 0.3));
}

.bento-large-content {
    position: absolute;
    bottom: 60px;
    left: 60px;
    right: 60px;
    color: var(--color-white);
}

.bento-large-content h2 {
    color: var(--color-white);
    font-size: 3rem;
    margin-bottom: 20px;
}

.bento-text {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento-text h3 {
    font-size: 2rem;
    color: var(--color-gold);
    margin-bottom: 20px;
}

/* Divisions (Independent Identity Layout) */
.divisions-intro {
    background: var(--color-white);
    padding-bottom: 60px;
}

.division-section {
    padding: 100px 0;
}

.division-content {
    display: flex;
    align-items: center;
    gap: 80px;
}

.division-content.reverse {
    flex-direction: row-reverse;
}

.div-text {
    flex: 1;
}

.div-img {
    flex: 1;
}

.div-img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.div-tag {
    display: inline-block;
    padding: 5px 15px;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.div-text h3 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.div-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.div-list {
    list-style: none;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 20px;
}

.div-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.1rem;
}

.div-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 2px;
    background: var(--color-gold);
}

/* Division Color Themes */
.division-dark {
    background: var(--color-dark);
    color: rgba(255,255,255,0.8);
}
.division-dark h3, .division-dark .div-list li {
    color: var(--color-white);
}
.division-dark .div-list {
    border-top-color: rgba(255,255,255,0.1);
}

.division-light {
    background: var(--color-bg);
}

.division-gray {
    background: #EAE8E3;
}

/* Value Props (Stats) */
.stats {
    background: var(--color-dark);
    color: var(--color-white);
    text-align: center;
    border-top: 5px solid var(--color-gold);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.stat-item h4 {
    color: var(--color-gold);
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.stat-item p {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

/* Footer */
footer {
    background: var(--color-bg);
    color: var(--color-text);
    padding: 100px 0 30px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 30px;
}

.footer-logo img {
    height: 70px;
    display: block;
}

.footer-col h4 {
    color: var(--color-heading);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a:hover {
    color: var(--color-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.05);
    font-size: 0.9rem;
}

@media (max-width: 992px) {
    .hero h1 { font-size: 3.5rem; }
    .bento-grid { grid-template-columns: 1fr; }
    .service-item, .service-item.reverse { flex-direction: column; gap: 40px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}
