/* Magazine Style - Inspired by El País & Hola */

/* Import Google Fonts - Playfair Display (Serif titles) & Inter (Sans body) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&display=swap');

:root {
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', Helvetica, Arial, sans-serif;

    --color-black: #0f2e22;
    --color-dark-gray: #1f2d27;
    --color-gray: #4c6057;
    --color-light-gray: #f3f8f4;
    --color-border: #d7e4dc;
    --color-white: #ffffff;

    --color-accent: #2f8f4e;
    --color-accent-blue: #1f6f43;
    --color-link: #184f34;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
}

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

body {
    font-family: var(--font-sans);
    color: var(--color-dark-gray);
    background-color: #f7faf8;
    line-height: 1.6;
    font-size: 16px;
}

/* --- HEADER --- */
.top-bar {
    background: #f3f3f3;
    color: #333;
    padding: 0.3rem 0;
    font-size: 0.93rem;
    text-transform: none;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e0e0e0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-links {
    display: flex;
    gap: 1rem;
}

.top-links a {
    color: #2f8f4e;
    text-decoration: none;
    font-weight: 700;
}

.top-links a:hover {
    color: #1a3c2e;
}

/* --- LOGO MODERNO --- */
.logo-texto {
    display: inline-flex;
    align-items: baseline;
    gap: 0.2rem;
    text-decoration: none;
}
.logo-principal {
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    font-size: 2.8rem;
    font-weight: 900;
    color: #17623a;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1;
}
.logo-detalle {
    font-size: 2rem;
    color: #2f8f4e;
    font-weight: 700;
    line-height: 1;
}

/* --- HEADER Y MENÚ MODERNO --- */
.main-header {
    border-bottom: 3px solid #17623a;
    padding: 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.header-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.header-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid #eee;
}

.bloque-clima {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    color: #333;
    font-size: 0.9rem;
}

.bloque-clima .icono-clima {
    font-size: 1.4rem;
}

.temp-clima {
    font-weight: 700;
    color: #17623a;
}

.desc-clima {
    color: #666;
}

.bloque-dolar {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: #f8f9fa;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.dolar-label {
    font-weight: 700;
    color: #17623a;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.dolar-tabla {
    display: flex;
    gap: 1.2rem;
    font-size: 0.8rem;
}

.dolar-fila {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.dolar-tipo {
    font-weight: 600;
    color: #333;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.dolar-valor {
    color: #555;
    font-weight: 500;
}

.dolar-fuente {
    font-size: 0.65rem;
    color: #888;
    margin-left: 0.5rem;
}

.header-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 1rem;
}

.header-logo {
    text-align: center;
    flex: 1;
}

.header-date {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.logo {
    text-align: left;
    font-family: var(--font-serif);
    font-size: 2.1rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    line-height: 1.1;
    margin-bottom: 0;
    margin-left: 1.5rem;
}

.logo a {
    color: #1a3c2e;
    text-decoration: none;
    transition: color 0.2s;
}
.logo a:hover {
    color: #2f8f4e;
}

.logo span {
    color: var(--color-gray);
    display: block;
    font-size: 1rem;
    font-family: var(--font-sans);
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

/* --- NAVIGATION --- */
.main-nav {
    background: #17623a;
    z-index: 99;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    margin-bottom: 0;
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    list-style: none;
    padding: 0;
}

.nav-list li {
    position: relative;
}

.nav-list a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.2rem;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
}

.nav-list a:hover,
.nav-list a.active {
    background: #0d4a28;
    color: #fff;
}

.nav-list li::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #4caf50;
    transition: width 0.3s ease;
}

.nav-list li:hover::after {
    width: 100%;
}

.sub-nav {
    background: #f0f0f0;
    border-bottom: 1px solid #ddd;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.sub-nav-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 0;
    padding: 0;
}

.sub-nav-list li {
    position: relative;
}

.sub-nav-list a {
    display: block;
    padding: 0.65rem 1.1rem;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.25s ease;
    border-bottom: 2px solid transparent;
}

.sub-nav-list a.active,
.sub-nav-list a:hover {
    color: #17623a;
    background: transparent;
    border-bottom-color: #17623a;
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    list-style: none;
    padding: 0;
}

.nav-list li {
    border-right: 1px solid rgba(255,255,255,0.15);
}

.nav-list li:first-child {
    border-left: 1px solid rgba(255,255,255,0.15);
}

.nav-list a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.3rem;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s;
    letter-spacing: 0.3px;
    text-align: center;
    white-space: nowrap;
}

.nav-list a:hover,
.nav-list a.active {
    background: #0d4a28;
    color: #fff;
}

/* --- LAYOUT GRID --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* 2/3 Content, 1/3 Sidebar */
    gap: 3rem;
    margin-top: 2rem;
    padding-bottom: 4rem;
}

.sidebar {
    border-left: 1px solid var(--color-border);
    padding-left: 2rem;
}

