/* ==========================================================================
   ProHomes Sections Styles
   Specific styling for each website section
   ========================================================================== */

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.ph-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.ph-hero-fullscreen {
    min-height: 100vh;
}

.ph-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.ph-hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ph-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(27, 43, 79, 0.85) 0%,
            rgba(27, 43, 79, 0.7) 50%,
            rgba(27, 43, 79, 0.6) 100%);
    z-index: 1;
}

.ph-hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--ph-container-lg);
    padding: var(--ph-space-2xl);
    color: var(--ph-white);
}

.ph-hero-subtitle {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--ph-space-sm);
    opacity: 0.9;
}

.ph-hero-title {
    color: var(--ph-white);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: var(--ph-space-md);
}

.ph-hero-title span {
    display: block;
}

.ph-hero-title .ph-text-accent {
    color: var(--ph-blue-light);
}

.ph-hero-description {
    font-size: 1.125rem;
    line-height: 1.7;
    max-width: 600px;
    margin-bottom: var(--ph-space-xl);
    opacity: 0.9;
}

.ph-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ph-space-sm);
}

/* Custom fix to perfectly place text over center of video/logo independent of viewport */
.addaptive-negative-margin {
    margin-top: -4.9rem !important;
}

@media (max-width: 1000px) {
    .addaptive-negative-margin {
        margin-top: -3.5rem !important;
    }
}

@media (max-width: 768px) {

    /* Center the columns that contain the logo */
    .wp-block-cover__inner-container .wp-block-columns {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .wp-block-cover__inner-container .wp-block-column {
        flex-basis: 100% !important;
        width: 100% !important;
        text-align: center;
    }

    /* Logo scaling correctly and ensuring zero bottom space */
    .ph-safari-fallback-logo {
        width: 16em !important;
        max-width: 80vw !important;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 0 !important;
        /* Removes the inline 2rem spacing */
        display: block !important;
    }

    /* Reduce vertical space to paragraph since margin-bottom is 0 */
    .addaptive-negative-margin {
        margin-top: -1.5rem !important;
    }

    /* Fix heading line heights (overriding inline 0.7) */
    .wp-block-cover__inner-container h1.wp-block-heading {
        line-height: 1.15 !important;
        padding-bottom: 0 !important;
        margin-bottom: 0.5rem !important;
    }

    /* Remove <br> tags so the paragraph uses full width */
    .wp-block-cover__inner-container p br {
        display: none !important;
    }

    /* Reduce top padding of the main hero group */
    .wp-block-cover__inner-container>.wp-block-group {
        padding-top: 1.5rem !important;
    }

    /* Hide spacer elements and empty layout columns to tighten spacing */
    .wp-block-cover__inner-container .wp-block-spacer,
    .wp-block-cover__inner-container .wp-block-column:empty {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .ph-safari-fallback-logo {
        width: 18em !important;
        max-width: 50vw !important;
    }

    .addaptive-negative-margin {
        margin-top: -1rem !important;
    }
}

@media (max-width: 420px) {
    .addaptive-negative-margin {
        margin-top: -2rem !important;
    }
}

/* ==========================================================================
   QUIÉNES SOMOS / ABOUT SECTION
   ========================================================================== */

.ph-about-section {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

.ph-about-image {
    position: relative;
    overflow: hidden;
}

.ph-about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ph-about-content {
    background: var(--ph-blue);
    color: var(--ph-white);
    padding: var(--ph-space-3xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ph-about-content h2 {
    color: var(--ph-white);
    margin-bottom: var(--ph-space-md);
}

.ph-about-content p {
    opacity: 0.9;
    margin-bottom: var(--ph-space-lg);
}

.ph-about-content .ph-btn-link {
    color: var(--ph-white);
}

/* About Section: ensure vertical centering for columns */
.ph-about-section .wp-block-column:last-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ph-about-section .ph-btn-link a {
    text-decoration: underline;
    font-weight: 600;
}

/* Alternate layout */
.ph-about-section.ph-layout-reverse {
    direction: rtl;
}

.ph-about-section.ph-layout-reverse>* {
    direction: ltr;
}

/* ==========================================================================
   SOLUCIONES SECTION
   ========================================================================== */

.ph-solutions-section {
    padding: var(--ph-space-4xl) 0;
    text-align: center;
}

.ph-solutions-header {
    max-width: var(--ph-container-md);
    margin: 0 auto var(--ph-space-3xl);
}

.ph-solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--ph-space-lg);
    max-width: var(--ph-container-xl);
    margin: 0 auto;
    padding: 0 var(--ph-space-md);
}

.ph-solution-card {
    background: var(--ph-white);
    border-radius: var(--ph-radius-lg);
    padding: var(--ph-space-xl);
    box-shadow: var(--ph-shadow-md);
    transition: all var(--ph-transition-base);
    text-align: left;
}

.ph-solution-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--ph-shadow-xl);
}

.ph-solution-icon {
    width: 60px;
    height: 60px;
    background: var(--ph-blue);
    border-radius: var(--ph-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--ph-space-md);
    color: var(--ph-white);
    font-size: 1.5rem;
}

.ph-solution-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--ph-space-sm);
}

