/*
Theme Name: MT Legal
Theme URI: https://mtlegal.cl
Author: MT Legal
Description: Tema corporativo premium para MT Legal. Diseñado para Elementor.
Version: 2.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: mt-legal
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --mt-gold: #C5A46D;
    --mt-gold-light: #D4BA8A;
    --mt-gold-dark: #A8894F;
    --mt-black: #141414;
    --mt-white: #FFFFFF;
    --mt-gray: #737373;
    --mt-gray-light: #F2F0ED;
    --mt-border: #E5E5E5;
}

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--mt-black);
    background: var(--mt-white);
    -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 { font-family: 'Cormorant Garamond', Georgia, serif; }

img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

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

/* Header */
.mt-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    transition: all .4s ease;
    height: 80px; display: flex; align-items: center;
}
.mt-header.scrolled {
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--mt-border);
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.mt-header .mt-container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.mt-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 600; letter-spacing: .04em; }
.mt-logo .gold { color: var(--mt-gold); }
.mt-nav { display: flex; gap: 2rem; list-style: none; }
.mt-nav a {
    font-size: .7rem; font-weight: 500; text-transform: uppercase;
    letter-spacing: .15em; transition: color .3s;
}
.mt-header:not(.scrolled) .mt-nav a { color: rgba(255,255,255,.8); }
.mt-header:not(.scrolled) .mt-logo { color: #fff; }
.mt-header.scrolled .mt-nav a { color: var(--mt-black); }
.mt-nav a:hover { color: var(--mt-gold); }

.mt-menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mt-menu-toggle span { display: block; width: 24px; height: 1px; background: currentColor; margin: 5px 0; transition: all .3s; }

@media (max-width: 768px) {
    .mt-nav { display: none; }
    .mt-menu-toggle { display: block; }
    .mt-nav.open {
        display: flex; flex-direction: column; position: absolute;
        top: 80px; left: 0; right: 0; background: rgba(255,255,255,.98);
        backdrop-filter: blur(12px); padding: 1rem 24px 2rem; border-bottom: 1px solid var(--mt-border);
    }
    .mt-nav.open a { color: var(--mt-black); padding: .75rem 0; }
}

/* Hero */
.mt-hero {
    position: relative; min-height: 100vh; display: flex;
    align-items: center; justify-content: center; overflow: hidden;
}
.mt-hero-bg { position: absolute; inset: 0; }
.mt-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.mt-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.7), rgba(0,0,0,.55), rgba(0,0,0,.75));
}
.mt-hero-content {
    position: relative; z-index: 2; text-align: center;
    max-width: 720px; padding: 0 24px;
}
.mt-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 600;
    color: #fff; line-height: 1.2; margin-bottom: 1.5rem;
}
.mt-hero p { font-size: 1rem; color: rgba(255,255,255,.75); line-height: 1.7; margin-bottom: 2.5rem; }
.mt-hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.mt-btn-gold {
    display: inline-flex; align-items: center; padding: .75rem 2rem;
    background: var(--mt-gold); color: #fff; font-size: .8rem;
    font-weight: 500; text-transform: uppercase; letter-spacing: .1em;
    transition: background .3s;
}
.mt-btn-gold:hover { background: var(--mt-gold-dark); }
.mt-btn-outline {
    display: inline-flex; align-items: center; padding: .75rem 2rem;
    border: 1px solid rgba(255,255,255,.3); color: #fff; font-size: .8rem;
    font-weight: 500; text-transform: uppercase; letter-spacing: .1em;
    transition: all .3s;
}
.mt-btn-outline:hover { border-color: var(--mt-gold); color: var(--mt-gold); }

/* Section headers */
.mt-section { padding: 6rem 0; }
.mt-section-label {
    display: flex; align-items: center; gap: 1rem; margin-bottom: 2.5rem;
}
.mt-section-label::before {
    content: ''; width: 32px; height: 1px; background: var(--mt-gold);
}
.mt-section-label span {
    font-size: .7rem; text-transform: uppercase; letter-spacing: .2em;
    color: var(--mt-gray);
}
.mt-section h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 600;
    line-height: 1.2; margin-bottom: 1rem;
}

/* About */
.mt-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.mt-about-grid p { font-size: .95rem; color: var(--mt-gray); line-height: 1.8; margin-bottom: 1rem; }
.mt-about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
.mt-about-feature { padding: 1.5rem; border: 1px solid var(--mt-border); }
.mt-about-feature h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; margin-bottom: .5rem; }
.mt-about-feature p { font-size: .85rem; color: var(--mt-gray); margin: 0; }
@media (max-width: 768px) {
    .mt-about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .mt-about-features { grid-template-columns: 1fr; }
}

