@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* Variables de Color */
:root {
    --color-primary: #004C45;
    --color-accent: #D6D1CA;
    --color-dark: #0f2f2c;
    --color-text: #3f3f3f;
    --color-text-light: #7a7a7a;
    --color-bg-light: #f6f6f4;
    --color-white: #ffffff;
    --color-border: #dcd9d4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    line-height: 1.75;
    color: var(--color-text);
    background: var(--color-white);
    padding-top: 85px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--color-dark);
    font-weight: 700;
    line-height: 1.35;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================ */
/* HEADER */
/* ============================================ */
#header {
    background: linear-gradient(180deg, var(--color-primary) 0%, #003a34 100%);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 76, 69, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

#header.scrolled {
    box-shadow: 0 6px 30px rgba(0, 76, 69, 0.4);
    background: linear-gradient(180deg, #003a34 0%, var(--color-primary) 100%);
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5em 0;
    transition: padding 0.3s ease;
}

#header.scrolled .container {
    padding: 1.1em 0;
}

#header h1 {
    font-size: 1em;
    line-height: 1.3;
    margin: 0;
}

#header h1 a {
    display: flex;
    flex-direction: column;
    gap: 0.2em;
    letter-spacing: 1px;
    text-decoration: none;
    color: var(--color-white);
    transition: letter-spacing 0.3s ease;
}

#header h1 a::before {
    display: none !important;
}

#header h1 a .firm-name {
    font-size: 1.15em;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--color-white);
}

#header h1 a .firm-subtitle {
    font-size: 0.7em;
    font-weight: 400;
    letter-spacing: 2px;
    color: var(--color-accent);
    text-transform: uppercase;
    opacity: 0.95;
}

#header h1 a:hover .firm-name {
    letter-spacing: 2px;
}

#header h1 a:hover::before {
    display: none !important;
}

#header nav ul {
    list-style: none;
    display: flex;
    gap: 0;
    align-items: center;
    margin: 0;
}

#header nav ul li {
    position: relative;
    margin: 0 1.5em;
}

#header nav ul li a {
    color: var(--color-white);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85em;
    font-weight: 600;
    letter-spacing: 1.5px;
    padding: 0.8em 0.8em;
    display: inline-block;
    position: relative;
    transition: color 0.3s ease;
}

#header nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0.8em;
    right: 0.8em;
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: center;
}

#header nav ul li a:hover::before,
#header nav ul li a.active::before {
    transform: scaleX(1);
}

#header nav ul li a:hover,
#header nav ul li a.active {
    color: var(--color-accent);
}

#header nav ul li:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1.5em;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 18px;
    background: rgba(214, 209, 202, 0.2);
}

/* ============================================ */
/* HERO */
/* ============================================ */
.page-hero {
    background: linear-gradient(rgba(0, 76, 69, 0.88), rgba(0, 76, 69, 0.88)),
                url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?w=1600') center/cover;
    background-attachment: fixed;
    padding: 6em 0 5em;
    text-align: center;
    color: var(--color-white);
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 76, 69, 0.3) 100%);
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: 3.5em;
    color: var(--color-white);
    margin-bottom: 0.3em;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.page-hero p {
    font-size: 1.2em;
    color: rgba(255,255,255,0.9);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
}

/* ============================================ */
/* SECCIÓN LEGAL */
/* ============================================ */
.legal-section {
    background: var(--color-white);
    padding: 5em 0;
}

.legal-section .container {
    max-width: 900px;
}

.legal-section > .container > p:first-child {
    background: var(--color-bg-light);
    padding: 1em 1.5em;
    border-left: 4px solid var(--color-accent);
    border-radius: 4px;
    margin-bottom: 3em;
    font-size: 0.95em;
}

.legal-section h2 {
    font-size: 1.8em;
    color: var(--color-dark);
    margin-top: 2.5em;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid var(--color-bg-light);
    position: relative;
}

.legal-section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--color-accent);
}

.legal-section h2:first-of-type {
    margin-top: 0;
}

