body {
    font-family: 'Inter', sans-serif;
}
:root {
    --color-primary-dark: #0A2D4D;
    --color-primary-medium: #1E6091;
    --color-accent: #4FC3F7;
    --color-accent-dark: #2c7da0;
    --color-light: #F8F9FA;
    --color-dark: #212529;
    --color-text-light: #E0E0E0;
}
.bg-primary-dark { background-color: var(--color-primary-dark); }
.text-primary-dark { color: var(--color-primary-dark); }
.bg-primary-medium { background-color: var(--color-primary-medium); }
.text-primary-medium { color: var(--color-primary-medium); }
.bg-accent { background-color: var(--color-accent); }
.text-accent { color: var(--color-accent); }
.border-accent { border-color: var(--color-accent); }

.hero-section {
    position: relative; 
    overflow: hidden; 
    min-height: 70vh;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estilos del Carrusel */
.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; 
}
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.carousel-slide.active {
    opacity: 1;
}
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}
.hero-content-overlay {
    position: relative; 
    z-index: 2;
    background-color: rgba(10, 45, 77, 0.7); 
    width: 100%;
    min-height: inherit;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3; 
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    box-sizing: border-box;
}
.carousel-nav button {
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    padding: 0.5rem 0.75rem; 
    border-radius: 0.375rem; 
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1.25rem; 
}
.carousel-nav button:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

@media (min-width: 768px) {
    .hero-section {
        height: 80vh;
    }
    .carousel-nav button {
        padding: 0.75rem 1rem;
        font-size: 1.5rem;
    }
}

.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
html {
    scroll-behavior: smooth;
}
.page-content {
    min-height: calc(100vh - 200px); /* Adjust 200px if header/footer height changes */
}
.back-to-home-link {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--color-accent);
    color: white;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}
.back-to-home-link:hover {
    background-color: var(--color-accent-dark);
}

/* New Service Section Design */
.service-showcase {
    display: flex;
    min-height: 65vh; /* Adjust as needed, e.g., 70vh or a fixed pixel value */
    background-color: white; /* Changed from #f0f0f0 - Fallback if images don't load */
    font-family: 'Inter', sans-serif;
}

.service-showcase-image-wrapper {
    width: 45%; /* Adjust percentage for image width vs text width */
    position: relative;
    background-color: white;
    overflow: hidden; /* Helps contain the pseudo-element if it bleeds */
    background-size: cover;
    background-position: center;

}


.service-showcase-image-wrapper::before { 
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px; 
    background-color: transparent;
    z-index: -1;
    left: auto;
    right: 0;
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%); 
} 


.service-showcase-text-wrapper {
    width: 55%; /* Remaining width */
    background-color: white;
    padding: 3rem 4rem 3rem 6rem; /* Generous padding, especially left due to the angle */
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative; /* For z-index if ever needed, but should be fine */
    z-index: 2; /* To be above any potential bleed from the image wrapper's ::before */
}

.service-showcase-text-wrapper h2 {
    font-size: 2.25rem; /* Tailwind's text-4xl is 2.25rem */
    line-height: 2.5rem; /* Tailwind's corresponding line height */
    color: var(--color-primary-dark);
    font-weight: 700;
    margin-bottom: 0.75rem; /* Tailwind's mb-3 */
}

.service-showcase-text-wrapper .subtitle {
    font-size: 1.125rem; /* Tailwind's text-lg */
    line-height: 1.75rem; /* Tailwind's corresponding line height */
    color: var(--color-primary-medium); /* Using the blue for subtitle as in images */
    margin-bottom: 1.5rem; /* Tailwind's mb-6 */
}

.service-showcase-text-wrapper .service-content p {
    font-size: 0.9375rem; /* Slightly smaller than text-base (1rem) to fit more text if needed, adjust as desired */
    line-height: 1.625;
    color: var(--color-dark); /* Matches text-gray-800 or a bit darker */
    margin-bottom: 1rem;
    text-align: justify;
}

.service-showcase-text-wrapper .service-content ul,
.service-showcase-text-wrapper .service-content ol {
    font-size: 0.9375rem;
    line-height: 1.625;
    color: var(--color-dark);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}
