/* =========================================
   V&D ABOGADOS – SITIO PÚBLICO
========================================= */

:root {
    --primary: #0F3A66;
    --primary-hover: #1a4d7a;
    --secondary: #E8F0F7;
    --accent: #FF6B35;
    --text: #1a1a1a;
    --gray-light: #F5F7FA;
    --gray-medium: #E0E6ED;
    --gray-dark: #64748b;
    --white: #ffffff;
}

/* =========================================
   GLOBAL STYLES
========================================= */

.public-site {
    background: var(--white);
    color: var(--text);
}

/* =========================================
   HERO SECTION
========================================= */

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #1a4d7a 100%);
    color: var(--white);
    padding: 120px 20px;
    text-align: center;
    animation: fadeInUp 0.8s ease;
}

.hero h1 {
    font-size: clamp(32px, 8vw, 56px);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 20px;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 6px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: #E85A1F;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    padding: 14px 32px;
    border: 2px solid var(--white);
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

/* =========================================
   SECTION GENERAL
========================================= */

.section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary);
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray-dark);
    line-height: 1.8;
}

/* =========================================
   ABOUT SECTION
========================================= */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--primary);
}

.about-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--gray-dark);
}

.about-image {
    background: linear-gradient(135deg, var(--secondary) 0%, #E0E6ED 100%);
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* =========================================
   TEAM SECTION
========================================= */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.team-card {
    background: var(--gray-light);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15, 58, 102, 0.1);
}

.team-card-image {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--secondary) 0%, #E0E6ED 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    overflow: hidden;
}

.team-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card-content {
    padding: 30px 20px;
}

.team-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--primary);
}

.team-card p {
    font-size: 14px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 12px;
}

.team-card-bio {
    font-size: 14px;
    color: var(--gray-dark);
    line-height: 1.6;
}

/* =========================================
   SERVICES SECTION
========================================= */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--white);
    border: 2px solid var(--gray-medium);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.1);
    transform: translateY(-5px);
}

.service-card-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary);
}

.service-card p {
    font-size: 15px;
    color: var(--gray-dark);
    line-height: 1.7;
}

/* =========================================
   CONTACT SECTION
========================================= */

.contact-section {
    background: var(--gray-light);
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary);
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid var(--gray-medium);
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-submit {
    background: var(--primary);
    color: var(--white);
    padding: 14px 32px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* =========================================
   HEADER/NAVIGATION
========================================= */

.public-header {
    background: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.logo svg {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    vertical-align: middle;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--accent);
}

.nav-menu a:hover::after {
    width: 100%;
}

.login-button {
    background: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
}

.login-button:hover {
    background: var(--primary-hover);
}

/* =========================================
   FOOTER
========================================= */

.public-footer {
    background: var(--primary);
    color: var(--white);
    padding: 60px 20px 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.9;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    display: block;
    margin-bottom: 12px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-contact {
    font-size: 14px;
    line-height: 1.8;
}

.footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    text-align: center;
    font-size: 13px;
    opacity: 0.8;
}

/* =========================================
   ANIMATIONS
========================================= */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease;
}

@media (max-width: 768px) {
    .nav-menu {
        gap: 20px;
        font-size: 14px;
    }

    .section {
        padding: 50px 20px;
    }

    .section-title {
        margin-bottom: 30px;
    }

    .team-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
}
