/*
Theme Name: Craft Project
Theme URI: https://craftproyecto.com
Author: Henry Nazir
Author URI: https://triforia.com
Description: Tema personalizado, flat y minimalista para Craft Project, enfocado en alto rendimiento y UI/UX.
Version: 1.0
Text Domain: craft-project
*/

/* Reseteo básico de CSS para empezar con un lienzo limpio */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


.cookieadmin-poweredby {
    margin-left: auto;
    display: none;
}

.trifo{
    color:#D4AF37;
    text-decoration: none;
}


body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: #333333;
}

/* --- VARIABLES Y PALETA MONOCROMÁTICA + DORADO --- */
:root {
    --color-bg: #ffffff;
    --color-text: #1a1a1a;
    --color-dark: #000000;
    --color-gray: #f9f9f9;
    --color-gold: #D4AF37;
    --font-main: 'Segoe UI', Helvetica, Arial, sans-serif;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- BOTONES FLAT --- */
.btn {
    display: inline-block;
    padding: 14px 28px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-gold {
    background-color: var(--color-gold);
    color: var(--color-dark);
}
.btn-gold:hover {
    background-color: var(--color-dark);
    color: var(--color-gold);
}

.btn-dark {
    background-color: var(--color-dark);
    color: var(--color-bg);
}
.btn-dark:hover {
    background-color: var(--color-gold);
    color: var(--color-dark);
}

/* --- HEADER --- */
.site-header {
    background-color: var(--color-bg);
    border-bottom: 1px solid #eaeaea;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- ESTILOS DEL LOGO DINÁMICO (TAMAÑO CORREGIDO) --- */
.logo {
    display: flex;
    align-items: center;
    max-height: 70px; /* Limitamos la caja contenedora */
}

/* Apuntamos directamente al enlace y a la imagen que genera WordPress */
.custom-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.custom-logo-link img.custom-logo {
    max-height: 60px !important; /* Forzamos la altura máxima profesional */
    width: auto !important;      /* Mantenemos la proporción original */
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
}

.custom-logo-link img.custom-logo:hover {
    transform: scale(1.03);
}

.site-title-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-dark);
    text-decoration: none;
    letter-spacing: 2px;
}

.logo a {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-dark);
    text-decoration: none;
    letter-spacing: 2px;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-navigation a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
}

.main-navigation a:hover {
    color: var(--color-gold);
}

/* --- HERO BANNER FULL-WIDTH --- */
.hero {
    /* Fondo con overlay oscuro para garantizar la legibilidad del texto */
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), 
                url('https://craftproyecto.com/wp-content/uploads/2026/05/proyectos-de-tesis-profesionales.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: scroll; /* Puedes cambiar a 'fixed' si quieres un efecto parallax suave */
    padding: 140px 0; 
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.hero-content {
    max-width: 850px; /* Evita que las líneas de texto sean demasiado largas */
    animation: fadeIn 1s ease-out; /* Una animación suave de entrada */
}

.hero-content h1 {
    font-size: 68px;
    line-height: 1.1;
    margin-bottom: 25px;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: -1.5px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5); /* Mejora el contraste */
}

.hero-content p {
    font-size: 24px;
    margin-bottom: 45px;
    color: #f1f1f1;
    font-weight: 400;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

/* Animación sutil de entrada */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- RESPONSIVE DEL HERO --- */
@media (max-width: 768px) {
    .hero {
        padding: 100px 0;
        min-height: 70vh;
    }
    .hero-content h1 {
        font-size: 42px;
    }
    .hero-content p {
        font-size: 18px;
        margin-bottom: 35px;
    }
}



/* --- ESTILOS GENERALES DE SECCIÓN --- */
.section-padding {
    padding: 100px 0;
}
.bg-light {
    background-color: var(--color-gray);
}
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}
.section-header p {
    color: #777;
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* --- GRID DE NOSOTROS --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.about-text p {
    font-size: 18px;
    margin-bottom: 20px;
}
.mv-card {
    background: #fff;
    padding: 30px;
    border-left: 4px solid var(--color-gold);
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.mv-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* --- GRID DE SERVICIOS (FLAT CARDS) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.service-card {
    background: #fff;
    padding: 40px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}
.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-gold);
}
.service-icon {
    font-size: 40px;
    margin-bottom: 20px;
}
.service-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 700;
}
.service-card p {
    font-size: 15px;
    color: #666;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 100%;
    }
}


