/*
Theme Name: Brenneisen
Theme URI: https://brenneisen.com
Author: Angel Grimaldo
Author URI: https://brenneisen.com
Description: Tema corporativo personalizado en WordPress y Tailwind CSS para Brenneisen & Partners.
Version: 1.0.0
Text Domain: brenneisen
*/

/* --- Estilos base del HTML original --- */
html {
    background-color: #0b1623;
}

body {
    color: #2B2E34;
    background-color: #FFFFFF;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
}

/* --- PARALLAX TEXTURES --- */
.bg-parallax {
    background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-1.2.1&auto=format&fit=crop&w=2000&q=80');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
@media (min-width: 1024px) {
    .bg-parallax {
        background-attachment: fixed;
    }
}

.bg-parallax-process {
    background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?ixlib=rb-1.2.1&auto=format&fit=crop&w=2000&q=80');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
@media (min-width: 1024px) {
    .bg-parallax-process {
        background-attachment: fixed;
    }
}

/* --- PATTERN DOTS (Ajustado: Muy Sutil) --- */
.pattern-dots {
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
}

/* --- ANIMACIONES SCROLL --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-100 {
    transition-delay: 0.1s;
}

.reveal-delay-200 {
    transition-delay: 0.2s;
}

.reveal-delay-300 {
    transition-delay: 0.3s;
}

/* Botones */
.btn-primary {
    background-color: #1E3A5F;
    color: white;
    padding: 14px 32px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    border: 1px solid #1E3A5F;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    background-color: #162c4a;
    border-color: #162c4a;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(30, 58, 95, 0.25);
}

.btn-hero-outline {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    color: #FFFFFF;
    padding: 14px 32px;
    font-weight: 600;
    border: 1px solid #FFFFFF;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-hero-outline:hover {
    background-color: #FFFFFF;
    color: #1E3A5F;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #1E3A5F;
    padding: 14px 32px;
    font-weight: 600;
    border: 1px solid #1E3A5F;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    border-color: #4B6FA8;
    color: #4B6FA8;
    background-color: rgba(75, 111, 168, 0.06);
}

/* Botones Perfil */
.btn-linkedin {
    background-color: #0077b5;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-linkedin:hover {
    background-color: #005e93;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 119, 181, 0.3);
}

.btn-email {
    background-color: white;
    color: #2B2E34;
    border: 1px solid #D5D9DE;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-email:hover {
    border-color: #1E3A5F;
    color: #1E3A5F;
    background-color: #F8F9FA;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.1);
}

.bg-mesh-gradient {
    background-color: #ffffff;
    background-image: radial-gradient(at 0% 0%, rgba(75, 111, 168, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(30, 58, 95, 0.08) 0px, transparent 50%);
}

/* Libro de Reclamaciones (Link limpio) */
.libro-reclamaciones-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #9CA3AF;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
}

.libro-reclamaciones-link:hover {
    color: white;
}

.separator-line-white {
    width: 60px;
    height: 3px;
    background-color: #FFFFFF;
    margin-bottom: 2rem;
}

.step-connector {
    position: absolute;
    top: 2.5rem;
    left: 0;
    width: 100%;
    height: 1px;
    background: #D5D9DE;
    z-index: 0;
}

@media (max-width: 768px) {
    .step-connector {
        display: none;
    }
}

#mobile-menu {
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.menu-hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.menu-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.bg-gradient-stats {
    background: linear-gradient(135deg, #1E3A5F 0%, #162c4a 100%);
    border-top: 4px solid #B8BDC3;
}

/* --- Ajuste específico para .text-sm --- */
.text-sm {
    font-size: 1.15rem !important;
}

/* Excluir Header y Footer del aumento de tamaño */
header .text-sm, 
nav .text-sm, 
footer .text-sm, 
#contacto .text-sm,
#mobile-menu .text-sm {
    font-size: 0.875rem !important;
}

/* Justificación de textos (p y li) */
p, li {
    text-align: justify;
    text-justify: inter-word;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
    -webkit-hyphens: none;
}

/* Evitar justificación en extractos, tarjetas y artículos del blog para prevenir huecos gigantes */
article p, 
.blog-excerpt p, 
#blog-posts-container p {
    text-align: left !important;
    font-size: 0.875rem !important;
    line-height: 1.6 !important;
}

.team-card-item p {
    text-align: center !important;
    font-size: 0.875rem !important;
    line-height: 1.6 !important;
}

/* Fix para evitar huecos gigantes en texto justificado cuando se usa shift+enter (<br>) */
p br, li br {
    content: "";
    display: block;
    margin-top: 5px;
}

/* RESTAURAR ALINEACIONES: Títulos, Cabeceras, Footers y secciones centradas (Hero/CTA) */
/* Aseguramos que nada de esto se justifique y respete su alineación original */
header, footer, 
h1, h2, h3, h4, h5, h6,
.text-center, .text-center *,
.text-right, .text-right *,
[class*="hero"], [class*="hero"] *,
[class*="cta"], [class*="cta"] * {
    text-align: inherit; 
}

/* Específicamente para párrafos dentro de elementos que deben ser centrados */
.text-center p, .text-center li, .text-center span {
    text-align: center;
    hyphens: none;
    -webkit-hyphens: none;
}

/* Evitar justificación en sidebars/asides */
aside p, aside li {
    text-align: left;
    text-justify: auto;
}

/* --- AJUSTES DE DISEÑO EXCLUSIVOS PARA MOBILE EN PÁGINAS DE ÁREAS E INDUSTRIAS --- */
@media (max-width: 767px) {
    /* Reducir el margen (padding) superior e inferior del hero */
    body.page-template section[class*="bg-parallax-"]:first-of-type {
        padding-top: 5.5rem !important; /* Reduce de pt-32 (8rem) */
        padding-bottom: 2rem !important; /* Reduce de pb-16 (4rem) */
    }

    /* Reducir el gap de la rejilla (grid) principal del hero en mobile */
    body.page-template section[class*="bg-parallax-"]:first-of-type .grid {
        gap: 1.5rem !important; /* Reduce de gap-12 (3rem / 48px) a 1.5rem (24px) */
    }

    /* Reducir el margen superior de la foto de especialista o especialistas */
    body.page-template section[class*="bg-parallax-"]:first-of-type div[class*="lg:col-span-5"] {
        margin-top: 0.5rem !important; /* Reduce de mt-8 (2rem) a 0.5rem (8px) */
    }

    /* Ocultar la columna de especialistas por completo si no hay especialistas designados (evita gaps vacíos) */
    body.page-template section[class*="bg-parallax-"]:first-of-type div[class*="lg:col-span-5"]:not(:has(.team-card-item)) {
        display: none !important;
    }

    /* Reducir el margen superior de la sección de Servicios/Buscador en mobile */
    body.page-template section[class*="bg-parallax-"]:first-of-type + section {
        padding-top: 1.5rem !important; /* Reduce de py-12 (3rem / 48px) */
    }
}

/* --- FORZAR TAMAÑO UNIFORME DE TARJETAS DE ESPECIALISTAS EN MOBILE (< 640px) --- */
@media (max-width: 639px) {
    body.page-template section[class*="bg-parallax-"]:first-of-type .team-card-item {
        max-width: 280px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    body.page-template section[class*="bg-parallax-"]:first-of-type .team-card-item > div:first-of-type {
        height: 280px !important;
    }
    body.page-template section[class*="bg-parallax-"]:first-of-type .team-card-item > div.text-center {
        padding: 1.25rem !important; /* equivale a p-5 */
    }
    body.page-template section[class*="bg-parallax-"]:first-of-type .team-card-item > div.text-center h4 {
        font-size: 1rem !important; /* equivale a text-base */
    }
    body.page-template section[class*="bg-parallax-"]:first-of-type .team-card-item > div.text-center p {
        font-size: 10px !important; /* equivale a text-[10px] */
    }
}

/* --- AJUSTES DE DISEÑO EXCLUSIVOS PARA DESKTOP EN PÁGINAS DE ÁREAS E INDUSTRIAS --- */
@media (min-width: 1024px) {
    /* Reducir al mínimo el margen (padding) superior e inferior del hero, compensando los 6rem (96px) del header fijo */
    body.page-template section[class*="bg-parallax-"]:first-of-type {
        padding-top: 7.5rem !important; /* Espacio visible superior = 7.5rem - 6rem (header) = 1.5rem */
        padding-bottom: 1.5rem !important; /* Espacio visible inferior = 1.5rem */
    }

    /* Reducir el margen superior de la sección de Servicios/Buscador en desktop */
    body.page-template section[class*="bg-parallax-"]:first-of-type + section {
        padding-top: 2rem !important; /* Reduce de lg:py-16 (4rem / 64px) */
    }
}




