/* =====================================================
   RICART CAMBRA S.L. - ASESORÍA
   Diseño premium inspirado en FisioVida
   Paleta de colores: Ocre/Marrón elegante
   ===================================================== */

/* CSS Variables */
:root {
    /* Colores principales - Paleta Ocre/Marrón */
    --color-primary: #8B6914;
    --color-primary-dark: #6B5010;
    --color-primary-light: #A67C00;
    --color-accent: #C4A35A;

    /* Fondos */
    --bg-dark: #1A1612;
    --bg-dark-2: #2D2520;
    --bg-light: #FAF8F5;
    --bg-cream: #F5F2ED;

    /* Textos */
    --text-dark: #1A1612;
    --text-light: #FFFFFF;
    --text-muted: #6B6560;
    --text-muted-light: rgba(255, 255, 255, 0.7);

    /* Otros */
    --border-color: rgba(139, 105, 20, 0.2);
    --shadow: 0 10px 40px rgba(26, 22, 18, 0.1);
    --shadow-hover: 0 20px 60px rgba(26, 22, 18, 0.15);

    /* Tipografía */
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Espaciado */
    --section-padding: 100px 0;
    --container-padding: 0 24px;

    /* Transiciones */
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

/* Performance optimizations */
.servicio__card,
.contacto__card,
.feature,
.btn {
    will-change: transform;
}

.servicios,
.nosotros,
.contacto {
    contain: layout style;
}

/* Content visibility for off-screen optimization */
.contacto,
footer {
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

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

.section__subtitle {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.section__title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 20px;
    color: var(--text-dark);
}

.section__description {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.highlight {
    color: var(--color-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn--primary {
    background: var(--color-primary);
    color: var(--text-light);
    border-color: var(--color-primary);
}

.btn--primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 105, 20, 0.3);
}

.btn--secondary {
    background: transparent;
    color: var(--text-light);
    border-color: var(--text-light);
}

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

.btn--full {
    width: 100%;
}

/* =====================================================
   HEADER
   ===================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(26, 22, 18, 0.95);
    backdrop-filter: blur(20px);
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

/* Logo Header */
.nav__logo-img {
    height: 60px;
    width: 60px;
    object-fit: cover;
    transition: var(--transition);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.9);
    background: white;
}

.header.scrolled .nav__logo-img {
    height: 50px;
    width: 50px;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav__link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-light);
    position: relative;
    padding: 5px 0;
}

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

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__cta {
    padding: 12px 28px;
    background: var(--color-primary);
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 50px;
}

.nav__cta:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
}

.nav__toggle,
.nav__close {
    display: none;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg, rgba(26, 22, 18, 0.85) 0%, rgba(45, 37, 32, 0.9) 100%),
        url('hero-bg-optimized.jpg') center/cover no-repeat;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(139, 105, 20, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(196, 163, 90, 0.15) 0%, transparent 40%);
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 120px 24px 80px;
    max-width: 900px;
}

.hero__subtitle {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--color-accent);
    margin-bottom: 24px;
    padding: 10px 24px;
    border: 1px solid rgba(196, 163, 90, 0.3);
    border-radius: 50px;
}

.hero__title {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero__title .highlight {
    color: var(--color-accent);
}

.hero__description {
    font-size: 1.125rem;
    color: var(--text-muted-light);
    max-width: 650px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero__buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero__scroll-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted-light);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero__scroll-icon {
    width: 24px;
    height: 40px;
    border: 2px solid var(--color-accent);
    border-radius: 12px;
    position: relative;
}

.hero__scroll-icon::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 2px;
    animation: scroll-indicator 2s ease-in-out infinite;
}

@keyframes scroll-indicator {

    0%,
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    50% {
        opacity: 0.5;
        transform: translateX(-50%) translateY(10px);
    }
}

/* =====================================================
   SERVICIOS SECTION
   ===================================================== */
.servicios {
    padding: var(--section-padding);
    background: var(--bg-light);
}

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

.servicio__card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.servicio__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.servicio__card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.servicio__card:hover::before {
    transform: scaleX(1);
}

.servicio__icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    border-radius: 16px;
    margin-bottom: 24px;
}

.servicio__icon svg {
    width: 30px;
    height: 30px;
    color: white;
}

