:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f5f6fa;
}

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

body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

nav {
    position: fixed;
    width: 100%;
    padding: 1rem 5%;
    background: var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
}

.nav-links {
    display: flex; /* Añadido para asegurar que sea flex en escritorio */
    align-items: center; /* Centra verticalmente los enlaces */
}

.nav-links a {
    text-decoration: none;
    color: white;
    margin-left: 2rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

header {
    height: 90vh;
    background: linear-gradient(rgba(44, 62, 80, 0.85), rgba(52, 152, 219, 0.85)), 
                url('abogados phishing.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero {
    padding: 2rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero p.highlight-text {
    font-size: 1.8rem;
    color: #ff9966;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: pulse 2s infinite;
    display: inline-block;
    border: none;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
        color: #ff7043;
    }
    100% {
        transform: scale(1);
    }
}

.cta-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #ff9966, #ff7043);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 8px rgba(255, 112, 67, 0.3);
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 112, 67, 0.4);
}

.topbar {
    background: linear-gradient(135deg, #ff9966, #ff7043);
    color: white;
    text-align: center;
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.topbar i {
    margin-right: 10px;
    color: #fff;
}

section {
    padding: 5rem 10%;
}

#servicios {
    background: white;
    padding: 3rem 10%;
}

#servicios h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-transform: none;
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 0.8rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.service-card h3 {
    font-size: 1.2rem;
    margin: 1rem 0;
    color: var(--primary-color);
}

.service-card p {
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
}

.service-card .service-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: transform 0.2s, background-color 0.2s;
}

.service-card .service-cta:hover {
    transform: translateY(-2px);
    background: #2980b9;
}

