:root {
    --color-primary: #004153;
    --color-primary-light: #006b86;
    --color-secondary: #cac3af;
    --color-accent: #b2935e;
    --color-neutral: #4e4b48;
    --color-white: #ffffff;
    --color-telegram: #0088cc;
    --color-whatsapp: #25d366;
}

body {
    font-family: 'Gotham', sans-serif;
    background-color: var(--color-white);
    color: var(--color-neutral);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

html,
body {
    overflow-x: hidden;
}

/* Ejemplo para Avenir Next */
@font-face {
    font-family: 'Avenir Next';
    src: url('fonts/AvenirNext-Regular.woff2') format('woff2'),
         url('fonts/AvenirNext-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Avenir Next';
    src: url('fonts/AvenirNext-Bold.woff2') format('woff2'),
         url('fonts/AvenirNext-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

/* Ejemplo para Gotham Medium */
@font-face {
    font-family: 'Gotham Medium';
    src: url('fonts/Gotham-Medium.woff2') format('woff2'),
         url('fonts/Gotham-Medium.woff') format('woff');
    font-weight: 500; /* Medium suele ser 500 */
    font-style: normal;
}

/* DISEÑO GENERAL RECTO */
* {
    border-radius: 0 !important;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1;
}

.text-primary {
    color: var(--color-primary);
}

.bg-primary {
    background-color: var(--color-primary);
}

.text-accent {
    color: var(--color-accent);
}

/* NAVEGACIÓN */
.nav-link {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-primary);
    padding: 8px 0;
    position: relative;
    display: inline-block;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.btn-recto {
    background-color: var(--color-accent);
    color: white;
    padding: 14px 32px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    min-height: 44px;
}

.btn-recto:hover {
    background-color: var(--color-primary);
}

/* HERO SECTION GENERAL */
.hero-main {
    height: 85vh;
    background-color: var(--color-primary);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 10px solid var(--color-accent);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,65,83,0.55) 0%, rgba(0,65,83,0.40) 45%, rgba(0,65,83,0.62) 100%);
    z-index: 10;
}


.hero-img-bg {
    position: absolute;
    right: 0;
    left: auto;
    top: 0;
    width: 52%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    z-index: 5;
    filter: grayscale(8%) brightness(1.02) contrast(1.03);
    transition: filter 0.35s ease, transform 0.45s ease;
}

.hero-main:hover .hero-img-bg {
    transform: scale(1.01);
    filter: grayscale(0%) brightness(1);
}

.hero-left {
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.24);
}

.hero-form-container {
    position: relative;
    z-index: 15;
    display: flex;
    justify-content: flex-start;
    width: 100%;
    max-width: 620px;
}

.hero-form {
    background: rgba(255,255,255,0.16);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.22);
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    min-width: 300px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
}

.hero-form label {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.hero-form input[type="text"],
.hero-form input[type="tel"],
.hero-form input[type="email"],
.hero-form textarea {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 65, 83, 0.2);
    padding: 0.95rem 1rem;
    color: #1f2937;
    border-radius: 6px;
    outline: none;
    font-size: 16px;
    line-height: 1.35;
}

.hero-form input::placeholder,
.hero-form textarea::placeholder {
    color: rgba(55, 65, 81, 0.75);
}

.hero-form textarea { resize: vertical; min-height: 108px; }

.hero-form .btn-recto {
    padding: 16px 18px;
    font-size: 15px;
    letter-spacing: 0.16em;
}

@media (max-width: 900px) {
    .hero-img-bg { display: none; }
    .hero-left { max-width: 100%; }
    .hero-form-container { width: 100%; max-width: 100%; justify-content: flex-start; padding: 0 1rem; }
    .hero-form { padding: 1.25rem; border-radius: 8px; width: 100%; min-width: 0; }
    .hero-form input[type="text"],
    .hero-form input[type="tel"],
    .hero-form input[type="email"],
    .hero-form textarea { padding: 12px; font-size: 16px; }
    .hero-form .btn-recto { width: 100%; display: inline-flex; justify-content: center; }
}

@media (max-width: 480px) {
    .hero-main { height: auto; padding: 2.5rem 0; }
    .hero-form { padding: 1rem; }
    .hero-form input[type="text"],
    .hero-form input[type="tel"],
    .hero-form input[type="email"],
    .hero-form textarea { padding: 11px; font-size: 15px; }
    .hero-form .btn-recto { padding: 13px; font-size: 14px; }
    .hero-form label { font-size: 13px; }
    .hero-form-container { padding: 0 0.75rem; }
}

