/* =====================================================
   ALBERTO JOYERÍA - Hoja de Estilos Principal
   Paleta: Negro/Navy + Dorado + Crema - Alto contraste
   ===================================================== */

:root {
    --color-bg-dark: #0a0a0f;
    --color-bg-darker: #050508;
    --color-bg-light: #f8f5f0;
    --color-bg-light-alt: #f0ebe3;
    --color-gold: #c9a227;
    --color-gold-light: #e6c856;
    --color-gold-dark: #9a7d1a;
    --color-cream: #f5ede0;
    --color-text-dark: #1a1a2e;
    --color-text-light: #f8f5f0;
    --color-text-muted: #8a8a8a;
    --color-text-muted-dark: #555;
    --color-accent: #c9a227;
    --color-border: rgba(201, 162, 39, 0.2);
    --color-border-dark: rgba(255, 255, 255, 0.1);

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', 'Helvetica Neue', sans-serif;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.3);
    --shadow-gold: 0 4px 20px rgba(201, 162, 39, 0.3);

    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== RESET ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-bg-light);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

a:hover {
    color: var(--color-gold);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-bg-dark);
    box-shadow: var(--shadow-md);
}

.header-top {
    background: var(--color-bg-darker);
    border-bottom: 1px solid var(--color-border);
}

.header-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.header-contact {
    display: flex;
    gap: 24px;
}

.header-contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-cream);
    font-size: 13px;
    font-weight: 400;
}

.header-contact-item:hover {
    color: var(--color-gold);
}

.header-contact-item svg {
    fill: var(--color-gold);
}

.header-social {
    display: flex;
    gap: 16px;
}

.header-social a {
    color: var(--color-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: var(--transition);
}

.header-social a:hover {
    color: var(--color-bg-dark);
    background: var(--color-gold);
}

.main-nav {
    background: var(--color-bg-dark);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-gold);
    letter-spacing: 4px;
}

.logo-sub {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 500;
    color: var(--color-cream);
    letter-spacing: 6px;
    margin-top: 2px;
}

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

.nav-links a {
    color: var(--color-cream);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding: 4px 0;
}

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

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

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-gold);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--color-gold);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(5, 5, 8, 0.7) 0%,
        rgba(5, 5, 8, 0.5) 50%,
        rgba(5, 5, 8, 0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 24px;
    max-width: 900px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 700;
    color: var(--color-cream);
    letter-spacing: 6px;
    line-height: 1;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 300;
    color: var(--color-gold-light);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--color-cream);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-gold {
    background: var(--color-gold);
    color: var(--color-bg-dark);
}

.btn-gold:hover {
    background: var(--color-gold-light);
    color: var(--color-bg-dark);
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--color-cream);
    border: 2px solid var(--color-cream);
}

.btn-outline:hover {
    background: var(--color-cream);
    color: var(--color-bg-dark);
}

.btn-large {
    padding: 18px 48px;
    font-size: 15px;
}

.btn-full {
    width: 100%;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 12px;
}

.btn-danger {
    background: #c0392b;
    color: white;
}

.btn-danger:hover {
    background: #a93226;
}

/* ===== SECTIONS ===== */
.content-section {
    padding: clamp(60px, 10vw, 120px) 0;
}

.section-light {
    background: var(--color-bg-light);
    color: var(--color-text-dark);
}

.section-dark {
    background: var(--color-bg-dark);
    color: var(--color-text-light);
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.section-grid-reverse .section-image {
    order: 2;
}

.section-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 0;
    box-shadow: var(--shadow-lg);
}

.section-subtitle {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 12px;
}

.section-dark .section-subtitle {
    color: var(--color-gold-light);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 24px;
}

.section-dark .section-title {
    color: var(--color-cream);
}

.section-content-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text-muted-dark);
}

.section-dark .section-content-text {
    color: rgba(248, 245, 240, 0.75);
}

.section-heading-center {
    text-align: center;
    margin-bottom: 60px;
}

.section-heading-center .section-subtitle {
    margin-bottom: 8px;
}

.section-heading-center .section-title {
    margin-bottom: 0;
}