.servicio__title {
    font-size: 1.375rem;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.servicio__description {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.servicio__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9375rem;
}

.servicio__link span {
    transition: var(--transition);
}

.servicio__link:hover span {
    transform: translateX(5px);
}

/* Nota de servicios personalizados */
.servicios__nota {
    margin-top: 60px;
}

.nota__content {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 30px 40px;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
    border-radius: 20px;
    border-left: 4px solid var(--color-accent);
}

.nota__icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent);
    border-radius: 50%;
    flex-shrink: 0;
}

.nota__icon svg {
    width: 24px;
    height: 24px;
    color: var(--bg-dark);
}

.nota__text h4 {
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 10px;
}

.nota__text p {
    color: var(--text-muted-light);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* =====================================================
   NOSOTROS SECTION
   ===================================================== */
.nosotros {
    padding: var(--section-padding);
    background: var(--bg-cream);
}

.nosotros__content {
    display: block;
    max-width: 800px;
    margin: 0 auto;
}

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

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

.nosotros__description {
    color: var(--text-muted);
    font-size: 1.0625rem;
    margin-bottom: 40px;
    line-height: 1.8;
    text-align: center;
}

.nosotros__features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature__icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
}

.feature__content h4 {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.feature__content p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.nosotros__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.stat {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stat__number {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 10px;
}

.stat__number::after {
    content: '+';
}

.stat:last-child .stat__number::after {
    content: '%';
}

.stat__label {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Empresas y Autónomos Section */
.nosotros__empresas {
    display: flex;
    align-items: center;
}

.empresas__card {
    background: linear-gradient(135deg, #8B6914 0%, #6B5010 100%) !important;
    padding: 50px 35px;
    border-radius: 24px;
    text-align: center !important;
    box-shadow: 0 20px 60px rgba(139, 105, 20, 0.3);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center;
    gap: 0 !important;
    align-items: center !important;
}

.empresas__card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.empresas__icon {
    width: 70px !important;
    height: 70px !important;
    max-width: 70px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 50%;
    margin: 0 auto 24px;
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.empresas__icon svg {
    width: 35px !important;
    height: 35px !important;
    max-width: 35px !important;
    color: white !important;
}

.empresas__title {
    font-size: 1.375rem;
    color: white !important;
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.empresas__description {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* =====================================================
   CONTACTO SECTION
   ===================================================== */
.contacto {
    padding: var(--section-padding);
    background: var(--bg-light);
}

.contacto__content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.contacto__info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contacto__card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.contacto__card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow);
}

.contacto__icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: 12px;
    flex-shrink: 0;
}

.contacto__icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.contacto__card-content h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.contacto__card-content p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.contacto__card-content a {
    color: var(--color-primary);
}

.contacto__card-content a:hover {
    color: var(--color-primary-dark);
}

.contacto__map {
    margin-top: 20px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border: 3px solid var(--color-primary);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: 4px;
    transition: all 0.3s ease;
}

.contacto__map:hover {
    box-shadow: 0 12px 40px rgba(139, 105, 20, 0.3);
    transform: translateY(-3px);
}

.contacto__map iframe {
    display: block;
    border-radius: 12px;
}

/* Tarjeta de ubicación con mapa */
.contacto__card--ubicacion {
    flex-direction: column;
    align-items: stretch;
}

.contacto__card--ubicacion .contacto__card-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.contacto__card-map {
    border-radius: 8px;
    overflow: hidden;
}

.contacto__card-map iframe {
    display: block;
}

/* Form Styles */
.contacto__form {
    background: white;
    padding: 50px;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.form__group {
    position: relative;
    margin-bottom: 24px;
}

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

.form__group input,
.form__group textarea,
.form__group select {
    width: 100%;
    padding: 18px 20px;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-light);
    color: var(--text-dark);
    transition: var(--transition);
}

.form__group input:focus,
.form__group textarea:focus,
.form__group select:focus {
    outline: none;
    border-color: var(--color-primary);
    background: white;
}

.form__group label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9375rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition);
    background: transparent;
    padding: 0 5px;
}

.form__group textarea~label {
    top: 20px;
    transform: none;
}

.form__group input:focus~label,
.form__group input:not(:placeholder-shown)~label,
.form__group textarea:focus~label,
.form__group textarea:not(:placeholder-shown)~label,
.form__group select:focus~label,
.form__group select:valid~label {
    top: 0;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: var(--color-primary);
    background: white;
}

.form__group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236B6560' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
}

.form__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 30px;
}

.form__checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--color-primary);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.form__checkbox label {
    font-size: 0.875rem;
    color: var(--text-muted);
    cursor: pointer;
}