.ph-solution-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ph-solution-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--ph-gray-100);
    font-size: 0.9375rem;
    color: var(--ph-gray-600);
}

.ph-solution-card li:last-child {
    border-bottom: none;
}

/* Full-width solutions teaser with background */
.ph-solutions-teaser {
    position: relative;
    padding: var(--ph-space-4xl) var(--ph-space-md);
    text-align: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.ph-solutions-teaser::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
}

.ph-solutions-teaser-content {
    position: relative;
    z-index: 1;
    max-width: var(--ph-container-md);
    margin: 0 auto;
}

/* Dark background solutions teaser (home page) */
.ph-soluciones-teaser {
    background: var(--ph-navy);
    color: var(--ph-white);
    text-align: center;
}

.ph-soluciones-teaser h2 {
    color: var(--ph-gray-50);
    margin-bottom: var(--ph-space-md);
}

.ph-soluciones-teaser p {
    color: var(--ph-gray-50);
}

.ph-soluciones-teaser .ph-btn-link a {
    text-decoration: underline;
    font-weight: 600;
    transition: opacity var(--ph-transition-fast);
}

/* .ph-soluciones-teaser .ph-btn-link a:hover {
    opacity: 0.8;
} */

/* ==========================================================================
   MÉTODO PROHOMES SECTION
   ========================================================================== */

.ph-method-section {
    position: relative;
    padding: var(--ph-space-4xl) 0;
    background-size: cover;
    background-position: center;
}

.ph-method-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(27, 43, 79, 0.95) 0%,
            rgba(27, 43, 79, 0.8) 100%);
}

.ph-method-content {
    position: relative;
    z-index: 1;
    max-width: var(--ph-container-lg);
    margin: 0 auto;
    padding: 0 var(--ph-space-md);
    color: var(--ph-white);
    text-align: center;
}

.ph-method-content h2 {
    color: var(--ph-white);
    margin-bottom: var(--ph-space-md);
}

.ph-method-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--ph-space-lg);
    margin-top: var(--ph-space-3xl);
}

.ph-method-pillar {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--ph-radius-lg);
    padding: var(--ph-space-xl);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ph-method-pillar-tag {
    display: inline-block;
    background: var(--ph-blue);
    color: var(--ph-white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--ph-radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--ph-space-sm);
}

.ph-method-pillar h3 {
    color: var(--ph-white);
    font-size: 1.125rem;
}

.ph-method-pillar p {
    font-size: 0.9375rem;
    opacity: 0.85;
    margin-bottom: 0;
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */

.ph-testimonials-section {
    background: var(--ph-blue);
    padding: var(--ph-space-4xl) 0;
    overflow: hidden;
}

.ph-testimonials-header {
    text-align: center;
    color: var(--ph-white);
    margin-bottom: var(--ph-space-2xl);
}

.ph-testimonials-header h2 {
    color: var(--ph-white);
}

.ph-testimonials-slider {
    display: flex;
    gap: var(--ph-space-lg);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: var(--ph-space-md);
    margin: 0 calc(var(--ph-space-md) * -1);
}

.ph-testimonials-slider::-webkit-scrollbar {
    display: none;
}

.ph-testimonial-card {
    flex: 0 0 350px;
    scroll-snap-align: start;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 0;
    padding: var(--ph-space-xl);
    box-shadow: none;
}

/* Override for testimonials to ensure transparent background and white border */
.ph-testimonials-section .ph-testimonial-card {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 1) !important;
}

