/* --- VARIABLES Y ESTILOS GLOBALES --- */
:root {
    --primary-color: #3a2e2a; /* Marrón oscuro para textos y acentos */
    --secondary-color: #c8a98a; /* Tono cuero/dorado para botones y enlaces */
    --background-color: #fdfaf6; /* Fondo blanco roto/crema muy claro */
    --dark-background: #1a1a1a; /* Fondo oscuro para header/footer */
    --text-color: #333333;
    --text-color-light: #f1f1f1;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --container-width: 1100px;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

section {
    padding: 4rem 0;
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* --- HEADER Y NAVEGACIÓN --- */
.header {
    background-color: var(--dark-background);
    color: var(--text-color-light);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}
.logo:hover {
    color: var(--secondary-color);
}

.nav-menu {
    list-style: none;
    display: flex;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    color: var(--text-color-light);
    font-weight: 600;
    padding: 5px 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after, .nav-menu a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
    color: white;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* --- SERVICES SECTION --- */
.services {
    padding: 4rem 0 0; /* No bottom padding here as cards have their own spacing */
    overflow: hidden; /* Prevent horizontal scroll from clip-path */
}

.services .container {
    max-width: none;
    padding: 0;
}

.services h2 {
    margin-bottom: 4rem;
    padding: 0 20px; /* Keep title aligned with other sections' containers */
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 0; /* Gap is managed by negative margins and clip-paths */
}

.service-card {
    position: relative;
    width: 100%;
    min-height: 550px;
    overflow: hidden;
    display: flex;
    align-items: center;
    transition: none; /* Removed lift effect as it conflicts with full-width clipping */
    box-shadow: none;
    border-radius: 0;
    margin-top: -80px; /* Overlap for the diagonal effect */
}

.service-card:first-child {
    margin-top: 0;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.service-card:nth-child(even) {
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 85%);
}

.service-card:nth-child(odd):not(:first-child) {
    clip-path: polygon(0 0, 100% 15%, 100% 85%, 0 100%);
}

/* Ensure the last card clips correctly at the bottom if needed, 
   but usually we want it straight or angled down */
.service-card:last-child {
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%) !important;
}
.service-card:nth-child(odd):last-child {
    clip-path: polygon(0 0, 100% 15%, 100% 100%, 0 100%) !important;
}

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

.service-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.service-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 30%, rgba(0, 0, 0, 0.2) 70%);
    z-index: 2;
}

.service-card:nth-child(even) .service-image::after {
    background: linear-gradient(to left, rgba(0, 0, 0, 0.8) 30%, rgba(0, 0, 0, 0.2) 70%);
}

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

.service-overlay {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 6rem 20px;
    display: flex;
}

.service-info {
    max-width: 550px;
    color: white;
}

.service-info h3 {
    color: white;
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.service-info h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
}

.service-info p {
    font-size: 1.3rem;
    line-height: 1.8;
}

/* Interleaved effect content alignment */
.service-card:nth-child(even) .service-overlay {
    justify-content: flex-end;
}

.service-card:nth-child(even) .service-info {
    text-align: right;
}

.service-card:nth-child(even) .service-info h3::after {
    left: auto;
    right: 0;
}

/* --- LOCATION SECTION --- */
.location {
    background-color: white;
}
.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.location-info h3 {
    font-size: 1.8rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
    margin-bottom: 1.5rem;
}
.location-info p, .schedule li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.location-info .fas {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}
.schedule {
    list-style: none;
    padding-left: 0;
}

.location-map iframe {
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}


/* --- FOOTER --- */
.footer {
    background-color: var(--dark-background);
    color: var(--text-color-light);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #444;
    padding-bottom: 2rem;
}

.footer-col h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-col p {
    color: #ccc;
    font-size: 0.9rem;
}
.footer-col a {
    color: #ccc;
}
.footer-col a:hover {
    color: var(--secondary-color);
}

.social-links a {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: white;
    transition: color 0.3s ease;
}
.social-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
    color: #aaa;
}


/* --- RESPONSIVE DESIGN --- */

/* Tablets */
@media (max-width: 992px) {
    h2 { font-size: 2.2rem; }
    .hero h1 { font-size: 3rem; }
    .location-content { grid-template-columns: 1fr; }
}

/* Mobiles */
@media (max-width: 768px) {
    body {
        padding-top: 0; /* Removed to fix white border, hero starts at top */
    }
    .header {
        padding: 0.8rem 0;
    }
    .nav-menu {
        display: none;
        flex-direction: column;
        background-color: var(--dark-background);
        position: absolute;
        top: 60px; /* Adjusted to match new mobile header height */
        left: 0;
        width: 100%;
        text-align: center;
        padding: 1rem 0;
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-menu li {
        margin: 1rem 0;
    }
    .hamburger {
        display: block;
    }
    
    h2 { font-size: 2rem; }
    .hero { 
        height: 85vh; 
        background-attachment: scroll; /* Fixes zoom issue on mobile */
        background-position: center center;
        padding-top: 60px; /* Offset for fixed header */
    }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1.1rem; }
    section { padding: 3rem 0; }

    /* Enhanced Mobile Services */
    .service-card {
        min-height: 500px;
        margin-top: -52px; /* Adjusted to create a small gap between diagonals */
    }
    
    .service-card:first-child { 
        margin-top: 0;
        clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%); 
    }
    .service-card:nth-child(even) { 
        clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 88%); 
    }
    .service-card:nth-child(odd):not(:first-child) { 
        clip-path: polygon(0 0, 100% 12%, 100% 88%, 0 100%); 
    }
    .service-card:last-child { 
        clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%) !important; 
    }
    .service-card:nth-child(odd):last-child { 
        clip-path: polygon(0 0, 100% 12%, 100% 100%, 0 100%) !important; 
    }

    .service-info h3 {
        font-size: 2.2rem;
    }
    .service-info p {
        font-size: 1.1rem;
    }

    /* Footer adjustments for mobile */
    .footer-col {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-content {
        gap: 3rem;
    }
}