/* ===== SERVICES ===== */
.services-section {
    padding: clamp(60px, 10vw, 120px) 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    background: rgba(201, 162, 39, 0.08);
    border-color: var(--color-gold);
    transform: translateY(-4px);
}

.service-icon {
    color: var(--color-gold);
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.service-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--color-cream);
    margin-bottom: 12px;
}

.service-desc {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(248, 245, 240, 0.65);
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: var(--color-bg-darker);
    padding: clamp(60px, 8vw, 100px) 0;
    text-align: center;
}

.cta-inner {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--color-gold);
    margin-bottom: 20px;
}

.cta-text {
    font-size: 16px;
    color: rgba(248, 245, 240, 0.7);
    margin-bottom: 36px;
    line-height: 1.7;
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: var(--color-bg-dark);
    padding: 80px 0 60px;
    text-align: center;
    border-bottom: 3px solid var(--color-gold);
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--color-gold);
    letter-spacing: 4px;
}

.page-subtitle {
    font-size: 14px;
    color: var(--color-cream);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 12px;
}

/* ===== GALLERY ===== */
.gallery-section {
    padding: clamp(60px, 8vw, 100px) 0;
}

.gallery-category {
    margin-bottom: 60px;
}

.gallery-cat-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-gold);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(5, 5, 8, 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--color-gold);
    margin-bottom: 6px;
}

.gallery-overlay p {
    font-size: 13px;
    color: var(--color-cream);
}

/* ===== CONTACT ===== */
.contact-section {
    padding: clamp(60px, 8vw, 100px) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.contact-items {
    margin-top: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 28px;
    align-items: flex-start;
}

.contact-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-dark);
    color: var(--color-gold);
    border-radius: 50%;
}

.contact-item h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 15px;
    color: var(--color-text-muted-dark);
}

.contact-item a {
    color: var(--color-text-muted-dark);
}

.contact-item a:hover {
    color: var(--color-gold-dark);
}

.contact-hours {
    margin-top: 40px;
    padding: 30px;
    background: var(--color-bg-light-alt);
    border-left: 3px solid var(--color-gold);
}

.hours-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 16px;
}

.hours-list {
    list-style: none;
}

.hours-list li {
    padding: 6px 0;
    font-size: 15px;
    color: var(--color-text-muted-dark);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-form-wrapper {
    background: var(--color-bg-light-alt);
    padding: 40px;
}

.contact-form {
    margin-top: 24px;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ddd;
    background: white;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-text-dark);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.form-group small {
    display: block;
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 6px;
}

/* ===== ALERTS ===== */
.alert {
    padding: 16px 20px;
    margin-bottom: 20px;
    border-radius: 0;
    font-size: 14px;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--color-bg-darker);
    color: var(--color-cream);
    padding: 60px 0 20px;
}

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

.footer-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--color-gold);
    margin-bottom: 16px;
}

.footer-text {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(248, 245, 240, 0.6);
}

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

.footer-list li {
    padding: 4px 0;
    font-size: 14px;
    color: rgba(248, 245, 240, 0.6);
}

.footer-list a {
    color: rgba(248, 245, 240, 0.6);
}

.footer-list a:hover {
    color: var(--color-gold);
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-social a {
    color: rgba(248, 245, 240, 0.6);
    font-size: 14px;
}

.footer-social a:hover {
    color: var(--color-gold);
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(248, 245, 240, 0.4);
}

.admin-link {
    font-size: 12px;
    color: rgba(248, 245, 240, 0.3);
}

.admin-link:hover {
    color: var(--color-gold);
}

/* ===== UTILITIES ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    font-size: 16px;
    color: var(--color-text-muted);
}

.muted {
    color: var(--color-text-muted);
    font-size: 13px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .section-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-grid-reverse .section-image {
        order: 0;
    }

    .section-image img {
        height: 350px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-bg-darker);
        flex-direction: column;
        gap: 0;
        padding: 80px 0 0 0;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 99;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 16px 24px;
        border-bottom: 1px solid var(--color-border);
    }

    .header-top {
        display: none;
    }

    .hero {
        min-height: 70vh;
        background-attachment: scroll;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}