.ph-testimonials-section .ph-testimonial-card p {
    color: var(--ph-white) !important;
}

.ph-testimonial-quote-icon {
    font-family: Georgia, serif;
    font-size: 4rem;
    line-height: 1;
    color: var(--ph-blue);
    opacity: 0.3;
    margin-bottom: calc(var(--ph-space-sm) * -1);
}

.ph-testimonial-quote {
    font-size: 1.0625rem;
    font-style: italic;
    color: var(--ph-gray-700);
    line-height: 1.6;
    margin-bottom: var(--ph-space-md);
    border: none;
    padding: 0;
}

.ph-testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--ph-space-sm);
}

.ph-testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.ph-testimonial-info {
    display: flex;
    flex-direction: column;
}

.ph-testimonial-name {
    font-family: var(--ph-font-heading);
    font-weight: 600;
    font-style: normal;
    color: var(--ph-navy);
}

.ph-testimonial-company {
    font-size: 0.875rem;
    color: var(--ph-gray-500);
}

/* Testimonials navigation dots */
.ph-testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: var(--ph-space-lg);
}

.ph-testimonials-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all var(--ph-transition-fast);
}

.ph-testimonials-dot.active,
.ph-testimonials-dot:hover {
    background: var(--ph-white);
    transform: scale(1.2);
}

/* Testimonials navigation arrows */
.ph-testimonials-arrows {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: var(--ph-space-md);
}

.ph-testimonials-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: var(--ph-white);
    cursor: pointer;
    transition: all var(--ph-transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: bold;
}

.ph-testimonials-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: var(--ph-white);
    transform: scale(1.1);
}

.ph-testimonials-arrow:active {
    transform: scale(0.95);
}

.ph-testimonials-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ==========================================================================
   RESULTS / STATISTICS SECTION
   ========================================================================== */

.ph-results-section {
    position: relative;
    padding: var(--ph-space-4xl) 0;
    background-color: var(--ph-navy);
    color: var(--ph-white);
}

.ph-results-section.ph-has-video {
    min-height: 600px;
}

.ph-results-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ph-results-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ph-results-video::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(27, 43, 79, 0.8);
}

.ph-results-content {
    position: relative;
    z-index: 1;
    max-width: var(--ph-container-xl);
    margin: 0 auto;
    padding: 0 var(--ph-space-md);
}

.ph-results-header {
    text-align: center;
    margin-bottom: var(--ph-space-3xl);
}

.ph-results-header h2 {
    color: var(--ph-white);
}

.ph-results-header p {
    opacity: 0.8;
}

/* Statistics Grid */
.ph-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--ph-space-xl);
}

.ph-stat-item {
    text-align: center;
    padding: var(--ph-space-lg);
}

.ph-stat-number {
    font-family: var(--ph-font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1;
    margin-bottom: var(--ph-space-xs);
    color: var(--ph-white);
}

.ph-stat-label {
    font-size: 0.9375rem;
    opacity: 0.8;
    max-width: 200px;
    margin: 0 auto;
}

/* Counter animation styles */
.ph-counter-item {
    text-align: center;
}

.ph-counter-number {
    font-family: var(--ph-font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 600;
    line-height: 1;
    color: var(--ph-navy);
}

.ph-counter-prefix,
.ph-counter-suffix {
    font-size: 0.7em;
}

.ph-counter-label {
    font-size: 0.9375rem;
    color: var(--ph-gray-500);
    margin-top: var(--ph-space-xs);
}

/* White background variant */
.ph-stats-white .ph-counter-number {
    color: var(--ph-navy);
}

/* ==========================================================================
   PROYECTOS SECTION
   ========================================================================== */

.ph-projects-section {
    position: relative;
    padding: var(--ph-space-4xl) 0;
    background-size: cover;
    background-position: center;
}

.ph-projects-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to left,
            transparent 0%,
            rgba(27, 43, 79, 0.9) 50%);
}

.ph-projects-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    padding: 0 var(--ph-space-md);
    color: var(--ph-white);
}

.ph-projects-content h2 {
    color: var(--ph-white);
}

.ph-projects-content p {
    opacity: 0.9;
    margin-bottom: var(--ph-space-lg);
}

