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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Exo', sans-serif;
    background-color: #1D1E1C;
    color: #ffffff;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   CONTAINER
   ========================================= */
.pd-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 100px;
}

/* =========================================
   HEADER
   ========================================= */
.pd-header {
    width: 100%;
    background-color: #1D1E1C;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* --- Barra superior --- */
.pd-header__top {
    padding: 10px 0;
}

.pd-header__top .pd-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

/* Nav BLOG | CONTACTO */
.pd-header__top-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pd-header__top-link {
    font-family: 'Exo', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1;
    color: #ffffff;
    transition: opacity 0.2s ease;
}

.pd-header__top-link:hover {
    opacity: 0.7;
}

/* Separador pipe entre BLOG y CONTACTO */
.pd-header__top-nav .pd-header__top-link:not(:last-child)::after {
    content: '';
    display: inline-block;
    width: 1px;
    height: 14px;
    background-color: #ffffff;
    margin-left: 10px;
    vertical-align: middle;
}

/* Contenedor derecho: teléfono + idioma */
.pd-header__top-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Teléfono + WhatsApp */
.pd-header__contact {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pd-header__phone {
    font-family: 'Exo', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1;
    color: #ffffff;
    background-color: #63D635;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.pd-header__whatsapp {
    background-color: #63D635;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.pd-header__whatsapp:hover {
    opacity: 0.85;
}

/* Idioma ESP / ENG */
.pd-header__lang {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 10px;
}

.pd-header__lang-link {
    font-family: 'Exo', sans-serif;
    font-weight: 800;
    font-size: 20px;
    line-height: 1;
    color: #ffffff;
    transition: opacity 0.2s ease;
}

.pd-header__lang-link--active {
    color: #E6323B;
}

.pd-header__lang-divider {
    color: #ffffff;
    font-size: 20px;
}

/* --- Línea divisoria --- */
.pd-header__divider {
    border: none;
    border-top: 1px solid #ffffff;
    margin: 0;
    opacity: 0.3;
}

/* --- Barra principal --- */
.pd-header__main {
    padding: 10px 0;
}

.pd-header__main .pd-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pd-header__logo img {
    width: 250px;
    height: auto;
}

/* Menú desktop */
.pd-header__nav {
    display: flex;
    align-items: center;
}

.pd-nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.pd-nav > li {
    position: relative;
}

.pd-nav > li > a {
    font-family: 'Exo', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1;
    color: #ffffff;
    border: 1px solid #ffffff;
    padding: 10px;
    display: block;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.pd-nav > li > a:hover,
.pd-nav > li.current-menu-item > a {
    background-color: #ffffff;
    color: #1D1E1C;
}

/* Submenú desplegable */
.pd-nav > li > ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1D1E1C;
    border: 1px solid rgba(255,255,255,0.2);
    min-width: 220px;
    z-index: 200;
    padding: 8px 0;
}

.pd-nav > li:hover > ul {
    display: block;
}

.pd-nav > li > ul > li > a {
    font-family: 'Exo', sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: #ffffff;
    padding: 10px 16px;
    display: block;
    transition: background-color 0.2s ease;
}

.pd-nav > li > ul > li > a:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Hamburguesa - oculto en desktop */
.pd-header__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
}

.pd-header__toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #ffffff;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburguesa abierta */
.pd-header__toggle--open .pd-header__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.pd-header__toggle--open .pd-header__toggle-bar:nth-child(2) {
    opacity: 0;
}
.pd-header__toggle--open .pd-header__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =========================================
   MOBILE MENU
   ========================================= */
.pd-mobile-menu {
    display: none;
    background-color: #1D1E1C;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.pd-mobile-menu--open {
    display: block;
}

.pd-mobile-menu__list {
    padding: 16px 0;
}

.pd-mobile-menu__list > li > a {
    font-family: 'Exo', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #ffffff;
    padding: 14px 24px;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background-color 0.2s ease;
}

.pd-mobile-menu__list > li > a:hover {
    background-color: rgba(255,255,255,0.05);
}

/* Submenú mobile */
.pd-mobile-menu__list > li > ul {
    background-color: rgba(255,255,255,0.05);
}

.pd-mobile-menu__list > li > ul > li > a {
    font-family: 'Exo', sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: rgba(255,255,255,0.8);
    padding: 12px 36px;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background-color 0.2s ease;
}

/* =========================================
   RESPONSIVE HEADER
   ========================================= */
@media (max-width: 768px) {
    .pd-container {
        padding: 0 24px;
    }

    .pd-header__top .pd-container {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }

    .pd-header__nav {
        display: none;
    }

    .pd-header__toggle {
        display: flex;
    }

    .pd-header__logo img {
        width: 160px;
    }
}



/* =========================================
   HERO
   ========================================= */
.pd-hero {
    position: relative;
    width: 100%;
    height: 800px;
    overflow: hidden;
}

.pd-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.pd-hero__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.pd-hero .pd-container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.pd-hero__content {
    padding-left: 100px;
}

.pd-hero__title {
    font-family: 'Exo', sans-serif;
    font-weight: 800;
    font-size: 70px;
    line-height: 80px;
    text-transform: uppercase;
    color: #ffffff;
    max-width: 824px;
}

/* --- Hero responsive --- */
@media (max-width: 768px) {
    .pd-hero {
        height: 500px;
    }

    .pd-hero__content {
        padding-left: 0;
    }

    .pd-hero__title {
        font-size: 36px;
        line-height: 44px;
    }
}




/* =========================================
   SERVICIOS ESPECIALIZADOS
   ========================================= */
.pd-servicios {
    background-color: #ffffff;
    padding: 40px 0;
    color: #1D1E1C;
}

.pd-servicios__titulo {
    font-family: 'Exo', sans-serif;
    font-weight: 800;
    font-size: 45px;
    line-height: 1;
    margin-bottom: 20px;
    color: #1D1E1C;
}

.pd-servicios__titulo--accent {
    color: #4CAA31;
}

/* Wrapper: card fija + swiper lado a lado */
.pd-servicios__slider-wrapper {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0;
}

/* Card fija */
.pd-servicios__card--fixed {
    flex-shrink: 0;
    width: 350px;
    position: relative;
    z-index: 2;
}

/* Controles arriba del swiper */
.pd-servicios__controls {
    position: absolute;
    top: -50px;
    left: 350px;
    display: flex;
    gap: 8px;
    z-index: 3;
}

.pd-servicios__prev,
.pd-servicios__next {
    position: relative;
    width: 50px;
    height: 50px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pd-servicios__prev img,
.pd-servicios__next img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pd-servicios__prev span,
.pd-servicios__next span {
    position: relative;
    z-index: 1;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
}

/* Swiper */
.pd-servicios__swiper {
    flex: 1;
    overflow: hidden;
    margin-top: 50px;
}

/* Cards */
.pd-servicios__card {
    width: 350px;
}

.pd-servicios__card-img img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.pd-servicios__card-btn {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    min-height: 60px;
    gap: 10px;
}

.pd-servicios__card-label {
    font-family: 'Exo', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    color: #ffffff;
    text-transform: uppercase;
}

/* Footer de la sección */
.pd-servicios__footer {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
    max-width: 606px;
}

.pd-servicios__desc {
    font-family: 'Exo', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1;
    color: #1D1E1C;
}

.pd-servicios__catalogo {
    display: inline-block;
}

.pd-servicios__catalogo-inner {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    color: #ffffff;
    font-family: 'Exo', sans-serif;
    font-weight: 600;
    font-size: 16px;
}

/* Texto central */
.pd-servicios__cta-texto {
    text-align: center;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pd-servicios__cta-texto p {
    font-family: 'Exo', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1;
    color: #1D1E1C;
}

.pd-servicios__cta-frase {
    color: #4CAA31 !important;
    font-size: 26px !important;
}

/* Botón CTA */
.pd-servicios__cta-btn {
    display: block;
    margin: 30px auto 0;
    background-color: #E6323B;
    color: #ffffff;
    font-family: 'Exo', sans-serif;
    font-weight: 600;
    font-size: 22px;
    text-transform: uppercase;
    padding: 20px 40px;
    text-align: center;
    max-width: 488px;
    transition: opacity 0.2s ease;
}

.pd-servicios__cta-btn:hover {
    opacity: 0.85;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .pd-servicios__titulo {
        font-size: 28px;
    }

    .pd-servicios__card--fixed {
        width: 75vw;
    }

    .pd-servicios__card {
        width: 75vw;
    }

    .pd-servicios__controls {
        left: 75vw;
        top: -45px;
    }

    .pd-servicios__cta-texto p {
        font-size: 16px;
    }

    .pd-servicios__cta-frase {
        font-size: 20px !important;
    }

    .pd-servicios__cta-btn {
        font-size: 16px;
        padding: 16px 24px;
    }
}