/*
Theme Name: Vestra Modular Theme
Theme URI: https://vestrasolutions.com/
Author: Vestra Solutions
Author URI: https://vestrasolutions.com/
Description: Tema modular de WordPress, adaptado para Decorinox. Especialistas en acero inoxidable, barandillas y proyectos a medida. Responsive y altamente personalizable.
Version: 1.0.0
Text Domain: vestra-modular
*/

/* --- CSS Variables (Modern Vensana Style) --- */
:root {
    --primary-color: #D97706; /* Copper */
    --secondary-color: #111827; /* Dark Steel */
    --accent-color: #B45309;
    --text-color: #374151; /* Slate */
    --text-light: #6B7280;
    --bg-light: #F4F7F6;
    --bg-glass: rgba(255, 255, 255, 0.75);
    --white: #ffffff;
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --section-padding: 100px 0;
    --radius: 20px;
    --radius-pill: 50px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 25px -3px rgba(0, 0, 0, 0.05), 0 4px 10px -2px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 20px 40px -5px rgba(0, 0, 0, 0.1), 0 10px 15px -5px rgba(0, 0, 0, 0.05);
}

/* --- Utilities (Glassmorphism & Animations) --- */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-sm);
}

.floating-badge {
    position: absolute;
    background: var(--white);
    padding: 12px 20px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-md);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--secondary-color);
    z-index: 10;
    animation: float 4s ease-in-out infinite;
}
.floating-badge i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.hover-lift {
    transition: var(--transition);
}
.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}
@keyframes pulse-soft {
    0% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(217, 119, 6, 0); }
    100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0); }
}
@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 0;
    display: flex;
}
.marquee-content {
    display: flex;
    animation: marquee 25s linear infinite;
    gap: 2rem;
}
.marquee-content span {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    text-transform: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
    box-shadow: var(--shadow-sm);
    letter-spacing: 0.01em;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #1F2937;
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    padding: 14px 38px;
    box-shadow: none;
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* --- Navigation & Off-Canvas --- */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition);
}
.menu-toggle:hover {
    color: var(--primary-color);
}

.offcanvas-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background-color: var(--secondary-color);
    z-index: 9999;
    transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: 5px 0 25px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}
.offcanvas-menu.is-open {
    left: 0;
}

.offcanvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.offcanvas-header .site-title a {
    font-size: 1.4rem;
}
.menu-close {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}
.menu-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.offcanvas-body {
    padding: 40px 20px;
    overflow-y: auto;
    flex-grow: 1;
}
.offcanvas-navigation ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.offcanvas-navigation a {
    color: var(--white);
    font-size: 1.6rem;
    font-weight: 700;
    display: block;
    text-transform: uppercase;
}
.offcanvas-navigation a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

.offcanvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease-in-out;
}
.offcanvas-overlay.is-active {
    opacity: 1;
    visibility: visible;
    backdrop-filter: blur(3px);
}
.offcanvas-contact-btn {
    width: 100%;
    margin-top: 30px;
}

