/* ============================================
   CSS MODULAR - CABANILLAS
   Organized and Deduplicated Stylesheet
   ============================================ */

/* ============================================
   1. VARIABLES & CONFIGURATION
   ============================================ */
:root {
    /* Colors */
    --bg-color: #F9F9F9;
    --text-color: #333333;
    --primary-color: #1A2B40;
    /* Dark Blue */
    --accent-color: #ebb174;
    /* Gold */
    --white: #FFFFFF;
    --beige-light: #f7f5f2;
    --beige: #e6d6b0;
    --grey-text: #777;
    --grey-light: #b0b0b0;

    /* Typography */
    --font-serif: 'minerva-modern', serif;
    --font-sans: 'Lato', sans-serif;
}

/* ============================================
   2. RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

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

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

ul {
    list-style: none;
}

/* ============================================
   3. LAYOUT - CONTAINERS
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* ============================================
   4. LAYOUT - HEADER & NAVIGATION
   ============================================ */
.main-header {
    background-color: transparent;
    padding: 30px 0;
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

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

.logo {
    text-align: center;
}

.logo h1 {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--primary-color);
    letter-spacing: 0;
    line-height: 1;
    margin-bottom: 5px;
}

.logo img {
    max-width: 200px;
}

.sub-logo {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--accent-color);
    display: block;
    font-style: italic;
}

/* Menu Toggle */
.header-menu-toggle {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.menu-text {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary-color);
    text-transform: uppercase;
}

.hamburger {
    width: 25px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* Navigation */
.main-nav {
    display: none;
}

/* Mobile Navigation Active State - Slide from Right */
.main-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -90%;
    width: 90%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--beige-light);
    z-index: 9998;
    padding: 100px 40px 60px;
    overflow-y: auto;
    box-shadow: -2px 0 30px rgba(0, 0, 0, 0.15);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-nav.active {
    display: block;
    right: 0;
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

.main-nav.active ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.main-nav.active ul li {
    border-bottom: 1px solid rgba(217, 175, 107, 0.2);
}

.main-nav.active ul li:last-child {
    border-bottom: none;
}

.main-nav.active ul li a {
    display: block;
    padding: 18px 0;
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.main-nav.active ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

/* Mobile Dropdown Styles - Always Visible */
.main-nav.active .dropdown-menu {
    display: block !important;
    padding-left: 20px;
    background-color: transparent;
    margin-top: 8px;
    margin-bottom: 10px;
    /* Override desktop dropdown styles */
    opacity: 1 !important;
    visibility: visible !important;
    position: static !important;
    box-shadow: none !important;
    transform: none !important;
    min-width: auto !important;
}

.main-nav.active .dropdown-menu li {
    border-bottom: 1px solid rgba(217, 175, 107, 0.15);
}

.main-nav.active .dropdown-menu li:last-child {
    border-bottom: none;
}

.main-nav.active .dropdown-menu li a {
    font-size: 0.95rem;
    font-weight: 400;
    padding: 12px 0;
    color: #666;
    text-transform: none;
    letter-spacing: 0.5px;
}

.main-nav.active .dropdown-menu li a:hover {
    color: var(--accent-color);
}

/* Elegant divider for SERVICIOS */
.main-nav.active .dropdown>a {
    pointer-events: auto;
    position: relative;
}

.main-nav.active .dropdown>a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--accent-color);
}


/* Breadcrumbs */
.breadcrumbs-container {
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
    background: none !important;
    width: auto !important;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0 !important;
    margin: 0 !important;
}

