body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

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

.top-banner-carousel {
    background-color: #25D366;
    color: white;
    padding: 10px;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.scrolling-text {
    display: inline-block;
    animation: scroll-left 20s linear infinite;
    padding-left: 100%;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

header {
    text-align: center;
    padding: 2rem 1rem;
    background-color: #1a73e8;
}

header h1 {
    color: white;
    margin-bottom: 0.5rem;
}

header nav.main-menu {
    margin-top: 1rem;
}

header nav.main-menu ul {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 1rem;
    padding: 0;
    margin: 0;
}

header nav.main-menu li a {
    color: #1a73e8;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
}

header nav.main-menu li a:hover {
    background: #f1f6fe;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.subtitle {
    color: white;
    font-size: 1.2rem;
}

.lawyer-banner {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 2rem;
    background: url('foro ley segunda oportunidad (1).jpeg') center 10%/cover no-repeat;
    width: 100%;
    margin: 0;
    position: relative;
    min-height: 500px;
    max-width: 100vw;
    overflow: hidden;
}

.lawyer-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.lawyer-content {
    flex: 0 1 800px;
    padding: 2rem;
    background: transparent;
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 2rem;
}

.lawyer-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.logo-placeholder {
    display: none;
}

.top-banner {
    background-color: #25D366;
    color: white;
    text-align: center;
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
}

.info-section {
    padding: 3rem 1rem;
    background-color: white;
}

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

.info-title {
    font-size: 1.8rem;
    color: #1a73e8;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    font-weight: bold;
    text-align: center;
}

.info-subtitle {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 1.0rem;
    text-align: center;
}

.info-text {
    font-size: 1.0rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    text-align: center;
    padding: 0 1rem;
}

.info-section ol {
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
}

.info-section ol li {
    margin-bottom: 1rem;
    padding-left: 1rem;
}

.highlight-text {
    font-size: 1.1rem;
    margin-top: 0.8rem;
    font-weight: bold;
    color: #1a73e8;
    text-align: center;
}

.process-step {
    color: #1a73e8;
    font-size: 1.1rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.whatsapp-section {
    padding: 3rem 1rem;
    background-color: white;
}

.whatsapp-card {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.whatsapp-card i {
    font-size: 3rem;
    color: #25D366;
    margin-bottom: 1rem;
}

.whatsapp-card h2 {
    margin-bottom: 1rem;
    color: #333;
}

.whatsapp-button {
    display: inline-block;
    background-color: #25D366;
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

.whatsapp-button:hover {
    background-color: #128C7E;
}

.banner-button {
    font-size: 1.2rem;
}

footer {
    text-align: center;
    padding: 2rem;
    background-color: #f8f9fa;
    color: #666;
}

.footer-links {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #1a73e8;
}

.consultation-forum {
    padding: 3rem 1rem;
    background-color: #f8f9fa;
}

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

.forum-container h2 {
    color: #1a73e8;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.question-box {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.question-box input.name-input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.question-box input.name-input:focus,
.question-box textarea:focus {
    outline: none;
    border-color: #25D366;
    box-shadow: 0 0 5px rgba(37, 211, 102, 0.2);
}

.question-box textarea {
    width: 100%;
    min-height: 150px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
}

.submit-button {
    display: block;
    width: 100%;
    background-color: #25D366;
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #128C7E;
}

.submit-button i {
    margin-right: 8px;
}

.forum-questions {
    padding: 3rem 1rem;
    background-color: #f5f5f5;
}

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

.forum-questions h2 {
    color: #1a73e8;
    font-size: 2rem;
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
}

.forum-questions h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #1a73e8;
}

.forum-explanation {
    background-color: #f0f7ff;
    border: 1px solid #b3d4fc;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.forum-explanation h3 {
    color: #1a73e8;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.forum-explanation p {
    color: #555;
    font-size: 1rem;
    line-height: 1.5;
}

.qa-item {
    background-color: white;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 2rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.question-header {
    background-color: #f8f9fa;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background-color: #1a73e8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.question-meta {
    flex: 1;
}

.user-name {
    color: #1a73e8;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.post-date {
    color: #888;
    font-size: 0.9rem;
}

.question-text {
    padding: 1.5rem;
    color: #444;
    font-size: 1.1rem;
    line-height: 1.6;
    border-bottom: 1px solid #eee;
}

.answer {
    background-color: #fafafa;
    padding: 1.5rem;
    position: relative;
}

.answer:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #25D366;
}

.answer-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.answer-avatar {
    width: 40px;
    height: 40px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.answer-meta {
    flex: 1;
}

.answerer-name {
    color: #25D366;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.answer-date {
    color: #888;
    font-size: 0.9rem;
}

.answer-content {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.6;
}

.answer-content p {
    margin-bottom: 1rem;
}

.answer-content p:last-child {
    margin-bottom: 0;
}

.faq-section {
    padding: 3rem 1rem;
    background-color: #f8f9fa;
}

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

.faq-container h2 {
    color: #1a73e8;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.faq-item {
    background-color: white;
    margin-bottom: 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.faq-question {
    font-size: 1.1rem;
    padding: 1rem;
    background-color: #1a73e8;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 0;
    border-bottom: 1px solid #ddd;
    position: relative;
}

.faq-question:hover {
    background-color: #1a73e8;
}

.faq-question::after {
    content: '\f078'; 
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
    padding: 1rem;
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
    display: none; 
}

.faq-item.active .faq-answer {
    display: block;
}

.phone-consultation-banner {
    background-color: #1a73e8;
    padding: 2rem 1rem;
    text-align: center;
    color: white;
}

.phone-consultation-container {
    max-width: 800px;
    margin: 0 auto;
}

.phone-consultation-container h3 {
    color: white;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.phone-consultation-container p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    color: white;
}

.phone-consultation-container ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.phone-consultation-container li {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.phone-consultation-container li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #25D366;
    font-size: 1.2rem;
}

.phone-consultation-button {
    display: inline-block;
    background-color: #25D366;
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.phone-consultation-button:hover {
    background-color: #128C7E;
}

.whatsapp-float {
    position: static;
    background-color: #25d366;
}

.whatsapp-float:hover {
    background-color: #128c7e;
}

.contact-floats {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: flex;
    gap: 15px;
    z-index: 100;
}

.float-button {
    width: 60px;
    height: 60px;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
}

.float-button:hover {
    transform: scale(1.1);
}

.float-button a {
    color: #fff;
    text-decoration: none;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-float {
    background-color: #1a73e8;
}

.phone-float:hover {
    background-color: #1557b0;
}

.team-section {
    padding: 3rem 1rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1;
}

.team-container {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
}

.team-logo {
    width: 200px;
    height: auto;
    margin: 0 auto 2rem;
    display: block;
    position: relative;
    z-index: 2;
}

.team-title {
    text-align: center;
    color: #1a73e8;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    position: relative;
}

.team-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #1a73e8;
}

.team-description {
    text-align: center;
    color: #666;
    max-width: 800px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 0 1rem;
}

.team-grid > *:nth-last-child(-n+3) {
    grid-column: span 1;
}

.team-grid > *:nth-last-child(-n+3) {
    transform: translateX(calc(33.33% + 0.5rem));
}

.team-member {
    text-align: center;
    background-color: #fff;
}

.member-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    object-fit: cover;
    border: 3px solid #1a73e8;
    overflow: hidden;
    background-color: #fff;
}

.team-member img {
    transform: scale(0.85);
    object-position: center 5%;
}

.member-name {
    color: #333;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.member-role {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    max-width: 200px;
    margin: 0 auto;
}

.contact-section {
    padding: 3rem 1rem;
    background-color: white;
    text-align: center;
}

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

.contact-title {
    color: #1a73e8;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: nowrap;
}

.contact-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    min-width: 200px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    white-space: nowrap;
}

.contact-button:hover {
    transform: translateY(-3px);
}

.contact-button i {
    font-size: 1.5rem;
}

.whatsapp-contact {
    background-color: #25D366;
    color: white;
}

.whatsapp-contact:hover {
    background-color: #128C7E;
}

.phone-contact {
    background-color: #1a73e8;
    color: white;
}

.phone-contact:hover {
    background-color: #1557b0;
}

.email-contact {
    background-color: #EA4335;
    color: white;
}

.email-contact:hover {
    background-color: #B92D21;
}

.info-contact-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.info-contact-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    min-width: 200px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    white-space: nowrap;
}

.info-contact-button:hover {
    transform: translateY(-3px);
}

.info-contact-button i {
    font-size: 1.5rem;
}

.info-whatsapp {
    background-color: #25D366;
    color: white;
}

.info-whatsapp:hover {
    background-color: #128C7E;
}

.info-phone {
    background-color: #1a73e8;
    color: white;
}

.info-phone:hover {
    background-color: #1557b0;
}

.info-email {
    background-color: #EA4335;
    color: white;
}

.info-email:hover {
    background-color: #B92D21;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner p {
    margin: 0;
    padding-right: 1rem;
    font-size: 0.9rem;
}

.cookie-banner .cookie-buttons {
    display: flex;
    gap: 0.5rem;
}

.cookie-banner button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cookie-banner .accept-cookies {
    background-color: #1a73e8;
    color: white;
}

.cookie-banner .accept-cookies:hover {
    background-color: #1557b0;
}

.cookie-banner .reject-cookies {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

.cookie-banner .reject-cookies:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.5); 
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 80%; 
    max-width: 600px;
    position: relative;
    border-radius: 10px;
}

.modal-header {
    padding: 15px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.5rem;
    margin: 0;
}

.modal-body {
    padding: 20px;
}

.modal-close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
}

.modal-close-button:hover,
.modal-close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal.show {
    display: block;
}

.read-more-btn {
    display: inline-block;
    background: none;
    border: none;
    color: #1a73e8;
    padding: 5px 0;
    margin-top: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.read-more-btn:hover {
    color: #1557b0;
    text-decoration: underline;
}

.review-content {
    display: inline;
}

.truncated-content, 
.full-content {
    transition: all 0.3s ease;
}

@media (min-width: 1200px) {
    .lawyer-banner {
        width: 100vw;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        position: relative;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem 0.5rem;
    }

    header h1 {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }

    header .subtitle {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    header nav.main-menu {
        margin-top: 0.5rem;
    }

    header nav.main-menu ul {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0 0.25rem;
    }

    header nav.main-menu li a {
        font-size: 0.9rem;
        padding: 0.35rem 0.75rem;
    }

    .lawyer-banner {
        background-position: center 5%;
        min-height: 400px;
    }

    .lawyer-banner {
        flex-direction: column;
        text-align: center;
    }

    .lawyer-content {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    .lawyer-content h2 {
        font-size: 1.5rem;
    }

    .question-box {
        padding: 1rem;
    }
    
    .qa-item {
        padding: 1.5rem;
    }
    
    .answer {
        padding: 1rem;
    }
    
    .question-header,
    .answer-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .question-text,
    .answer {
        padding: 1rem;
    }
    
    .contact-floats {
        bottom: 20px;
        right: 20px;
    }
    
    .float-button {
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid > *:nth-last-child(-n+3) {
        transform: none;
    }
    
    .member-image {
        width: 150px;
        height: 150px;
    }
    
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cookie-banner p {
        padding-right: 0;
    }
/* Media Query para mviles (hasta 768px) */
@media (max-width: 768px) {
    .lawyer-banner {
        display: flex !important; /* Mantenemos flex para centrar */
        justify-content: center !important; /* Centrado horizontal */
        align-items: center !important; /* Centrado vertical */
        height: auto !important; /* Altura basada en contenido */
        min-height: 0 !important; /* Sin altura mnima */
        padding: 1rem !important; /* Padding reducido */
        margin: 0 !important;
        background: url('foro ley segunda oportunidad (1).jpeg') center center/cover no-repeat !important;
        overflow: hidden !important;
    }

    .lawyer-content {
        padding: 1rem !important;
        margin: 0 !important; /* Eliminamos el margin-bottom: 2rem */
        margin-bottom: 0 !important; /* Sobrescribimos explcitamente */
        flex: none !important;
        text-align: center !important; /* Aseguramos centrado del texto */
    }

    .lawyer-content h2 {
        font-size: 1.2rem !important; /* ~19px */
        line-height: 1.2 !important;
        word-wrap: break-word;
        margin: 0 0 0.5rem 0 !important; /* Mrgen mnimo debajo */
        padding: 0 !important;
    }

    .lawyer-content .whatsapp-button {
        font-size: 1rem !important;
        padding: 0.8rem 1.5rem !important;
        margin: 0 !important;
        display: block !important; /* Ocupa su espacio natural */
    }
}

/* Para pantallas muy pequeas (hasta 480px) */
@media (max-width: 480px) {
    .lawyer-content h2 {
        font-size: 1rem !important; /* ~16px */
        line-height: 1.1 !important;
    }

    .lawyer-content .whatsapp-button {
        font-size: 0.9rem !important;
        padding: 0.7rem 1.2rem !important;
    }
}