.service-icon svg {
    width: 48px;
    height: 48px;
    color: var(--color-gold); /* Usamos la variable dorada que definimos arriba */
    stroke-width: 1.5px;
    transition: all 0.3s ease;
}

/* Un pequeño efecto hover: el icono crece un poco y se oscurece cuando pasas el mouse por la tarjeta */
.service-card:hover .service-icon svg {
    transform: scale(1.1);
    color: var(--color-dark);
}

/* --- TESTIMONIALES --- */
.testimonial-slider {
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.testimonial-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.testimonial-item {
    min-width: 100%;
    padding: 40px;
}
.testimonial-item p {
    font-size: 22px;
    font-style: italic;
    margin-bottom: 20px;
    color: var(--color-dark);
}
.testimonial-item span {
    font-weight: 700;
    color: var(--color-gold);
    text-transform: uppercase;
    font-size: 14px;
}

/* --- SECCIÓN CONTACTO --- */


.contact-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--color-dark);
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 16px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- FORMULARIO --- */
.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    background-color: var(--color-gray);
    font-family: var(--font-main);
    font-size: 16px;
    transition: border-color 0.3s;
    border-radius: 4px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-gold);
}

.w-100 {
    width: 100%;
}

.form-message {
    margin-top: 15px;
    font-weight: 600;
    text-align: center;
    display: none; /* Oculto por defecto, JS lo mostrará */
}

/* --- FOOTER --- */
.site-footer {
    background-color: var(--color-dark);
    color: #fff;
    padding: 40px 0 20px;
    text-align: center;
}

.footer-brand h3 {
    font-size: 24px;
    color: var(--color-gold);
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.footer-copy {
    margin-top: 30px;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 14px;
    color: #888;
}

/* --- RESPONSIVE CONTACTO --- */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 100%;
        gap: 40px;
        padding: 20px;
    }
}



.contact-icon {
    width: 24px;
    height: 24px;
    color: var(--color-gold);
    flex-shrink: 0; /* Evita que el icono se deforme si el texto es muy largo */
}


/* --- CONTACTO HORIZONTAL --- */
.text-center { text-align: center; }
.contact-info-horizontal {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.contact-info-horizontal p {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 500;
}

/* --- MODAL ELEGANTE --- */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fondo oscuro semitransparente */
    backdrop-filter: blur(5px); /* Efecto de desenfoque moderno */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--color-dark);
}

/* Clases dinámicas para los mensajes de AJAX */
.form-message {
    padding: 10px;
    border-radius: 4px;
    margin-top: 15px;
}
.msg-exito {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.msg-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 768px) {
    .contact-info-horizontal { flex-direction: column; gap: 15px; }
}








