/*
Theme Name: Aljadin Definitivo
Theme URI: https://aljardin.com
Author: Aljardín Ingenieros S.L.
Author URI: https://aljardin.com
Description: Tema profesional para empresa de diseño, paisajismo y mantenimiento de jardines en Málaga. Optimizado para SEO, accesibilidad y rendimiento. Totalmente modificable desde WordPress.
Version: 1.0.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aljadin-nuevo
Tags: one-column, custom-colors, custom-menu, custom-logo, featured-images, theme-options, translation-ready, accessibility-ready, seo-friendly
*/

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --green-primary: #2D5A3D;
    --green-dark: #1E3D2A;
    --green-light: #3A7A52;
    --cream: #F8F6F3;
    --cream-dark: #F0EDE8;
    --text-dark: #1A1A1A;
    --text-gray: #666666;
    --text-light: #888888;
    --white: #ffffff;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
}

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

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

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:focus-visible {
    outline: 2px solid var(--green-primary);
    outline-offset: 2px;
}

button {
    font-family: inherit;
    cursor: pointer;
}

button:focus-visible {
    outline: 2px solid var(--green-primary);
    outline-offset: 2px;
}

/* Skip to content link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--green-primary);
    color: var(--white);
    padding: 8px 16px;
    z-index: 9999;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* ============================================
   TYPOGRAPHY - SEO OPTIMIZED H-TAGS
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    line-height: 1.2;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

h5 {
    font-size: 1.125rem;
    font-weight: 600;
}

h6 {
    font-size: 1rem;
    font-weight: 600;
}

@media (min-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }
    h3 { font-size: 1.75rem; }
}

p {
    margin-bottom: 1rem;
    color: var(--text-gray);
}

.font-serif {
    font-family: var(--font-serif);
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--green-primary);
    margin-bottom: 0.5rem;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 1024px) {
    .container { padding: 0 2rem; }
}

.section {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .section { padding: 5rem 0; }
}

.site-main {
    flex: 1;
}

/* ============================================
   HEADER - ACCESSIBLE - EXACTO COMO ORIGINAL
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.3s ease;
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.header-transparent {
    background: transparent;
    box-shadow: none;
}

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

@media (min-width: 1024px) {
    .header-inner {
        padding: 1rem 0;
    }
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.logo-text {
    display: none;
}

@media (min-width: 640px) {
    .logo-text { display: block; }
}

.logo-name {
    font-weight: 600;
    font-size: 1.125rem;
    display: block;
}

.logo-subtitle {
    font-size: 0.75rem;
    opacity: 0.8;
    display: block;
}

.header-transparent .logo-name,
.header-transparent .logo-subtitle {
    color: var(--white);
}

.header-solid .logo-name,
.header-solid .logo-subtitle {
    color: var(--text-dark);
}

/* Navigation - EXACTO COMO ORIGINAL SIN PUNTOS */
.nav-desktop {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .nav-desktop { display: flex; }
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}

.header-transparent .nav-link {
    color: rgba(255,255,255,0.8);
}

.header-transparent .nav-link:hover,
.header-transparent .nav-link-active {
    color: var(--white);
    border-bottom: 2px solid var(--white);
    padding-bottom: 0.25rem;
}

.header-solid .nav-link {
    color: var(--text-gray);
}

.header-solid .nav-link:hover,
.header-solid .nav-link-active {
    color: var(--green-primary);
    border-bottom: 2px solid var(--green-primary);
    padding-bottom: 0.25rem;
}

/* Header Contact - EXACTO COMO ORIGINAL */
.header-contact {
    display: none;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.875rem;
}

@media (min-width: 1024px) {
    .header-contact { display: flex; }
}

.header-email,
.header-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.2s;
}

.header-transparent .header-email {
    color: rgba(255,255,255,0.8);
}

.header-transparent .header-email:hover {
    opacity: 1;
}

.header-transparent .header-phone {
    color: var(--white);
    font-weight: 600;
}

.header-solid .header-email {
    color: var(--text-gray);
    opacity: 0.8;
}

.header-solid .header-email:hover {
    opacity: 1;
}

.header-solid .header-phone {
    color: var(--text-dark);
    font-weight: 600;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: block;
    padding: 0.5rem;
    background: none;
    border: none;
    color: var(--text-dark);
}