.breadcrumb-item {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.breadcrumb-item+.breadcrumb-item::before {
    display: inline-block;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
    color: rgba(255, 255, 255, 0.6) !important;
    content: '/';
}

.breadcrumb-item a {
    color: #fff !important;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-item a:hover {
    color: var(--accent-color) !important;
}

.breadcrumb-item.active {
    color: var(--accent-color) !important;
    font-weight: 700;
}

/* ============================================
   5. COMPONENTS - BUTTONS (CONSOLIDATED)
   ============================================ */
.btn,
.cta-button,
.btn-outlined,
.btn-gold,
.submit-btn {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 12px 35px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

/* Primary Button (Gold Fill) */
.btn-gold,
.submit-btn {
    background-color: var(--accent-color);
    color: var(--white);
    border: 1px solid var(--accent-color);
}

.btn-gold:hover,
.submit-btn:hover {
    background-color: #bfa14f;
}

/* Outlined Button */
.btn-outlined,
.cta-button {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-outlined:hover,
.cta-button:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

/* ============================================
   6. COMPONENTS - CARDS
   ============================================ */
.blog-card,
.service-item {
    background: var(--white);
    transition: all 0.3s ease;

}

.blog-card:hover,
.service-item:hover {
    transform: translateY(-5px);
}

/* ============================================
   7. COMPONENTS - FORMS (CONSOLIDATED)
   ============================================ */
.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: flex;
    gap: 30px;
}

.form-row .form-group {
    flex: 1;
}

.form-group.full-width {
    width: 100%;
}

label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 5px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 10px 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: #333;
    outline: none;
    transition: border-color 0.3s;
}

input:focus,
textarea:focus {
    border-bottom-color: var(--accent-color);
}

.form-privacy {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.form-privacy input {
    margin-right: 10px;
}

.form-privacy label {
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--grey-text);
    margin: 0;
}

.form-submit {
    text-align: right;
}

/* ============================================
   8. LAYOUT - FOOTER
   ============================================ */
.main-footer {
    background-color: #243946;
    color: var(--grey-light);
    padding: 80px 0 0;
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 0.8fr 1.2fr;
    gap: 0;
    align-items: flex-start;
}

.footer-col {
    padding: 0 40px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col.logo-col {
    border-left: none;
    padding-left: 0;
}

.footer-col:last-child {
    padding-right: 0;
}

.footer-col h4 {
    font-family: var(--font-serif);
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 400;
}

.footer-logo {
    max-width: 180px;
    display: block;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--grey-light);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--white);
}

.footer-label {
    color: var(--accent-color);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.footer-phone {
    display: block;
    color: #e0e0e0;
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-decoration: none;
}

.footer-email {
    display: block;
    color: var(--grey-light);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-decoration: none;
}

.footer-address {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--grey-light);
    line-height: 1.5;
}

.social-icons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-icon {
    display: inline-block;
    width: 35px;
    height: 35px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.3s;
}

.social-icon.wapp {
    background-image: url('assets/img/cabanillas-icon-wapp-off.png');
}

.social-icon.wapp:hover {
    background-image: url('assets/img/cabanillas-icon-wapp-on.png');
}

.social-icon.fb {
    background-image: url('assets/img/cabanillas-icon-fb-off.png');
}

.social-icon.fb:hover {
    background-image: url('assets/img/cabanillas-icon-fb-on.png');
}

.social-icon.ig {
    background-image: url('assets/img/cabanillas-icon-ig-off.png');
}

.social-icon.ig:hover {
    background-image: url('assets/img/cabanillas-icon-ig-on.png');
}

.footer-bottom {
    margin-top: 60px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    background-color: #1e2a36;
}

.footer-bottom p {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--grey-text);
    margin: 0;
}


/* ============================================
   9. HOME PAGE - HERO & SLIDER
   ============================================ */
.slider-container {
    position: relative;
    height: calc(0.39 * 100vw);
    width: 100%;
    background-color: #f0f0f0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.slide.active {
    opacity: 1;
}

.hero-overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1200px;
    z-index: 10;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: 100%;
}

.location-tag {
    font-family: var(--font-sans);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
    margin-bottom: 20px;
    display: block;
}

.main-headline {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.1;
    color: var(--primary-color);
    margin-bottom: 40px;
    max-width: 800px;
}

/* Static Overlay (Bottom Buttons) */
.static-overlay {
    position: absolute;
    bottom: -51px;
    right: 0;
    width: 45vw;
    height: auto;
    z-index: 20;
    display: flex;
}

.static-overlay ul {
    width: 100%;
    display: flex;
    align-items: stretch;
}