/* Services */
.mt-services-bg { background: var(--mt-gray-light); }
.mt-services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; }
.mt-service-item { padding: 2rem 0; border-top: 1px solid var(--mt-border); display: flex; gap: 1.25rem; }
.mt-service-item:hover h3 { color: var(--mt-gold); }
.mt-service-num { font-size: .75rem; color: var(--mt-gold); font-weight: 500; flex-shrink: 0; margin-top: 2px; }
.mt-service-item h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 600; margin-bottom: .5rem; transition: color .3s; }
.mt-service-item p { font-size: .85rem; color: var(--mt-gray); line-height: 1.6; }
@media (max-width: 768px) { .mt-services-grid { grid-template-columns: 1fr; } }

/* Alliances */
.mt-alliances-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.mt-alliance-card { border: 1px solid var(--mt-border); padding: 2rem; transition: border-color .3s; }
.mt-alliance-card:hover { border-color: rgba(197,164,109,.4); }
.mt-alliance-icon {
    width: 48px; height: 48px; background: var(--mt-gray-light);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Cormorant Garamond', serif; font-size: 1.2rem;
    color: var(--mt-gold); font-weight: 600; margin-bottom: 1.5rem;
}
.mt-alliance-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 600; margin-bottom: .75rem; }
.mt-alliance-card p { font-size: .85rem; color: var(--mt-gray); line-height: 1.6; }
@media (max-width: 768px) { .mt-alliances-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .mt-alliances-grid { grid-template-columns: 1fr; } }

/* Team */
.mt-team-placeholder {
    border: 1px solid var(--mt-border); padding: 3rem; text-align: center; max-width: 320px;
}
.mt-team-photo {
    width: 120px; height: 120px; border-radius: 50%; background: var(--mt-gray-light);
    margin: 0 auto 1.5rem; display: flex; align-items: center; justify-content: center;
    color: var(--mt-gray); font-size: .75rem;
}
.mt-team-placeholder h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; margin-bottom: .25rem; }
.mt-team-placeholder .role { font-size: .8rem; color: var(--mt-gold); text-transform: uppercase; letter-spacing: .1em; }

/* Contact */
.mt-contact-form { max-width: 640px; }
.mt-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.mt-form-group { margin-bottom: 1.5rem; }
.mt-form-group label {
    display: block; font-size: .7rem; text-transform: uppercase;
    letter-spacing: .15em; color: var(--mt-gray); margin-bottom: .5rem;
}
.mt-form-group input, .mt-form-group textarea {
    width: 100%; border: 1px solid var(--mt-border); background: var(--mt-white);
    padding: .75rem 1rem; font-family: 'Inter', sans-serif; font-size: .9rem;
    color: var(--mt-black); transition: border-color .3s; outline: none;
}
.mt-form-group input:focus, .mt-form-group textarea:focus { border-color: var(--mt-gold); }
.mt-form-group textarea { resize: none; }
.mt-btn-submit {
    padding: .75rem 2.5rem; background: var(--mt-black); color: #fff;
    border: none; font-family: 'Inter', sans-serif; font-size: .8rem;
    font-weight: 500; text-transform: uppercase; letter-spacing: .1em;
    cursor: pointer; transition: background .3s;
}
.mt-btn-submit:hover { background: var(--mt-gold); }
@media (max-width: 768px) { .mt-form-row { grid-template-columns: 1fr; } }

/* Footer */
.mt-footer { background: var(--mt-black); color: #fff; padding: 4rem 0 2rem; }
.mt-footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.mt-footer h4 { font-size: .7rem; text-transform: uppercase; letter-spacing: .2em; color: rgba(255,255,255,.4); margin-bottom: 1rem; }
.mt-footer a { font-size: .85rem; color: rgba(255,255,255,.7); display: block; margin-bottom: .5rem; transition: color .3s; }
.mt-footer a:hover { color: var(--mt-gold); }
.mt-footer p { font-size: .85rem; color: rgba(255,255,255,.7); line-height: 1.6; }
.mt-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1); padding-top: 2rem;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.mt-footer-bottom p { font-size: .75rem; color: rgba(255,255,255,.4); }
@media (max-width: 768px) { .mt-footer-grid { grid-template-columns: 1fr; } }

/* Elementor overrides */
.elementor-page .mt-header,
.elementor-page .mt-footer { display: none; }

/* Animations */
.mt-fade-up { opacity: 0; transform: translateY(20px); transition: all .8s ease; }
.mt-fade-up.visible { opacity: 1; transform: translateY(0); }
