/* css/styles.css */

:root {
    --primary-color: #C67A44;
    /* Darker shade for hover and contrast */
    --primary-dark: #9E5C2F;
    --primary-light: #F2E3D8;
    --secondary-color: #25D366;
    /* WhatsApp */
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --bg-dark: #1e2329;
    --border-color: #e0e0e0;
    --spacing-unit: 1rem;
    --container-width: 1200px;
    --font-heading: 'Roboto', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --shadow-card: 0 5px 15px rgba(0, 0, 0, 0.05);
    --radius-card: 8px;
}

/* Breadcrumbs */
.breadcrumbs {
  background: var(--primary-light);
  padding: 0.75rem 0;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(198, 122, 68, 0.25);
}

.breadcrumbs-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 16px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dark);
}

.breadcrumb-item a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.breadcrumb-separator {
  color: var(--primary-color);
  user-select: none;
  opacity: 0.6;
}

.breadcrumb-current {
  color: var(--text-dark);
  font-weight: 500;
}

.breadcrumbs.hidden {
  display: none;
}

@media (max-width: 768px) {
  .breadcrumbs {
    font-size: 0.8125rem;
  }
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

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

ul {
    list-style: none;
}

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

/* Layout Utilities */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    /* Pill shape buttons */
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-family: var(--font-heading);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.area-pills li:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.area-pills li a {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
}

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

.btn-outline-light {
    background-color: transparent;
    border-color: var(--bg-white);
    color: var(--bg-white);
}

.btn-outline-light:hover {
    background-color: var(--bg-white);
    color: var(--primary-color);
}

.btn-white {
    background-color: var(--bg-white);
    color: var(--primary-color);
    border: 2px solid var(--bg-white);
}

.btn-white:hover {
    background-color: var(--primary-dark);
    color: var(--bg-white);
    border-color: var(--primary-dark);
}

.btn-sm {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 4px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.top-bar {
    background-color: var(--bg-dark);
    color: var(--bg-white);
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

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

.top-contact span {
    margin-right: 1.5rem;
}

.main-header {
    padding: 1rem 0;
}

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

.logo a {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.main-nav > ul {
    display: flex;
    gap: 2rem;
    align-items: center;
}

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

.main-nav a {
    font-weight: 600;
    color: var(--text-dark);
}

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

.has-submenu {
    position: relative;
}

.submenu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 0;
    padding: 0;
    font: inherit;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
}

.submenu-toggle:hover,
.submenu-toggle:focus-visible {
    color: var(--primary-color);
}

.submenu-caret {
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transition: transform 0.2s ease;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 50;
    min-width: 250px;
    padding: 0.45rem 0;
    margin: 0;
    background: var(--bg-white);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.submenu li {
    width: 100%;
}

.submenu a {
    display: block;
    width: 100%;
    padding: 0.6rem 1rem;
    line-height: 1.35;
    border-radius: 8px;
}

.submenu a:hover,
.submenu a:focus-visible {
    background: #f8f5f1;
}

.has-submenu:hover>.submenu,
.has-submenu:focus-within>.submenu,
.has-submenu.open>.submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.has-submenu.open>.submenu-toggle .submenu-caret,
.has-submenu:focus-within>.submenu-toggle .submenu-caret,
.has-submenu:hover>.submenu-toggle .submenu-caret {
    transform: rotate(225deg) translateY(-1px);
}

.nav-btn {
    padding: 0.6rem 1.5rem;
    color: white !important;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 5px 0;
}

/* Hero Section */
.hero {
    background-color: var(--primary-light);
    /* Light primary bg */
    padding: clamp(3rem, 5vw, 4.5rem) 0;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}

.hero-content {
    flex: 0.9;
    min-width: 0;
}

.hero h1 {
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: clamp(1rem, 1.25vw, 1.15rem);
    max-width: 62ch;
    margin-bottom: 2rem;
}

.hero-guarantees {
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-actions .btn {
    min-width: 170px;
    padding: 0.72rem 1.35rem;
    font-size: 0.95rem;
    line-height: 1.2;
}

.hero-image {
    flex: 1.2;
    position: relative;
    max-width: 700px;
    margin-left: auto;
}

.hero-img-real {
    width: 100%;
    height: auto;
    max-height: 620px;
    object-fit: cover;
    border-radius: var(--radius-card);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: block;
}

.experience-badge {
    position: absolute;
    bottom: -14px;
    left: -14px;
    background-color: var(--bg-white);
    padding: 1.1rem 1.2rem;
    border-radius: var(--radius-card);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-width: 138px;
}

.experience-badge .years {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 0.95;
}

.logo a {
    display: block;
    text-decoration: none;
}

.logo img {
    height: 58px;
    width: auto;
    display: block;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.2;
    font-family: var(--font-heading);
}

.experience-badge .text {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dark);
}

@media (max-width: 1200px) {
    .hero-container {
        gap: 1.8rem;
    }

    .hero-content {
        flex: 1;
    }

    .hero-image {
        flex: 1.05;
        max-width: 620px;
    }

    .hero-img-real {
        max-height: 540px;
    }

    .hero-actions .btn {
        min-width: 155px;
        padding: 0.68rem 1.1rem;
        font-size: 0.92rem;
    }

    .experience-badge {
        bottom: -10px;
        left: -10px;
    }
}

@media (max-width: 992px) {
    .hero {
        padding: 3rem 0;
    }

    .hero-container {
        gap: 1.4rem;
    }

    .hero h1 {
        font-size: 2.35rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.4rem;
    }

    .hero-guarantees {
        margin-bottom: 1.4rem;
    }

    .hero-image {
        max-width: 560px;
    }

    .hero-img-real {
        max-height: 470px;
    }

    .hero-actions {
        gap: 0.75rem;
    }

    .hero-actions .btn {
        min-width: 145px;
        padding: 0.65rem 1rem;
        font-size: 0.9rem;
    }

    .experience-badge {
        padding: 0.9rem 1rem;
        min-width: 125px;
    }

    .experience-badge .years {
        font-size: 1.9rem;
    }
}

/* Services Section */
.services {
    background-color: var(--bg-white);
}

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

.service-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.icon-box {
    width: 70px;
    height: 70px;
    background-color: var(--primary-light);
    /* Light primary background */
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.icon-box svg {
    width: 32px;
    height: 32px;
    stroke: var(--primary-dark);
    /* Dark green icon */
    stroke-width: 2;
}

.service-card:hover .icon-box {
    background-color: var(--primary-color);
}

.service-card:hover .icon-box svg {
    stroke: var(--bg-white);
}

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

/* Why Us / Split Section */
.split-section {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.split-image,
.split-content {
    flex: 1;
}

.features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.feature-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Reviews */
.reviews {
    background-color: #f3f3f3;
    text-align: center;
}

.reviews h2 {
    margin-bottom: 0.75rem;
}

.reviews .section-subtitle {
    color: #5f5349;
    max-width: 900px;
    margin: 0 auto;
}

.reviews-widget {
    margin-top: 2.2rem;
    display: grid;
    grid-template-columns: minmax(210px, 260px) 34px minmax(0, 1fr) 34px;
    gap: 1rem;
    align-items: center;
}

.reviews-score-card {
    background: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 18px;
    min-height: 330px;
    padding: 1.75rem 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.score-title {
    font-size: 2.25rem;
    line-height: 1;
    font-weight: 800;
    color: #333;
    margin-bottom: 1rem;
}

.score-stars {
    color: #f4b400;
    font-size: 2.2rem;
    letter-spacing: 0.22rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.score-rating {
    font-size: 1.1rem;
    color: #5f5349;
    margin-bottom: 1.25rem;
}

.score-brand {
    width: 150px;
    height: 52px;
    margin: 0 auto;
    text-indent: -9999px;
    overflow: hidden;
    background-image: url("../assets/icons/google-wordmark.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.reviews-nav {
    border: 0;
    background: transparent;
    color: #2f66b3;
    font-size: 2.5rem;
    line-height: 1;
    padding: 0;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
}

.reviews-nav:hover {
    color: #1f4f93;
    transform: scale(1.08);
}

.reviews-track {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.reviews-track::-webkit-scrollbar {
    display: none;
}

.reviews-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 2.5rem) / 3);
    gap: 1.25rem;
}

.review-card {
    background: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 18px;
    box-shadow: none;
    padding: 1.25rem 1.15rem 1.2rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    min-height: 330px;
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 1rem;
}

.quote-icon {
    display: none;
}

.stars {
    color: #f4b400;
    font-size: 1.85rem;
    letter-spacing: 2px;
    line-height: 1;
}

.review-text {
    font-style: normal;
    color: #333;
    margin-bottom: 0;
    flex-grow: 1;
    font-size: 1.08rem;
    line-height: 1.5;
}

.review-text::after {
    content: "Leer más";
    display: block;
    margin-top: 1rem;
    color: #6a5a4f;
    font-size: 0.9rem;
    font-weight: 500;
}

.review-footer {
    order: -1;
    border-top: 0;
    padding-top: 0;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.review-footer::after {
    content: "";
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background-image: url("../assets/icons/google-g.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 1;
}

.client-info {
    min-width: 0;
}

.client-name {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 700;
    color: #333;
    font-size: 1rem;
    margin-bottom: 0.15rem;
}

.client-name::before {
    content: attr(data-initial);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    background: #2d8ac7;
    flex-shrink: 0;
}

.review-card:nth-child(2n) .client-name::before {
    background: #79ad3e;
}

.review-card:nth-child(3n) .client-name::before {
    background: #d35e00;
}

.client-location {
    display: block;
    font-size: 0.85rem;
    color: #6a5a4f;
    margin-left: 3.45rem;
}

@media (max-width: 1100px) {
    .reviews-widget {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .reviews-score-card {
        min-height: auto;
        padding: 1.5rem 1rem;
    }

    .reviews-nav {
        display: none;
    }

    .reviews-grid {
        grid-auto-columns: minmax(260px, 78vw);
    }
}

@media (max-width: 768px) {
    .score-title {
        font-size: 1.9rem;
    }

    .score-stars {
        font-size: 1.9rem;
    }

    .score-brand {
        width: 130px;
        height: 45px;
    }

    .review-card {
        min-height: 300px;
    }

    .review-text {
        font-size: 1rem;
    }
}

/* Areas (Pill Layout - Corporate Colors) */
.areas {
    background-color: var(--bg-white);
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: start;
}

.area-column h3 {
    color: var(--primary-dark);
    /* Corporate Dark Green */
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.area-pills {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.area-pills li {
    background-color: var(--primary-light);
    /* Corporate Light Primary */
    color: var(--text-dark);
    padding: 0.8rem 1rem;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.area-pills li:hover {
    transform: translateY(-2px);
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.internal-links-highlight {
    margin-top: 2.25rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    border: 1px solid rgba(198, 122, 68, 0.25);
    border-radius: 16px;
    background: linear-gradient(135deg, #fdf9f5 0%, #f8efe6 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.areas .internal-links-highlight {
    margin-top: 0;
}

.internal-links-highlight h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.internal-links-highlight p {
    margin-bottom: 1rem;
    color: var(--text-medium);
}

.internal-links-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.internal-link-card {
    display: block;
    text-decoration: none;
    color: var(--text-dark);
    background: var(--bg-white);
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-left: 4px solid var(--primary-color);
    border-radius: 12px;
    padding: 0.95rem 0.95rem 1rem;
    min-height: 120px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.internal-link-title {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--primary-dark);
    font-family: var(--font-heading);
    font-size: 1.03rem;
    font-weight: 700;
}

.internal-link-desc {
    display: block;
    font-size: 0.94rem;
    line-height: 1.45;
    color: var(--text-medium);
}

.internal-link-card:hover,
.internal-link-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(198, 122, 68, 0.45);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.1);
}

@media (max-width: 1024px) {
    .internal-links-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Contact Section */
.contact {
    background-color: var(--bg-light);
}

.contact-wrapper {
    display: flex;
    gap: 3rem;
    background: var(--bg-white);
    padding: 3rem;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.contact-form-container {
    flex: 2;
}

.contact-info-container {
    flex: 1;
    background-color: var(--primary-dark);
    color: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-card);
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
    flex: 1;
}

.hero-guarantees span {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.required {
    color: #e74c3c;
    margin-left: 3px;
}

.hero-icon {
    width: 32px;
    height: 32px;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2.5;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    background-color: #f9f9f9;
}

.contact-info-container h4 {
    color: var(--bg-white);
    margin-bottom: 0.5rem;
}

.info-item {
    margin-bottom: 2rem;
}

.cta-box {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 4px;
    margin-top: 2rem;
}

/* Footer */
.site-footer {
    background-color: var(--bg-dark);
    color: #b0b0b0;
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    color: var(--bg-white);
    margin-bottom: 1.5rem;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

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

.footer-map iframe {
    width: 100%;
    min-height: 200px;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .footer-map {
        grid-column: 1 / -1;
    }
}

.footer-bottom {
    background-color: #15181c;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        padding: 1rem;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

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

    .main-nav > ul {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .main-nav > ul > li {
        width: 100%;
    }

    .main-nav a {
        display: block;
        width: 100%;
    }

    .submenu-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 0.15rem 0;
    }

    .submenu {
        position: static;
        min-width: 0;
        margin-top: 0.45rem;
        padding: 0.2rem 0 0.2rem 0.75rem;
        border: 0;
        border-left: 2px solid rgba(198, 122, 68, 0.32);
        border-radius: 0;
        box-shadow: none;
        background: transparent;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        display: none;
        transition: none;
    }

    .submenu li {
        width: 100%;
    }

    .has-submenu.open>.submenu {
        display: block;
    }

    .submenu a {
        padding: 0.5rem 0.3rem;
        font-size: 0.97rem;
    }

    .submenu a:hover,
    .submenu a:focus-visible {
        background: transparent;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero {
        padding: 2.4rem 0 3rem;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
        max-width: none;
    }

    .hero-guarantees {
        justify-content: center;
        flex-direction: column;
        gap: 0.8rem;
        margin-bottom: 1.5rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        display: block;
        min-width: 0;
        font-size: 0.98rem;
        padding: 0.75rem 1rem;
    }

    .hero-image {
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
    }

    .hero-img-real {
        max-height: 420px;
    }

    .experience-badge {
        position: absolute;
        bottom: -15px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        min-width: auto;
        padding: 0.9rem;
    }

    .experience-badge .years {
        font-size: 1.85rem;
    }

    .experience-badge .text {
        font-size: 0.78rem;
    }

    .split-section {
        flex-direction: column;
    }

    .features-list {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        flex-direction: column;
        padding: 1rem;
        gap: 2rem;
    }

    /* Prevent iOS zoom on inputs and improve touch targets */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
    }

    /* Ensure buttons wrap text if needed on small screens */
    .btn {
        white-space: normal;
        height: auto;
        min-height: 48px;
        /* Better touch target */
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 1.2;
    }

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

    .internal-links-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0 2.6rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.96rem;
    }

    .hero-guarantees span {
        font-size: 0.95rem;
    }

    .hero-icon {
        width: 28px;
        height: 28px;
    }

    .hero-icon svg {
        width: 16px;
        height: 16px;
    }

    .hero-img-real {
        max-height: 340px;
    }

    .experience-badge {
        bottom: -12px;
        width: 94%;
    }

    .experience-badge .years {
        font-size: 1.65rem;
    }

    .experience-badge .text {
        font-size: 0.74rem;
    }
}

/* Real Cases Section */
.real-cases {
    background-color: var(--bg-light);
    padding: 4rem 0;
}

.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto 2rem;
    padding: 0 3rem;
    /* Space for arrows */
}

.carousel-track-container {
    overflow: hidden;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.carousel-track {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
    transition: transform 0.4s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 2.5rem;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
}

.carousel-btn:hover {
    color: var(--primary-dark);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
    gap: 0.5rem;
}

.carousel-indicator {
    border: none;
    width: 12px;
    height: 12px;
    background-color: #ccc;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    /* Touch target expansion */
    position: relative;
    margin: 0 10px;
}

.carousel-indicator::after {
    content: '';
    position: absolute;
    top: -16px;
    left: -16px;
    right: -16px;
    bottom: -16px;
}

.carousel-indicator.current-slide {
    background-color: var(--primary-color);
}

.case-card {
    background: var(--bg-white);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.case-images {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    gap: 4px;
    /* Small gap for separation */
    background: white;
    /* White background shows through gap */
}

.case-image {
    flex: 1;
    position: relative;
    height: 250px;
}

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

.case-label {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    z-index: 1;
}

.case-label.before {
    background-color: rgba(0, 0, 0, 0.6);
}

.case-label.after {
    background-color: var(--primary-color);
}

.case-info {
    padding: 1.5rem;
    text-align: center;
}

.case-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

/* Pricing Section */
.pricing {
    background-color: var(--bg-light);
}

.pricing-list {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.pricing-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.pricing-item:last-child {
    border-bottom: none;
}

.service-name {
    font-weight: 600;
    color: var(--text-dark);
}

.service-price {
    font-weight: 700;
    color: var(--primary-color);
}

/* How We Work Section */
.how-we-work {
    background-color: var(--bg-white);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    counter-reset: step-counter;
}

.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: #fff;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease;
    position: relative;
    border-top: 4px solid var(--primary-color);
}

.step-card:hover {
    transform: translateY(-10px);
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-light);
    /* Lighter green for number */
    opacity: 0.3;
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
}

.step-card h3 {
    color: var(--primary-dark);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

.step-card p {
    position: relative;
    z-index: 1;
}

/* FAQs Section */
.faqs {
    background-color: var(--bg-white);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

details {
    background: var(--bg-light);
    margin-bottom: 1rem;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
}

details[open] {
    background: var(--bg-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

summary {
    padding: 1rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-dark);
    list-style: none;
    /* Remove default triangle */
    position: relative;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    position: absolute;
    right: 1rem;
    font-weight: 700;
    color: var(--primary-color);
}

details[open] summary::after {
    content: '-';
}

details p {
    padding: 1rem;
    padding-top: 0;
    color: var(--text-light);
    border-top: 1px solid #eee;
}

/* Final CTA Section */
.final-cta {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../assets/images/pergolas-madera-granada.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--bg-white);
    text-align: center;
    padding: 6rem 0;
}

.final-cta h2 {
    color: var(--bg-white);
    margin-bottom: 2rem;
}

.cta-bullets {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    font-weight: 600;
}

.cta-bullets span {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Responsive Adjustments for new sections */
@media (max-width: 768px) {
    .pricing-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .cta-bullets {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-actions {
        flex-direction: column;
    }
}

/* WhatsApp Widget */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: white;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--text-dark);
    color: var(--white);
    padding: 1rem;
    z-index: 10000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

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

    .cookie-content p {
        margin-bottom: 0;
        margin-right: 2rem;
    }
}

.cookie-content p {
    font-size: 0.9rem;
    margin: 0;
}

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

.cookie-link {
    color: var(--white);
    text-decoration: underline;
    font-size: 0.85rem;
}

.cookie-link:hover {
    color: var(--primary-color);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}
