/*
Theme Name: Rivera Melendez Luxury Boutique
Description: Un diseño de ultra-lujo, estilo editorial y boutique para firmas de abogados exclusivas.
Version: 1.2.1
*/

:root {
    --primary-color: #062c2b;    /* Deep Forest Green */
    --secondary-color: #e2c499;  /* Champagne Gold */
    --gold-bright: #f3e5d0;
    --gold-gradient: linear-gradient(135deg, #e2c499 0%, #b08e48 100%);
    --text-white: #ffffff;
    --text-muted: #94a3b8;
    --section-bg-dark: #062c2b;
    --section-bg-light: #fcfcfc;
    --luxury-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease-in-out;
    --transition-slow: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--primary-color);
    background-color: var(--section-bg-light);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    line-height: 1.1;
}

/* Luxury Typography */
.display-luxury {
    font-size: clamp(3.5rem, 8vw, 8rem);
    letter-spacing: -0.03em;
}

.subtitle-luxury {
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 6px;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--secondary-color);
}

.font-inter { font-family: 'Inter', sans-serif; }
.text-gold { color: var(--secondary-color) !important; }
.bg-midnight { background-color: var(--primary-color); }

/* Luxury Layouts */
.luxury-container {
    padding: 160px 0;
}

/* Hero Section Premium */
.hero-premium {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&q=80&w=2000') no-repeat center center;
    background-size: cover;
    position: relative;
}

.hero-overlay-premium {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(12, 17, 29, 0.9) 0%, rgba(12, 17, 29, 0.7) 100%);
    z-index: 1;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
.mouse {
    width: 25px;
    height: 45px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    position: relative;
}
.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    width: 4px;
    height: 8px;
    background: var(--secondary-color);
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scroll-mouse 2s infinite;
}
@keyframes scroll-mouse {
    0% { opacity: 0; transform: translate(-50%, 0); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, 20px); }
}

/* Luxury Cards */
.luxury-card {
    background: white;
    padding: 60px;
    transition: var(--transition-slow);
    border: none;
    position: relative;
}

.luxury-card:hover {
    transform: translateY(-20px);
    box-shadow: var(--luxury-shadow);
}

.border-gold { border-color: var(--secondary-color) !important; }

/* Asymmetric Image */
.asymmetric-img-wrapper {
    position: relative;
}

.asymmetric-img-wrapper::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--secondary-color);
    z-index: -1;
    transition: var(--transition-slow);
}

.asymmetric-img-wrapper:hover::before {
    top: 20px;
    left: 20px;
}

.img-reveal {
    overflow: hidden;
    position: relative;
}
.img-reveal img {
    transition: var(--transition-slow);
}
.img-reveal:hover img {
    transform: scale(1.05);
}

/* Luxury List */
.luxury-list-item {
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    padding: 40px 0;
    transition: var(--transition-slow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
}

.luxury-list-item:hover {
    padding-left: 20px;
    border-bottom-color: var(--secondary-color);
}

.luxury-list-item h3 {
    margin-bottom: 0;
    font-size: 2.5rem;
    transition: var(--transition-slow);
}

.luxury-list-item:hover h3 {
    color: var(--secondary-color);
}

/* Buttons */
.btn-luxury {
    font-family: 'Inter', sans-serif;
    padding: 18px 45px;
    background: var(--primary-color);
    color: white;
    border: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    transition: var(--transition-slow);
    display: inline-block;
    position: relative;
    z-index: 1;
}

.btn-luxury::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--secondary-color);
    z-index: -1;
    transition: var(--transition-slow);
}

.btn-luxury:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.btn-luxury:hover::after {
    bottom: 0;
    right: 0;
}

/* Form Inputs */
.premium-input {
    width: 100%;
    padding: 15px 0;
    border: none;
    border-bottom: 1px solid rgba(15, 23, 42, 0.1);
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition-slow);
    outline: none;
    border-radius: 0;
}
.premium-input:focus {
    border-bottom: 1px solid var(--secondary-color);
}

/* Text Reveal Animation */
.reveal-text {
    overflow: hidden;
}

.reveal-text span {
    display: block;
    transform: translateY(100%);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.aos-animate .reveal-text span {
    transform: translateY(0);
}

/* Notary Section Luxury */
.notary-luxury-bg {
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1505664194779-8beaceb93744?auto=format&fit=crop&q=80&w=1500');
}

.notary-luxury-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 17, 29, 0.85);
}

