:root {
    --primary-color: #f5d924;
    --primary-dark: #b36b2a;
    --text-dark: #1e1e1e;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-dark: #111111;
    --white: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 20px 35px -8px rgba(0,0,0,0.1);
    --font-family: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

html:focus-within {
    scroll-behavior: smooth;
}

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

.skip-link {
    position: absolute;
    left: -999px;
    top: 8px;
    z-index: 10001;
    background: #111;
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 600;
}

.skip-link:focus {
    left: 8px;
}

a {
    text-decoration: none;
    color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(217, 140, 63, 0.5);
    outline-offset: 2px;
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    z-index: 1000;
    border-bottom: 3px solid var(--primary-color);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 500;
}

.logo i {
    font-size: 2rem;
    color: var(--primary-color);
}

.logo strong {
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    margin-left: auto;
    margin-right: 18px;
}

.nav-list {
    display: flex;
    gap: 32px;
    justify-content: flex-end;
}

.nav-social-mobile {
    display: none;
}

.nav-link {
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-social {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-social a {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: all 0.25s ease;
}

.header-social a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.btn-contacto-header {
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.btn-contacto-header:hover {
    background: var(--primary-dark);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: 1px solid transparent;
    border: none;
    font-size: 1.8rem;
    color: var(--text-dark);
    cursor: pointer;
}

.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    color: white;
    margin-top: 80px;
    overflow: hidden;
}

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

.hero-lcp-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.hero-carousel-slide.active {
    opacity: 1;
}

.hero-carousel-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.15);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 2;
}

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

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title span {
    color: var(--primary-color);
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: #1f2937;
    box-shadow: 0 10px 20px rgba(217, 140, 63, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: #111111;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(217, 140, 63, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: var(--text-dark);
}

.btn-block {
    width: 100%;
}

.section {
    padding: 100px 0;
}

main > .section {
    content-visibility: auto;
    contain-intrinsic-size: 1px 900px;
}

.bg-light {
    background-color: var(--bg-light);
}

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

.section-tag {
    display: inline-block;
    background: rgba(217, 140, 63, 0.1);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 6px 18px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 1.1rem;
}

.about-list {
    margin: 30px 0;
}

.about-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.about-list i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

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

.stat-card {
    background: white;
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
}

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

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    border: 1px solid var(--border-color);
}

.service-image {
    width: 100%;
    height: 170px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 18px;
}

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

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

.service-icon {
    background: rgba(217, 140, 63, 0.1);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.service-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.portfolio-item {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 300px;
    position: relative;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.4s;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-item:focus-within .portfolio-overlay,
.portfolio-item:focus .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.portfolio-overlay p {
    opacity: 0.9;
    font-size: 0.9rem;
}

.text-center {
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-info {
    background: var(--text-dark);
    color: white;
    padding: 50px 40px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.info-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.info-list i {
    color: var(--primary-color);
    font-size: 1.3rem;
    min-width: 25px;
}

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

.contact-note {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.contact-note p {
    margin-bottom: 10px;
    opacity: 0.8;
}

.contact-map {
    margin-top: 24px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.18);
}

.contact-map iframe {
    width: 100%;
    height: 230px;
    border: 0;
    display: block;
}

.contact-form {
    padding: 50px 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input:not([type="checkbox"]), textarea, select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: border 0.3s;
}

select {
    background: #fff;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(217, 140, 63, 0.18);
}

.consent-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.consent-group input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
}

.consent-group label {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.consent-group a {
    color: var(--primary-color);
    text-decoration: underline;
}

.form-status {
    margin-top: 15px;
    font-weight: 600;
    min-height: 22px;
}

.footer {
    background: var(--bg-dark);
    color: #aaa;
    padding: 70px 0 20px;
}

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

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.footer-logo i {
    color: var(--primary-color);
    font-size: 2rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

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

.footer-social {
    margin-top: 18px;
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid #3b3b3b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #d6d6d6;
    transition: all 0.25s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 99;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 12000;
    background: #111;
    color: #f5f5f5;
    border: 1px solid #2f2f2f;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
    padding: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.cookie-banner p {
    margin: 0;
    flex: 1 1 320px;
    font-size: 0.92rem;
    line-height: 1.45;
}

.cookie-banner a {
    color: #f6cc9f;
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 8px;
}

.cookie-btn {
    border-radius: 9px;
    border: 1px solid #4a4a4a;
    min-height: 40px;
    padding: 8px 12px;
    font-weight: 600;
    cursor: pointer;
}

.cookie-btn-reject {
    background: #1c1c1c;
    color: #eaeaea;
}

.cookie-btn-accept {
    background: var(--primary-color);
    color: #111;
    border-color: var(--primary-dark);
}

@media (max-width: 1024px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        padding: 40px;
        transition: left 0.3s;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 30px;
        font-size: 1.3rem;
    }

    .nav-link {
        font-size: 1.1rem;
    }

    .nav-social-mobile {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-top: 28px;
    }

    .nav-social-mobile a {
        width: 40px;
        height: 40px;
        border-radius: 999px;
        border: 1px solid var(--border-color);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--text-dark);
    }

    .mobile-menu-btn {
        display: block;
        min-width: 44px;
        min-height: 44px;
    }

    .btn-contacto-header span {
        display: none;
    }

    .header-social {
        display: none;
    }
    
    .btn-contacto-header i {
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .header-container {
        height: 72px;
    }

    .hero {
        min-height: 620px;
        margin-top: 72px;
    }

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

    .section {
        padding: 60px 0;
    }

    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .contact-info,
    .contact-form {
        padding: 30px 22px;
    }

    .whatsapp-float {
        width: 54px;
        height: 54px;
        font-size: 1.7rem;
        bottom: 18px;
        right: 18px;
    }

    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .reveal-on-scroll {
        opacity: 0;
        transform: translateY(22px);
        transition: opacity 0.65s ease, transform 0.65s ease;
        will-change: opacity, transform;
    }

    .reveal-on-scroll.reveal-image {
        transform: translateY(20px) scale(0.98);
    }

    .reveal-on-scroll.is-visible {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}