/* ========================================
   RESET & BASE
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #ffffff;
    color: #1e1e1e;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    padding-top: 80px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.grid-12 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.section-spacer {
    padding: 90px 0;
}

h1,
h2,
h3,
h4 {
    font-weight: 500;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.4rem, 7vw, 4.8rem);
    font-weight: 600;
    line-height: 1.1;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 500;
    margin-bottom: 1.2rem;
}

h3 {
    font-size: 1.3rem;
    font-weight: 500;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ========================================
   BOTONES
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 48px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid transparent;
    font-size: 0.95rem;
    background: white;
    color: #1e1e1e;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background: #F4B400;
    color: #1e1e1e;
    border-color: #F4B400;
}
.btn-primary:hover {
    background: #dba100;
    border-color: #dba100;
    box-shadow: 0 8px 20px rgba(244, 180, 0, 0.2);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    border-color: #25D366;
}
.btn-whatsapp:hover {
    background: #1da851;
    border-color: #1da851;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.2);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid #1e1e1e;
    color: #1e1e1e;
}
.btn-outline:hover {
    background: #1e1e1e;
    color: white;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

/* ========================================
   HEADER
======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    z-index: 1000;
    padding: 0 24px;
    height: 80px;
    display: flex;
    align-items: center;
    transition: box-shadow 0.3s ease;
}
.header.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.header-inner {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: -0.02em;
    color: #1e1e1e;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}
.logo i {
    color: #F4B400;
    font-size: 1.4rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}
.nav-links a {
    text-decoration: none;
    color: #1e1e1e;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
    color: #F4B400;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
}
.hamburger span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: #1e1e1e;
    border-radius: 4px;
    transition: 0.25s ease;
}
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    z-index: 999;
    padding: 40px 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.mobile-nav.open {
    display: flex;
    opacity: 1;
    pointer-events: all;
}
.mobile-nav a {
    font-size: 1.6rem;
    font-weight: 500;
    color: #1e1e1e;
    text-decoration: none;
    transition: color 0.2s;
}
.mobile-nav a:hover {
    color: #F4B400;
}
.mobile-nav .nav-actions-mobile {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 12px;
    width: 100%;
    max-width: 280px;
}
.mobile-nav .nav-actions-mobile .btn {
    width: 100%;
    justify-content: center;
    padding: 14px;
}

/* ========================================
   SECCIONES CON MÁRGENES UNIFORMES
======================================== */
/* Todas las secciones con fondo o sin fondo tienen el mismo margen lateral */
.section-with-margin {
    margin: 0 12px;
    border-radius: 48px;
}

/* Secciones sin fondo también mantienen el mismo padding */
.section-spacer {
    padding: 90px 0;
}

/* ========================================
   HERO
======================================== */
.hero {
    display: flex;
    align-items: center;
    position: relative;
    background-color: #f0f0f0;
    border-radius: 0 0 48px 48px;
    margin: 0 12px 0 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.02);
    background-image: url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?q=80&w=1770&auto=format&fit=crop');
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
    min-height: 480px;
    max-height: 80vh;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    width: 100%;
}

.hero-overlay {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(2px);
    width: 100%;
    height: 100%;
    padding: 40px 0;
    border-radius: 0 0 48px 48px;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.hero-content {
    max-width: 720px;
    width: 100%;
    padding: 0 8px;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 40px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    flex: 1 0 auto;
    min-width: 140px;
}
.stat-item i {
    font-size: 1.3rem;
    color: #F4B400;
    width: 26px;
    flex-shrink: 0;
}
.stat-number {
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}

/* ========================================
   SOBRE NOSOTROS
======================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.about-image {
    background: #e8e8e8;
    border-radius: 32px;
    overflow: hidden;
    min-height: 280px;
    background-image: url('https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?q=80&w=1770&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.08);
}

/* ========================================
   SERVICIOS - 2 FILAS × 3 COLUMNAS
======================================== */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.service-card {
    background: white;
    padding: 32px 24px 28px;
    border-radius: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    min-height: 220px;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.06);
    border-color: #eaeaea;
}
.service-card i {
    font-size: 2.4rem;
    color: #F4B400;
    margin-bottom: 14px;
    flex-shrink: 0;
}
.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 600;
}
.service-card p {
    color: #4a4a4a;
    font-size: 0.92rem;
    line-height: 1.5;
    flex: 1;
}

