/*
Theme Name:   Diana Pulgarin Child Theme
Theme URI:    https://dradianapulgarin.com
Description:  Tema hijo de Hello Elementor para Diana Pulgarín Dental Group
Author:       Diana Pulgarin Dental Group
Author URI:   https://dradianapulgarin.com
Template:     hello-elementor
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  diana-pulgarin-child
Tags:         dental, clinic, medical, odontologia, diseño de sonrisa
*/

/* ============================================
   VARIABLES GLOBALES - Color Palette
   ============================================ */
:root {
    --dp-black: #000000;
    --dp-gold: #9E783C;
    --dp-gold-light: #B8944F;
    --dp-off-white: #EDE3DA;
    --dp-cream: #F8F4EB;
    --dp-ash-ballet: #BCB2A6;
    --dp-gray: #C1BFBD;
    --dp-white: #FFFFFF;

    --dp-font-display: 'Cormorant Garamond', Georgia, serif;
    --dp-font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--dp-font-body);
    color: var(--dp-black);
    background: var(--dp-cream);
    line-height: 1.6;
}

/* ============================================
   TIPOGRAFÍAS GLOBALES
   ============================================ */
h1, h2, h3, h4, h5, h6,
.elementor-heading-title {
    font-family: var(--dp-font-display);
    font-weight: 300;
    line-height: 1.2;
}

p, a, span, li, td, th {
    font-family: var(--dp-font-body);
}

/* ============================================
   BOTONES GLOBALES
   ============================================ */
.elementor-button,
.wp-block-button__link {
    font-family: var(--dp-font-body) !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    transition: all 0.35s ease !important;
}

.elementor-button.elementor-button-primary {
    background-color: var(--dp-black) !important;
    color: var(--dp-cream) !important;
}

.elementor-button.elementor-button-primary:hover {
    background-color: var(--dp-gold) !important;
    transform: translateY(-2px);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
    background: transparent;
}

.site-header.scrolled {
    background: rgba(248,244,235,0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--dp-ash-ballet);
}

/* ============================================
   BLOG STYLES
   ============================================ */
.blog .post,
.archive .post {
    background: var(--dp-white);
    border: 1px solid var(--dp-ash-ballet);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.blog .post:hover,
.archive .post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: var(--dp-gold);
}

.entry-title {
    font-family: var(--dp-font-display);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.8rem;
}

.entry-title a {
    color: var(--dp-black);
    text-decoration: none;
    transition: color 0.3s;
}

.entry-title a:hover {
    color: var(--dp-gold);
}

.entry-meta {
    font-size: 0.75rem;
    color: var(--dp-ash-ballet);
    margin-bottom: 1rem;
}

.entry-content {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #555;
}

/* ============================================
   SINGLE POST STYLES
   ============================================ */
.single-post .entry-header {
    text-align: center;
    margin-bottom: 3rem;
}

.single-post .entry-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.single-post .post-thumbnail {
    margin-bottom: 3rem;
    border-radius: 8px;
    overflow: hidden;
}

.single-post .post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.single-post .entry-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
}

.single-post .entry-content h2 {
    font-size: 2rem;
    margin: 2.5rem 0 1rem;
}

.single-post .entry-content h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

.single-post .entry-content blockquote {
    border-left: 4px solid var(--dp-gold);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #666;
}

/* ============================================
   WHATSAPP FLOAT BUTTON
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    text-decoration: none;
    transition: transform 0.3s;
    animation: pulse-wa 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
    fill: white;
}

@keyframes pulse-wa {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
    50% { box-shadow: 0 4px 30px rgba(37,211,102,0.6); }
}

/* ============================================
   WORDPRESS ADMIN BAR ADJUSTMENT
   ============================================ */
.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    :root {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    :root {
        font-size: 14px;
    }
    
    .whatsapp-float {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
    }
}

/* ============================================
   ELEMENTOR COMPATIBILITY
   ============================================ */
.elementor-widget-text-editor {
    font-family: var(--dp-font-body);
}

.elementor-widget-heading .elementor-heading-title {
    font-family: var(--dp-font-display);
}

/* Ocultar título de página en páginas con Elementor */
.elementor-page .entry-header {
    display: none;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-gold {
    color: var(--dp-gold) !important;
}

.bg-black {
    background-color: var(--dp-black) !important;
}

.bg-cream {
    background-color: var(--dp-cream) !important;
}

.font-display {
    font-family: var(--dp-font-display) !important;
}

.font-body {
    font-family: var(--dp-font-body) !important;
}