.service-card .service-cta i {
    font-size: 1rem;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.team-section {
    background: var(--primary-color);
    color: white;
    padding: 5rem 10%;
}

.team-section h2 {
    color: var(--secondary-color) !important;
    font-size: 1.8rem !important;
    margin-bottom: 2rem;
}

.team-member {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 4rem;
    align-items: center;
}

.member-image {
    flex: 0 0 400px;
}

.member-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.member-info h3 {
    font-size: 2rem;
    color: white;
    margin-bottom: 0.5rem;
}

.member-info .role {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.member-info .description {
    color: white;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.credentials {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.credentials span {
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.credentials i {
    color: var(--secondary-color);
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

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

.call-btn {
    background-color: #4285f4;
}

.email-btn {
    background-color: #EA4335;
}

.contact-banner {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    padding: 2rem;
    margin: 0 -10%;
    text-align: center;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.contact-banner h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-banner p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

#reviews .contact-banner {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    padding: 2rem;
    margin: 0 auto;
    text-align: center;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    max-width: 900px;
}

.pre-team-banner.contact-banner {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    padding: 2rem;
    margin: 0 auto;
    text-align: center;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    max-width: none;
    width: 100%;
}

.banner-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.banner-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.banner-btn.whatsapp {
    background-color: #25D366;
}

.banner-btn.call {
    background-color: #ff9966;
}

.banner-btn.email {
    background-color: #EA4335;
}

.info-box {
    background: var(--primary-color);
    border: 1px solid #ddd;
    padding: 1.5rem 2%;
    margin: 1rem 10%;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: white;
}

.info-box h2 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.info-box img {
    width: 120px;
    height: auto;
    margin: 1rem auto;
    display: block;
}

.info-box p {
    margin: 0;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
}

footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem;
}

footer .footer-links {
    margin-top: 1rem;
}

footer .footer-links a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

footer .footer-links a:hover {
    color: var(--secondary-color);
}

footer .separator {
    color: rgba(255,255,255,0.5);
    margin: 0 10px;
}

.phishing-claim {
    background: white;
    color: var(--text-color);
    padding: 1rem 10%;
}

.phishing-claim h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    text-transform: none;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 0.8rem;
    text-align: center;
}

.phishing-logo {
    display: block;
    width: 180px;
    height: auto;
    margin: 0 auto 1.5rem;
}

.phishing-claim-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.phishing-claim-content p {
    margin: 0.5rem 0;
    line-height: 1.4;
}

.phishing-claim p {
    margin-bottom: 1.5rem;
}

.phishing-claim strong {
    color: var(--secondary-color);
    font-size: 1.2em;
}

.phishing-tactics {
    background: white;
    padding: 4rem 10%;
}

.phishing-tactics h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2.5rem;
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.phishing-tactics .description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
    padding: 0 1rem;
}

.tactics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tactic-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.tactic-card:hover {
    transform: translateY(-5px);
}

.tactic-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.tactic-title h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 0;
}

.tactic-description {
    color: var(--text-color);
    line-height: 1.5;
}

.tactic-card h3 {
    font-size: 1.2rem;
    margin: 1rem 0;
    color: var(--accent-color);
}

.pricing-section {
    background: linear-gradient(135deg, #ff9966, #ff7043);
    padding: 3rem 2rem;
    color: white;
    text-align: center;
    margin: 2rem auto;
    max-width: 600px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(255, 112, 67, 0.3);
}

.pricing-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: white;
    border: none !important;
}

.pricing-section .price {
    font-size: 4rem;
    font-weight: bold;
    margin: 1rem 0;
}

.pricing-section .price-details {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.pricing-section .pricing-note {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 1rem;
    font-style: italic;
}

.pricing-section .success-fee {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-weight: bold;
}

.faq-section {
    background: var(--primary-color);
    padding: 4rem 10%;
    max-width: none;  
    margin: 0;        
}

.faq-section h2 {
    text-align: center;
    color: white;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.faq-section details {
    background: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.faq-section details:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.faq-section summary {
    padding: 1.5rem;
    cursor: pointer;
    position: relative;
    list-style: none;
}

.faq-section summary h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    padding-right: 2rem;
    margin: 0;
}

.faq-section summary::-webkit-details-marker {
    display: none;
}

.faq-section summary::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.faq-section details[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-section .faq-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-color);
    line-height: 1.6;
}

.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

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

.floating-call {
    background-color: #4285f4;
}

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

.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    max-width: 80%;
    max-height: 80%;
    overflow-y: auto;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
}

.forum-section {
    padding: 4rem 10%;
    background: #f5f6fa;
    color: var(--text-color);
}

.forum-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.forum-section h3 {
    color: red;
    margin-bottom: 1rem;
}

.forum-form {
    margin: 2rem 0;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.forum-form h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.forum-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.forum-form label {
    font-weight: bold;
    color: var(--text-color);
}

.forum-form input[type="text"],
.forum-form textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 100%;
    font-size: 1rem;
}

.forum-form textarea {
    min-height: 120px;
    resize: vertical;
}

.forum-form button {
    padding: 1rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
}

.forum-form button:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

#forumResponseMessage {
    margin: 1rem 0;
    padding: 1rem;
    background: #e8f5e9;
    border-radius: 5px;
    color: #2e7d32;
    text-align: center;
    font-weight: bold;
}

.forum-form input[type="text"]:focus, .forum-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 5px var(--secondary-color);
}

.forum-posts {
    margin-top: 2rem;
}

.forum-post {
    background: white;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.forum-post .post-author {
    font-weight: bold;
}

.forum-post .post-time {
    font-size: 0.9rem;
    color: #777;
}

.forum-post .post-content {
    margin-top: 0.5rem;
    line-height: 1.5;
}

.forum-post.forum-reply {
    border-left: 4px solid var(--secondary-color);
    margin-left: 20px;
    padding-left: 15px;
    background-color: #fafafa;
}

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

.forum-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
    flex-shrink: 0;
}

.forum-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.forum-author-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.letter-avatar {
    background-color: #4285F4;
    color: #fff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(44, 62, 80, 0.95);
    color: white;
    padding: 0.8rem 2%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10000;
    font-size: 0.9rem;
}

.cookie-consent-banner p {
    margin: 0;
}

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

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