.static-overlay li a {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.static-overlay li:hover a {
    transform: scale(1.05);
    z-index: 5;
}

.static-overlay li:nth-child(1),
.static-overlay li:nth-child(2) {
    flex: 1;
    background-color: var(--primary-color);
}

.static-overlay li:nth-child(3) {
    flex: 2;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    background-image: url('assets/img/imgBtnBlog.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.static-overlay li:nth-child(3)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.static-overlay li:nth-child(3) span,
.static-overlay li:nth-child(3) a {
    position: relative;
    z-index: 2;
}

/* ============================================
   10. HOME PAGE - NOSOTROS SECTION
   ============================================ */
.nosotros-section {
    background-image: url('assets/img/cabanillas-home-bg1.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    padding: 150px 0 0 0;
    position: relative;
    display: grid;
    grid-template-columns: 1fr minmax(auto, 600px) minmax(auto, 600px) 1fr;
    row-gap: 80px;
    align-items: center;
}

.intro-block {
    grid-column: 2 / 3;
    grid-row: 1;
    text-align: left;
    padding-right: 40px;
}

.intro-block h2 {
    font-family: var(--font-serif);
    font-size: 3rem;
    line-height: 1.2;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 400;
}

.intro-block h2 .highlight-text {
    font-weight: 700;
    display: block;
    margin-top: 10px;
}

.intro-block .intro-text p {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
    max-width: 700px;
}

.info-image {
    grid-column: 1 / 3;
    grid-row: 2;
    width: 100%;
    height: 100%;
    position: relative;
    margin-bottom: -70px;
    z-index: 10;
}

.info-image img {
    width: 100%;
    object-fit: cover;
    display: block;
}

.info-text {
    grid-column: 3 / 4;
    grid-row: 2;
    padding: 40px 0 40px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-text h4 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 400;
    line-height: 1.2;
}

.experience-text {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    color: #888;
    margin-top: 10px;
    line-height: 1.5;
}

/* ============================================
   11. HOME PAGE - SERVICES LIST
   ============================================ */
.services-list-section {
    background-image: url('assets/img/cabanillas-home-bg3.jpg');
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
    margin-top: 200px;
    padding: 0 0 500px 0;
    min-height: 600px;
}

@media (max-width: 1024px) {
    .services-list-section {
        background-color: rgba(255, 255, 255, 0.85);
        background-blend-mode: lighten;
    }
}

.services-list-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

.services-intro h3 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-weight: 400;
    line-height: 1.2;
}

.services-items ul {
    list-style: none;
    padding: 0;
}

.services-items li {
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
    color: #666;
    font-family: var(--font-sans);
    font-size: 1rem;
    display: flex;
    align-items: flex-start;
}

.services-items li:first-child {
    border-top: 1px solid #e0e0e0;
}

.services-items li::before {
    content: '›';
    color: var(--accent-color);
    margin-right: 15px;
    font-size: 1.5rem;
    line-height: 1;
    font-weight: 700;
}

/* ============================================
   12. HOME PAGE - BLOG SECTION
   ============================================ */
.blog-section {
    background-color: var(--beige-light);
    padding: 100px 0;
}

.blog-header {
    text-align: center;
    margin-bottom: 60px;
}

.blog-header h3 {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 400;
}

.blog-header p {
    font-family: var(--font-sans);
    color: var(--accent-color);
    font-size: 1rem;
    letter-spacing: 1px;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.blog-card {
    display: flex;
    flex-direction: column;
}

.card-image {
    height: 250px;
    overflow: hidden;
}

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

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

.card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h4 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--primary-color);
    line-height: 1.3;
    margin-bottom: 15px;
    font-weight: 400;
}

.card-content .excerpt {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--grey-text);
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.read-more {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin-top: auto;
    display: inline-block;
    padding-bottom: 5px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.read-more:hover {
    border-bottom-color: var(--accent-color);
}

.blog-footer {
    text-align: center;
    margin-top: 60px;
}

.view-all {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
}

/* ============================================
   13. CONTACT SECTION (SHARED)
   ============================================ */
.contact-section {
    position: relative;
    padding: 80px 0 150px;
}

.contact-split-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(90deg, var(--beige) 50%, #f5f5f3 50%);
}

.contact-container-wrapper {
    display: flex;
    align-items: center;
}

.contact-info {
    flex: 1;
    max-width: 45%;
    padding-right: 40px;
}

.contact-info h3 {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    line-height: 1.2;
    font-weight: 400;
}

.method-label {
    font-family: var(--font-sans);
    color: var(--grey-text);
    margin-bottom: 5px;
}

.phone-number {
    font-family: var(--font-sans);
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    display: block;
}

.contact-separator {
    border: none;
    border-top: 1px solid #aaa;
    margin: 30px 0;
    width: 200px;
}

.contact-note p {
    font-family: var(--font-sans);
    color: var(--grey-text);
    line-height: 1.5;
}

.contact-form-card {
    background: var(--white);
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    width: 550px;
    max-width: 100%;
}

/* ============================================
   14. SERVICIOS PAGE
   ============================================ */
.services-hero {
    background-color: var(--beige-light);
    background-image: url('assets/img/cabanillas-servicios-principal-hero.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    height: calc(0.39 * 100vw);
    min-height: 500px;
    padding-top: 220px !important;
}

.services-hero .hero-overlay-content {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    margin: 0 auto;
    text-align: left;
    display: flex;
    justify-content: flex-start;
    height: auto;
    width: 100%;
}

.services-hero h1 {
    font-family: var(--font-serif);
    font-size: 5rem;
    color: var(--primary-color);
    line-height: 1;
    font-weight: 400;
    margin-left: 0;
}

.areas-intro-section {
    position: relative;
    z-index: 10;
    background: linear-gradient(to bottom, transparent 0, transparent 150px, var(--white) 150px, var(--white) 100%);
    padding-bottom: 80px;
    margin-top: -150px;
    pointer-events: none;
}

.areas-intro-section .container {
    pointer-events: auto;
}

.service-description {
    max-width: 75%;
    background-color: var(--white);
    padding: 60px 40px 60px 0;
    margin-bottom: 60px;
    position: relative;
}

.service-description::before {
    content: '';
    position: absolute;
    top: 0;
    right: 100%;
    width: 100vw;
    height: 100%;
    background-color: var(--white);
}

.areas-intro-text {
    max-width: 75%;
    background-color: var(--white);
    padding: 60px 40px 60px 0;
    margin-bottom: 60px;
    position: relative;
}

.areas-intro-text::before {
    content: '';
    position: absolute;
    top: 0;
    right: 100%;
    width: 100vw;
    height: 100%;
    background-color: var(--white);
}

.areas-intro-text p {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    font-weight: 700;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    background-color: var(--white);
}

.area-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.area-number {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.area-col h3 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 400;
    line-height: 1.1;
}

.area-col p {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--grey-text);
    line-height: 1.8;
    margin-bottom: 40px;
}

.area-line {
    width: 60px;
    height: 5px;
    background-color: var(--accent-color);
    margin-top: auto;
    border-radius: 2px;
}

.main-services-list {
    padding: 100px 0;
    background-color: #f1edea;
}

.services-header {
    margin-bottom: 60px;
    position: relative;
}

.services-header h2 {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--primary-color);
    font-weight: 400;
}

.services-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px 60px;
}

.service-item {
    background-color: #f1edea;
    position: relative;
    height: 450px;
    display: block;
    overflow: hidden;
}

.service-img-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 70%;
    height: 80%;
    z-index: 1;
}

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