.hero-sub {
    background-color: var(--color-primary);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: radial-gradient(var(--color-accent) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* BLOQUES DUALES */
.dual-block {
    height: 550px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-bottom: 10px solid var(--color-accent);
}

.dual-block img {
    transition: transform 1.2s ease, filter 0.5s ease;
    filter: grayscale(30%) brightness(0.4);
}

.dual-block:hover img {
    transform: scale(1.08);
    filter: grayscale(0%) brightness(0.5);
}

.dual-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 20;
    padding: 3rem;
    text-align: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
}

.title-h10 {
    font-size: 60px !important;
    line-height: 0.95;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);
}

/* BANNERS */
.wide-banner {
    height: 450px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0 10%;
    border-bottom: 10px solid var(--color-accent);
}

.wide-banner img {
    filter: grayscale(100%) brightness(0.3);
    transition: all 0.8s ease;
}

.wide-banner:hover img {
    filter: grayscale(0%) brightness(0.4);
}

/* --- RED COLABORACIÓN --- */
.collab-card {
    height: 450px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    background-color: var(--color-white);
}

.collab-card img {
    transition: opacity 0.5s ease, transform 0.8s ease, filter 0.5s ease;
    filter: grayscale(100%) brightness(0.4);
    object-fit: cover;
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    z-index: 1;
}

.collab-card:hover img {
    filter: grayscale(0%) brightness(0.6);
    transform: scale(1.05);
}

/* Imagen específica: administradoresfincas.jpg — color por defecto y movimiento al hover */
.collab-card img[src$="administradoresfincas.jpg"] {
    filter: grayscale(0%) brightness(0.95) !important;
    transition: transform 0.6s cubic-bezier(.2,.8,.2,1), filter 0.35s ease, box-shadow 0.35s ease;
}
.collab-card img[src$="administradoresfincas1.jpg"] {
     filter: grayscale(0%) brightness(0.95) !important;
     transition: transform 0.6s cubic-bezier(.2,.8,.2,1), filter 0.35s ease, box-shadow 0.35s ease;
}

.collab-card:hover img[src$="administradoresfincas.jpg"],
.collab-card img[src$="administradoresfincas.jpg"]:hover {
    transform: translateY(-10px) scale(1.06);
    filter: grayscale(0%) brightness(1) !important;
    box-shadow: 0 12px 30px rgba(0,0,0,0.28);
}
.collab-card:hover img[src$="administradoresfincas1.jpg"],
.collab-card img[src$="administradoresfincas1.jpg"]:hover {
     transform: translateY(-10px) scale(1.06);
     filter: grayscale(0%) brightness(1) !important;
     box-shadow: 0 12px 30px rgba(0,0,0,0.28);
}
/* Imagen específica: inmobiliarias.png — mostrar a color por defecto */
.collab-card img[src$="inmobiliarias.png"] {
    filter: grayscale(0%) brightness(0.95) !important;
    transition: transform 0.45s cubic-bezier(.2,.8,.2,1), filter 0.3s ease;
}

.collab-card:hover img[src$="inmobiliarias.png"],
.collab-card img[src$="inmobiliarias.png"]:hover {
    transform: translateY(-6px) scale(1.04);
    filter: grayscale(0%) brightness(1) !important;
}

/* Variante: inmobiliarias1.jpg (misma animación y color por defecto) */
.collab-card img[src$="inmobiliarias1.jpg"] {
    filter: grayscale(0%) brightness(0.95) !important;
    transition: transform 0.45s cubic-bezier(.2,.8,.2,1), filter 0.3s ease;
}

.collab-card:hover img[src$="inmobiliarias1.jpg"],
.collab-card img[src$="inmobiliarias1.jpg"]:hover {
    transform: translateY(-6px) scale(1.04);
    filter: grayscale(0%) brightness(1) !important;
}

/* Variante: inmobiliarias2.jpg (misma animación y color por defecto) */
.collab-card img[src$="inmobiliarias2.jpg"] {
    filter: grayscale(0%) brightness(0.95) !important;
    transition: transform 0.45s cubic-bezier(.2,.8,.2,1), filter 0.3s ease;
}

.collab-card:hover img[src$="inmobiliarias2.jpg"],
.collab-card img[src$="inmobiliarias2.jpg"]:hover {
    transform: translateY(-6px) scale(1.04);
    filter: grayscale(0%) brightness(1) !important;
}

/* Imagen específica: administracionespublicas.png — mostrar a color por defecto y hover sutil */
.collab-card img[src$="administracionespublicas.png"] {
    filter: grayscale(0%) brightness(0.95) !important;
    transition: transform 0.45s cubic-bezier(.2,.8,.2,1), filter 0.3s ease, box-shadow 0.3s ease;
}