/* --- Header --- */
.site-header {
    background-color: var(--secondary-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    margin: 0;
}
.site-title a {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.site-title span {
    color: var(--primary-color);
}
.custom-logo {
    max-height: 60px;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
}

.main-navigation a {
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
}

.main-navigation a:hover {
    color: var(--primary-color);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 25px;
}
.header-phone {
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
}
.header-phone i {
    color: var(--primary-color);
    margin-right: 8px;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    padding: 120px 0;
    background-color: var(--bg-light);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-content h1.hero-title {
    color: var(--secondary-color);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero-content h1.hero-title span {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p.hero-description {
    color: var(--text-color);
    font-size: 1.25rem;
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    z-index: 5;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: visible;
}

.hero-image-wrapper .hero-main-img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    width: 100%;
    object-fit: cover;
    max-height: 600px;
}

.badge-1 {
    top: -20px;
    left: -30px;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 30px;
    right: -20px;
    animation-delay: 2s;
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content h1.hero-title {
        font-size: 3rem;
    }
    .hero-buttons {
        justify-content: center;
    }
    .badge-1 { left: 10px; }
    .badge-2 { right: 10px; }
}

/* --- Services Section --- */
.services-section {
    padding: var(--section-padding);
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    gap: 30px;
}

.services-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.services-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.services-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 991px) {
    .services-grid.cols-2,
    .services-grid.cols-3,
    .services-grid.cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .services-grid.cols-2,
    .services-grid.cols-3,
    .services-grid.cols-4 {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 50px 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(217, 119, 6, 0.3);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin: 0 auto 25px;
    width: 80px;
    height: 80px;
    background: rgba(217, 119, 6, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.service-card p {
    color: var(--text-light);
}

/* --- Fleet Section --- */
.fleet-section {
    padding: var(--section-padding);
}

.fleet-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}
.fleet-desc {
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.8;
}

.fleet-img-fallback {
    width: 100%;
    height: 250px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-weight: 600;
    font-size: 1.2rem;
}

.fleet-grid {
    display: grid;
    gap: 30px;
}

.fleet-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.fleet-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.fleet-grid.cols-5 {
    grid-template-columns: repeat(5, 1fr);
}

.fleet-grid.cols-6 {
    grid-template-columns: repeat(6, 1fr);
}

@media (max-width: 991px) {
    .fleet-grid.cols-3,
    .fleet-grid.cols-4,
    .fleet-grid.cols-5,
    .fleet-grid.cols-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .fleet-grid.cols-3,
    .fleet-grid.cols-4,
    .fleet-grid.cols-5,
    .fleet-grid.cols-6 {
        grid-template-columns: 1fr;
    }
}

.fleet-card {
    text-align: center;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
}

.fleet-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.fleet-img-wrap img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.fleet-info {
    padding: 25px 20px;
}

.fleet-info h3 {
    margin-bottom: 0;
    color: var(--secondary-color);
    font-size: 1.4rem;
}

/* --- CTA Section --- */
.cta-section {
    background-color: var(--primary-color);
    padding: var(--section-padding);
    text-align: center;
}

.cta-section h2 {
    color: var(--secondary-color);
    font-size: 2.8rem;
    margin-bottom: 20px;
}
.cta-section p {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 35px;
    font-weight: 600;
}

/* --- Contact Section --- */
.contact-section {
    padding: var(--section-padding);
    background-color: var(--bg-light);
}
.contact-form-wrapper {
    max-width: var(--contact-form-max-width, 800px);
    margin: 0 auto;
    text-align: center;
}

.contact-map-wrapper {
    width: 100%;
    line-height: 0; /* Removes gap below iframe */
}
.contact-map-wrapper iframe {
    width: 100% !important;
    height: 450px !important;
    border: none;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--secondary-color);
    color: #a1a1aa;
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col-titles {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.25rem;
    font-weight: 600;
    font-family: var(--font-heading);
}

.footer-widget ul {
    list-style: none;
}
.footer-widget ul li {
    margin-bottom: 15px;
}
.footer-widget ul a {
    color: #a1a1aa;
    transition: var(--transition);
}
.footer-widget ul a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}
.footer-contact i {
    color: var(--primary-color);
    margin-top: 6px;
    font-size: 1.1rem;
}

.site-info {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
}

.footer-legal-menu ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}
.footer-legal-menu a {
    color: var(--text-light);
    font-size: 14px;
}
.footer-legal-menu a:hover {
    color: var(--primary-color);
}

.copyright-text {
    font-size: 14px;
    color: #999;
    margin-bottom: 20px;
}

.footer-bottom-image {
    margin: 20px auto;
    display: flex;
    justify-content: center;
}
.footer-bottom-image img {
    max-width: 100%;
    height: auto;
    /* max-height removed to show image at full native size */
}

.footer-bottom-shortcode {
    margin-top: 20px;
    font-size: 14px;
}

.footer-bottom-image img{
	max-width:700px;
	width:100%;
	margin: 20px auto 0;
	background:white;
}
.gtranslate_wrapper  {
	position: fixed !important;
	left: 20px;
	bottom: 15px;
	z-index:9999
}





/* --- Inner Page Hero --- */
.inner-page-container {
    padding: 60px 15px;
}
.inner-hero-section {
    padding: 120px 0 80px;
    background-color: var(--secondary-color);
    text-align: center;
    color: var(--white);
    position: relative;
    background-size: cover;
    background-position: center;
}
.inner-hero-section.has-bg {
    background-image: var(--hero-bg);
}
.inner-hero-section.has-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(17,17,17,0.8);
    z-index: 1;
}
.inner-hero-content {
    position: relative;
    z-index: 2;
}
.inner-hero-content .page-title {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 15px;
}
.breadcrumbs {
    font-size: 1.1rem;
    color: #ccc;
    font-weight: 600;
}
.breadcrumbs a {
    color: var(--primary-color);
}
.breadcrumbs .sep {
    margin: 0 10px;
    font-size: 0.9rem;
}
.breadcrumbs .current {
    color: var(--white);
}

/* --- About Pages Layout --- */
.section-subtitle {
    display: inline-block;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 2px;
}
.section-title-left {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

/* History */
.about-history-section {
    padding: var(--section-padding);
}
.about-history-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-history-image img {
    border-radius: 8px;
    box-shadow: -20px 20px 0 var(--primary-color);
    width: 100%;
}
.placeholder-box {
    width: 100%;
    height: 400px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #adb5bd;
    border-radius: 8px;
    box-shadow: -20px 20px 0 var(--primary-color);
}
.history-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Stats */
.about-stats-section {
    background-color: var(--primary-color);
    padding: 80px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}
.stat-card i {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}
.stat-img {
    max-width: 60px;
    height: auto;
    margin: 0 auto 15px;
    display: block;
}
.stat-number {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 0;
    font-weight: 800;
}
.stat-label {
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--secondary-color);
}

/* Why Choose Us */
.about-why-section {
    padding: var(--section-padding);
    background-color: var(--bg-light);
}
.about-why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.why-desc {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 30px;
}
.why-list {
    list-style: none;
}
.why-list li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.why-list li i {
    color: var(--primary-color);
    font-size: 1.2rem;
    background: var(--secondary-color);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.about-why-image {
    background-color: var(--secondary-color);
    border-radius: 8px;
    height: 480px;
    position: relative;
}
.why-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 8px;
    z-index: 1;
}
.why-decoration-box {
    z-index: 2;
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border-top: 5px solid var(--primary-color);
    text-align: center;
}
.why-decoration-box i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* --- Contact Section --- */





.contact-section {
    padding: var(--section-padding);
    background-color: var(--bg-light);
}
.contact-split-layout {
    display: grid;
    gap: 50px;
    align-items: center;
}
.contact-split-layout.has-two-cols {
    grid-template-columns: 1fr 1fr;
}
.contact-split-layout.is-centered {
    grid-template-columns: 1fr;
    text-align: center;
}
.contact-split-layout.is-centered .contact-info-container {
    align-items: center;
}
.contact-split-layout.is-centered .contact-info-col {
    text-align: center;
}
.contact-split-layout.is-centered .contact-item {
    justify-content: center;
}
.contact-split-layout.is-centered .contact-form-wrapper {
    margin: 0 auto;
}
.contact-info-col.no-form {
    max-width: var(--contact-info-max-width, 800px);
    margin: 0 auto;
}
.contact-info-col .section-title-left {
    margin-bottom: 20px;
}
.contact-desc {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}
.contact-info-container {
    display: flex;
    flex-direction: column;
    gap: var(--contact-gap, 20px);
    margin-top: 30px;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    font-weight: 500;
}
a.contact-item.contact-link {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}
a.contact-item.contact-link:hover {
    color: var(--primary-color);
}
.contact-item i {
    width: var(--contact-icon-size, 45px);
    height: var(--contact-icon-size, 45px);
    font-size: var(--contact-icon-font, 18px);
    background: var(--primary-color);
    color: var(--secondary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}
.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    max-width: var(--contact-form-max-width, 800px);
    width: 100%;
}
.contact-map-section {
    line-height: 0;
}
.contact-map-wrapper iframe {
    width: 100%;
    height: 450px;
    border: 0;
}

.contact-split-layout.has-two-cols {
	display:grid;
	grid: 1fr / 1fr 1fr;
	gap: 50px
}
html .contact-form-wrapper {
	text-align: start
}

/* --- Fallback Pages --- */
.fallback-page-container {
    padding: var(--section-padding);
    text-align: center;
}

/* --- UI/UX Pro Max Modern Styles --- */
.bento-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-flow: dense;
}
.bento-grid .service-card:nth-child(4n+1) {
    grid-column: span 2;
    grid-row: span 2;
}
@media (max-width: 768px) {
    .bento-grid .service-card:nth-child(4n+1) {
        grid-column: span 1;
        grid-row: span 1;
    }
}
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-top: 5px solid var(--primary-color);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}
.stat-card {
    position: relative;
    overflow: hidden;
    padding: 40px 20px;
    border-radius: 12px;
}
.stat-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8rem;
    font-weight: 900;
    color: rgba(17, 24, 39, 0.05); /* Dark Steel subtle watermark */
    z-index: 0;
    pointer-events: none;
    line-height: 1;
    width: 100%;
}
.stat-content {
    position: relative;
    z-index: 1;
}