.service-item:hover .service-img-wrapper img {
    transform: scale(1.05);
}

.service-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 65%;
    background-color: #f1edea;
    padding: 25px;
    padding-right: 30px;
    z-index: 2;
    pointer-events: none;
}

.service-content h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 400;
    line-height: 1.2;
    max-width: 70%;
}

.service-content p {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
    max-width: 60%;
}

.service-link {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    color: #997843;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--accent-color);
    display: inline-block;
    pointer-events: auto;
}

.full-width-item {
    grid-column: 1 / -1;
    margin-top: 60px;
}

/* ============================================
   15. NOSOTROS PAGE
   ============================================ */
.nosotros-hero {
    background-color: var(--beige-light);
    background-image: url('assets/img/cabanillas-nosotros-hero.jpg');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    padding: 220px 0 100px !important;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    width: 100%;
}

.hero-text {
    flex: 0 0 50%;
    padding-right: 50px;
    z-index: 2;
}

.page-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    color: var(--primary-color);
    line-height: 1.1;
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-description p {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.hero-cards {
    flex: 0 0 50%;
    position: relative;
    height: 500px;
}

.floating-card {
    position: absolute;
    background-color: #d5c39e;
    color: #fff;
    padding: 15px 30px;
    font-family: var(--font-sans);
    font-size: 1.2rem;
    font-weight: 400;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 5;
    white-space: nowrap;
}

.card-1 {
    top: 50px;
    right: 150px;
    background-color: #cbb079;
}

.card-2 {
    top: 130px;
    right: 280px;
    background-color: #ccaa66;
}

.card-3 {
    top: 210px;
    right: 50px;
    background-color: var(--accent-color);
}

.hero-stamp-img {
    position: absolute;
    top: 150px;
    left: 50px;
    width: 350px;
    height: auto;
    z-index: 1;
    background: #fff;
}

.hero-stamp-img img {
    width: 100%;
    display: block;
}

.team-section {
    padding: 100px 0;
    background-color: #fff;
}

.section-title-wrapper {
    margin-bottom: 60px;
    text-align: left;
    padding-left: 0;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--accent-color);
    font-weight: 400;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.team-member {
    text-align: left;
}

.member-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
    margin-bottom: 25px;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.team-member:hover .member-image {
    filter: grayscale(0%);
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-name {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 700;
}

.member-role {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: #333;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.member-bio {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-icon-circle {
    display: block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--accent-color);
    background-size: 15px;
    background-repeat: no-repeat;
    background-position: center;
    transition: background-color 0.3s;
}

.social-icon-circle:hover {
    background-color: var(--primary-color);
}

.icon-email {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
}

.icon-linkedin {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z'/%3E%3C/svg%3E");
}

/* ============================================
   16. CONTACTO PAGE
   ============================================ */
.contact-page {
    padding-top: 0;
}

.contact-hero {
    background-image: url('assets/img/cabanillas-contacto-hero.jpg');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    height: calc(0.39 * 100vw);
    max-height: 700px;
    min-height: 400px;
    position: relative;
    display: block;
}

.contact-hero .hero-overlay-content {
    align-items: flex-start;
    text-align: left;
}

.contact-hero h1 {
    display: block;
    font-family: var(--font-serif);
    font-size: 5rem;
    color: var(--primary-color);
    line-height: 1;
    font-weight: 400;
    margin-left: 0;
}

.contact-content-section {
    position: relative;
    z-index: 10;
    background: linear-gradient(to bottom, transparent 0, transparent 150px, var(--white) 150px, var(--white) 100%);
    padding-bottom: 80px;
    margin-top: -150px;
}

.contact-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background-color: var(--white);
}