/* ========================================
   BENEFICIOS - 4 OPCIONES
======================================== */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 40px;
}
.benefit-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1rem;
    padding: 6px 0;
}
.benefit-item i {
    color: #F4B400;
    font-size: 1.3rem;
    width: 28px;
    flex-shrink: 0;
}

/* ========================================
   PROYECTOS
======================================== */
.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.proyecto-card {
    border-radius: 28px;
    overflow: hidden;
    background: #fafafa;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    display: block;
}
.proyecto-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.06);
}
.proyecto-img {
    height: 200px;
    background: #d0d0d0;
    background-size: cover;
    background-position: center;
}
.proyecto-info {
    padding: 18px 18px 22px;
}
.proyecto-info h4 {
    font-weight: 600;
    font-size: 1rem;
}
.proyecto-info .categoria {
    color: #6b6b6b;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.proyecto-info p {
    margin-top: 4px;
    color: #3a3a3a;
    font-size: 0.9rem;
}
.proyecto-info .ver-mas {
    display: inline-block;
    margin-top: 10px;
    color: #F4B400;
    font-weight: 600;
    font-size: 0.85rem;
}

/* ========================================
   PROCESO
======================================== */
.timeline-wrapper {
    overflow-x: auto;
    padding: 12px 0 20px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.timeline {
    display: flex;
    gap: 12px;
    min-width: 700px;
    justify-content: space-between;
}
.timeline-step {
    flex: 1 0 120px;
    text-align: center;
    padding: 20px 8px 16px;
    border-radius: 32px;
    background: #f8f8f8;
    border: 1px solid #ececec;
    transition: 0.2s;
    min-width: 100px;
}
.timeline-step .step-num {
    font-weight: 600;
    color: #F4B400;
    font-size: 1.6rem;
    display: block;
    line-height: 1.2;
}
.timeline-step .step-title {
    display: block;
    margin-top: 4px;
    font-weight: 600;
    font-size: 0.95rem;
}
.timeline-step .step-desc {
    display: block;
    font-size: 0.75rem;
    color: #4a4a4a;
    margin-top: 4px;
    line-height: 1.3;
    max-width: 140px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   TESTIMONIOS
======================================== */
.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.testimonio-card {
    background: white;
    padding: 28px 20px;
    border-radius: 32px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}
.testimonio-card .avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #d4d4d4;
    margin-bottom: 14px;
    background-size: cover;
}
.testimonio-card .stars {
    color: #F4B400;
    letter-spacing: 2px;
    font-size: 0.9rem;
}
.testimonio-card blockquote {
    font-style: normal;
    font-weight: 400;
    margin: 10px 0 6px;
    color: #1e1e1e;
    font-size: 0.95rem;
}

/* ========================================
   FAQ
======================================== */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.faq-item {
    background: #fafafa;
    border-radius: 24px;
    padding: 16px 24px;
    cursor: pointer;
    border: 1px solid #f0f0f0;
    transition: 0.2s;
}
.faq-item:hover {
    background: #f5f5f5;
}
.faq-item .faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.faq-item .question {
    font-weight: 500;
    font-size: 1rem;
}
.faq-item .answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.3s ease;
    color: #4a4a4a;
    padding-right: 20px;
}
.faq-item.active .answer {
    max-height: 160px;
    padding-top: 12px;
}
.faq-item i {
    transition: transform 0.25s;
    color: #1e1e1e;
    font-size: 1rem;
    flex-shrink: 0;
}
.faq-item.active i {
    transform: rotate(180deg);
}