.form__checkbox label a {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Honeypot - Hidden from users, visible to bots */
.form__honeypot {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
    visibility: hidden !important;
}

.form__honeypot input,
.form__honeypot label {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 80px 0 30px;
}

.footer__content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer__logo {
    height: 80px;
    width: 80px;
    object-fit: cover;
    margin-bottom: 24px;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.8);
    background: white;
}

.footer__description {
    color: var(--text-muted-light);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.footer__cif {
    color: var(--color-accent);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.footer__social {
    display: flex;
    gap: 16px;
}

.social__link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social__link svg {
    width: 20px;
    height: 20px;
}

.social__link:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
}

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

.footer__column h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-light);
}

.footer__column ul li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 0;
}

.footer__column ul li a {
    display: inline;
}

.footer__column ul li a,
.footer__column ul li {
    color: var(--text-muted-light);
    font-size: 0.9375rem;
    transition: var(--transition);
}

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

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__bottom p {
    color: var(--text-muted-light);
    font-size: 0.875rem;
}

.footer__legal {
    display: flex;
    gap: 30px;
}

.footer__legal a {
    color: var(--text-muted-light);
    font-size: 0.875rem;
}

.footer__legal a:hover {
    color: var(--color-accent);
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */
@media (max-width: 1024px) {
    .servicios__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nosotros__content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .nosotros__stats {
        order: -1;
    }

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

    .contacto__info {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .contacto__card {
        flex: 1 1 calc(50% - 12px);
    }

    .footer__content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 70px 0;
    }

    /* Mobile Navigation */
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-dark);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition-slow);
    }

    .nav__menu.show {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .nav__link {
        font-size: 1.5rem;
    }

    .nav__close {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        position: absolute;
        top: 30px;
        right: 30px;
        cursor: pointer;
    }

    .nav__close span {
        display: block;
        width: 30px;
        height: 2px;
        background: white;
        position: absolute;
    }

    .nav__close span:first-child {
        transform: rotate(45deg);
    }

    .nav__close span:last-child {
        transform: rotate(-45deg);
    }

    .nav__toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        z-index: 100;
    }

    .nav__toggle span {
        display: block;
        width: 28px;
        height: 2px;
        background: white;
        transition: var(--transition);
    }

    .nav__cta {
        display: none;
    }

    /* Hero Mobile */
    .hero__title {
        font-size: 2.5rem;
    }

    .hero__buttons {
        flex-direction: column;
        gap: 15px;
    }

    .hero__buttons .btn {
        width: 100%;
    }

    /* Servicios Mobile */
    .servicios__grid {
        grid-template-columns: 1fr;
    }

    .nota__content {
        flex-direction: column;
        padding: 24px;
        text-align: center;
    }

    .nota__icon {
        margin: 0 auto;
    }

    /* Nosotros Mobile */
    .nosotros__stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat {
        padding: 30px 20px;
    }

    .stat__number {
        font-size: 2.25rem;
    }

    /* Empresas Mobile */
    .nosotros__empresas {
        margin-top: 40px;
    }

    .empresas__card {
        padding: 35px 25px;
    }

    .empresas__title {
        font-size: 1.25rem;
    }

    /* Contacto Mobile */
    .contacto__card {
        flex: 1 1 100%;
    }

    .contacto__form {
        padding: 30px 24px;
    }

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

    /* Footer Mobile */
    .footer__links {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer__legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .hero__subtitle {
        font-size: 0.75rem;
        padding: 8px 16px;
    }

    .hero__title {
        font-size: 2rem;
    }

    .section__title {
        font-size: 1.75rem;
    }

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

/* =====================================================
   ANIMATIONS & EFFECTS PREMIUM
   ===================================================== */

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    z-index: 10001;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px var(--color-primary);
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide In Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Ripple Animation */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Confetti Fall Animation */
@keyframes confetti-fall {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
    }
}

/* Spin Animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Pulse Animation */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* Float Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Glow Animation */
@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 5px var(--color-accent), 0 0 10px var(--color-accent);
    }

    50% {
        box-shadow: 0 0 20px var(--color-accent), 0 0 40px var(--color-accent);
    }
}

/* Shimmer Animation */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Cursor Follower */
.cursor-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    background: transparent;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s;
    mix-blend-mode: difference;
}

.cursor-follower.cursor-grow {
    width: 50px;
    height: 50px;
    background: rgba(139, 105, 20, 0.2);
}

/* Service Card 3D Effect */
.servicio__card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
}