.contact-tagline {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 60px;
    font-weight: 400;
    max-width: 75%;
    background-color: var(--white);
    padding: 60px 40px 60px 0;
    position: relative;
}

.contact-tagline::before {
    content: '';
    position: absolute;
    top: 0;
    right: 100%;
    width: 100vw;
    height: 100%;
    background-color: var(--white);
}

.contact-questions-list {
    list-style: none;
    margin-bottom: 30px;
}

.contact-questions-list li {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 10px;
}

.contact-description {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 700;
    color: #888;
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 90%;
}

.gold-line-sep {
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin-bottom: 40px;
}

.contact-sub-intro h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 400;
}

.reply-note {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: #888;
}

.contact-details-col {
    padding-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.icon-wrap {
    width: 40px;
    flex-shrink: 0;
}

.icon-wrap img {
    width: 100%;
    height: auto;
}

.detail-text {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 5px;
}

.detail-link,
.detail-address {
    font-family: var(--font-sans);
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    line-height: 1.2;
}

.detail-link.email {
    font-size: 1.4rem;
    font-weight: 400;
}

.detail-address {
    font-size: 1.4rem;
}

.detail-separator {
    border-top: 1px solid #ddd;
    margin: 30px 0 30px 60px;
}

.contact-form-section-standalone {
    position: relative;
    padding: 100px 0;
    margin-top: 0;
}

.form-bg-layer {
    background-color: var(--beige);
    height: 100%;
    width: 40%;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1;
}

.form-container-standalone {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
}

.standalone-form {
    width: 70%;
    margin-left: auto;
    margin-right: auto;
    background: var(--white);
    padding: 60px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #ddd;
}

.map-link-container {
    text-align: left;
    margin-top: 20px;
}

.expand-map-link {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
}

.full-map-section {
    width: 100%;
    line-height: 0;
    margin-bottom: -10px;
}

.full-map-section iframe {
    display: block;
    width: 100%;
}

/* ============================================
   17. SERVICE DETAIL PAGES
   ============================================ */
.service-detail-page {
    position: relative;
    background-color: var(--white);
}

.service-detail-hero {
    padding-top: 280px !important;
    padding-bottom: 250px;
    background-image: url('assets/img/cabanillas-servicios-hero-ejecucion.jpg');
    background-size: cover;
    background-position: center center;
    height: calc(0.39 * 100vw);
    min-height: 600px;
    position: relative;
}

.service-detail-hero.asesoramiento {
    background-image: url('assets/img/cabanillas-servicios-hero-asesoramiento.jpg');
}

.service-detail-hero.asesoria {
    background-image: url('assets/img/cabanillas-servicios-hero-asesoria-inmobiliaria.jpg');
}

.service-detail-hero.convenios {
    background-image: url('assets/img/cabanillas-servicios-hero-convenios.jpg');
}

.service-detail-hero.entidades {
    background-image: url('assets/img/cabanillas-servicios-hero-entidades.jpg');
}

.service-detail-hero.disciplina {
    background-image: url('assets/img/cabanillas-servicios-hero-disciplina.jpg');
}

.service-detail-hero.defensa {
    background-image: url('assets/img/cabanillas-servicios-hero-defensa.jpg');
}

.service-hero-content {
    max-width: 900px;
    position: relative;
    z-index: 2;
    padding-left: 0;
}

.section-subtitle {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--beige);
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-detail-hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 5rem);
    line-height: 1;
    color: var(--primary-color);
    font-weight: 400;
    margin-top: 0;
}

