/*
Theme Name: Astra Child
Description: Child theme for Astra
Template: astra
Version: 1.0
*/

@import url("../astra/style.css");

/* ============================================================
   HIDE ASTRA'S DEFAULT HEADER — replaced by .subasta-nav in header.php
   ============================================================ */

#masthead,
.site-header,
.ast-masthead-custom-menu-items {
    display: none !important;
}

/* Remove body padding Astra JS injects for the sticky header (calculadoras standalone template) */
body.page-template-page-calculadora-icl {
    padding-top: 0 !important;
}

/* ============================================================
   GLOBAL NAV — matches the Elementor nav on /informacion-general/
   ============================================================ */

/* Navegación superior en entradas individuales */
.cpmclz-top-nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 1rem 0 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.cpmclz-top-nav-link {
    color: #046bd2;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.cpmclz-top-nav-link:hover {
    color: #045cb4;
    text-decoration: underline;
}

.subasta-nav {
    background: #fff;
    width: 100%;
    z-index: 1000;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 124, 186, 0.1);
}
/* Otras Noticias */
.cpmclz-other-news {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.cpmclz-other-news-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 1.5rem;
}

.cpmclz-other-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.cpmclz-other-news-item {
    display: block;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cpmclz-other-news-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: inherit;
}

.cpmclz-other-news-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-color: #f0f5fa;
}

.cpmclz-other-news-content {
    padding: 1rem 1.25rem 1.25rem;
}

.cpmclz-other-news-item-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.4rem;
    line-height: 1.3;
}

.cpmclz-other-news-date {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.cpmclz-other-news-excerpt {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 600px) {
    .cpmclz-other-news-grid {
        grid-template-columns: 1fr;
    }
}

/* Wave SVG background — same as Elementor shape divider */
.subasta-nav::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" preserveAspectRatio="none"><path opacity="0.33" fill="%2300A8E8" d="M473,67.3c-203.9,88.3-263.1-34-320.3,0C66,119.1,0,59.7,0,59.7V0h1000v59.7 c0,0-62.1,26.1-94.9,29.3c-32.8,3.3-62.8-12.3-75.8-22.1C806,49.6,745.3,8.7,694.9,4.7S492.4,59,473,67.3z"/><path opacity="0.66" fill="%23007cba" d="M734,67.3c-45.5,0-77.2-23.2-129.1-39.1c-28.6-8.7-150.3-10.1-254,39.1 s-91.7-34.4-149.2,0C115.7,118.3,0,39.8,0,39.8V0h1000v36.5c0,0-28.2-18.5-92.1-18.5C810.2,18.1,775.7,67.3,734,67.3z"/><path fill="%23005a8b" d="M766.1,28.9c-200-57.5-266,65.5-395.1,19.5C242,1.8,242,5.4,184.8,20.6C128,35.8,132.3,44.9,89.9,52.5C28.6,63.7,0,0,0,0 h1000c0,0-9.9,40.9-83.6,48.1S829.6,47,766.1,28.9z"/></svg>');
    background-repeat: no-repeat;
    background-position: bottom;
    opacity: 0.14;
    z-index: 0;
    pointer-events: none;
}

.subasta-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 80px;
    padding: 0.5rem 1rem;
    position: relative;
    z-index: 1;
}

.subasta-nav__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.subasta-nav__logo img {
    height: 70px;
    min-height: 70px;
    width: auto;
    max-width: none;
    padding: 6px;
}

.subasta-nav__links {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.8rem;
}

.subasta-nav__links li {
    margin: 0;
    padding: 0;
}

.subasta-nav__links a {
    display: block;
    text-decoration: none;
    color: #222;
    font-size: 1rem;
    font-weight: 500;
    white-space: nowrap;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: color .2s;
}

.subasta-nav__links a:hover {
    color: #ff3366;
}

.subasta-nav__toggle,
.subasta-nav__close {
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.8rem;
    color: #2c3e50;
    background: none;
    border: none;
    padding: 0.5rem;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    z-index: 1;
    position: relative;
}

.subasta-nav__toggle { background: rgba(0, 124, 186, 0.1); }
.subasta-nav__close  { background: rgba(220, 53, 69, 0.15); color: #721c24; }

/* Mobile */
@media (max-width: 768px) {
    .subasta-nav__toggle { display: flex; }

    .subasta-nav__links {
        display: none;
        position: fixed;
        top: 0; right: 0;
        height: 100vh;
        width: 260px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 60px 32px 32px;
        box-shadow: -4px 0 20px rgba(0,0,0,.15);
        z-index: 9999;
        gap: 20px;
    }

    .subasta-nav__links li { border-bottom: 1px solid rgba(0, 124, 186, 0.1); width: 100%; }
    .subasta-nav__links li:last-child { border-bottom: none; }
    .subasta-nav__links a { font-size: 1.1rem; padding: 1.2rem 0.5rem; border-radius: 0; }

    .subasta-nav__close {
        display: none;
        position: fixed;
        top: 16px; right: 20px;
        z-index: 10000;
    }

    body.subasta-nav-open .subasta-nav__links { display: flex; }
    body.subasta-nav-open .subasta-nav__close  { display: flex; }
    body.subasta-nav-open .subasta-nav__toggle { display: none; }
    body.subasta-nav-open { overflow: hidden; }
}

/* Tablet / desktop */
@media (min-width: 768px) {
    .subasta-nav__inner {
        padding: 0.6rem 1.5rem;
        min-height: 95px;
    }
    .subasta-nav__logo img { height: 80px; min-height: 80px; }
}

@media (min-width: 1024px) {
    .subasta-nav__inner {
        padding: 0.75rem 3rem;
        min-height: 120px;
        justify-content: space-around;
    }
    .subasta-nav__logo img { height: 90px; min-height: 90px; }
}