/* ========================================
   CTA OSCURO
======================================== */
.cta-dark {
    background: #1a1a1a;
    color: white;
    border-radius: 48px;
    padding: 60px 32px;
    text-align: center;
}
.cta-dark h2 {
    color: white;
    margin-bottom: 20px;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}
.cta-dark .btn-primary {
    background: #F4B400;
    color: #1a1a1a;
    border: none;
    padding: 16px 44px;
    font-size: 1rem;
}
.cta-dark .btn-primary:hover {
    background: #e0a800;
}

/* ========================================
   FOOTER
======================================== */
.footer {
    padding: 40px 0 28px;
    border-top: 1px solid #efefef;
    margin-top: 12px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
}
.footer-links a,
.footer-contact p {
    color: #2c2c2c;
    text-decoration: none;
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
}
.footer-links a:hover {
    color: #F4B400;
}
.footer-social i {
    font-size: 1.4rem;
    margin-right: 16px;
    color: #2c2c2c;
    transition: color 0.2s;
}
.footer-social i:hover {
    color: #F4B400;
}

/* ========================================
   PÁGINA DE DETALLE
======================================== */
.detalle-header {
    padding: 20px 0 10px;
}
.detalle-header .breadcrumb {
    font-size: 0.85rem;
    color: #6b6b6b;
    margin-bottom: 16px;
}
.detalle-header .breadcrumb a {
    color: #6b6b6b;
    text-decoration: none;
}
.detalle-header .breadcrumb a:hover {
    color: #F4B400;
}

.detalle-galeria {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    margin: 24px 0 40px;
}
.detalle-galeria .main-img {
    border-radius: 28px;
    overflow: hidden;
    background: #e8e8e8;
    min-height: 400px;
    background-size: cover;
    background-position: center;
}
.detalle-galeria .thumbnails {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.detalle-galeria .thumb {
    border-radius: 20px;
    overflow: hidden;
    background: #e8e8e8;
    min-height: 190px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: 0.2s;
}
.detalle-galeria .thumb:hover {
    opacity: 0.8;
}

.detalle-contenido {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    margin: 32px 0 50px;
}
.detalle-contenido .descripcion p {
    color: #3a3a3a;
    margin-bottom: 16px;
    font-size: 1.05rem;
    line-height: 1.7;
}
.detalle-contenido .descripcion ul {
    list-style: none;
    padding: 0;
}
.detalle-contenido .descripcion ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.detalle-contenido .descripcion ul li i {
    color: #F4B400;
    width: 20px;
}

.detalle-reseña {
    background: #fafafa;
    border-radius: 28px;
    padding: 32px 28px;
    border: 1px solid #f0f0f0;
    align-self: start;
}
.detalle-reseña .avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #d4d4d4;
    background-size: cover;
    margin-bottom: 16px;
}
.detalle-reseña .stars {
    color: #F4B400;
    font-size: 1.1rem;
    letter-spacing: 3px;
    margin-bottom: 8px;
}
.detalle-reseña blockquote {
    font-size: 1.05rem;
    font-style: normal;
    color: #1e1e1e;
    line-height: 1.6;
}
.detalle-reseña .cliente {
    margin-top: 16px;
    font-weight: 600;
}
.detalle-reseña .cliente span {
    font-weight: 400;
    color: #6b6b6b;
}