.service-detail-content {
    margin-top: -150px;
    background-color: var(--white);
    position: relative;
    z-index: 10;
    background: linear-gradient(to bottom, transparent 0, transparent 150px, var(--white) 150px, var(--white) 100%);
    padding-bottom: 80px;
    margin-top: -150px;
    pointer-events: none;
}

.service-detail-content .container {
    pointer-events: auto;
    padding: 0 40px;
}

.service-description p {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 30px;
    font-weight: 400;
}

.gold-separator {
    width: 70px;
    height: 4px;
    background-color: var(--beige);
}

.service-list-container {
    position: relative;
    z-index: 2;
    margin-top: 60px;
    padding-right: 300px;
}

.service-list-container h2 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    color: var(--beige);
    margin-bottom: 10px;
    font-weight: 400;
    line-height: 1;
}

.numbered-service-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    max-width: 800px;
}

.numbered-service-list li {
    display: flex;
    align-items: flex-start;
    padding: 25px 0;
    border-bottom: 1px solid #ccc;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: #444;
    font-weight: 600;
}

.numbered-service-list li:first-child {
    border-top: 1px solid #ccc;
}

.numbered-service-list .number {
    font-weight: 700;
    margin-right: 25px;
    min-width: 20px;
    color: var(--primary-color);
}

.numbered-service-list .text {
    flex: 1;
}

.watermark-image {
    position: absolute;
    top: 300px;
    right: 15vw;
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
}

.watermark-image img {
    max-width: 500px;
    display: block;
}

.service-detail-page .contact-section {
    padding-top: 80px;
    padding-bottom: 80px;
    position: relative;
    background-color: transparent;
}

.service-detail-page .contact-split-bg {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--beige) 50%, #ffffff 50%);
    z-index: 0;
}

.service-detail-page .contact-container-wrapper {
    position: relative;
    z-index: 1;
    background-color: transparent;
}

.service-detail-page .contact-info h3 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.1;
}

.contact-text-body p {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--primary-color);
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 400px;
}

/* ============================================
   18. DROPDOWN MENU & DESKTOP NAV
   ============================================ */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 250px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.main-nav ul li {
    position: relative;
}

.main-nav ul li.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    display: block;
    margin: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 400;
    text-transform: none;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s, color 0.2s;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background-color: #f9f9f9;
    color: var(--accent-color);
}

/* ============================================
   19. RESPONSIVE - MEDIA QUERIES (CONSOLIDATED)
   ============================================ */

/* Extra Large Screens */
@media (min-width: 1400px) {
    .static-overlay li {
        font-size: 1.5rem;
    }

    .container {
        max-width: 1400px;
    }
}

/* Medium-Large Screens (1024px - 1440px) - Special Focus */
@media (min-width: 1024px) and (max-width: 1440px) {

    /* Optimize typography for this range */
    .main-headline {
        font-size: 2.8rem;
    }

    .services-hero h1,
    .contact-hero h1,
    .service-detail-hero h1 {
        font-size: 4rem;
    }

    .intro-block h2 {
        font-size: 2.5rem;
    }

    /* Adjust grid spacing */
    .nosotros-section {
        grid-template-columns: 1fr minmax(auto, 500px) minmax(auto, 500px) 1fr;
    }

    /* Service items better fit */
    .service-content h3 {
        font-size: 1.6rem;
        max-width: 75%;
    }

    .service-content p {
        max-width: 70%;
    }

    /* Footer optimization */
    .footer-grid {
        grid-template-columns: 1fr 1fr 0.8fr 1fr;
        gap: 30px;
    }

    .footer-col {
        padding: 0 30px;
    }
}