.legal-section p {
    margin-bottom: 1.5em;
    line-height: 1.8;
    text-align: justify;
}

.legal-section ul {
    margin: 1.5em 0 2em 2em;
    list-style: none;
}

.legal-section ul li {
    padding: 0.5em 0 0.5em 2em;
    position: relative;
    line-height: 1.7;
}

.legal-section ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 700;
    font-size: 1.5em;
    line-height: 1;
}

.legal-section a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.legal-section a:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

/* ============================================ */
/* RESPONSIVE */
/* ============================================ */
@media screen and (max-width: 968px) {
    #header nav ul li {
        margin: 0 0.8em;
    }

    .page-hero h1 {
        font-size: 2.5em;
    }
}

@media screen and (max-width: 768px) {
    body {
        padding-top: 120px;
    }

    #header .container {
        flex-direction: column;
        gap: 1em;
        padding: 1.2em 0;
    }

    #header nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    #header nav ul li {
        margin: 0 0.5em;
    }

    #header nav ul li:not(:last-child)::after {
        display: none;
    }

    .page-hero h1 {
        font-size: 2em;
    }

    .page-hero p {
        font-size: 1em;
    }

    .legal-section h2 {
        font-size: 1.5em;
    }
}

/* ============================================ */
/* FOOTER */
/* ============================================ */
#footer {
	background: linear-gradient(180deg, #004C45 0%, #D6D1CA 200%);
	color: rgba(255,255,255,0.85);
	padding: 5em 0 2.5em;
    font-family: 'Montserrat', sans-serif;
}

.footer-content {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 4em;
	padding-bottom: 3em;
	border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-column h3 {
	color: #ffffff;
	font-size: 0.9em;
	letter-spacing: 2px;
	text-transform: uppercase;
	margin-bottom: 1.8em;
}

.footer-column h3::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: var(--color-accent);
    margin-top: 0.6em;
}

#footer ul {
	list-style: none;
}

#footer ul li {
	margin-bottom: 0.7em;
}

#footer ul li a {
	color: rgba(255,255,255,0.75);
	font-size: 0.9em;
	text-decoration: none;
	transition: all 0.3s ease;
}

#footer ul li a:hover {
	color: var(--color-accent);
}

.location-box {
    padding: 0 0 1.2em;
    border-left: none;
    padding-left: 0;
	margin-bottom: 2em;
	background: transparent;
}

.location-box h4 {
	color: var(--color-accent);
	font-size: 0.95em;
	margin-bottom: 0.6em;
	letter-spacing: 1px;
}

.location-box p {
	font-size: 0.85em;
	color: rgba(255,255,255,0.8);
	line-height: 1.7;
	margin: 0.2em 0;
}

.social-icons {
	display: flex;
	gap: 1em;
	margin: 1.5em 0 2em;
}

.social-icons a {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid rgba(255,255,255,0.35);
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255,255,255,0.85);
	transition: all 0.3s ease;
	text-decoration: none;
}

.social-icons a:hover {
	background: var(--color-accent);
	border-color: var(--color-accent);
	transform: translateY(-3px);
}

.footer-contact p {
	font-size: 0.8em;
	color: rgba(255,255,255,0.6);
	margin-bottom: 0.3em;
}

.footer-contact a {
	color: rgba(255,255,255,0.9);
	font-size: 0.9em;
	text-decoration: none;
}

.footer-contact a:hover {
	color: var(--color-accent);
}

.footer-bottom {
	text-align: center;
	padding-top: 2em;
}

.footer-bottom p {
	font-size: 0.8em;
	color: rgba(255,255,255,0.55);
}

.footer-bottom a {
	color: rgba(255,255,255,0.55);
	text-decoration: none;
}

.footer-bottom a:hover {
	color: var(--color-accent);
}

body.protected-legal {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body.protected-legal ::selection {
    background: transparent;
}

body.protected-legal::-webkit-scrollbar {
    width: 10px;
}
