/*
Theme Name: WilliamMercadoArango
*/

/* =========================================
   1. ESTRUCTURA GENERAL
========================================= */
body { margin: 0; padding: 0; font-family: Arial, sans-serif; line-height: 1.6; }

/* Hace que todas las imágenes sean responsivas por defecto */
img { max-width: 100%; height: auto; }

.site-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0 5%; 
    height: 100px; 
    background: #000000; 
    flex-wrap: wrap; 
}

.logo-container {
    height: 100px; /* O el tamaño exacto en píxeles que tenga en la página inicial */
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Fuerza la alineación a la izquierda */
}

.logo-container img {
    height: 100%; /* Ocupará el 100% de los 100px del contenedor */
    width: auto;
    padding: 0;
    display: block;
}

.site-navigation { display: flex; align-items: center; }
.site-navigation a { color: white; text-decoration: none; margin-left: 20px; font-size: 0.75rem; font-weight: bold; }

/* =========================================
   2. MENÚ DESPLEGABLE
========================================= */
.dropdown { position: relative; display: inline-block; }
.dropdown-content { display: none; position: absolute; background-color: #000000; min-width: 200px; z-index: 1000; top: 100%; left: 0; }
.dropdown-content a { color: white !important; padding: 12px 16px; text-decoration: none; display: block; font-size: 0.7rem; border-top: 1px solid #333; }
.dropdown-content a:hover { background-color: #C5A880; }
.dropdown:hover .dropdown-content { display: block; }

/* =========================================
   3. BOTONES Y TARJETAS
========================================= */
.pdf-btn { display: block; background: #000000; color: #ffffff; padding: 15px; text-decoration: none; border: 2px solid #C5A880; margin-bottom: 10px; font-weight: bold; text-align: center; }
.pdf-btn:hover { background: #C5A880; }

.company-card { 
    background: #ffffff; 
    border: 1px solid #e0e0e0; 
    margin-bottom: 15px; 
    border-radius: 4px; 
    width: 90%;          
    max-width: 800px;    
    margin-left: auto;   
    margin-right: auto;
    padding: 20px;
}

summary { padding: 20px; cursor: pointer; font-weight: bold; display: flex; justify-content: space-between; align-items: center; }
.details-content { padding: 20px; border-top: 1px solid #eee; background: #f9f9f9; }

/* =========================================
   4. BOTÓN INTERNACIONAL
========================================= */
.int-btn { background: #C5A880; color: #ffffff !important; padding: 10px 15px; border-radius: 4px; text-transform: uppercase; font-size: 0.7rem; font-weight: bold; text-decoration: none !important; margin-left: 20px; }

/* =========================================
   5. FRANJA DE CARACTERÍSTICAS (HOME)
========================================= */
.features-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    background-color: #f7f6f2; 
    padding: 40px 5%;
    border-bottom: 1px solid #e0e0e0;
}

.feature-item {
    text-align: left;
    padding: 0 20px;
    border-right: 1px solid #dcdcdc; 
}

.feature-item:last-child { border-right: none; }
.feature-icon { font-size: 2rem; margin-bottom: 10px; }
.feature-item h3 { font-size: 0.8rem; margin: 0 0 10px 0; color: #000000; letter-spacing: 1px; }
.feature-item p { font-size: 0.8rem; color: #444; margin: 0; line-height: 1.4; }

/* =========================================
   6. SECCIÓN DE LA FRASE (HOME)
========================================= */
.quote-section {
    background-color: #000000;
    background-size: cover;
    background-position: center;
    color: #ffffff;
    padding: 80px 5%;
    text-align: left;
}

.quote-section blockquote {
    font-size: 1.8rem;
    font-family: 'Times New Roman', serif; 
    margin: 0;
    max-width: 600px;
    border-bottom: 2px solid #C5A880; 
    padding-bottom: 20px;
    position: relative;
    padding-left: 50px;
}

.quote-section blockquote::before {
    content: "“";
    color: #C5A880;
    font-size: 4rem;
    position: absolute;
    left: 0;
    top: -10px;
    font-family: Georgia, serif;
}
.quote-section blockquote::after {
    content: "”";
    color: #C5A880;
    font-size: 4rem;
    font-family: Georgia, serif;
    position: absolute;
    right: 10px;
    top: -10px;
    bottom: 0px;
}
/* =========================================
   7. PIE DE PÁGINA (FOOTER)
========================================= */
.site-footer {
    background-color: #0a0a0a; 
    color: #ffffff;
    padding: 60px 5%;
    text-align: center;
    border-top: 1px solid #222;
}

.footer-info h4 { color: #C5A880; margin-bottom: 20px; letter-spacing: 2px; }
.footer-info p { font-size: 0.9rem; margin: 8px 0; color: #bbbbbb; }

/* =========================================
   8. BOTÓN DE TRADUCCIÓN (TRANSLATEPRESS)
========================================= */
.btn-idioma { margin-left: 20px; display: flex; align-items: center; }

.btn-idioma .trp-language-switcher { 
    background-color: transparent !important; 
    border: 1px solid #C5A880 !important; 
    border-radius: 4px; 
    overflow: hidden; 
    color: #FFFFFF !important; /* Fuerza el blanco en el contenedor */
}

/* Asegurar que las letras (spans y botones activos) sean blancas */
.btn-idioma .trp-language-switcher span,
.btn-idioma .trp-language-switcher div[role="button"],
.btn-idioma .trp-language-switcher a, 
.btn-idioma .trp-language-switcher a:visited, 
.btn-idioma .trp-language-switcher a:active { 
    color: #FFFFFF !important; 
    font-size: 0.75rem !important; 
    font-weight: bold !important; 
    font-family: Arial, sans-serif; 
    text-transform: uppercase; 
    text-decoration: none !important; 
}

/* Espaciado y transición solo para los enlaces del menú desplegable */
.btn-idioma .trp-language-switcher a {
    padding: 8px 12px !important; 
    transition: all 0.3s ease;
    display: block;
}

.btn-idioma .trp-language-switcher a:hover { 
    color: #FFFFFF !important; 
    background-color: #C5A880 !important; 
}

/* =========================================
   9. PÁGINA DE BLOG Y LECTURAS
========================================= */
.blog-intro { background-color: #000000; color: #ffffff; padding: 80px 5%; text-align: center; }
.intro-content { max-width: 800px; margin: 0 auto; }
.intro-content h2 { font-family: 'Times New Roman', Georgia, serif; font-size: 2.5rem; margin-bottom: 20px; letter-spacing: 1px; }
.gold-divider { width: 60px; height: 3px; background-color: #C5A880; margin: 0 auto 30px auto; }
.intro-content p { font-size: 1.1rem; line-height: 1.8; color: #cccccc; margin-bottom: 15px; }

.books-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; padding: 60px 5%; background-color: #f9f9f9; }
.book-card { background-color: #ffffff; border: 1px solid #e0e0e0; border-radius: 4px; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; }
.book-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.book-cover { background-color: #1a1a1a; height: 250px; display: flex; align-items: center; justify-content: center; border-bottom: 3px solid #C5A880; }
.book-placeholder { font-size: 4rem; }

.book-info { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; }
.book-category { font-size: 0.7rem; color: #C5A880; text-transform: uppercase; font-weight: bold; letter-spacing: 1px; margin-bottom: 10px; }
.book-info h3 { font-size: 1.4rem; color: #000000; margin: 0 0 15px 0; font-family: 'Times New Roman', Georgia, serif; }
.book-info p { font-size: 0.9rem; color: #555555; line-height: 1.6; margin-bottom: 20px; flex-grow: 1; }
.read-more { color: #000000; text-decoration: none; font-weight: bold; font-size: 0.8rem; text-transform: uppercase; border-bottom: 1px solid transparent; transition: all 0.3s ease; align-self: flex-start; }
.read-more:hover { color: #C5A880; border-bottom: 1px solid #C5A880; }

/* =========================================
   10. HERO SECTION (FORZANDO POSICIÓN)
========================================= */
.hero-section {
    position: relative; /* El padre debe ser relativo */
    width: 100%;
    height: 600px; 
    background-image: url('assets/wback.png'); 
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat;
    display: block; /* Quitamos flex para evitar herencia de centrado */
}

.hero-logo {
    position: absolute; /* Posicionamiento absoluto respecto al padre */
    top: 30px;          /* Distancia desde arriba */
    left: 30px;         /* Distancia desde la izquierda */
    width: 250px; 
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    z-index: 10;        /* Asegura que esté al frente */
}

/* =========================================
   11. OPTIMIZACIÓN MÓVIL (RESPONSIVE)
========================================= */

/* Estilos para el botón flotante de WhatsApp */
.whatsapp-flotante {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white !important;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.whatsapp-flotante:hover {
    transform: scale(1.05);
}

/* Pantallas pequeñas (Móviles y Tablets menores a 768px) */
@media (max-width: 768px) {
    
    /* Hero Section */
    .hero-section { height: 300px; }
    .hero-logo { 
        width: 100px;
        top: 20px;
        left: 20px;
    }

    /* Navegación y Header */
    .site-header {
        height: auto;
        padding: 15px 5%;
        flex-direction: column;
    }
    .logo-container {
        height: 70px;
        margin-bottom: 15px;
        justify-content: center;
    }
    .site-navigation {
        flex-direction: column;
        width: 100%;
        gap: 15px; /* Espaciado entre links */
    }
    .site-navigation a {
        margin-left: 0;
        font-size: 0.9rem; /* Letra un poco más grande para facilitar el toque */
    }
    .btn-idioma, .int-btn {
        margin-left: 0;
        margin-top: 10px;
    }
    
    /* Menú desplegable para que no se salga de la pantalla */
    .dropdown-content {
        position: relative;
        min-width: 100%;
        text-align: center;
    }

    /* Franja de características (Home) - 1 columna */
    .features-strip {
        grid-template-columns: 1fr;
        padding: 30px 5%;
        gap: 20px;
    }
    .feature-item {
        border-right: none;
        border-bottom: 1px solid #dcdcdc;
        padding: 0 0 20px 0;
        text-align: center; /* Centrar texto en móviles */
    }
    .feature-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    /* Sección de la frase / Quote */
    .quote-section {
        padding: 50px 5%;
    }
    .quote-section blockquote {
        font-size: 1.3rem;
        padding-left: 35px;
    }
    .quote-section blockquote::before {
        font-size: 3rem;
        top: -5px;
    }
    .quote-section blockquote::after {
        font-size: 3rem;
        right: 0;
    }

    /* Botón flotante en móviles (más compacto) */
    .whatsapp-flotante {
        bottom: 15px;
        right: 15px;
        padding: 10px 15px;
        font-size: 0.8rem;
    }
}