@media (min-width: 1024px) {
    .mobile-menu-toggle { display: none; }
}

.header-transparent .mobile-menu-toggle {
    color: var(--white);
}

.mobile-menu {
    display: none;
    background: var(--white);
    border-top: 1px solid #eee;
    padding: 1rem 0;
}

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

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-gray);
    transition: all 0.2s;
}

.mobile-nav-link:hover,
.mobile-nav-link-active {
    background: var(--green-primary);
    color: var(--white);
}

/* ============================================
   BUTTONS - ACCESSIBLE
   ============================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-dark) 100%);
    color: var(--white);
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.025em;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(45, 90, 61, 0.4);
    text-decoration: none;
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(45, 90, 61, 0.5);
    background: linear-gradient(135deg, var(--green-light) 0%, var(--green-primary) 100%);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--green-primary);
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 9999px;
    border: 2px solid var(--green-primary);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--green-primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-secondary-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    color: var(--white);
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 9999px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-secondary-white:hover,
.btn-secondary-white:focus {
    background: rgba(255, 255, 255, 0.95);
    color: var(--green-primary);
    border-color: var(--white);
    transform: translateY(-3px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    max-width: 48rem;
    padding: 0 1rem;
}

.hero-content h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.hero-content p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    color: var(--white);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* ============================================
   FOOTER - ACCESSIBLE
   ============================================ */
.site-footer {
    background: var(--white);
    border-top: 1px solid #e5e7eb;
}

.certifications-bar {
    background: var(--cream);
    padding: 1.5rem 0;
}

.certifications-bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .certifications-bar-inner { gap: 3rem; }
}

@media (min-width: 1024px) {
    .certifications-bar-inner { gap: 3rem; }
}

.certifications-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.certification-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.certification-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--green-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.certification-item span {
    font-size: 0.875rem;
    font-weight: 500;
}

.footer-main {
    padding: 3rem 0 4rem;
}

.footer-grid {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    text-decoration: none;
}

.footer-logo-name {
    font-weight: 600;
    font-size: 1.125rem;
    display: block;
}

.footer-logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-gray);
    display: block;
}

.footer-description {
    font-size: 0.875rem;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-nav-column h4 {
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.footer-nav-column ul {
    list-style: none;
}

.footer-nav-column ul li {
    margin-bottom: 0.75rem;
}

.footer-nav-column ul a {
    font-size: 0.875rem;
    color: var(--text-gray);
    transition: color 0.2s;
}

.footer-nav-column ul a:hover {
    color: var(--green-primary);
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-contact-list svg {
    color: var(--green-primary);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.kit-digital-banner {
    background: #1a1a2e;
    padding: 2.5rem 0;
}

.kit-digital-inner {
    max-width: 2400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.kit-digital-inner img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.footer-bottom {
    border-top: 1px solid #e5e7eb;
    padding: 1.5rem 0;
}

.footer-bottom .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom .container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.footer-legal a {
    font-size: 0.875rem;
    color: var(--text-gray);
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: var(--green-primary);
}

/* ============================================
   FORMS - ACCESSIBLE
   ============================================ */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--green-primary);
    box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.1);
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center {
    text-align: center;
}

.badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: #f3f4f6;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-dark);
}

.badge-green {
    background: rgba(45, 90, 61, 0.1);
    color: var(--green-primary);
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --green-primary: #1a5a2a;
        --text-gray: #333333;
    }
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--green-primary);
    outline-offset: 2px;
}

/* ============================================
   ADDITIONAL COMPONENTS
   ============================================ */
.services-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .services-grid { grid-template-columns: repeat(4, 1fr); }
}

.service-card {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-card-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-card-image img {
    transform: scale(1.05);
}

.service-card-content {
    padding: 1.25rem;
}

.service-card-content h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.service-card-content p {
    font-size: 0.875rem;
    color: var(--text-gray);
}

.works-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .works-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .works-grid { grid-template-columns: repeat(4, 1fr); }
}

.work-card {
    display: block;
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.work-card:hover {
    transform: translateY(-4px);
}

.work-card-image {
    position: relative;
    aspect-ratio: 4/3;
}

.work-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.work-card:hover .work-card-image img {
    transform: scale(1.05);
}

.work-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.work-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem;
    color: var(--white);
}