.collab-card:hover img[src$="administracionespublicas.png"],
.collab-card img[src$="administracionespublicas.png"]:hover {
    transform: translateY(-8px) scale(1.05);
    filter: grayscale(0%) brightness(1) !important;
    box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}

/* Variante: administracionespublicas2.jpg (misma animación y color por defecto) */
.collab-card img[src$="administracionespublicas2.jpg"] {
    filter: grayscale(0%) brightness(0.95) !important;
    transition: transform 0.45s cubic-bezier(.2,.8,.2,1), filter 0.3s ease, box-shadow 0.3s ease;
}

.collab-card:hover img[src$="administracionespublicas2.jpg"],
.collab-card img[src$="administracionespublicas2.jpg"]:hover {
    transform: translateY(-8px) scale(1.05);
    filter: grayscale(0%) brightness(1) !important;
    box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}

/* Imagen específica: particulares.png — mostrar a color por defecto y hover sutil */
.collab-card img[src$="particulares.png"] {
    filter: grayscale(0%) brightness(0.95) !important;
    transition: transform 0.45s cubic-bezier(.2,.8,.2,1), filter 0.3s ease, box-shadow 0.3s ease;
}

.collab-card:hover img[src$="particulares.png"],
.collab-card img[src$="particulares.png"]:hover {
    transform: translateY(-8px) scale(1.05);
    filter: grayscale(0%) brightness(1) !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.18);
}

/* Variante: particulares.png (misma animación y color por defecto) */
.collab-card img[src$="particulares.png"] {
    filter: grayscale(0%) brightness(0.95) !important;
    transition: transform 0.45s cubic-bezier(.2,.8,.2,1), filter 0.3s ease, box-shadow 0.3s ease;
}

.collab-card:hover img[src$="particulares.png"],
.collab-card img[src$="particulares.png"]:hover {
    transform: translateY(-8px) scale(1.05);
    filter: grayscale(0%) brightness(1) !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.18);
}

.collab-card.active img {
    opacity: 1;
    filter: grayscale(0%) brightness(0.3);
}

.collab-overlay {
    position: absolute;
    inset: 0;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 10;
    background: linear-gradient(to top, rgba(0, 65, 83, 0.9) 0%, transparent 70%);
    transition: all 0.5s ease;
}

.collab-card.active .collab-overlay {
    background: rgba(0, 65, 83, 0.85);
    /* Fondo azul petróleo semitransparente para ver la imagen a color */
    justify-content: center;
    align-items: center;
}

.collab-title {
    color: white;
    transition: color 0.4s ease;
    position: relative;
    z-index: 11;
}

.collab-card.active .collab-title {
    color: var(--color-accent);
    text-align: center;
    margin-bottom: 1.5rem;
}

.collab-card.active .collab-hidden-text,
.collab-card:hover .collab-hidden-text {
    max-height: 200px;
    opacity: 1;
    margin-top: 1rem;
}

.collab-card:hover .collab-overlay {
    background: rgba(0, 65, 83, 0.85);
    justify-content: center;
    align-items: center;
}

.collab-card:hover .collab-title {
    color: var(--color-accent);
    text-align: center;
    margin-bottom: 0.5rem;
}

/* BLOG SLIDER */
.blog-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.blog-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0 40px;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
    scroll-snap-type: x mandatory;
}

.blog-slider::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.blog-card {
    min-width: calc(33.333% - 20px);
    scroll-snap-align: start;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .blog-card {
        min-width: calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .nav-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    #mobile-menu .nav-link {
        width: 100%;
        justify-content: center;
    }

    .wide-banner,
    .dual-block,
    .collab-card {
        height: auto;
        min-height: 320px;
    }

    .video-card {
        min-width: 86vw;
        height: 220px;
    }

    .blog-card {
        min-width: 100%;
    }

    .contact-sidebar,
    .contact-sidebar-btn {
        left: auto;
        right: 12px;
        bottom: 90px;
    }

    .action-button-static,
    .action-circle {
        width: 54px;
        height: 54px;
    }
}

/* AJUSTE FINO RESPONSIVE (320 / 375 / 768) */
#inicio h2 {
    font-size: clamp(2.1rem, 8.6vw, 5.5rem);
    line-height: 1.05;
}

#inicio p {
    font-size: clamp(0.95rem, 3.8vw, 1.125rem);
}