#acceptCookies {
    background-color: #2ecc71;
}

#acceptCookies:hover {
    background-color: #27ae60;
}

#rejectCookies {
    background-color: #e74c3c;
}

#rejectCookies:hover {
    background-color: #c0392b;
}

.read-more-btn {
    display: inline-block;
    background: none;
    border: none;
    color: var(--secondary-color);
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    margin-left: 5px;
    font-size: 0.9em;
    text-decoration: underline;
}

.read-more-btn:hover {
    color: var(--primary-color);
}

.review-text {
    position: relative;
    line-height: 1.5;
}

.short-text, .full-text {
    display: inline;
}

@media (max-width: 768px) {
    nav {
        flex-direction: column; /* Apila logo y enlaces verticalmente */
        align-items: flex-start; /* Alinea a la izquierda */
        padding: 1rem 5%;
    }
    
    .nav-links {
        display: flex; /* Cambia 'none' por 'flex' para mostrar los enlaces */
        flex-direction: column; /* Enlaces uno debajo del otro */
        width: 100%; /* Ocupa todo el ancho */
        margin-top: 1rem; /* Espacio debajo del logo */
    }
    
    .nav-links a {
        margin-left: 0; /* Elimina el margen izquierdo en móvil */
        padding: 0.5rem 0; /* Añade algo de espacio vertical */
        width: 100%; /* Ocupa todo el ancho */
    }
    
    /* Resto de tus estilos originales */
    .hero h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 3rem 5%;
    }
    
    .phishing-claim h2 {
        font-size: 1.5rem;
        margin-left: -5%;
        margin-right: -5%;
        padding: 0.8rem 5%;
    }
    
    .phishing-claim-content {
        font-size: 1rem;
    }
    
    .contact-banner {
        margin: 0 -5%;
        padding: 2rem 1rem;
    }
    
    .pre-team-banner.contact-banner {
        margin: 0;
        padding: 2rem 1rem;
    }
    
    .banner-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .banner-btn {
        width: 100%;
        justify-content: center;
    }
    
    .phishing-tactics {
        padding: 3rem 5%;
    }
    
    .tactics-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-section {
        padding: 3rem 5%;
    }
    
    .floating-buttons {
        bottom: 10px;
        right: 10px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .team-section {
        padding: 3rem 5%;
        overflow-x: hidden; /* Evita desbordamiento horizontal */
    }
    
    .team-member {
        max-width: 100%; /* Asegura que no exceda el ancho del contenedor */
        padding: 0 1rem; /* Añade padding interno para contener el contenido */
    }
    
    .member-info .description {
        font-size: 1rem;
        line-height: 1.6;
        padding: 0 1rem;
        margin: 0 auto 1.5rem; /* Reduce margen inferior */
        max-width: 100%; /* Limita el ancho al contenedor */
        box-sizing: border-box; /* Incluye padding en el cálculo del ancho */
    }
    
    .team-section .contact-buttons {
        display: flex;
        flex-direction: column !important; /* Forzamos columna con !important */
        gap: 0.8rem;
        margin-top: 1.5rem;
        padding: 0 1rem; /* Asegura que no se salga */
        width: 100%; /* Ocupa el ancho disponible */
        box-sizing: border-box;
    }
    
    .team-section .contact-btn {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
        margin: 0; /* Elimina márgenes que puedan desbordar */
    }
    
    .contact-buttons {
        flex-direction: column; /* Apila botones verticalmente */
        gap: 0.8rem; /* Reduce espacio entre botones */
        margin-top: 1.5rem;
    }
    
    .contact-btn {
        padding: 0.7rem 1rem; /* Reduce padding */
        font-size: 0.7rem; /* Tamaño más pequeño */
        width: 100%; /* Ocupa todo el ancho */
        justify-content: center; /* Centra contenido */
    }
}

@media (max-width: 968px) {
    .team-member {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .member-image {
        flex: 0 0 auto;
        max-width: 300px;
        margin: 0 auto;
    }

    .credentials {
        justify-content: center;
    }
}