/* --- SLIDER HERO --- */
.hero-slider {
    margin: 2rem 0;
    position: relative;
    height: 500px;
    overflow: hidden;
    background: #000;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: flex-end;
    /* Text at bottom */
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.8;
    max-height: 350px;
    background: #f3f3f3;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    /* Si la imagen es pequeña, no la estires */
    object-fit: contain;
    object-position: center center;
}

.slide-content {
    position: relative;
    z-index: 2;
    padding: 3rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    width: 100%;
    color: white;
}

.slide-category {
    background: var(--color-accent);
    color: white;
    padding: 0.3rem 0.8rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 1rem;
}

.slide h2 {
    font-family: var(--font-serif);
    font-size: 3rem;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.slide p {
    font-size: 1.2rem;
    max-width: 800px;
    opacity: 0.9;
}

/* --- ARTICLES --- */
.section-title {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    text-transform: uppercase;
    border-bottom: 2px solid #1e5b3f;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.section-title span {
    background: #1f5d42;
    color: white;
    padding: 0.2rem 1rem;
}

.news-card {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 2rem;
}

.news-card-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.news-card-featured img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    object-position: center center;
    max-height: 350px;
    background: #f3f3f3;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.news-media img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 1rem;
    max-height: 350px;
    object-fit: contain;
    object-position: center center;
    background: #f3f3f3;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.news-category {
    color: var(--color-accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    display: block;
}

.news-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.news-title a {
    color: var(--color-black);
    text-decoration: none;
    transition: color 0.2s;
}

.news-title a:hover {
    color: var(--color-accent);
}

.news-excerpt {
    color: var(--color-gray);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.news-meta {
    font-size: 0.85rem;
    color: #999;
}

/* --- SIDEBAR COMPONENTS --- */
.widget {
    margin-bottom: 3rem;
}

.ad-block {
    background: #fafafa;
    border: 1px solid #eee;
    padding: 1rem;
    text-align: center;
    margin-bottom: 2rem;
}

.ad-label {
    display: block;
    font-size: 0.7rem;
    color: #ccc;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

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

.list-compact li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.list-compact h4 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.list-compact a {
    color: var(--color-black);
    text-decoration: none;
}

.list-compact a:hover {
    color: var(--color-accent);
}

.counter-widget {
    text-align: center;
    background: var(--color-light-gray);
    padding: 1.5rem;
}

.counter-title {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* --- FOOTER --- */
.site-footer {
    background: #1a1a1a;
    color: #fff;
    padding: 0;
    margin-top: 3rem;
}

.footer-top {
    padding: 2rem 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    border-bottom: 1px solid #333;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 220px;
    max-width: 280px;
}

.footer-logo {
    display: flex;
    align-items: baseline;
    gap: 0.15rem;
}

.footer-logo .logo-principal {
    font-family: 'Georgia', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

.footer-logo .logo-detalle {
    font-size: 1.3rem;
    color: #4caf50;
}

.footer-mapa {
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #444;
}

.footer-mapa iframe {
    display: block;
    width: 100%;
    height: 180px;
}

.footer-sections {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-col h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #4caf50;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

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

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #4caf50;
}

.footer-links li:not(a) {
    color: #999;
    font-size: 0.9rem;
}

.footer-bottom {
    padding: 1.5rem 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-bottom p {
    margin: 0;
    color: #777;
    font-size: 0.9rem;
}

.footer-dev {
    color: #555 !important;
    font-size: 0.8rem !important;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .main-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sidebar {
        border-left: none;
        border-top: 1px solid var(--color-border);
        padding-left: 0;
        padding-top: 2rem;
    }

    .news-card-featured {
        grid-template-columns: 1fr;
    }

    .logo {
        font-size: 2.5rem;
    }

    .hero-slider {
        height: 350px;
    }

    .slide h2 {
        font-size: 2rem;
    }

    .nav-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.25rem;
    }

    .nav-list a {
        padding: 0.65rem 0.35rem;
        font-size: 0.68rem;
        border-bottom: none;
    }
}

.top-bar-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.top-links {
    display: flex;
    gap: 1rem;
}

.top-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.top-links a:hover {
    color: #f0f0f0;
}

.sub-nav {
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

.sub-nav-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 0;
    padding: 0;
}

.sub-nav-list li {
    border-right: 1px solid #ddd;
}

.sub-nav-list li:first-child {
    border-left: 1px solid #ddd;
}

.sub-nav-list a {
    display: block;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}

.sub-nav-list a.active,
.sub-nav-list a:hover {
    color: #fff;
    background: #17623a;
}

.slide h2 a {
    color: #fff;
    text-decoration: none;
}

.slide h2 a:hover {
    text-decoration: underline;
}

.detail-card {
    border-bottom: none;
}

.detail-title {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.detail-media img {
    max-height: 350px;
    object-fit: contain;
    object-position: center center;
    background: #f3f3f3;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.article-body {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-top: 1.5rem;
}

.btn-link {
    display: inline-block;
    margin-top: 1.5rem;
    font-weight: 700;
    color: var(--color-accent-blue);
    text-decoration: none;
}

.btn-link:hover {
    text-decoration: underline;
}

.widget-body {
    background: #fafafa;
    border: 1px solid #eee;
    padding: 1rem;
}

.widget-body table {
    width: 100%;
}

.widget-body input[type="text"] {
    width: 100%;
    padding: 0.55rem 0.6rem;
    border: 1px solid #ddd;
}

.widget-body input[type="submit"] {
    background: var(--color-accent-blue);
    color: #fff;
    border: none;
    padding: 0.6rem 1rem;
    cursor: pointer;
    font-weight: 700;
}

.widget-body input[type="submit"]:hover {
    opacity: 0.9;
}

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

.pagination {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.pagination a {
    text-decoration: none;
    font-weight: 700;
    color: var(--color-link);
}

.pagination span {
    color: var(--color-gray);
}

.footer-contact a {
    color: #e0ffe0;
}

.footer-copy {
    text-align: center;
    margin-top: 2.5rem;
    color: #aaa;
    font-size: 0.9rem;
}

.page-main {
    padding: 2rem 1rem 4rem;
}

.gallery-section {
    margin-bottom: 3rem;
}

.gallery-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: #17623a;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #17623a;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2e7d32;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #eee;
}

.postcard-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.postcard-img {
    height: 220px;
    overflow: hidden;
}

.postcard-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.postcard-placeholder {
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.postcard-placeholder span {
    font-size: 4rem;
}

.postcard-msg {
    font-style: italic;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: 0.5rem;
}

.btn-send-postal {
    display: block;
    width: 100%;
    padding: 0.7rem;
    margin-top: 1rem;
    background: #17623a;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.btn-send-postal:hover {
    background: #0d4a28;
}

.clasificado-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #eee;
}

.clasificado-contact {
    margin: 0.5rem 0;
    color: #333;
}

.clasificado-contact a {
    color: #17623a;
}

.legal-card {
    background: #fff;
    border: 1px solid #e9e9e9;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    padding: 2rem;
}

.legal-card h1 {
    font-family: var(--font-serif);
    font-size: 2.1rem;
    margin-bottom: 1rem;
}

.legal-card h2 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    margin-top: 1.4rem;
    margin-bottom: 0.4rem;
}

.legal-card p {
    color: var(--color-dark-gray);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    margin-top: 1.5rem;
}
        color: #3b5d4a;
        display: block;
        font-size: 1.15rem;
        font-family: var(--font-sans);
        font-weight: 400;
        letter-spacing: 0.5px;
        text-transform: none;
        opacity: 0.85;
    font-weight: 700;
    margin-top: 0.25rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid #dadada;
    padding: 0.7rem 0.8rem;
    font-family: var(--font-sans);
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    margin-top: 0.5rem;
    background: var(--color-accent-blue);
    color: #fff;
    border: none;
    padding: 0.8rem 1rem;
    font-weight: 700;
    cursor: pointer;
}

.contact-form button:hover {
    opacity: 0.92;
}

.form-success,
.form-error {
    padding: 0.7rem 0.9rem;
    margin-bottom: 0.8rem;
    border-radius: 4px;
    font-weight: 600;
}

.form-success {
    background: #e9f8ee;
    color: #1f7037;
    border: 1px solid #b8e4c5;
}

.form-error {
    background: #fdecec;
    color: #962c2c;
    border: 1px solid #f6c3c3;
}

.whatsapp-btn {
    display: inline-block;
    margin-top: 0.5rem;
    background: #1fa855;
    color: #fff;
    text-decoration: none;
    padding: 0.72rem 1rem;
    font-weight: 700;
}

.whatsapp-btn:hover {
    background: #178a45;
}

.contact-map-wrap {
    margin-top: 2rem;
}

.contact-map {
    width: 100%;
    min-height: 340px;
    border: 1px solid #ddd;
}

@media (max-width: 768px) {
    .top-bar-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .top-links {
        gap: 0.7rem;
        flex-wrap: wrap;
    }

    .sub-nav-list {
        flex-wrap: wrap;
    }

    .sub-nav-list li {
        border: none;
    }

    .sub-nav-list li:first-child {
        border-left: none;
    }

    .sub-nav-list a {
        border-bottom: 1px solid #ddd;
        text-align: left;
    }

    .detail-title {
        font-size: 1.8rem;
    }

    .legal-card {
        padding: 1.2rem;
    }

    .legal-card h1 {
        font-size: 1.7rem;
    }

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

    .header-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .bloque-dolar {
        flex-wrap: wrap;
    }

    .dolar-tabla {
        flex-direction: column;
        gap: 0.3rem;
    }

    .nav-list {
        flex-wrap: wrap;
    }

    .nav-list li {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }

    .nav-list li:first-child {
        border-left: none;
    }
}

@media (min-width: 769px) and (max-width: 1180px) {
    .nav-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .sub-nav-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
