/* =========================================
   SEGUROS IA - PREMIUM THEME (WHITE + GOLD)
   ========================================= */

:root {
    --color-bg: #ffffff;
    --color-bg-alt: #fcfcfc;
    --color-text: #1a1a1a;
    --color-text-muted: #555555;
    --color-gold: #C9A227;
    --color-gold-hover: #aa8518;
    --color-gold-dim: rgba(201, 162, 39, 0.08);
    --font-main: 'Outfit', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    /* Could be serif if added */
    --container-width: 1300px;
}

/* 1. RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}

.section-padding {
    padding: 100px 0;
}

.gold-text {
    color: var(--color-gold);
    background: linear-gradient(135deg, #b8860b 0%, #c9a227 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--color-text-muted);
}

/* 2. HEADER & NAV */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
    background: transparent;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #000;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #444;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-gold);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-gold);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 2px;
    background: #000;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* PAGE HEADER (Internal Pages) */
.page-header {
    background: #fdfdfd;
    padding: 180px 0 60px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.page-header-inner {
    max-width: 800px !important;
    margin: 0 auto;
    text-align: center;
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1;
}

.page-header p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* 3. NEWS PORTAL STYLES (New) */
.featured-news {
    padding-top: 120px;
    padding-bottom: 60px;
    background: #fff;
}

.featured-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    cursor: pointer;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    border-color: var(--color-gold-dim);
}

.featured-img {
    width: 100%;
    height: 100%;
    min-height: 450px;
    overflow: hidden;
}

.featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.featured-card:hover .featured-img img {
    transform: scale(1.03);
}

.featured-content {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    font-weight: 500;
}

.featured-meta .date {
    color: var(--color-gold);
}

.featured-content h2 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    color: #1a1a1a;
}

.featured-content p {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 30px;
    line-height: 1.6;
}

.featured-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.featured-author span {
    font-weight: 600;
    font-size: 0.95rem;
}

/* SECTION HEADERS */
.news-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.news-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    position: relative;
}

.news-section-title::after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--color-gold);
}

@media (max-width: 992px) {
    .featured-card {
        grid-template-columns: 1fr;
    }

    .featured-content {
        padding: 30px;
    }

    .featured-content h2 {
        font-size: 2.2rem;
    }
}

/* 4. BUTTONS */
.btn-premium {
    background: linear-gradient(135deg, var(--color-gold) 0%, #aa8518 100%);
    color: #fff;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(201, 162, 39, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(201, 162, 39, 0.4);
}

.btn-outline {
    background: transparent;
    color: #1a1a1a;
    border: 1px solid rgba(0, 0, 0, 0.15);
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-outline:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
    background: rgba(201, 162, 39, 0.05);
}

/* NEWSPORTAL LAYOUT */
.homepage-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 60px;
    margin-top: 50px;
}

@media (max-width: 1200px) {
    .homepage-layout {
        grid-template-columns: 1fr 340px;
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .homepage-layout {
        grid-template-columns: 1fr;
    }
}

.main-column {
    width: 100%;
}

/* SIDEBAR STYLES */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.sidebar-widget {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.02);
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-gold);
    display: inline-block;
}

.newsletter-box p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.ad-placeholder {
    background: #f8f9fa;
    border: 1px dashed #ccc;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 6. FORMS (PREMIUM) */

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.card-glass h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: #000;
}

.card-glass p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.card-link {
    color: var(--color-gold);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-link .arrow {
    transition: transform 0.3s ease;
}

.card-glass:hover .card-link .arrow {
    transform: translateX(5px);
}

/* 6. FORMS (PREMIUM) */
.form-box {
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #444;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    overflow: visible !important;
    white-space: normal !important;
}

.form-input-premium {
    width: 100%;
    background: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 12px 15px;
    color: #1a1a1a;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input-premium:focus {
    outline: none;
    border-color: var(--color-gold);
    background: #fff;
    box-shadow: 0 0 15px rgba(201, 162, 39, 0.1);
}

select.form-input-premium {
    cursor: pointer;
}

select.form-input-premium option {
    background: #fff;
    color: #1a1a1a;
}

/* 7. RESULT CARDS (New) */
.result-card {
    background: #fff;
    border: 1px solid rgba(201, 162, 39, 0.4);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* 8. FOOTER */
.footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 40px 0;
    text-align: center;
    margin-top: auto;
    background: #f9f9f9;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #666;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--color-gold);
}

.copyright {
    color: #999;
    font-size: 0.8rem;
}

/* 9. ANIMATIONS & REVEAL */
@keyframes pulseGlow {
    0% {
        opacity: 0.4;
        transform: translateX(-50%) scale(1);
    }

    100% {
        opacity: 0.7;
        transform: translateX(-50%) scale(1.1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 9. REVEAL (Safe Version) */
.reveal {
    opacity: 1;
    /* Force visible */
    transform: none;
    transition: none;
}

.reveal.active {
    opacity: 1;
    transform: none;
}

/* 10. MOBILE */
@media (max-width: 768px) {
    .header {
        padding: 15px 0;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        border-left: 1px solid #eee;
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        color: #1a1a1a;
        font-size: 1.2rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* BLOG LAYOUT (Refined) */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: rgba(201, 162, 39, 0.6);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.blog-img {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-img img {
    transform: scale(1.05);
}

.blog-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-cat {
    color: var(--color-gold);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.blog-content h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    line-height: 1.3;
    color: #1a1a1a;
}

.blog-content p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 15px;
    flex-grow: 1;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* RESPONSIVE BLOG */
.news-grid-columns {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* UTILITIES */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ARTICLE PAGE LAYOUT (Premium Journalistic) */
.article-header {
    padding-top: 180px;
    padding-bottom: 60px;
    text-align: center;
    background: #fdfdfd;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.article-header .blog-cat {
    display: inline-block;
    background: var(--color-gold-dim);
    color: var(--color-gold);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

.article-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    max-width: 1000px;
    margin: 0 auto 30px;
    color: #1a1a1a;
    letter-spacing: -1px;
}

.article-meta-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.article-meta-modern strong {
    color: #1a1a1a;
}

.article-featured-img {
    width: 100%;
    max-width: 1100px;
    margin: -40px auto 60px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.article-featured-img img {
    width: 100%;
    height: auto;
    display: block;
}

.article-content-modern {
    max-width: 800px;
    margin: 0 auto 80px;
    font-size: 1.25rem;
    line-height: 1.8;
    color: #333;
}

.article-content-modern p {
    margin-bottom: 2.5rem;
}

.article-content-modern h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 80px 0 30px;
    line-height: 1.2;
}

.article-content-modern h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-gold);
    margin: 50px 0 20px;
}

/* Styles for images inside article body */
.article-content-modern img {
    max-width: 80%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}


/* RELATED NEWS */
.related-news {
    background: #f8f9fa;
    padding: 100px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.related-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
}

/* ADSENSE SLOT */
.adsense-slot {
    width: 100%;
    min-height: 100px;
    background: #fcfcfc;
    border: 1px dashed #eee;
    margin: 40px 0;
}

/* PAGINATION */
.pagination-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.page-btn {
    background: #fff;
    color: #1a1a1a;
    border: 1px solid rgba(0, 0, 0, 0.1);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
}

.page-btn:hover:not(:disabled),
.page-btn.active {
    background: var(--color-gold);
    color: #fff;
    border-color: var(--color-gold);
    box-shadow: 0 0 15px rgba(201, 162, 39, 0.3);
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-btn.arrow-btn {
    width: auto;
    padding: 0 20px;
    border-radius: 30px;
}