/* ===================================
   ÁVILA GUZMÁN ABOGADOS - Styles
   Clon exacto del sitio original
   =================================== */

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===================================
   Header Global
   =================================== */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 70px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu a {
    color: #333;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 15px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    color: #7D2181;
    background-color: rgba(125, 33, 129, 0.05);
}

.nav-menu a.active {
    color: #7D2181;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: #333;
    font-size: 16px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #7D2181;
    color: #fff;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0, 35, 102, 0.8), rgba(125, 33, 129, 0.7)),
                url('https://images.unsplash.com/photo-1505664194779-8beaceb93744?w=1920&q=80') center/cover no-repeat;
    background-attachment: fixed;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 40px;
}

.hero-text {
    flex: 1;
    color: #fff;
    text-align: center;
}

.hero-text h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
}

.hero-text .subtitle {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 400;
    line-height: 1.6;
}

.hero-text .author {
    font-size: 16px;
    font-style: italic;
    margin-top: 25px;
    opacity: 0.9;
}

/* ===================================
   Contact Form (Hero)
   =================================== */
.contact-form-wrapper {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 400px;
    max-width: 100%;
}

.contact-form-wrapper h3 {
    color: #002366;
    font-size: 20px;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #002366;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(to right, #002366, #7D2181);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: linear-gradient(to right, #7D2181, #002366);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.form-legal {
    font-size: 11px;
    color: #666;
    text-align: center;
    margin-top: 12px;
    line-height: 1.4;
}

/* ===================================
   Section Common Styles
   =================================== */
.section {
    padding: 60px 20px;
}

.section-title {
    text-align: center;
    font-size: 32px;
    color: #002366;
    margin-bottom: 40px;
    position: relative;
    font-weight: 700;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #002366, #7D2181);
    margin: 15px auto 0;
}

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

/* ===================================
   Inicio Section
   =================================== */
.inicio-section {
    background-color: #f9f9f9;
}

.inicio-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.inicio-content p {
    font-size: 18px;
    color: #444;
    line-height: 1.8;
}

/* ===================================
   Conócenos Section
   =================================== */
.conocenos-section {
    background-color: #f9f9f9;
}

.conocenos-content {
    max-width: 1000px;
    margin: 0 auto;
}

.conocenos-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.conocenos-text h3,
.conocenos-values h3,
.conocenos-team h3 {
    color: #002366;
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: 600;
}

.conocenos-text p {
    color: #555;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.values-grid {
    display: grid;
    gap: 20px;
}

.value-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.value-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #002366, #7D2181);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.value-icon svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}

.value-item h4 {
    color: #002366;
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: 600;
}

.value-item p {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}

.conocenos-team {
    border-top: 1px solid #e0e0e0;
    padding-top: 40px;
}

.team-member {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 30px;
    align-items: center;
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.member-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.member-image svg {
    width: 80px;
    height: 80px;
}

.member-info h4 {
    color: #002366;
    font-size: 20px;
    margin-bottom: 5px;
    font-weight: 700;
}

.member-title {
    color: #7D2181;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.member-description {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

/* ===================================
   Services Section
   =================================== */
.services-section {
    background-color: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-top-color: #7D2181;
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #002366, #7D2181);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 35px;
    height: 35px;
    fill: #fff;
}

.service-card h3 {
    color: #002366;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* ===================================
   Institutional Section
   =================================== */
.institutional-section {
    background-color: #002366;
    color: #fff;
    padding: 80px 20px;
}

.institutional-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.institutional-section .section-title {
    color: #fff;
}

.institutional-section .section-title::after {
    background: linear-gradient(to right, #fff, #7D2181);
}

.institutional-text {
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 18px;
    line-height: 1.8;
}

.institutional-text p {
    font-style: italic;
    opacity: 0.95;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.image-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.image-grid img:hover {
    transform: scale(1.05);
}

/* ===================================
   Areas de Practica Page
   =================================== */
.page-banner {
    background: linear-gradient(rgba(0, 35, 102, 0.9), rgba(125, 33, 129, 0.8)),
                url('https://images.unsplash.com/photo-1505664194779-8beaceb93744?w=1920&q=80') center/cover no-repeat;
    padding: 100px 20px;
    text-align: center;
    color: #fff;
}

.page-banner h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.page-banner p {
    font-size: 18px;
    opacity: 0.9;
}

.areas-full-section {
    padding: 80px 20px;
    background-color: #f9f9f9;
}

.areas-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.area-item {
    background: #fff;
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

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

.area-item h3 {
    color: #002366;
    font-size: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.area-item p {
    color: #555;
    line-height: 1.7;
}

/* ===================================
   Contact Page
   =================================== */
.contact-page-section {
    padding: 80px 20px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    color: #002366;
    font-size: 24px;
    margin-bottom: 25px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-info-item .icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #002366, #7D2181);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-item .icon svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.contact-info-item .text h4 {
    color: #333;
    font-size: 16px;
    margin-bottom: 5px;
}

.contact-info-item .text p {
    color: #666;
    font-size: 14px;
}

.contact-info-item .text a {
    color: #002366;
}

.contact-info-item .text a:hover {
    color: #7D2181;
}

.map-container {
    margin-top: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 300px;
    border: none;
}

.contact-form-page {
    background: #fff;
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.contact-form-page h3 {
    color: #002366;
    font-size: 24px;
    margin-bottom: 25px;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 50px 20px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #333;
}

.footer-brand .logo {
    margin-bottom: 15px;
}

.footer-brand .logo img {
    max-height: 60px;
}

.footer-brand p {
    color: #999;
    font-size: 14px;
    line-height: 1.6;
}

.footer-links h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #999;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #7D2181;
}

.footer-social h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-social .social-icons {
    justify-content: flex-start;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    color: #666;
    font-size: 13px;
}

.footer-bottom .legal-links {
    display: flex;
    gap: 20px;
}

.footer-bottom .legal-links a {
    color: #666;
    font-size: 13px;
}

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

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .contact-form-wrapper {
        width: 100%;
        max-width: 500px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social .social-icons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        padding: 20px 0;
        gap: 10px;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        text-align: center;
        padding: 12px 20px;
    }

    .social-icons {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 60px 20px;
    }

    .hero-text h1 {
        font-size: 24px;
    }

    .hero-text .subtitle {
        font-size: 16px;
    }

    .section {
        padding: 40px 20px;
    }

    .section-title {
        font-size: 26px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .areas-list {
        grid-template-columns: 1fr;
    }

    .image-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 22px;
    }

    .contact-form-wrapper {
        padding: 20px;
    }

    .page-banner h1 {
        font-size: 32px;
    }

    .image-grid {
        grid-template-columns: 1fr;
    }
}