/* --- ANIMACIÓN TIPO SWEETALERT PARA EL MODAL DE CONTACTO --- */
.modal-content {
    /* Reemplazamos la transición anterior por esta con rebote */
    transform: scale(0.7);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

/* --- ESTILOS DE LA ALERTA PERSONALIZADA (SWEETALERT CLONE) --- */
.swal-overlay {
    display: none;
    position: fixed;
    z-index: 2000; /* Por encima del modal de contacto */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.swal-overlay.show {
    display: flex;
    opacity: 1;
}

.swal-box {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    transform: scale(0.7);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.swal-overlay.show .swal-box {
    transform: scale(1);
    opacity: 1;
}

.swal-icon {
    margin-bottom: 20px;
}

.swal-icon svg {
    width: 80px;
    height: 80px;
}

.swal-icon.success svg { color: #a5dc86; }
.swal-icon.error svg { color: #f27474; }

.swal-title {
    font-size: 26px;
    color: var(--color-dark);
    margin-bottom: 10px;
    font-weight: 800;
}

.swal-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}







/* --- HERO PARALLAX PARA PÁGINAS INTERNAS --- */
.inner-hero.parallax-hero {
    position: relative;
    /* La siguiente línea es la que crea la magia del Parallax */
    background-attachment: fixed; 
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 160px 0 120px; /* Lo hacemos un poco más alto para lucir la foto */
    text-align: center;
    background-color: var(--color-dark); /* Color de fondo por si la imagen tarda en cargar */
}

/* Capa semitransparente para que el texto sea legible */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

/* Elevamos el texto sobre la capa oscura */
.relative-z {
    position: relative;
    z-index: 2;
}

/* (Mantenemos los estilos de texto que ya teníamos) */
.eyebrow {
    display: block;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 15px;
}

.inner-hero h1 {
    font-size: 52px;
    color: #fff;
    font-weight: 800;
    margin: 0;
    letter-spacing: -1px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5); /* Sombra extra al título */
}

/* --- MENÚ DINÁMICO DE WORDPRESS --- */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
}

.nav-menu li a:hover {
    color: var(--color-gold);
}





/* --- SECCIÓN SERVICIOS PREMIUM (Z-PATTERN CON GRID) --- */
.premium-services-wrapper {
    display: flex;
    flex-direction: column;
    gap: 80px;
    margin-top: 20px;
}

/* Usamos CSS Grid para forzar 50% de ancho y misma altura siempre */
.premium-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff;
    border-radius: 12px; /* Bordes más curvos y modernos */
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06); /* Sombra más profunda y difuminada */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.premium-row:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 50px rgba(0,0,0,0.1);
}

.premium-row.reverse {
    /* Mueve la segunda columna (contenido) a la primera posición */
    direction: rtl; 
}

.premium-row.reverse .premium-image,
.premium-row.reverse .premium-content {
    direction: ltr; /* Devuelve el texto a su dirección normal */
}

/* Configuración perfecta de imagen */
.premium-image {
    width: 100%;
    height: 100%;
    overflow: hidden; /* Necesario para el efecto zoom */
}

.premium-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fuerza a la imagen a llenar la caja sin deformarse */
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.premium-row:hover .premium-image img {
    transform: scale(1.05); /* Zoom sutil premium */
}

.premium-content {
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra el texto verticalmente */
}

.icon-wrap svg {
    width: 48px;
    height: 48px;
    color: var(--color-gold);
    margin-bottom: 20px;
}

.premium-content h2 {
    font-size: 32px;
    color: var(--color-dark);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
    border: none;
    padding-left: 0;
}

.premium-content p {
    color: #555;
    font-size: 17px;
    margin-bottom: 25px;
    line-height: 1.7;
}

.premium-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.premium-list li {
    position: relative;
    padding-left: 35px !important;
    margin-bottom: 12px !important;
    font-weight: 500;
    color: var(--color-dark);
}

.premium-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-gold);
    font-weight: bold;
    font-size: 18px;
}

.service-cta {
    margin-top: 35px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .premium-row {
        grid-template-columns: 100%; /* Cambiamos 1fr por 100% para evitar el error del editor */
        direction: ltr; /* Resetea la dirección */
    }
    .premium-row.reverse {
        direction: ltr;
    }
    .premium-image {
        height: 300px;
    }
    .premium-content {
        padding: 40px 30px;
    }
    .premium-content h2 {
        font-size: 26px;
    }
}








/* --- SECCIÓN NOSOTROS PREMIUM --- */
.premium-about-wrapper {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.gold-accent-title {
    font-size: 32px;
    color: var(--color-dark);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
    font-weight: 800;
}

.gold-accent-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: var(--color-gold);
}

.lead-text {
    font-size: 24px;
    color: #444;
    font-weight: 300;
    line-height: 1.6;
    max-width: 90%;
}

