/* =========================================
   SEGUROS IA - PREMIUM THEME (BLACK + GOLD)
   ========================================= */

:root {
    --color-bg: #050505;
    --color-bg-alt: #0a0a0a;
    --color-text: #ffffff;
    --color-text-muted: #a0a0a0;
    --color-gold: #C9A227;
    --color-gold-hover: #e0b836;
    --color-gold-dim: rgba(201, 162, 39, 0.1);
    --font-main: 'Outfit', sans-serif;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(20px);
}

/* 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: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.gold-text {
    color: var(--color-gold);
    background: linear-gradient(135deg, #f0d068 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(5, 5, 5, 0.9);
    backdrop-filter: blur(15px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 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;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    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: #fff;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* 3. HERO SECTION */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #000000 100%);
    z-index: -2;
}

.hero-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    animation: pulseGlow 8s infinite alternate;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* 4. BUTTONS */
.btn-premium {
    background: linear-gradient(135deg, var(--color-gold) 0%, #aa8518 100%);
    color: #000;
    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: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    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);
}

/* 5. CARDS (GLASS) */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card-glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.card-glass:hover {
    transform: translateY(-10px);
    border-color: rgba(201, 162, 39, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(201, 162, 39, 0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card-glass:hover .card-glow {
    opacity: 1;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.card-glass h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.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 {
    /* Styles handled inline in HTML but can be reinforced here */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    /* User fix for cut-off text */
    overflow: visible !important;
    white-space: normal !important;
}

.form-input-premium {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 15px;
    color: #fff;
    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: rgba(201, 162, 39, 0.05);
    box-shadow: 0 0 15px rgba(201, 162, 39, 0.1);
}

select.form-input-premium {
    cursor: pointer;
}

select.form-input-premium option {
    background: #111;
    color: #fff;
}

/* 7. RESULT CARDS (New) */
.result-card {
    /* Backup if inline styles fail */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: 16px;
    padding: 30px;
}

/* 8. FOOTER */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 0;
    text-align: center;
    margin-top: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--color-gold);
}

.copyright {
    color: rgba(255, 255, 255, 0.3);
    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;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 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: #000;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        border-left: 1px solid #222;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .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: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: rgba(201, 162, 39, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.blog-img {
    width: 100%;
    /* Portrait aspect ratio as requested "más largas que anchas" */
    aspect-ratio: 3/4;
    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: #fff;
}

.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 */
@media (max-width: 900px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .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);
    }
}

/* ADSENSE SLOT */
.adsense-slot {
    display: none !important;
}

/* ARTICLE PAGE LAYOUT (Unified) */
.article-page {}

.article-hero {
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 60px;
    position: relative;
    background: #111;
    overflow: hidden;
}

.article-hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.5);
}

.article-hero .overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 20%, #000 90%);
    z-index: 1;
}

.article-hero .container {
    position: relative;
    z-index: 2;
}

.article-content {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    padding: 60px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 10;
    margin-top: -60px;
    max-width: 900px !important;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.article-content h2 {
    color: var(--color-gold);
    font-size: 1.8rem;
    margin: 40px 0 20px;
    font-weight: 700;
}

.article-content h3 {
    color: #fff;
    font-size: 1.4rem;
    margin: 30px 0 15px;
    font-weight: 600;
}

.article-content p {
    color: #ccc;
    margin-bottom: 20px;
    font-size: 1.15rem;
    line-height: 1.9;
}

.article-content ul,
.article-content ol {
    color: #ccc;
    margin-bottom: 25px;
    padding-left: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content li {
    margin-bottom: 12px;
}

.article-content blockquote {
    border-left: 4px solid var(--color-gold);
    padding-left: 25px;
    margin: 40px 0;
    color: #fff;
    font-style: italic;
    font-size: 1.35rem;
    line-height: 1.5;
    background: rgba(201, 162, 39, 0.05);
    padding: 30px;
    border-radius: 0 8px 8px 0;
}

@media(max-width: 768px) {
    .article-hero h1 {
        font-size: 2.2rem !important;
    }

    .article-content {
        padding: 30px 20px;
        margin-top: -30px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

/* PAGINATION */
.pagination-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.page-btn {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 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: #000;
    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;
}