/* ============================================
   P&J ABOGADOS - MARCAS
   Diseño Profesional y Elegante
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Minion Pro', Georgia, serif;
    color: #0B223D;
    line-height: 1.8;
    background-color: #FFF6E5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER
   ============================================ */
.main-header {
    background-color: #0B223D;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: #FFF6E5;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #BF832B;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    background: linear-gradient(135deg, rgba(11, 34, 61, 0.92) 0%, rgba(55, 68, 98, 0.92) 100%), 
                url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?w=1600') center/cover;
    color: #FFF6E5;
    padding: 8rem 0 6rem;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 800px;
}

.hero-label {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 2rem;
    font-weight: 600;
    line-height: 1.3;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
}

/* ============================================
   BOTONES
   ============================================ */
.btn {
    padding: 1.1rem 2.2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    font-family: 'Minion Pro', Georgia, serif;
    font-weight: 600;
}

.btn-primary {
    background-color: #BF832B;
    color: #FFF6E5;
}

.btn-primary:hover {
    background-color: #8F6321;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(191, 131, 43, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #FFF6E5;
    border: 2px solid #FFF6E5;
}

.btn-secondary:hover {
    background-color: #FFF6E5;
    color: #0B223D;
}

.btn-full {
    width: 100%;
}

/* ============================================
   INTRODUCCIÓN
   ============================================ */
.intro-section {
    padding: 6rem 0;
    background-color: #FFFFFF;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: center;
}

.intro-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #0B223D;
    font-weight: 600;
}

.intro-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #374462;
    line-height: 1.9;
}

.intro-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-image img {
    width: 100%;
    height: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.intro-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-box {
    background-color: #FFF6E5;
    padding: 2rem;
    border-left: 4px solid #BF832B;
}

.stat-box h3 {
    font-size: 2.5rem;
    color: #BF832B;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.stat-box p {
    font-size: 1rem;
    color: #374462;
}

/* ============================================
   SECCIONES
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: #0B223D;
    font-weight: 600;
}

.section-header p {
    font-size: 1.2rem;
    color: #374462;
}

/* ============================================
   SERVICIOS
   ============================================ */
.services-section {
    padding: 6rem 0;
    background-color: #FFF6E5;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.service-item {
    background-color: #FFFFFF;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    transition: all 0.3s;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.service-item h3 {
    font-size: 1.6rem;
    color: #0B223D;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.service-item p {
    font-size: 1.05rem;
    color: #374462;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.service-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.service-details span {
    background-color: #FFF6E5;
    color: #0B223D;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 4px;
}

/* ============================================
   PROPIEDAD INTELECTUAL
   ============================================ */
.intellectual-property {
    padding: 6rem 0;
    background-color: #FFFFFF;
}

.intellectual-property .section-header h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: #0B223D;
    font-weight: 600;
}

.title-underline {
    width: 180px;
    height: 3px;
    background-color: #BF832B;
    margin: 0 auto 3rem;
}

.ip-intro {
    max-width: 1000px;
    margin: 0 auto 4rem;
    font-size: 1.1rem;
    color: #374462;
    line-height: 1.9;
    text-align: center;
}

.ip-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.ip-service-card {
    background-color: #FFF6E5;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    transition: all 0.3s;
}

.ip-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.ip-service-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.ip-service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.ip-service-card:hover .ip-service-image img {
    transform: scale(1.05);
}

.ip-service-content {
    padding: 2.5rem 2rem;
}

.ip-service-content h3 {
    font-size: 1.5rem;
    color: #0B223D;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.ip-service-content ul {
    list-style: none;
    padding: 0;
}

.ip-service-content li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
    color: #374462;
    line-height: 1.6;
}

.ip-service-content li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #BF832B;
    font-weight: bold;
}

/* ============================================
   FAQ
   ============================================ */
.faq {
    padding: 5rem 0;
    background-color: #0B223D;
    color: #FFF6E5;
}

.faq .section-title {
    color: #FFF6E5;
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.faq .title-underline {
    width: 100px;
    height: 3px;
    background-color: #BF832B;
    margin: 0 auto 3rem;
}

.faq-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.faq-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background-color: rgba(255, 246, 229, 0.05);
    border-radius: 8px;
    overflow: hidden;
    border-left: 3px solid #BF832B;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: rgba(255, 246, 229, 0.08);
}

.faq-icon {
    color: #BF832B;
    font-size: 1.2rem;
    transition: transform 0.3s;
    margin-top: 0.2rem;
}

.faq-item.active .faq-icon {
    transform: rotate(90deg);
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #FFF6E5;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem 3.5rem;
    color: #A8A9A9;
    line-height: 1.7;
}

.faq-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
}

.faq-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   FORMULARIO DE DESCARGA
   ============================================ */
.form-section {
    padding: 5rem 0;
    background-color: #374462;
    color: #FFF6E5;
}

.form-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.form-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #BF832B;
}

.form-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #FFF6E5;
}

.form-info p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.form-info ul {
    list-style: none;
    margin-top: 2rem;
}

.form-info li {
    padding: 0.7rem 0;
    padding-left: 2rem;
    position: relative;
    font-size: 1.05rem;
}

.form-info li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #BF832B;
    font-weight: bold;
    font-size: 1.3rem;
}

.lead-form {
    background-color: #FFFFFF;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #0B223D;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid #A8A9A9;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Minion Pro', Georgia, serif;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #BF832B;
}

.form-btn {
    width: 100%;
    padding: 1.1rem;
    background-color: #BF832B;
    color: #FFF6E5;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: 'Minion Pro', Georgia, serif;
    font-weight: 600;
}

.form-btn:hover {
    background-color: #8F6321;
}

.form-btn:disabled {
    background-color: #A8A9A9;
    cursor: not-allowed;
}

.form-disclaimer {
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    margin-top: 1rem;
}

@media (max-width: 968px) {
    .form-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: #0B223D;
    color: #FFF6E5;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer-background-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    height: 80%;
    background-image: url('assets/images/Logo2.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.05;
    filter: grayscale(100%) brightness(1.5);
    z-index: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.footer-section h3 {
    color: #BF832B;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.footer-section p {
    margin-bottom: 0.7rem;
    line-height: 1.8;
    color: #A8A9A9;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(191, 131, 43, 0.3);
    color: #A8A9A9;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* ============================================
   WHATSAPP FLOAT
   ============================================ */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
    .intro-grid,
    .contact-content,
    .faq-container,
    .ip-services-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .services-list {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .faq-image {
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .logo img {
        height: 40px;
    }
    
    .hero {
        padding: 5rem 0 4rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-header h2,
    .intellectual-property .section-header h2 {
        font-size: 2.2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 26px;
        bottom: 20px;
        right: 20px;
    }
}