/* --- GRID DE ESTADÍSTICAS --- */
.about-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.stat-card {
    background: var(--color-dark);
    color: #fff;
    padding: 40px;
    border-radius: 8px;
    border-bottom: 4px solid var(--color-gold);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-icon svg {
    width: 40px;
    height: 40px;
    color: var(--color-gold);
    margin-bottom: 20px;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: #ccc;
    line-height: 1.5;
}

/* --- PERFIL DEL DIRECTOR --- */
.director-profile-box {
    display: flex;
    align-items: center;
    gap: 40px;
    background: #fff;
    border: 1px solid #eaeaea;
    padding: 50px;
    border-radius: 8px;
}

.profile-content {
    flex: 2;
}

.profile-content p {
    font-size: 18px;
    color: #555;
    line-height: 1.7;
}

.profile-badge {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--color-gray);
    padding: 30px;
    border-radius: 8px;
}

.profile-badge svg {
    width: 60px;
    height: 60px;
    color: var(--color-gold);
    margin-bottom: 15px;
}

.profile-badge span {
    font-weight: 700;
    color: var(--color-dark);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

/* --- MISIÓN Y VISIÓN --- */
.mv-premium-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.mv-premium-card {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    border: 1px solid #f9f9f9;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.mv-premium-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-gold);
}

.mv-icon svg {
    width: 48px;
    height: 48px;
    color: var(--color-dark);
    margin-bottom: 20px;
}

.mv-premium-card h3 {
    font-size: 24px;
    color: var(--color-gold);
    margin-bottom: 15px;
    font-weight: 700;
}

.mv-premium-card p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .about-stats-grid, .mv-premium-grid, .director-profile-box {
        grid-template-columns: 100%;
        flex-direction: column;
    }
    .director-profile-box {
        padding: 30px 20px;
    }
    .lead-text {
        font-size: 20px;
        max-width: 100%;
    }
}





/* --- PRELOADER PREMIUM --- */
#premium-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-dark); /* Fondo oscuro corporativo */
    z-index: 99999; /* Aseguramos que tape absolutamente todo */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), visibility 0.6s ease;
}

/* Esta clase se añadirá con JS cuando la web termine de cargar */
#premium-preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Anillo minimalista dorado */
.loader-ring {
    width: 45px;
    height: 45px;
    border: 2px solid rgba(255, 255, 255, 0.05); /* Borde de fondo casi invisible */
    border-top: 2px solid var(--color-gold); /* Trazo dorado que gira */
    border-radius: 50%;
    animation: preloader-spin 0.8s linear infinite;
}

/* Texto de la marca */
.loader-text {
    color: var(--color-gold);
    font-size: 11px;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-weight: 600;
    animation: pulse-text 1.5s ease-in-out infinite;
}

/* Animaciones */
@keyframes preloader-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse-text {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}




/* ==========================================================================
   SECCIÓN BLOG PREMIUM
   ========================================================================== */

/* Fondo sutil para la página del blog */
.bg-light { background-color: #f8f9fa; }

.blog-premium-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: -60px; /* Sube la grilla un poco sobre el hero para profundidad */
    position: relative;
    z-index: 10;
}

/* --- TARJETA DE BLOG --- */
.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.02);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}

/* --- IMAGEN Y CATEGORÍA --- */
.blog-card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    display: block;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.08);
}

.blog-category-pill {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--color-gold);
    color: #fff;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

/* --- CONTENIDO DE LA TARJETA --- */
.blog-card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-date {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
    display: block;
    font-weight: 500;
}

.blog-card-content h3 {
    font-size: 22px;
    color: var(--color-dark);
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-card-content h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-content h3 a:hover {
    color: var(--color-gold);
}

.blog-card-content p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* --- BOTÓN LEER MÁS --- */
.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-dark);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.btn-read-more svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.btn-read-more:hover {
    color: var(--color-gold);
}

.btn-read-more:hover svg {
    transform: translateX(5px);
}