/* ========================================
   PÁGINA DE PROYECTOS - HERO CORREGIDO
======================================== */
.page-hero {
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?q=80&w=1770&auto=format&fit=crop');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    border-radius: 0 0 48px 48px;
    margin: 0 12px 0 12px;
    min-height: 320px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.page-hero .overlay {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    width: 100%;
    height: 100%;
    padding: 50px 0;
    border-radius: 0 0 48px 48px;
    display: flex;
    align-items: center;
}

.page-hero .overlay .container {
    width: 100%;
}

.page-hero h1 {
    color: white;
    margin-bottom: 8px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.page-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    max-width: 560px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ========================================
   FORMULARIO DE CONTACTO (MODAL)
======================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.active {
    display: flex;
}

.modal-form {
    background: white;
    border-radius: 32px;
    padding: 40px 36px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-form .close-modal {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: #6b6b6b;
    transition: color 0.2s;
}
.modal-form .close-modal:hover {
    color: #1e1e1e;
}

.modal-form h2 {
    font-size: 1.5rem;
    margin-bottom: 6px;
}
.modal-form .subtitle {
    color: #6b6b6b;
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.modal-form .form-group {
    margin-bottom: 18px;
}
.modal-form label {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: #2c2c2c;
}
.modal-form input,
.modal-form select,
.modal-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
    background: #fafafa;
}
.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: #F4B400;
    background: white;
}
.modal-form textarea {
    resize: vertical;
    min-height: 80px;
}
.modal-form .btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    margin-top: 8px;
}

/* ========================================
   PÁGINA DE AGRADECIMIENTO
======================================== */
.gracias-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    text-align: center;
    padding: 40px 20px;
}
.gracias-page .icono {
    font-size: 4rem;
    color: #F4B400;
    margin-bottom: 24px;
}
.gracias-page h1 {
    font-size: 2.8rem;
    margin-bottom: 12px;
}
.gracias-page p {
    font-size: 1.1rem;
    color: #4a4a4a;
    max-width: 500px;
    margin: 0 auto 32px;
}

/* ========================================
   UTILIDADES
======================================== */
.col-span-4 {
    grid-column: span 4;
}
.col-span-6 {
    grid-column: span 6;
}
.col-span-12 {
    grid-column: span 12;
}
.text-center {
    text-align: center;
}
.mt-8 {
    margin-top: 32px;
}
.mb-8 {
    margin-bottom: 32px;
}