/* BG Patterns */
.bg-pattern-logo {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 400px;
    height: 400px;
    background: radial-gradient(var(--secondary-color) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.05;
    border-radius: 50%;
}

/* ==========================================================================
   Luxury Editorial Blog & Article Styles
   ========================================================================== */

/* Cinematic Hero */
.blog-hero {
    height: 55vh;
    background: var(--primary-color) no-repeat center center;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.blog-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(12, 17, 29, 0.9) 0%, rgba(6, 44, 43, 0.8) 100%);
    z-index: 1;
}

/* Featured Post Layout */
.featured-post-card {
    background: #ffffff;
    border: none;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.06);
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.featured-post-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--luxury-shadow);
}

.featured-img-wrapper {
    height: 100%;
    min-height: 380px;
    overflow: hidden;
    position: relative;
}

.featured-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.featured-post-card:hover .featured-img-wrapper img {
    transform: scale(1.04);
}

/* Post Cards */
.luxury-post-card {
    background: #ffffff;
    border: none;
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.05);
    transition: var(--transition-slow);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.luxury-post-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--luxury-shadow);
}

.card-img-wrapper {
    height: 260px;
    overflow: hidden;
    position: relative;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.luxury-post-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.luxury-post-card .card-body {
    padding: 40px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-meta-luxury {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.post-title-luxury {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    line-height: 1.2;
    transition: var(--transition);
}

.luxury-post-card:hover .post-title-luxury {
    color: var(--secondary-color);
}

/* Custom Pagination */
.pagination-luxury {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 80px;
}

.pagination-luxury .page-numbers {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(197, 160, 89, 0.2);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.pagination-luxury .page-numbers.current,
.pagination-luxury .page-numbers:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--primary-color) !important;
}

/* Single Post Hero */
.single-post-hero {
    height: 65vh;
    min-height: 450px;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding-bottom: 80px;
}

.single-post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(6, 44, 43, 0.9) 0%, rgba(6, 44, 43, 0.7) 50%, rgba(6, 44, 43, 0.95) 100%);
    z-index: 1;
}

.single-post-hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

/* Reading Experience */
.single-post-wrapper {
    background-color: var(--section-bg-light);
    padding: 100px 0;
}

.single-post-body {
    background-color: #ffffff;
    padding: 60px;
    box-shadow: 0 40px 90px -25px rgba(0, 0, 0, 0.05);
    border-radius: 0;
}

@media (max-width: 768px) {
    .single-post-body {
        padding: 30px 20px;
    }
}

.entry-content {
    font-family: 'Inter', sans-serif;
    font-size: 1.08rem;
    line-height: 1.85;
    color: #334155; /* Refined slate gray for comfortable reading */
}

.entry-content p {
    margin-bottom: 2rem;
}

/* Elegant dropcap */
.entry-content > p:first-of-type::first-letter {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4.8rem;
    font-weight: 700;
    float: left;
    line-height: 0.8;
    margin-right: 15px;
    margin-top: 5px;
    color: var(--secondary-color);
}

.entry-content h2, .entry-content h3, .entry-content h4 {
    font-family: 'Cormorant Garamond', serif;
    color: var(--primary-color);
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.entry-content h2 { font-size: 2.2rem; }
.entry-content h3 { font-size: 1.8rem; }

/* Custom Blockquote */
.entry-content blockquote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.65rem;
    font-style: italic;
    color: var(--primary-color);
    border-left: 3px solid var(--secondary-color);
    padding: 10px 0 10px 35px;
    margin: 50px 0;
    line-height: 1.6;
    background: rgba(226, 196, 153, 0.03);
}

.entry-content blockquote p {
    margin-bottom: 0;
}

/* Premium Consultation CTA */
.single-post-cta {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 60px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.single-post-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid var(--secondary-color);
    margin: 15px;
    pointer-events: none;
    width: calc(100% - 30px);
    height: calc(100% - 30px);
}

.single-post-cta h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 15px;
}

.single-post-cta p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-bottom: 30px;
}

/* Post Navigation */
.post-nav-luxury {
    border-top: 1px solid rgba(197, 160, 89, 0.2);
    padding-top: 50px;
    margin-top: 80px;
}

.post-nav-card {
    display: block;
    text-decoration: none !important;
    padding: 25px;
    background: #ffffff;
    border: 1px solid rgba(197, 160, 89, 0.15);
    transition: var(--transition-slow);
}

.post-nav-card:hover {
    border-color: var(--secondary-color);
    background: rgba(226, 196, 153, 0.02);
}

.post-nav-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 8px;
}

.post-nav-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0;
    line-height: 1.3;
    transition: var(--transition);
}

.post-nav-card:hover .post-nav-title {
    color: var(--secondary-color);
}

