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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 140px; /* Compensate for sticky header */
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

body {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    line-height: 1.6;
    color: #222;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-family: 'Cinzel', serif;
    font-weight: 400;
    color: #000;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Header & Logo */
.site-header {
    padding: 1.5rem 2rem;
    background: radial-gradient(circle at center, #ffffff 10%, #d4d4d4 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    text-align: center;
    margin-bottom: 0;
}

.logo-symbol {
    font-size: 2.5rem;
    line-height: 1;
    letter-spacing: -1px;
    margin-bottom: 0;
    font-weight: 500;
}

.logo-text {
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 400;
    margin-top: 5px;
}

.logo-text .amp {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.2em;
    font-weight: 300;
}

/* Navigation */
.main-nav ul {
    display: flex;
    gap: 2.5rem;
}

.main-nav a {
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #444;
    padding-bottom: 5px;
    border-bottom: 1px solid transparent;
    font-weight: 700;
}

.main-nav a:hover {
    color: #000;
    border-color: #000;
}

/* Sections */
.section-container {
    padding: 6rem 2rem;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    color: #111;
}

.divider {
    width: 40px;
    height: 2px;
    background-color: #111;
    margin: 0 auto 4rem;
}

.bg-light {
    background: radial-gradient(circle at center, #ffffff 30%, #dbdbdb 100%);
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Firma */
.firma-content {
    max-width: 1000px;
    margin: 0 auto;
}

.lead-text {
    font-size: 1.4rem;
    text-align: center;
    font-weight: 400;
    color: #222;
    margin-bottom: 4rem;
    line-height: 1.8;
}

.firma-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.firma-columns .col h4 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

/* Áreas de Actuación */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.area-card {
    background: #fff;
    padding: 2.5rem;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.area-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.area-card h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #000;
}

.area-card p {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
}

/* Team */
.team-list {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.team-member-row {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    padding-bottom: 4rem;
}

.member-separator {
    height: 1px;
    background-color: #eee;
    width: 100%;
    margin: 0 auto;
}

.member-image-container {
    flex: 0 0 250px;
}

.member-photo {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.grayscale-img {
    filter: grayscale(100%);
}

.member-details {
    flex: 1;
}

.member-header {
    margin-bottom: 1.5rem;
    border-left: 3px solid #000;
    padding-left: 1.5rem;
}

.member-header h4 {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
}

.member-header .position {
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
}

.bio-content p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: #444;
    line-height: 1.8;
    text-align: justify;
}

/* Social Icons */
.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.team-social {
    justify-content: flex-start;
}

.contact-social {
    margin-top: 1rem;
}

.social-links a {
    color: #000;
    font-size: 1.4rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    color: #555;
    transform: translateY(-3px);
}

/* Hero */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 75vh;
    width: 100%;
    background: url('assets/img/hero.png') no-repeat center center/cover;
    color: #fff;
    position: relative;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 0 1rem;
}

.hero-overlay {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for readability */
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    width: 100%;
    padding: 0 2rem;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    display: block;
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    color: #f0f0f0;
    font-weight: 700;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-family: 'Cinzel', serif;
    font-weight: 500;
    color: #fff;
    line-height: 1.2;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Contact */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info-block h5 {
    font-size: 0.9rem;
    font-family: 'Lato', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
    margin-bottom: 0.5rem;
}

.info-group {
    margin-bottom: 2.5rem;
}

.info-group p {
    font-size: 1.2rem;
}

.contact-form-block {
    background: #fff;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 0;
    border: none;
    border-bottom: 1px solid #ccc;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    background: transparent;
    transition: all 0.3s ease;
    border-radius: 0;
    color: #333;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #999;
    font-weight: 300;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-bottom-color: #000;
}

.contact-form textarea {
    resize: vertical;
    margin-bottom: 2rem;
}

.btn-submit {
    background-color: #000;
    color: #fff;
    border: 1px solid #000;
    padding: 15px 40px;
    font-family: 'Lato', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    display: inline-block;
}

.btn-submit:hover {
    background-color: transparent;
    color: #000;
}

/* Footer */
.site-footer {
    background-color: #111;
    color: #fff;
    padding: 5rem 2rem;
    text-align: center;
    border-top: 1px solid #333;
}

.footer-brand {
    margin-bottom: 2rem;
}

.footer-logo-text {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: #fff;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

.site-footer p {
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 1.5rem;
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.legal-links a {
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.legal-links a:hover {
    color: #fff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .site-header {
        padding: 1rem;
    }

    .header-inner {
        flex-direction: column;
        gap: 1.5rem;
    }

    .logo-symbol { font-size: 3rem; }
    .logo-text { font-size: 1rem; }
    
    .main-nav ul {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .hero-title { font-size: 1.8rem; }
    
    .firma-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .team-member-row {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        text-align: center;
    }

    .member-header {
        border-left: none;
        border-bottom: 2px solid #000;
        padding-left: 0;
        padding-bottom: 1rem;
        margin-bottom: 1.5rem;
        display: inline-block;
    }

    .member-image-placeholder {
        width: 100%;
        max-width: 300px;
    }

    .member-details {
        width: 100%;
    }

    .bio-content p {
        text-align: left;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}