/* Projects Grid */
.ph-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--ph-space-lg);
    padding: var(--ph-space-4xl) var(--ph-space-md);
    max-width: var(--ph-container-xl);
    margin: 0 auto;
}

.ph-project-card {
    position: relative;
    border-radius: var(--ph-radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.ph-project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--ph-transition-slow);
}

.ph-project-card:hover img {
    transform: scale(1.05);
}

.ph-project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--ph-space-lg);
    background: linear-gradient(to top,
            rgba(27, 43, 79, 0.95) 0%,
            transparent 100%);
    color: var(--ph-white);
}

.ph-project-title {
    font-family: var(--ph-font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.ph-project-location {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* ==========================================================================
   EQUIPO / TEAM SECTION
   ========================================================================== */

/* Equipo Teaser (Home page) */
.ph-equipo-teaser {
    position: relative;
    background-size: cover;
    background-position: center;
}

.ph-equipo-teaser .wp-block-cover__inner-container {
    width: 100%;
    max-width: 100%;
}

.ph-equipo-teaser h2,
.ph-equipo-teaser p {
    text-align: right;
}

.ph-equipo-teaser .ph-btn-link a {
    text-decoration: underline;
    font-weight: 600;
    transition: opacity var(--ph-transition-fast);
}

/* .ph-equipo-teaser .ph-btn-link a:hover {
    opacity: 0.8;
} */

/* Full Team Section (Team page) */
.ph-team-section {
    position: relative;
    padding: var(--ph-space-4xl) 0;
    background-size: cover;
    background-position: center top;
}

.ph-team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(27, 43, 79, 0.8) 100%);
}

.ph-team-content {
    position: relative;
    z-index: 1;
    max-width: var(--ph-container-md);
    margin: 0 auto;
    padding: var(--ph-space-4xl) var(--ph-space-md);
    text-align: center;
    color: var(--ph-white);
}

.ph-team-content h2 {
    color: var(--ph-white);
}

/* Team Grid */
.ph-team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--ph-space-lg);
    max-width: var(--ph-container-xl);
    margin: 0 auto;
    padding: 0 var(--ph-space-md);
}

.ph-team-card {
    text-align: center;
}

.ph-team-photo {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    margin-bottom: var(--ph-space-md);
}

.ph-team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--ph-transition-slow);
}

.ph-team-card:hover .ph-team-photo img {
    transform: scale(1.05);
}

.ph-team-name {
    font-family: var(--ph-font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ph-navy);
    margin-bottom: 0.25rem;
}

.ph-team-role {
    font-size: 0.875rem;
    color: var(--ph-gray-500);
}

/* ==========================================================================
   CTA / HABLEMOS SECTION
   ========================================================================== */

.ph-cta-section {
    padding: var(--ph-space-4xl) var(--ph-space-md);
    text-align: center;
    background: var(--ph-gray-100);
}

.ph-cta-content {
    max-width: var(--ph-container-md);
    margin: 0 auto;
}

.ph-cta-section h2 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 400;
    line-height: 1;
    color: var(--ph-gray-800);
    margin-bottom: var(--ph-space-md);
}

.ph-cta-section p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--ph-gray-800);
}

.ph-cta-section .ph-btn-link a {
    text-decoration: underline;
    font-weight: 600;
    transition: opacity var(--ph-transition-fast);
}

/* .ph-cta-section .ph-btn-link a:hover {
    opacity: 0.7;
} */

/* Dark variant */
.ph-cta-dark {
    background: var(--ph-navy);
    color: var(--ph-white);
}

.ph-cta-dark h2 {
    color: var(--ph-white);
}

.ph-cta-dark p {
    color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   FILOSOFÍA / VALUES SECTION
   ========================================================================== */

.ph-values-section {
    padding: var(--ph-space-4xl) var(--ph-space-md);
    background: var(--ph-white);
}

.ph-values-header {
    text-align: center;
    max-width: var(--ph-container-md);
    margin: 0 auto var(--ph-space-3xl);
}

.ph-values-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--ph-space-lg);
    max-width: var(--ph-container-xl);
    margin: 0 auto;
}

.ph-value-card {
    text-align: center;
    padding: var(--ph-space-lg);
}