/* --- WP Block Gallery Premium Styles --- */
.trabajo-content .wp-block-gallery {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 15px !important;
    margin-bottom: 4rem;
    align-items: stretch;
}
.trabajo-content .wp-block-gallery .wp-block-image {
    margin: 0 !important;
    width: 100% !important;
    border-radius: 6px; /* Redondeado minimo */
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    cursor: zoom-in !important;
}
.trabajo-content .wp-block-gallery .wp-block-image::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}
.trabajo-content .wp-block-gallery .wp-block-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 6px;
    display: block;
}
.trabajo-content .wp-block-gallery .wp-block-image:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.trabajo-content .wp-block-gallery .wp-block-image:hover::after {
    opacity: 1;
}
.trabajo-content .wp-block-gallery .wp-block-image:hover img {
    transform: scale(1.03);
}

/* --- Vestra Lightbox --- */
.vestra-lightbox {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.vestra-lightbox.active {
    opacity: 1;
    visibility: visible;
}
.vestra-lightbox img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    object-fit: contain;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.vestra-lightbox.active img {
    transform: scale(1);
}
.vestra-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 2;
}
.vestra-lightbox-close:hover {
    color: var(--primary-color);
}
.vestra-lightbox-prev,
.vestra-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
    padding: 20px;
    user-select: none;
    opacity: 0.7;
}
.vestra-lightbox-prev {
    left: 20px;
}
.vestra-lightbox-next {
    right: 20px;
}
.vestra-lightbox-prev:hover,
.vestra-lightbox-next:hover {
    color: var(--primary-color);
    opacity: 1;
}
.vestra-lightbox-caption {
    margin-top: 20px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 400;
    text-align: center;
    max-width: 80%;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .header-cta {
        display: none;
    }
    .main-navigation {
        display: none;
    }
    .menu-toggle {
        display: block;
    }


}
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .about-history-grid,
    .about-why-grid {
        grid-template-columns: 1fr;
    }
    .why-decoration-box {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .contact-split-layout.has-two-cols {
        grid-template-columns: 1fr;
    }
    
}