.work-card-content h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.work-card-content p {
    font-size: 0.875rem;
    opacity: 0.8;
    color: var(--white);
}

.quick-form-section {
    background: var(--green-primary);
    padding: 1.5rem 0;
}

.quick-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.quick-form input,
.quick-form select {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 0.5rem;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    min-width: 180px;
    font-family: inherit;
}

.quick-form input::placeholder {
    color: rgba(255,255,255,0.7);
}

.quick-form select {
    color: rgba(255,255,255,0.8);
}

.quick-form button {
    padding: 0.75rem 1.5rem;
    background: var(--white);
    color: var(--green-primary);
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.certifications-section {
    padding: 2rem 0;
    background: var(--white);
}

.certifications-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .certifications-inner {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
    }
}

.certifications-text h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.certifications-text p {
    color: var(--text-gray);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.certifications-logos {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.certifications-logos img {
    height: auto;
    object-fit: contain;
}

.works-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.works-header h2 {
    font-size: 2rem;
}

.cta-section {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    inset: 0;
}

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

.cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(45, 90, 61, 0.85);
}

.cta-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-style: italic;
    color: var(--white);
}

@media (min-width: 768px) {
    .cta-content h2 {
        font-size: 2.5rem;
    }
}

.contact-form-section {
    background: var(--white);
}

.contact-form-wrapper {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
}