.service-showcase-text-wrapper .service-content li {
    margin-bottom: 0.5rem;
}
.service-showcase-text-wrapper .service-content h3 { /* For headings within the prose */
    font-size: 1.25rem; /* text-xl */
    color: var(--color-primary-medium);
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.leer-mas-btn:hover {
    background-color: var(--color-primary-medium);
    border-color: var(--color-primary-medium);
}

/* Responsive stacking for services */
@media (max-width: 768px) { /* Tailwind's md breakpoint */
    /* Ensure BOTH normal and reversed sections stack in standard column order */
    .service-showcase,
    .service-showcase--reversed {
        flex-direction: column;
        min-height: unset; /* Allow content to define height */
    }

    .service-showcase-image-wrapper { /* Hide image on mobile */
        display: none;
    }
    
    /* 
    .service-showcase-image-wrapper::before {
        left: 0; 
        right: 0;
        height: 60px; 
        top: auto; 
        bottom: 0;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 20px)); 
        width: auto; 
        background-color: white;
    }
    */
    
    .service-showcase-text-wrapper { /* Common text wrapper styles for mobile */
        width: 100%;
        padding: 2rem 1.5rem; /* Adjust padding for mobile */
    }

    /* Mobile font size adjustments for service showcase text */
    .service-showcase-text-wrapper h2 {
        font-size: 1.75rem; /* e.g., text-2xl */
        line-height: 2.25rem;
    }
    .service-showcase-text-wrapper .subtitle {
        font-size: 1rem; /* e.g., text-base */
        line-height: 1.5rem;
    }
    .service-showcase-text-wrapper .service-content p,
    .service-showcase-text-wrapper .service-content ul,
    .service-showcase-text-wrapper .service-content ol {
        font-size: 0.875rem; /* e.g., text-sm */
        line-height: 1.5;
    }
    .service-showcase-text-wrapper .service-content p {
        text-align: left;
    }
    .service-showcase-text-wrapper .service-content h3 {
        font-size: 1.125rem; /* e.g., text-lg */
    }

    .hero-content-overlay .container { /* Reduce padding inside hero on mobile */
        padding-left: 1rem;
        padding-right: 1rem;
    }
} 

/* Reversed Service Section Design */
.service-showcase--reversed {
    flex-direction: row-reverse;
}

/*
.service-showcase--reversed .service-showcase-image-wrapper::before {
    left: 0;
    right: auto;
    clip-path: polygon(0 0, 100% 0, 70% 100%, 0 100%);
    background-color: white; 
}
*/

.service-showcase--reversed .service-showcase-text-wrapper {
    /* Adjust padding: original was L:6rem, R:4rem. Reversed is L:4rem, R:6rem */
    padding: 3rem 6rem 3rem 4rem; 
} 

/* Services Title Section Showcase */
.services-title-section {
    position: relative;
    min-height: 5vh; /* Reduced from 40vh by 20% */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center; /* Vertically center content */
    padding-left: 5%; /* Give some space from the left edge */
    padding-right: 5%;
}

.services-title-section::before { /* The angled blue overlay */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 55%; /* Adjust width of the overlay, e.g., 50% to 70% */
    background-color: var(--color-primary-medium);
    /* Angled on its right side: wider at top, narrower at bottom */
    clip-path: polygon(0 0, 100% 0, calc(100% - 120px) 100%, 0 100%); /* Adjust 120px for angle steepness */
    z-index: 1;
}

.services-title-content-wrapper {
    position: relative;
    z-index: 2;
    padding: 2rem; /* Padding for the text content */
}

.services-title-content-wrapper h2 {
    color: white; /* Text color on the blue overlay */
    /* Tailwind classes like text-4xl, font-bold will be on the h2 directly */
}

/* Responsive adjustments for the Services Title Section */
@media (max-width: 768px) { /* md breakpoint */
    .services-title-section {
        min-height: 25vh;
        justify-content: center; /* Center title text on mobile */
        text-align: center;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .services-title-section::before {
        width: 100%; /* Overlay covers full width on mobile */
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0% 100%); /* Simpler angle at bottom */
    }
    .services-title-content-wrapper h2 {
        font-size: 2.25rem; /* text-3xl or adjust as needed for mobile */
    }
    /* Ensure hero-section uses auto height for smaller screens if not tall enough */
    .hero-section {
        height: auto;
        min-height: 60vh; /* Slightly less than the 70vh default for very small/wide screens */
    }
} 