/* --- PAGINACIÓN --- */
.premium-pagination {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.premium-pagination .page-numbers {
    display: inline-block;
    padding: 10px 18px;
    background: #fff;
    color: var(--color-dark);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.premium-pagination .page-numbers:hover,
.premium-pagination .page-numbers.current {
    background: var(--color-gold);
    color: #fff;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .blog-premium-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-premium-grid {
        grid-template-columns: 1fr;
        margin-top: -30px;
    }
}




/* ==========================================================================
   ESTILOS PARA POSTS INDIVIDUALES (SINGLE.PHP)
   ========================================================================== */

.single-hero h1 {
    font-size: 48px;
    max-width: 900px;
    margin: 15px auto 0;
    line-height: 1.2;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
    font-size: 13px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-category {
    background: var(--color-gold);
    padding: 4px 14px;
    border-radius: 20px;
    font-weight: 800;
}

/* Contenedor de lectura centrado y angosto para mejor legibilidad */
.reading-container {
    max-width: 900px;
    margin: -80px auto 0; /* Sube sobre el parallax */
    padding: 60px 80px;
}

.article-content {
    font-size: 19px;
    line-height: 1.8;
    color: #333;
}

.article-content h2, 
.article-content h3 {
    color: var(--color-dark);
    margin-top: 45px;
    margin-bottom: 20px;
}

.article-content ul, 
.article-content ol {
    margin: 25px 0;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 12px;
}

/* Navegación al final del artículo */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    font-weight: 700;
    font-size: 15px;
}

.post-navigation a {
    color: var(--color-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-navigation a:hover {
    color: var(--color-gold);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .reading-container {
        padding: 40px 20px;
    }
    .single-hero h1 {
        font-size: 32px;
    }
    .post-navigation {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}






/* --- ESTILOS DE BREADCRUMBS PREMIUM --- */
.premium-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px; /* Espacio antes de que empiece el texto del blog */
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.premium-breadcrumbs a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.premium-breadcrumbs a:hover {
    color: var(--color-gold);
}

.premium-breadcrumbs .breadcrumb-separator {
    color: #ccc;
}

.premium-breadcrumbs .breadcrumb-current {
    color: var(--color-dark);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px; /* Evita que rompa la línea si el título es extremadamente largo */
}

/* --- ALINEACIÓN JUSTIFICADA PREMIUM PARA EL CONTENIDO --- */
.article-content p {
    text-align: justify !important;
    text-justify: inter-word; /* Distribuye el espacio entre palabras estéticamente */
    color: #333;
    font-size: 19px;
    line-height: 1.8;
    margin-bottom: 25px;
}

/* Ajuste responsive para pantallas pequeñas */
@media (max-width: 768px) {
    .premium-breadcrumbs {
        flex-wrap: wrap;
        gap: 5px;
        margin-bottom: 25px;
    }
    .premium-breadcrumbs .breadcrumb-current {
        max-width: 100%;
    }
    /* En móviles el justificado estricto a veces genera espacios raros, lo suavizamos */
    .article-content p {
        text-align: left !important; 
    }
}




/* ==========================================================================
   FOOTER PREMIUM
   ========================================================================== */

.premium-footer {
    background-color: #050505; /* Fondo más oscuro para máximo contraste */
    color: #e0e0e0;
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-widget h3 {
    color: var(--color-gold);
    font-size: 16px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

/* Columna de Marca */
.brand-widget .footer-logo {
    color: var(--color-gold);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.brand-widget p {
    color: #888;
    line-height: 1.8;
    font-size: 15px;
    max-width: 320px;
}

/* Lista de Contacto */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-contact-list svg {
    width: 22px;
    height: 22px;
    color: var(--color-gold);
}

.footer-contact-list a {
    color: #ccc;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.footer-contact-list a:hover {
    color: var(--color-gold);
}

/* Redes Sociales con efecto Neumórfico Oscuro */
.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.03);
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icons a svg {
    width: 20px;
    height: 20px;
}

.social-icons a:hover {
    background-color: var(--color-gold);
    color: #000;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
    border-color: var(--color-gold);
}

/* Barra Inferior y Firma */
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
    color: #777;
}

.agency-credit {
    color: var(--color-gold);
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* RESPONSIVE FOOTER */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .brand-widget p {
        margin: 0 auto;
    }
    .footer-contact-list li {
        justify-content: center;
    }
    .social-icons {
        justify-content: center;
    }
}