.contact-form-wrapper h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.contact-form-wrapper > p {
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.contact-form {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .contact-form {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-form .full-width {
        grid-column: span 2;
    }
}

.input-light {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    color: var(--text-dark);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.input-light:focus {
    outline: none;
    border-color: var(--green-primary);
    box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.1);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--green-primary);
    font-weight: 500;
    font-size: 0.875rem;
    transition: gap 0.2s;
    text-decoration: none;
}

.link-arrow:hover {
    gap: 0.75rem;
}

/* ============================================
   TEAM PAGE STYLES - 1:1
   ============================================ */
.team-gallery-section {
    padding: 3rem 0;
    background: var(--cream);
}

.team-gallery {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

@media (min-width: 768px) {
    .team-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

.team-image {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 1rem;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-image:hover img {
    transform: scale(1.05);
}

.team-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

.team-image-label {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
}

.stats-section {
    background: var(--green-primary);
    padding: 2.5rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-value {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .stat-value {
        font-size: 3rem;
    }
}

.stat-label {
    color: rgba(255,255,255,0.7);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .stat-label {
        font-size: 0.875rem;
    }
}

.values-section {
    padding: 5rem 0;
    background: white;
}

.values-header {
    margin-bottom: 3rem;
}

.values-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.value-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.06);
    text-align: center;
    transition: all 0.3s;
}

.value-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.value-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: rgba(45, 90, 61, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-primary);
}

.value-card h3 {
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.value-card p {
    color: var(--text-gray);
    font-size: 0.875rem;
    line-height: 1.7;
}

.team-cta-section {
    padding: 4rem 0;
    background: var(--cream);
    text-align: center;
}

.team-cta-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .team-cta-section h2 {
        font-size: 1.875rem;
    }
}

.team-cta-section p {
    color: var(--text-gray);
    margin-bottom: 2rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   CONTACT PAGE STYLES - 1:1
   ============================================ */
.contact-section {
    padding: 3rem 0;
}

.contact-layout {
    display: grid;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .contact-layout {
        grid-template-columns: 1fr 400px;
    }
}

.contact-form-column {
    flex: 1;
}

.contact-title {
    font-size: 1.875rem;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .contact-title {
        font-size: 2.25rem;
    }
}

.contact-subtitle {
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.contact-form-full {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 1rem;
    height: 1rem;
    border-radius: 0.25rem;
    border: 1px solid #d1d5db;
    cursor: pointer;
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 0.875rem;
    color: var(--text-gray);
}

.contact-submit {
    width: 100%;
}

@media (min-width: 768px) {
    .contact-submit {
        width: auto;
    }
}

.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card-green {
    background: var(--green-primary);
    color: white;
    border-radius: 1rem;
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .contact-card-green {
        padding: 2rem;
    }
}

.contact-card-green h2 {
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: white;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
}

.contact-label {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.25rem;
    display: block;
}

.contact-value {
    display: block;
    font-weight: 500;
    color: white;
    text-decoration: none;
    transition: opacity 0.2s;
}

.contact-value:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.contact-value-secondary {
    display: block;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: opacity 0.2s;
}

.contact-value-secondary:hover {
    opacity: 1;
    text-decoration: underline;
}

.contact-sidebar iframe {
    border-radius: 1rem;
    overflow: hidden;
    height: 16rem;
    width: 100%;
    border: none;
}

/* ============================================
   CONTACT PAGE LAYOUT - 1:1 EXACTO
   ============================================ */
@media (min-width: 1024px) {
    .contact-layout {
        grid-template-columns: 1fr 400px !important;
    }
}

.contact-form-column {
    flex: 1;
}

.contact-title {
    font-size: 1.875rem;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .contact-title {
        font-size: 2.25rem;
    }
}

.contact-subtitle {
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.contact-form-full {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 1rem;
    height: 1rem;
    border-radius: 0.25rem;
    border: 1px solid #d1d5db;
    cursor: pointer;
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 0.875rem;
    color: var(--text-gray);
}

.contact-submit {
    width: 100%;
}

@media (min-width: 768px) {
    .contact-submit {
        width: auto;
    }
}

.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card-green {
    background: var(--green-primary);
    color: white;
    border-radius: 1rem;
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .contact-card-green {
        padding: 2rem;
    }
}

.contact-card-green h2 {
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: white;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
}

.contact-label {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.25rem;
    display: block;
}

.contact-value {
    display: block;
    font-weight: 500;
    color: white;
    text-decoration: none;
    transition: opacity 0.2s;
}

.contact-value:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.contact-value-secondary {
    display: block;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: opacity 0.2s;
}

.contact-value-secondary:hover {
    opacity: 1;
    text-decoration: underline;
}

.contact-map {
    border-radius: 1rem;
    overflow: hidden;
    height: 16rem;
}

.contact-certifications {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 0;
}

/* ==========================================================================
   PÁGINA DE TRABAJOS - Grid 1:1
   ========================================================================== */

/* Hero de página */
.trabajos-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trabajos-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.trabajos-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trabajos-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.trabajos-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.trabajos-hero-content h1 {
    font-style: italic;
    font-size: 2.25rem;
    color: white;
}

@media (min-width: 768px) {
    .trabajos-hero-content h1 {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .trabajos-hero-content h1 {
        font-size: 3.75rem;
    }
}

/* Filter Tabs */
.trabajos-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid #e5e7eb;
    background: white;
    color: #374151;
    cursor: pointer;
}

.filter-btn:hover {
    background: #f3f4f6;
}

.filter-btn.active,
.filter-btn-active {
    background: var(--green-primary) !important;
    color: white !important;
    border-color: var(--green-primary) !important;
}

/* Projects Grid */
.trabajos-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .trabajos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .trabajos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Project Card */
.proyecto-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.proyecto-card-inner {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.proyecto-card:hover .proyecto-card-inner {
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transform: translateY(-4px);
}

.proyecto-card-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.proyecto-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.proyecto-card:hover .proyecto-card-image img {
    transform: scale(1.05);
}

.proyecto-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.2), transparent);
}

.proyecto-card-tags {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
}

.proyecto-tag {
    padding: 0.375rem 0.625rem;
    background: rgba(255,255,255,0.9);
    color: #1f2937;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
}

.proyecto-card-info {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
}

.proyecto-card-info h3 {
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.proyecto-card-location {
    color: rgba(255,255,255,0.8);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Featured Project Card (primero) */
.proyecto-featured {
    position: relative;
    aspect-ratio: 4/3;
    background: var(--green-primary);
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.proyecto-featured-content {
    text-align: center;
    color: white;
    padding: 1.5rem;
}

.proyecto-featured-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.proyecto-featured-text {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.proyecto-featured-count {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
}

.proyecto-featured-bottom {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
}

.proyecto-featured-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.proyecto-featured-tag {
    padding: 0.25rem 0.5rem;
    background: rgba(255,255,255,0.2);
    color: white;
    font-size: 0.75rem;
    border-radius: 9999px;
}

.proyecto-featured-title {
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
}

.proyecto-featured-location {
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

