:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #333333;
    --text-color: #333333;
    --light-gray: #f4f4f4;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--secondary-color);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.header-scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

/* Animations */
.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal {
    opacity: 1;
    transform: translateY(0);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav {
    display: flex;
    gap: 3rem;
}

.nav-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 0.7;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch; /* Stretch to fill height */
    padding-top: 0;
}

.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Start from top to match reference */
    padding: 10% 0; /* Padding top and bottom */
    position: relative;
    border-right: 1px solid #eee;
    height: 100%;
    background-image: radial-gradient(#ddd 1px, transparent 1px);
    background-size: 20px 20px;
}

.hero-left-content {
    padding: 0 10%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 5rem; /* Large centered brand name */
    color: var(--primary-color);
    letter-spacing: -4px;
    margin-bottom: 0;
    opacity: 1;
    text-transform: uppercase;
    text-align: center;
    width: 100%;
    border-bottom: 1px solid #eee;
    padding: 2rem 0;
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 5rem; /* Increased from 3.5rem */
    line-height: 1;
    color: var(--primary-color);
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

.hero-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 450px;
    margin-bottom: 3rem;
}

.scroll-explore {
    position: absolute;
    bottom: 5%;
    left: 10%;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-arrow {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-5px);}
    60% {transform: translateY(-3px);}
}

.hero-right {
    height: 100%;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none; /* Removed grayscale to show original image colors */
    transition: transform 0.5s ease;
}

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

/* Services */
.services {
    padding: 8rem 10%;
    background-color: var(--secondary-color);
}

.services-header {
    margin-bottom: 4rem;
}

.services-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.service-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.service-card {
    padding: 3rem 2.5rem 2.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    background-color: #000; /* Siempre negro por defecto */
    color: #fff; /* Texto blanco siempre */
    border: none;
}

.service-card p {
    color: #ccc; /* Párrafos en gris claro siempre */
}

/* Shapes for cards - siempre visibles */
.card-residencial {
    clip-path: polygon(50% 0%, 100% 25%, 100% 100%, 0% 100%, 0% 25%);
    padding-top: 6rem;
}

.card-comercial {
    clip-path: polygon(0% 30%, 10% 30%, 10% 15%, 90% 15%, 90% 30%, 100% 30%, 100% 100%, 0% 100%);
    padding-top: 6rem;
}

.card-industrial {
    clip-path: polygon(0% 30%, 33% 30%, 33% 15%, 66% 30%, 66% 15%, 100% 30%, 100% 100%, 0% 100%);
    padding-top: 6rem;
}

/* Shapes for services page headers */
.industry-shape-header {
    background-color: #000; /* Fondo negro siempre */
    color: #fff; /* Texto blanco siempre */
    padding: 8rem 4rem 4rem;
    margin-bottom: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.industry-header p {
    color: #ccc;
}

.industry-header {
    margin-bottom: 0;
    max-width: 800px;
}

.card-residencial-shape {
    clip-path: polygon(50% 0%, 100% 20%, 100% 100%, 0% 100%, 0% 20%);
}

.card-comercial-shape {
    clip-path: polygon(0% 25%, 10% 25%, 10% 10%, 90% 10%, 90% 25%, 100% 25%, 100% 100%, 0% 100%);
}

.card-industrial-shape {
    clip-path: polygon(0% 25%, 33% 25%, 33% 10%, 66% 25%, 66% 10%, 100% 25%, 100% 100%, 0% 100%);
}

.card-sanitizacion {
    border-radius: 50% 50% 0 0;
}

/* Hover effect para resaltar aún más */
.service-card:hover {
    transform: translateY(-10px);
    background-color: #1a1a1a;
}

.card-more {
    margin-top: auto;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-top: 1.5rem;
    opacity: 1; /* Siempre visible */
    transition: transform 0.3s ease;
}

.service-card:hover .card-more {
    transform: translateX(10px);
}

.link-more {
    color: #000;
    font-weight: 700;
    text-decoration: underline;
    margin-left: 0.5rem;
    transition: color 0.3s ease;
}

.link-more:hover {
    color: #666;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: #666;
}

/* Areas */
.areas {
    padding: 8rem 10%;
    background-color: var(--light-gray);
    text-align: center;
}

.areas-subtitle {
    margin-bottom: 4rem;
    color: #666;
    font-size: 1.1rem;
}

.areas-map-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 4rem;
    flex-wrap: wrap;
}

.area-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.4s ease;
    cursor: default;
}