.fade-up {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1024px) {
    .proyectos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .testimonios-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .nav-links {
        gap: 18px;
    }
    .nav-actions .btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    .hero {
        min-height: 400px;
        aspect-ratio: 16 / 10;
    }
    .detalle-galeria {
        grid-template-columns: 1fr;
    }
    .detalle-galeria .thumbnails {
        grid-template-columns: repeat(4, 1fr);
    }
    .detalle-galeria .thumb {
        min-height: 120px;
    }
    .detalle-contenido {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .service-card {
        min-height: 200px;
        padding: 28px 20px 24px;
    }
    .page-hero {
        min-height: 260px;
    }
}

@media (max-width: 820px) {
    .nav-links {
        display: none;
    }
    .nav-actions {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    .header {
        padding: 0 16px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    .header {
        height: 70px;
    }
    .container {
        padding: 0 16px;
    }
    .section-spacer {
        padding: 50px 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .about-image {
        min-height: 200px;
    }
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .benefit-item {
        font-size: 0.95rem;
    }
    .proyectos-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .proyecto-img {
        height: 180px;
    }
    .testimonios-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    /* Servicios - 1 columna en móvil */
    .servicios-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .service-card {
        min-height: 160px;
        padding: 24px 20px 20px;
    }
    .service-card i {
        font-size: 2rem;
    }
    .service-card h3 {
        font-size: 1.1rem;
    }
    .service-card p {
        font-size: 0.9rem;
    }

    .hero {
        aspect-ratio: auto;
        min-height: auto;
        max-height: none;
        border-radius: 0 0 32px 32px;
        margin: 0 8px 0 8px;
        background-position: center 30%;
        height: auto;
        padding: 0;
    }

    .hero-overlay {
        padding: 32px 0;
        border-radius: 0 0 32px 32px;
        position: relative;
        width: 100%;
    }

    .hero-content {
        padding: 0 4px;
    }

    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px 20px;
        margin-top: 24px;
        padding-top: 18px;
        justify-content: flex-start;
    }
    .stat-item {
        min-width: 120px;
        flex: 0 1 auto;
        font-size: 0.85rem;
    }
    .stat-item i {
        font-size: 1.1rem;
        width: 22px;
    }
    .stat-number {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-top: 20px;
    }
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 0.95rem;
    }

    h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 1rem !important;
        margin-top: 10px !important;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .cta-dark {
        padding: 40px 20px;
        border-radius: 32px;
    }
    .timeline-step {
        flex: 1 0 80px;
        padding: 14px 6px;
    }
    .timeline-step .step-desc {
        font-size: 0.7rem;
        max-width: 100px;
    }
    .faq-item {
        padding: 14px 18px;
    }
    .faq-item .question {
        font-size: 0.95rem;
    }
    .section-spacer[style*="background"] {
        border-radius: 32px;
        margin: 0 8px;
    }

    /* Page Hero - Corregido en móvil */
    .page-hero {
        border-radius: 0 0 32px 32px;
        margin: 0 8px 0 8px;
        min-height: 220px;
    }
    .page-hero .overlay {
        border-radius: 0 0 32px 32px;
        padding: 30px 0;
    }
    .page-hero h1 {
        font-size: 1.8rem;
    }
    .page-hero p {
        font-size: 1rem;
    }

    .detalle-galeria .thumbnails {
        grid-template-columns: 1fr 1fr;
    }
    .detalle-galeria .thumb {
        min-height: 100px;
    }
    .detalle-contenido {
        gap: 24px;
    }
    .detalle-reseña {
        padding: 24px 20px;
    }
    .detalle-cta {
        padding: 32px 20px;
    }
    .detalle-cta h3 {
        font-size: 1.4rem;
    }

    .modal-form {
        padding: 28px 20px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.7rem;
    }
    h2 {
        font-size: 1.4rem;
    }
    .hero {
        margin: 0 4px 0 4px;
        border-radius: 0 0 24px 24px;
    }
    .hero-overlay {
        padding: 24px 0;
        border-radius: 0 0 24px 24px;
    }
    .hero-stats {
        gap: 8px 12px;
        margin-top: 16px;
        padding-top: 14px;
    }
    .stat-item {
        min-width: 100px;
        font-size: 0.75rem;
        gap: 6px;
    }
    .stat-item i {
        font-size: 0.95rem;
        width: 18px;
    }
    .stat-number {
        font-size: 0.85rem;
    }
    .hero-buttons .btn {
        padding: 12px 16px;
        font-size: 0.85rem;
    }

    .service-card {
        padding: 18px 16px 16px;
        min-height: 140px;
    }
    .service-card i {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }
    .service-card h3 {
        font-size: 1rem;
    }
    .service-card p {
        font-size: 0.85rem;
    }

    .timeline-step {
        flex: 1 0 70px;
        padding: 12px 4px;
    }
    .timeline-step .step-num {
        font-size: 1.3rem;
    }
    .timeline-step .step-title {
        font-size: 0.8rem;
    }
    .timeline-step .step-desc {
        font-size: 0.65rem;
        max-width: 80px;
    }
    .cta-dark h2 {
        font-size: 1.3rem;
    }
    .logo {
        font-size: 1.2rem;
    }
    .mobile-nav a {
        font-size: 1.2rem;
    }

    /* Page Hero - aún más compacto */
    .page-hero {
        min-height: 180px;
        border-radius: 0 0 20px 20px;
        margin: 0 4px 0 4px;
    }
    .page-hero .overlay {
        padding: 24px 0;
        border-radius: 0 0 20px 20px;
    }
    .page-hero h1 {
        font-size: 1.5rem;
    }
    .page-hero p {
        font-size: 0.9rem;
    }

    .detalle-galeria .main-img {
        min-height: 240px;
    }
    .detalle-galeria .thumb {
        min-height: 80px;
    }
    .detalle-contenido .descripcion p {
        font-size: 0.95rem;
    }
    .detalle-reseña blockquote {
        font-size: 0.95rem;
    }
    .gracias-page h1 {
        font-size: 2rem;
    }
    .benefits-grid {
        gap: 10px;
    }
    .benefit-item {
        font-size: 0.9rem;
        gap: 10px;
    }
    .benefit-item i {
        font-size: 1.1rem;
        width: 24px;
    }
}