/* Desktop */
@media (min-width: 992px) {
    .main-nav {
        display: block !important;
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        padding: 0;
        max-width: none;
        overflow: visible;
        box-shadow: none;
        margin-top: 0;
    }

    .header-menu-toggle {
        display: none !important;
    }

    .main-nav ul {
        display: flex;
        flex-direction: row;
        gap: 30px;
        align-items: center;
    }

    .main-nav ul li {
        border-bottom: none;
    }

    .main-nav a {
        font-family: var(--font-sans);
        font-size: 0.9rem;
        font-weight: 700;
        color: var(--primary-color);
        letter-spacing: 1px;
        position: relative;
        padding-bottom: 5px;
    }

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

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

    .service-list-container {
        margin-left: 0;
        width: 100%;
    }

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

/* Tablet - Large */
@media (max-width: 1200px) {

    /* Typography adjustments */
    .main-headline {
        font-size: 2.5rem;
    }

    .intro-block h2 {
        font-size: 2.2rem;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .static-overlay {
        position: static;
        width: 100vw;
        left: 0;
        right: 0;
        bottom: 0;
        margin-left: calc(-50vw + 50%);
    }

    .static-overlay ul {
        display: flex;
        flex-direction: row;
        width: 100%;
    }

    .static-overlay li {
        flex: 1;
    }

    .static-overlay li a {
        font-size: 0.85rem;
        padding: 1.5rem 0.5rem;
        letter-spacing: 1px;
    }

    .container {
        padding: 0 30px;
    }

    .nosotros-section {
        grid-template-columns: 20px 1fr 1fr 20px;
    }

    .intro-block {
        grid-column: 2 / 4;
    }

    .info-image {
        grid-column: 1 / 3;
    }

    .info-text {
        grid-column: 3 / 5;
    }

    /* Service grid to single column */
    .services-grid-layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    /* Areas grid to 2 columns */
    .areas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    /* Blog grid to 2 columns */
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet & Mobile */
@media (max-width: 991px) {
    .service-detail-hero h1 {
        font-size: 3.5rem;
    }

    .service-list-container {
        margin-left: 0;
        width: 100%;
        padding-right: 0;
    }

    .watermark-image {
        top: auto;
        bottom: 20px;
        right: -50px;
        opacity: 0.3;
    }

    .watermark-image img {
        max-width: 300px;
    }

    .service-detail-content {
        margin-top: -80px;
    }

    .service-detail-page .contact-split-bg {
        width: 100%;
        height: 50%;
    }

    .hero-content-wrapper {
        flex-direction: column;
    }

    .hero-text,
    .hero-cards {
        flex: 0 0 100%;
        width: 100%;
        padding-right: 0;
    }

    .hero-cards {
        margin-top: 50px;
        height: 400px;
    }

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

@media (max-width: 900px) {
    .contact-split-bg {
        background: linear-gradient(180deg, var(--beige) 40%, #f5f5f3 40%);
    }

    .contact-container-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-info {
        max-width: 100%;
        margin-bottom: 50px;
        padding-right: 0;
    }

    .contact-form-card {
        width: 100%;
        padding: 30px;
    }

    .services-hero {
        padding: 150px 0 100px;
    }

    .areas-intro-section {
        margin-top: 0;
        background: var(--white);
        padding-top: 60px;
    }

    .areas-intro-text {
        max-width: 100%;
        margin-top: 0;
        padding: 0 0 40px 0;
    }

    .areas-intro-text::before {
        display: none;
    }

    .areas-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .services-grid-layout {
        grid-template-columns: 1fr;
    }

    .service-item {
        height: auto;
        display: flex;
        flex-direction: column;
    }

    .service-img-wrapper {
        position: relative;
        width: 100%;
        height: 250px;
        top: auto;
        right: auto;
    }

    .service-content {
        position: relative;
        width: 100%;
        bottom: auto;
        left: auto;
        padding: 30px;
        max-width: 100%;
    }

    .service-content h3,
    .service-content p {
        max-width: 100%;
    }

    .full-width-item {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }

    .full-width-item .service-content {
        order: 2;
    }

    .full-width-item .service-img-wrapper {
        order: 1;
        width: 100%;
        height: 300px;
    }

    .footer-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .footer-col {
        border-left: none;
        padding: 0;
        margin-bottom: 40px;
        width: 100%;
        text-align: center;
    }

    .logo-col {
        margin-bottom: 30px;
    }

    .footer-logo {
        margin: 0 auto;
    }

    .social-icons {
        justify-content: center;
    }

    .contact-layout-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .form-bg-layer {
        width: 100%;
    }

    .standalone-form {
        width: 100%;
        padding: 30px;
    }

    .contact-hero {
        height: 300px;
        margin-top: 80px;
    }

    .contact-tagline {
        max-width: 100%;
        padding: 40px 0;
        font-size: 2rem;
    }

    .contact-tagline::before {
        display: none;
    }

    .contact-content-section {
        margin-top: 0;
        background: var(--white);
    }
}

/* Mobile - Large (Tablets in portrait) */
@media (max-width: 900px) {
    .container {
        padding: 0 20px;
    }

    /* Typography */
    .main-headline {
        font-size: 2.2rem;
    }

    .services-hero h1,
    .contact-hero h1 {
        font-size: 3.5rem;
    }

    .intro-block h2 {
        font-size: 2rem;
    }

    /* Areas grid to single column */
    .areas-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .header-content {
        align-items: center;
    }

    .logo h1 {
        font-size: 2rem;
    }

    .sub-logo {
        font-size: 0.8rem;
    }

    .main-headline {
        font-size: 2.5rem;
    }

    .static-overlay {
        width: 100%;
        position: relative;
        background: var(--primary-color);
        margin-top: -60px;
    }

    .static-overlay ul {
        justify-content: center;
        gap: 20px;
    }

    .static-overlay li {
        font-size: 1.5rem;
    }

    .static-overlay li:nth-child(3) {
        text-shadow: none;
    }

    .nosotros-section {
        grid-template-columns: 1fr;
        padding: 60px 0;
        row-gap: 40px;
    }

    .intro-block {
        grid-column: 1;
        grid-row: 1;
        padding: 0 20px;
    }

    .info-image {
        grid-column: 1;
        grid-row: 2;
        height: 300px;
        border-radius: 0;
    }

    .info-image img {
        border-radius: 0;
    }

    .info-text {
        grid-column: 1;
        grid-row: 3;
        padding: 0 20px;
    }

    .services-list-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-list-section {
        background-size: cover;
        margin-top: 60px;
        padding: 60px 0;
    }

    .breadcrumbs-container {
        top: 100px;
    }

    .nosotros-hero {
        padding-top: 120px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .floating-card {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .card-1 {
        right: 50px;
        top: 20px;
    }

    .card-2 {
        right: 100px;
        top: 80px;
    }

    .card-3 {
        right: 20px;
        top: 140px;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .service-detail-hero h1 {
        font-size: 2.8rem;
    }

    .service-detail-hero {
        padding-top: 150px;
        min-height: 400px;
    }

    .services-hero-content h1 {
        font-size: 3.5rem;
    }
}

@media (min-width: 768px) {
    .static-overlay li {
        font-size: 2.2rem;
    }
}

@media (min-width: 768px) {
    .static-overlay li {
        font-size: 2.2rem;
    }
}

/* Additional Mobile Enhancements */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .detail-link,
    .detail-address {
        font-size: 1.4rem;
    }

    /* Slider adjustments */
    .slider-container {
        height: 60vh;
        min-height: 400px;
    }

    .hero-overlay-content {
        padding: 0 20px;
    }

    /* Logo sizing */
    .logo img {
        max-width: 150px;
    }
}

/* Mobile - Extra Small */
@media (max-width: 480px) {
    .main-headline {
        font-size: 1.8rem;
    }

    .services-hero h1,
    .contact-hero h1 {
        font-size: 2.5rem;
    }

    .service-detail-hero h1 {
        font-size: 2rem;
    }

    .intro-block h2 {
        font-size: 1.8rem;
    }

    .static-overlay ul {
        flex-direction: column;
    }

    .static-overlay li {
        width: 100%;
        font-size: 1.2rem !important;
    }

    .logo img {
        max-width: 130px;
    }

    /* Form adjustments */
    .contact-form-card {
        padding: 30px 20px;
    }

    .standalone-form {
        padding: 30px 20px;
    }

    .container {
        padding: 0 15px;
    }
}