.servicio__card:hover {
    box-shadow: 0 30px 60px rgba(26, 22, 18, 0.2);
}

/* Button Hover Effects */
.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

/* Form Group Focus Effect */
.form__group.focused input,
.form__group.focused textarea,
.form__group.focused select {
    box-shadow: 0 0 0 3px rgba(139, 105, 20, 0.2);
}

.form__group.focused label {
    color: var(--color-primary);
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    max-width: 400px;
    padding: 20px 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    z-index: 10000;
    animation: slideIn 0.4s ease;
}

.notification__content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification__icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    color: white;
}

.notification--success .notification__icon {
    background: #10B981;
}

.notification--error .notification__icon {
    background: #EF4444;
}

.notification__message {
    font-size: 0.9375rem;
    color: var(--text-dark);
}

.notification__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.3s;
}

.notification__close:hover {
    color: var(--text-dark);
}

/* Hero Parallax Variables */
.hero__content {
    transition: transform 0.1s ease-out, opacity 0.1s ease-out;
    will-change: transform, opacity;
}

/* Feature Hover Animation */
.feature {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateX(10px);
}

.feature:hover .feature__icon {
    animation: pulse 0.6s ease;
}

/* Contact Card Shimmer */
.contacto__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transition: left 0.5s ease;
}

.contacto__card:hover::before {
    left: 100%;
}

/* Empresas Card Glow */
.empresas__card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.empresas__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(139, 105, 20, 0.4);
}

/* Header Transition */
.header {
    transition: transform 0.3s ease, background 0.3s ease, padding 0.3s ease;
}

/* Smooth Loading Transition */
body {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Service Link Arrow Animation */
.servicio__link span {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.servicio__link:hover span {
    transform: translateX(8px);
}

/* Footer Link Hover */
.footer__column a {
    position: relative;
}

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

.footer__column a:hover::after {
    width: 100%;
}

/* Scroll Indicator Bounce */
.hero__scroll-link {
    animation: float 2s ease-in-out infinite;
}

/* Nav CTA Button Glow on Hover */
.nav__cta:hover {
    box-shadow: 0 0 20px rgba(139, 105, 20, 0.5);
}

/* =====================================================
   NEW CREATIVE EFFECTS
   ===================================================== */

/* Section Reveal on Scroll */
section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

section.section-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero {
    opacity: 1 !important;
    transform: none !important;
}

/* Particle Float Animation */
@keyframes particleFloat {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translate(100px, -200px) rotate(360deg);
        opacity: 0;
    }
}

/* Hero Particles */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
    opacity: 0.4;
    animation: particleFloat 15s ease-in-out infinite;
}

.particle:nth-child(odd) {
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
}

.particle:nth-child(3n) {
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    opacity: 0.3;
}

/* Cursor Trail */
.cursor-trail {
    position: fixed;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    opacity: 0.6;
    animation: cursorFade 1s ease-out forwards;
    z-index: 9999;
}

@keyframes cursorFade {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* Highlight Text Animation */
.highlight {
    background: linear-gradient(120deg, var(--color-accent) 0%, var(--color-primary) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.highlight.highlight-animate {
    position: relative;
}

.highlight.highlight-animate::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transform: scaleX(0);
    transform-origin: left;
    animation: underlineGrow 1s ease forwards 0.5s;
}

@keyframes underlineGrow {
    to {
        transform: scaleX(1);
    }
}

/* Success Overlay */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 22, 18, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(5px);
}

.success-overlay.fade-out {
    animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.success-checkmark {
    width: 120px;
    height: 120px;
}

.success-checkmark svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.5));
}

.success-checkmark circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: strokeCircle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-checkmark path {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: strokeCheck 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes strokeCircle {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes strokeCheck {
    100% {
        stroke-dashoffset: 0;
    }
}

/* Button clean hover - no magnetic */
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 105, 20, 0.4);
}

/* Service Icon on Card Hover */
.servicio__icon {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servicio__card:hover .servicio__icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(139, 105, 20, 0.3);
}

/* Contact Card Hover */
.contacto__card {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.contacto__card:hover {
    transform: translateX(10px);
}

.contacto__icon {
    transition: transform 0.3s ease;
}

.contacto__card:hover .contacto__icon {
    transform: scale(1.1);
}

/* Feature enhanced hover */
.feature {
    padding: 16px;
    margin: -16px;
    border-radius: 12px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.feature:hover {
    background: rgba(139, 105, 20, 0.05);
}