.ph-value-icon {
    width: 80px;
    height: 80px;
    background: var(--ph-gray-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--ph-space-md);
    font-size: 2rem;
    color: var(--ph-blue);
}

.ph-value-title {
    font-family: var(--ph-font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ph-navy);
}

/* ==========================================================================
   CONTACT FORM SECTION
   ========================================================================== */

.ph-contact-section {
    padding: var(--ph-space-4xl) var(--ph-space-md);
}

.ph-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--ph-space-3xl);
    max-width: var(--ph-container-xl);
    margin: 0 auto;
}

.ph-contact-info h2 {
    margin-bottom: var(--ph-space-md);
}

.ph-contact-details {
    margin-top: var(--ph-space-xl);
}

.ph-contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--ph-space-md);
    margin-bottom: var(--ph-space-md);
}

.ph-contact-icon {
    width: 40px;
    height: 40px;
    background: var(--ph-blue);
    border-radius: var(--ph-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ph-white);
    flex-shrink: 0;
}

.ph-contact-form {
    background: var(--ph-gray-50);
    padding: var(--ph-space-xl);
    border-radius: var(--ph-radius-lg);
}

.ph-form-group {
    margin-bottom: var(--ph-space-md);
}

.ph-form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--ph-navy);
}

.ph-form-input,
.ph-form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--ph-gray-200);
    border-radius: var(--ph-radius-md);
    font-family: var(--ph-font-body);
    font-size: 1rem;
    transition: border-color var(--ph-transition-fast);
}

.ph-form-input:focus,
.ph-form-textarea:focus {
    outline: none;
    border-color: var(--ph-blue);
}

.ph-form-textarea {
    resize: vertical;
    min-height: 150px;
}

/* ==========================================================================
   FOOTER STYLES
   ========================================================================== */

.ph-footer {
    background: var(--ph-navy);
    color: var(--ph-white);
    padding: var(--ph-space-3xl) var(--ph-space-md) var(--ph-space-lg);
}

.ph-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--ph-space-xl);
    max-width: var(--ph-container-xl);
    margin: 0 auto;
    padding-bottom: var(--ph-space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ph-footer-brand p {
    opacity: 0.8;
    font-size: 0.9375rem;
    max-width: 300px;
}

.ph-footer h4 {
    color: var(--ph-white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--ph-space-md);
}

.ph-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ph-footer-links li {
    margin-bottom: 0.75rem;
}

.ph-footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
    transition: color var(--ph-transition-fast);
}

.ph-footer-links a:hover {
    color: var(--ph-white);
}

.ph-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--ph-container-xl);
    margin: var(--ph-space-lg) auto 0;
    font-size: 0.875rem;
    opacity: 0.7;
}

.ph-footer-legal {
    display: flex;
    gap: var(--ph-space-md);
}

.ph-footer-legal a {
    color: rgba(255, 255, 255, 0.7);
}

.ph-footer-legal a:hover {
    color: var(--ph-white);
}

/* ==========================================================================
   GUTENBERG BLOCK OVERRIDES
   ========================================================================== */

/* Cover block */
.wp-block-cover.ph-hero-cover {
    min-height: 90vh;
    align-items: center;
}

.wp-block-cover.ph-hero-cover .wp-block-cover__inner-container {
    max-width: var(--ph-container-lg);
    padding: var(--ph-space-2xl);
}

/* Columns block */
.wp-block-columns.ph-two-column-layout {
    gap: var(--ph-space-3xl);
}

/* Group block */
.wp-block-group.ph-section-group {
    padding: var(--ph-space-4xl) var(--ph-space-md);
}

.wp-block-group.ph-section-group.has-background {
    padding: var(--ph-space-4xl) var(--ph-space-md);
}

/* Buttons block */
.wp-block-buttons.ph-hero-buttons {
    gap: var(--ph-space-sm);
}

/* ==========================================================================
   FIXES FOR LINKS AND ALIGNMENT
   ========================================================================== */

/* Prevent double arrows on links */
.ph-btn-link a::after {
    content: none !important;
}

/* Ensure centered links are truly centered */
.ph-btn-link.has-text-align-center,
p.has-text-align-center.ph-btn-link {
    text-align: center !important;
}

/* Equipo teaser height adjustment removed - handled in fixes.css */