:root {
    --color-white: #FFFFFF;
    --color-black: #080C13;
    --color-gray-bg: #F4F6F9;
    --color-gray-text: #5F6368;
    --color-navy: #101827;
    --color-gold: #C5A46D;
    --color-brand: #4260a3;
    
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: all 0.2s ease;
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 50px rgba(66, 96, 163, 0.15);
}

/* Custom Cursor */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important; /* Hide default cursor */
}

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

body {
    font-family: var(--font-body);
    color: var(--color-black);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Cursor Elements */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-brand);
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(66, 96, 163, 0.5);
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, border-color 0.2s;
}

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

p {
    color: var(--color-gray-text);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

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

ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 10rem 0;
    position: relative;
    overflow: hidden;
}

.section-dark {
    background-color: var(--color-black);
    color: var(--color-white);
}

.section-dark h1, .section-dark h2, .section-dark h3, .section-dark p {
    color: var(--color-white);
}

.section-brand {
    background-color: var(--color-brand);
    color: var(--color-white);
}

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

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

.section-header {
    margin-bottom: 5rem;
    max-width: 800px;
}

.section-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 0;
    z-index: 1000;
    transition: var(--transition-smooth);
    background: transparent;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    padding: 1.25rem 0;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-black);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-black);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-brand);
    transition: var(--transition-smooth);
}

.nav-link:hover::after { width: 100%; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 0;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--color-brand);
    color: var(--color-white);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: rgba(255,255,255,0.1);
    transition: var(--transition-smooth);
}
.btn-primary:hover::before { left: 0; }

.btn-outline {
    background-color: transparent;
    color: var(--color-brand);
    border-color: var(--color-brand);
}

.btn-outline:hover {
    background-color: var(--color-brand);
    color: var(--color-white);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--color-black);
}

.hero-bg {
    position: absolute;
    top: -10%; left: -10%;
    width: 120%; height: 120%;
    background: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&q=80&w=2000') center/cover no-repeat;
    z-index: 0;
    opacity: 0.4;
    transition: transform 0.1s ease-out;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding-top: 5rem;
    color: var(--color-white);
}

.hero-title {
    font-size: 5.5rem;
    color: var(--color-white);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.3s;
}

.hero-subtitle {
    font-size: 1.35rem;
    color: rgba(255,255,255,0.8);
    max-width: 700px;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.6s;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.9s;
}

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

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* Interactive Cards (Tilt Effect) */
.tilt-card {
    background: var(--color-white);
    padding: 3.5rem 2.5rem;
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
    transition: box-shadow 0.4s ease;
    will-change: transform;
}

.tilt-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: rgba(66, 96, 163, 0.3);
}

.tilt-content {
    transform: translateZ(40px);
}

.tilt-icon {
    width: 60px;
    height: 60px;
    background: rgba(66, 96, 163, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 2rem;
    color: var(--color-brand);
    font-size: 1.5rem;
    transform: translateZ(60px);
}

.card-title {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    color: var(--color-brand);
}

.card-link {
    margin-top: auto;
    padding-top: 2rem;
    font-weight: 500;
    color: var(--color-black);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.card-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.card-link:hover::after {
    transform: translateX(10px);
    color: var(--color-brand);
}

/* Asymmetric Image Section */
.image-overlap-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
}

.image-overlap-1 {
    position: absolute;
    top: 0; right: 0;
    width: 80%; height: 80%;
    object-fit: cover;
    z-index: 1;
    filter: grayscale(20%);
    transition: var(--transition-smooth);
}

.image-overlap-2 {
    position: absolute;
    bottom: 0; left: 0;
    width: 50%; height: 50%;
    object-fit: cover;
    z-index: 2;
    box-shadow: var(--shadow-hover);
    transition: var(--transition-smooth);
}

.image-overlap-wrapper:hover .image-overlap-1 { transform: scale(1.02); filter: grayscale(0%); }
.image-overlap-wrapper:hover .image-overlap-2 { transform: translate(-10px, 10px); }

/* About List */
.about-list { margin-top: 2rem; }
.about-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--color-black);
}
.about-list li::before {
    content: '→';
    position: absolute;
    left: 0; top: 0;
    color: var(--color-brand);
}

/* Form Styles */
.form-control {
    width: 100%;
    padding: 1.25rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
    border-radius: 0;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-brand);
}

.form-control::placeholder {
    color: rgba(255,255,255,0.5);
}

.contact-box {
    background: var(--color-black);
    color: var(--color-white);
    padding: 5rem;
    position: relative;
}

/* Footer */
.footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 6rem 0 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    display: inline-block;
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Inner Pages (Servicios & Contacto) --- */
.page-header {
    padding: 12rem 0 6rem;
    background-color: var(--color-black);
    color: var(--color-white);
    text-align: center;
}
.page-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-white);
}
.page-subtitle {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    color: rgba(255,255,255,0.7);
}
.service-block {
    padding: 6rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.service-block:last-child { border-bottom: none; }
.service-block-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-brand);
}
.service-block-content h3 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.service-list { margin: 1.5rem 0; }
.service-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-gray-text);
}
.service-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--color-brand);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}
.contact-info-card {
    background: var(--color-brand);
    color: var(--color-white);
    padding: 3rem;
}
.contact-info-card h3 {
    color: var(--color-white);
    margin-bottom: 2rem;
    font-size: 2rem;
}
.contact-item { margin-bottom: 2rem; }
.contact-item-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.5rem;
}
.contact-item-text {
    font-size: 1.1rem;
    color: var(--color-white);
}
.form-group { margin-bottom: 1.5rem; }
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--color-black);
}
.form-control.dark-input {
    border-bottom: 1px solid rgba(0,0,0,0.2);
    color: var(--color-black);
}
.form-control.dark-input::placeholder { color: rgba(0,0,0,0.5); }
textarea.form-control {
    min-height: 150px;
    resize: vertical;
}
.map-container {
    height: 400px;
    width: 100%;
    margin-top: 4rem;
    background: var(--color-gray-bg);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title { font-size: 4rem; }
    .grid-2, .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .image-overlap-wrapper { height: 400px; }
}

@media (max-width: 768px) {
    * { cursor: auto !important; }
    .cursor-dot, .cursor-outline { display: none !important; }
    .tilt-card { transform: none !important; }
    .hero-title { font-size: 3rem; }
    .grid-2, .grid-4, .grid-3 { grid-template-columns: 1fr; }
    .section { padding: 6rem 0; }
    .contact-box { padding: 2rem; }
}