.area-map-wrapper {
    width: 250px;
    height: 180px;
    background-color: #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.area-item:hover .area-map-wrapper {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.area-item span {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Clients */
.clients {
    padding: 8rem 10%;
    background-color: var(--secondary-color);
    text-align: center;
}

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

.clients-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.clients-header p {
    color: #666;
    font-size: 1.1rem;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    align-items: center;
    margin-top: 2.5rem;
}

.client-logo {
    width: 100%;
    height: 70px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 12px;
    filter: none;
}

.clients-note {
    margin-top: 2rem;
    color: #999;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Generic Pages */
.page {
    padding-top: 120px;
}

.page-hero {
    padding: 5rem 10%;
    background-color: #000;
    color: #fff;
}

.page-hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    letter-spacing: -2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.page-hero p {
    color: #cfcfcf;
    max-width: 900px;
    font-size: 1.1rem;
}

.page-content {
    padding: 6rem 10%;
}

.content-width {
    max-width: 1100px;
    margin: 0 auto;
}

.breadcrumbs {
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    margin-bottom: 1.2rem;
}

.breadcrumbs a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
}

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

.info-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.06);
    border-color: #000;
}

.info-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    font-weight: 800;
}

.info-card p {
    color: #666;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.pill {
    border: 1px solid #eee;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    color: #111;
    background: #fff;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.section-subtitle {
    color: #666;
    margin-bottom: 3rem;
    font-size: 1.05rem;
    max-width: 900px;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.list-clean {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-clean li {
    margin-bottom: 0.9rem;
    color: #333;
}

.cta-band {
    margin-top: 4rem;
    background: #0a0a0a;
    color: #fff;
    padding: 3rem;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 2rem;
    align-items: center;
}

.cta-band p {
    color: #cfcfcf;
    margin-top: 0.6rem;
}

.cta-band a {
    display: inline-block;
    background: #fff;
    color: #000;
    padding: 1rem 1.4rem;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

/* Testimonials / Cases */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.testimonial {
    border: 1px solid #eee;
    background: #fff;
    padding: 2.5rem;
}

.testimonial p {
    color: #444;
    font-size: 1.02rem;
    margin-bottom: 1.2rem;
}

.testimonial .who {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    color: #111;
}

.testimonial .meta {
    color: #777;
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

.case-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.case-card {
    border: 1px solid #eee;
    background: #fff;
    padding: 2.5rem;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2rem;
}

.case-card h3 {
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 0.8rem;
}

.case-card p {
    color: #666;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.2rem;
}

.tag {
    background: #000;
    color: #fff;
    padding: 0.35rem 0.7rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
}

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.blog-card {
    border: 1px solid #eee;
    background: #fff;
    padding: 2.5rem;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: #000;
    box-shadow: 0 18px 36px rgba(0,0,0,0.06);
}

.blog-card .kicker {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #777;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.blog-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    font-weight: 900;
}

.blog-card p {
    color: #666;
}

.article {
    max-width: 900px;
    margin: 0 auto;
}

.article h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin: 2.5rem 0 1rem 0;
    letter-spacing: -1px;
}

.article p {
    color: #333;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.article ul {
    padding-left: 1.2rem;
    margin-bottom: 1.2rem;
}

.article li {
    margin-bottom: 0.6rem;
    color: #333;
}

.article .disclaimer {
    background: #fafafa;
    border: 1px solid #eee;
    padding: 1.5rem;
    color: #666;
    font-size: 0.95rem;
}

/* Contact Section */
.contact {
    padding: 8rem 10%;
    display: flex;
    justify-content: center;
}

.contact-card {
    background-color: #0a0a0a;
    color: white;
    width: 100%;
    max-width: 1000px;
    padding: 5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start; /* Changed from center to align form top */
}

.contact-header h2 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 1rem;
}

.contact-link {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    display: block;
}

.contact-link:hover {
    opacity: 1;
}

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

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background-color: #1a1a1a;
    border: 1px solid #333;
    color: white;
    font-family: var(--font-main);
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: #fff;
}

.btn-primary {
    display: inline-block;
    padding: 1.2rem 2rem;
    background-color: white;
    color: black;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
    text-align: center;
}

.btn-primary:hover {
    background-color: #ddd;
    transform: translateY(-2px);
}

.form-message {
    padding: 3rem;
    background-color: #1a1a1a;
    border: 1px solid #333;
    text-align: center;
    border-radius: 4px;
    animation: fadeIn 0.5s ease;
}

.success-message h3 {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.success-message p {
    color: #ccc;
    margin-bottom: 2rem;
}

.error-message p {
    color: #ff4444;
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #fff;
    color: #000;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Footer */
.footer {
    padding: 2rem 10%;
    text-align: center;
    font-size: 0.8rem;
    color: #999;
    border-top: 1px solid #eee;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .hero-left {
        padding: 5rem 10%;
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    
    .hero-right {
        height: 50vh;
    }
    
    .contact-card {
        grid-template-columns: 1fr;
        padding: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-brand {
        font-size: 3rem;
    }
    
    .nav {
        display: none;
    }

    .page-hero h1 {
        font-size: 2.3rem;
    }

    .two-col {
        grid-template-columns: 1fr;
    }

    .case-card {
        grid-template-columns: 1fr;
    }
}