@media (max-width: 900px) {
    .px-10 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .container {
        width: 100%;
    }

    .dual-content h3,
    .title-h10 {
        font-size: clamp(1.9rem, 9vw, 3rem) !important;
        line-height: 1.1 !important;
    }

    .wide-banner {
        padding: 2rem 1rem;
        min-height: 320px;
        height: auto;
    }

    .wide-banner p {
        font-size: clamp(0.95rem, 3.8vw, 1.125rem);
    }

    .collab-overlay {
        padding: 1.25rem;
    }

    .collab-title {
        font-size: clamp(1.1rem, 4.8vw, 1.4rem) !important;
        line-height: 1.2;
    }

    .collab-hidden-text {
        font-size: 0.95rem;
        line-height: 1.45;
    }

    #equipo .group {
        height: 380px;
    }

    #blog h2,
    #equipo h2,
    #medios h2,
    #contacto h2 {
        font-size: clamp(1.8rem, 8vw, 3rem) !important;
        line-height: 1.1;
    }

    #medios button,
    #blog button {
        min-width: 44px;
        min-height: 44px;
    }

    #privacy-bar {
        padding: 0.85rem 1rem;
    }

    #privacy-bar p {
        font-size: 12px;
        line-height: 1.35;
    }
}

@media (max-width: 480px) {
    .hero-main {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .btn-recto {
        width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .blog-slider {
        gap: 16px;
    }

    .blog-card {
        min-width: 92%;
    }

    #medios .flex.justify-between.items-end {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    #contacto .h-\[450px\] {
        height: 300px;
    }
}

.blog-nav {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.blog-nav-btn {
    width: 50px;
    height: 50px;
    border: 2px solid var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--color-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.blog-nav-btn:hover {
    background: var(--color-primary);
    color: white;
}

/* MEDIOS SLIDER */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.video-card {
    min-width: 380px;
    height: 240px;
    background: black;
    border: 1px solid rgba(178, 147, 94, 0.3);
    transition: all 0.4s ease;
    flex-shrink: 0;
    overflow: hidden;
}

.video-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-5px);
}

/* SOCIAL CIRCLES */
.social-circle {
    border-radius: 9999px !important;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.social-circle:hover {
    transform: scale(1.15) rotate(5deg);
}

/* BOTONES FLOTANTES */
.contact-sidebar,
.contact-sidebar-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-button-static,
.action-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    width: 50px;
    height: 50px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 9999px !important;
    overflow: hidden;
}

.action-button-static:hover,
.action-circle:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

/* SERVICE CARDS (herencias-nacionales.html) */
.service-card {
    border: 1px solid #eee;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 3rem;
    background: white;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
    border-color: var(--color-accent);
}

/* ARTICLE SPECIFIC (pareja-de-hecho-herencia.html) */
.hero-article {
    background-color: var(--color-primary);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    border-bottom: 10px solid var(--color-accent);
}

/* Modern hover: 3D tilt + lift for collaboration cards */
.collab-card {
    perspective: 1200px;
}

.collab-card img {
    transform-origin: center center;
    will-change: transform, filter;
    transition: transform 640ms cubic-bezier(.2,.9,.3,1), filter 280ms ease, box-shadow 280ms ease;
}

.collab-card:hover img {
    transform: translate3d(0,-14px,0) rotateX(6deg) rotateZ(-1deg) scale(1.07);
    filter: grayscale(0%) brightness(1) !important;
    box-shadow: 0 20px 48px rgba(0,0,0,0.32);
}

.collab-card:hover .collab-overlay {
    transform: translateY(-6px);
}

.collab-card .collab-overlay {
    transition: transform 520ms cubic-bezier(.2,.9,.3,1), background 360ms ease;
}

.content-card {
    background: white;
    padding: 4rem;
    border: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.article-content h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    border-left: 5px solid var(--color-accent);
    padding-left: 1.5rem;
}

.article-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #555;
}

.article-content ul {
    margin-bottom: 2rem;
    list-style: none;
    padding: 0;
}

.article-content li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.article-content li::before {
    content: '■';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-size: 0.8rem;
}

.toc {
    background: #f8f8f6;
    padding: 2rem;
    margin-bottom: 3rem;
    border: 1px solid #eee;
}

.toc h3 {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.2em;
}

.toc ul li::before {
    content: none;
}

.toc ul li {
    padding-left: 0;
}

.toc a {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

.toc a:hover {
    color: var(--color-accent);
}

.note-box {
    background: rgba(178, 147, 94, 0.05);
    border: 1px solid var(--color-accent);
    padding: 2rem;
    margin: 3rem 0;
}

.sidebar-sticky {
    position: sticky;
    top: 120px;
}

