/*
Theme Name: Qué Ver en Punta Cana
Theme URI: https://www.queverenpuntacana.com
Description: Guía turística de Punta Cana - tema SEO optimizado
Author: SOLTIA
Version: 1.0.0
Text Domain: queverenpuntacana
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #0891B2;
    --primary-dark: #0E7490;
    --primary-light: #22D3EE;
    --accent: #F59E0B;
    --accent-dark: #D97706;
    --dark: #1E293B;
    --text: #334155;
    --text-light: #64748B;
    --light: #F0F9FF;
    --white: #FFFFFF;
    --sand: #FEF3C7;
    --green: #059669;
    --border: #E2E8F0;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--dark);
    line-height: 1.3;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-accent { background: var(--accent); color: var(--dark); }
.btn-accent:hover { background: var(--accent-dark); color: var(--white); transform: translateY(-2px); }
.btn-outline { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary-dark); }

/* ===== HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 1px 10px rgba(0,0,0,0.05);
    transition: var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); }

.header-top {
    background: var(--dark);
    color: rgba(255,255,255,0.8);
    font-size: 0.78rem;
    padding: 6px 0;
    letter-spacing: 0.3px;
}
.header-top .container { display: flex; justify-content: space-between; align-items: center; }
.header-top a { color: rgba(255,255,255,0.8); }
.header-top a:hover { color: var(--accent); }
.header-top i { margin-right: 5px; }

.header-main .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    padding-bottom: 12px;
}

.site-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.site-logo .logo-icon {
    font-size: 2rem;
}
.site-logo .logo-text { line-height: 1.2; }
.site-logo .logo-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
}
.site-logo .logo-tagline {
    font-size: 0.68rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 4px;
}
.main-nav ul li a {
    display: block;
    padding: 8px 16px;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 6px;
    transition: var(--transition);
}
.main-nav ul li a:hover { color: var(--primary); background: var(--light); }
.main-nav ul li.current-menu-item a,
.main-nav ul li.current_page_item a { color: var(--primary); background: var(--light); }

.header-cta .btn { font-size: 0.78rem; padding: 10px 22px; }
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--dark); cursor: pointer; }

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(14,116,144,0.85), rgba(8,145,178,0.7)), url('') center/cover;
    color: var(--white);
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--white), transparent);
}
.hero .container { position: relative; z-index: 2; text-align: center; }
.hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero .subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
    font-weight: 300;
}
.hero .hero-badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.hero .badge {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-light { background: var(--light); }
.section-dark { background: var(--dark); color: var(--white); }
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}
.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}
.section-title .divider {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 1rem auto;
    border-radius: 3px;
}

/* ===== CATEGORY CARDS ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.category-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 280px;
    cursor: pointer;
    transition: var(--transition);
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.category-card:hover img { transform: scale(1.08); }
.category-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: var(--white);
}
.category-card .overlay h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 4px; }
.category-card .overlay p { font-size: 0.85rem; opacity: 0.85; }
.category-card .overlay .cat-icon { font-size: 2rem; margin-bottom: 8px; }

/* ===== BLOG GRID ===== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.post-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card .post-thumb {
    height: 220px;
    overflow: hidden;
}
.post-card .post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.post-card:hover .post-thumb img { transform: scale(1.05); }
.post-card .post-body { padding: 20px; }
.post-card .post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    color: var(--text-light);
    margin-bottom: 10px;
}
.post-card .post-meta .cat-badge {
    background: var(--light);
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
}
.post-card h3 { font-size: 1.1rem; margin-bottom: 8px; line-height: 1.4; }
.post-card h3 a { color: var(--dark); }
.post-card h3 a:hover { color: var(--primary); }
.post-card .excerpt { font-size: 0.9rem; color: var(--text-light); margin-bottom: 12px; }
.post-card .read-more { color: var(--primary); font-weight: 600; font-size: 0.85rem; }
.post-card .read-more:hover { color: var(--accent); }

/* ===== CTA BANNER (Salado Resort) ===== */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-dark), #065F46);
    color: var(--white);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.cta-banner .container {
    display: flex;
    align-items: center;
    gap: 3rem;
}
.cta-banner .cta-content { flex: 1; }
.cta-banner h2 { color: var(--white); font-size: 2rem; margin-bottom: 1rem; }
.cta-banner p { opacity: 0.9; font-size: 1.05rem; margin-bottom: 1.5rem; max-width: 500px; }
.cta-banner .cta-features {
    list-style: none;
    margin-bottom: 2rem;
}
.cta-banner .cta-features li {
    padding: 6px 0;
    font-size: 0.95rem;
    opacity: 0.9;
}
.cta-banner .cta-features li i { color: var(--accent); margin-right: 10px; }
.cta-banner .cta-image {
    flex: 0 0 380px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.cta-banner .cta-image img { width: 100%; height: 280px; object-fit: cover; }

/* ===== SIDEBAR ===== */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3rem;
    margin: 40px 0 60px;
}
.sidebar .widget {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}
.sidebar .widget-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--light);
    color: var(--dark);
}
.sidebar .widget ul { list-style: none; }
.sidebar .widget ul li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.sidebar .widget ul li:last-child { border: none; }
.sidebar .widget ul li a { color: var(--text); font-size: 0.9rem; }
.sidebar .widget ul li a:hover { color: var(--primary); }

/* Salado Resort sidebar widget */
.widget-salado {
    background: linear-gradient(135deg, var(--primary-dark), #065F46) !important;
    color: var(--white);
    text-align: center;
}
.widget-salado .widget-title { color: var(--white); border-color: rgba(255,255,255,0.2); }
.widget-salado p { font-size: 0.9rem; opacity: 0.9; margin-bottom: 1rem; }
.widget-salado .btn { display: block; }

/* ===== FOOTER ===== */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-col h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1.2rem;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-col p { font-size: 0.9rem; line-height: 1.8; }
.footer-col ul { list-style: none; }
.footer-col ul li { padding: 5px 0; }
.footer-col ul li a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.82rem;
}
.footer-social a {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--white);
    margin-right: 8px;
    transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); }

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .hero h1 { font-size: 2.5rem; }
    .categories-grid, .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-layout { grid-template-columns: 1fr; }
    .cta-banner .container { flex-direction: column; text-align: center; }
    .cta-banner .cta-image { flex: none; width: 100%; max-width: 400px; }
    .menu-toggle { display: block; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow);
        padding: 16px 0;
    }
    .main-nav.active { display: block; }
    .main-nav ul { flex-direction: column; }
    .main-nav ul li a { padding: 12px 24px; }
    .header-cta { display: none; }
}
@media (max-width: 640px) {
    .hero h1 { font-size: 2rem; }
    .hero { min-height: 70vh; }
    .categories-grid, .posts-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .section { padding: 50px 0; }
    .header-top { display: none; }
}
