/* Global Styles */
:root {
    --primary-color: #4568FF; /* Bright Blue like wave.co */
    --secondary-color: #6C8CFF; /* Lighter Blue for gradient */
    --accent-color: #00E1D2; /* Turquoise accent like wave.co */
    --text-color: #333;
    --light-bg: #f8f9fa; /* Slightly lighter grey */
}

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

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

/* Header & Navigation */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0 0 4rem;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    width: 100vw;
}

.main-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(69, 104, 255, 0.95); /* Semi-transparent primary color */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    width: 100%;
    left: 0;
    right: 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
    margin: 0 auto;
    padding: 0.5rem 2rem;
    width: 100%;
    gap: 1rem;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    margin: 0 2rem;
    min-width: 0;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
    font-size: 1rem;
    margin: 0 0.6rem;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -3px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 0.5rem;
    justify-content: flex-end;
}

.download-button {
    background-color: white;
    color: var(--primary-color);
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    z-index: 100;
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.language-selector.nav-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    margin: 0 0.6rem;
    position: relative;
    cursor: pointer;
    z-index: 100;
}

.lang-flag {
    width: 20px;
    height: auto;
    margin-right: 0.3rem;
    border-radius: 2px;
}

#current-lang-text {
    font-weight: 600;
}

.language-selector.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -3px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.language-selector.nav-link:hover::after {
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    flex-shrink: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    justify-content: flex-start;
}

.logo-img {
    height: 30px;
    border-radius: 10px;
    width: auto;
    flex-shrink: 0;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    text-align: left;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-heading-wrapper {
    width: 100%;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    overflow: visible;
    min-height: 150px; /* Add min-height */
}

.hero-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    gap: 2rem;
}

.hero-content-left {
    flex: 0 1 550px;
    text-align: left;
    padding-left: 0;
}

.hero-content-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.animated-heading {
    font-size: 4.5rem;
    line-height: 1.4;
    font-weight: 800;
    text-align: left;
    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}



.static-text {
    display: inline-block;
    color: white; /* Texto en blanco para la sección hero */
    white-space: nowrap;
    flex-shrink: 0;
}

/* Estilo específico para el texto de estadísticas */
.stats-container {
    width: 100%;
    max-width: 100vw;
    text-align: center;
    padding: 0 1rem;
    margin: 0.5rem 0; /* Reducir margen vertical */
    box-sizing: border-box;
    overflow-x: hidden;
}

div > .static-text[data-translate-key="statsText"] {
    display: inline-block;
    text-align: center;
    max-width: 800px;
    font-size: 2.2rem; /* Tamaño ajustado */
    margin: 1rem auto; /* Reducido de 2rem a 1rem */
    line-height: 1.2; /* Reducido de 1.6 a 1.2 */
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    white-space: normal; /* Permitir saltos de línea */
}

.highlight-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 0.2rem 0; /* Reducido de 0.5rem a 0.2rem */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}



.changing-text {
    display: inline-block;
    position: relative;
    height: 1.5em; /* Set height relative to font size */
    vertical-align: top;
    min-width: 200px; /* Asegurar un ancho mínimo */
}

.text-item {
    position: absolute;
    top: 0; /* Alineado con el top del contenedor */
    left: 0;
    opacity: 0;
    width: max-content; /* Ajustar al contenido */
    color: var(--accent-color); /* Color turquesa para el texto variable */
    font-weight: 800;
    white-space: nowrap;
    overflow: visible; /* Cambiado a visible para evitar recortes */
    text-overflow: ellipsis;
    display: block;
    line-height: 1.4; /* Coincide con el line-height del heading */
    animation: textChange 3s infinite; /* Reducido a 3s para cada texto */
}

.text-item {
    word-wrap: break-word;
    word-break: break-all;
    animation: none; /* Desactivamos la animación por defecto */
    opacity: 0; /* Todos los elementos comienzan ocultos */
}

.text-item.active {
    animation: textChange 3s forwards; /* Solo animamos el elemento activo */
    opacity: 1;
    z-index: 1; /* Asegura que el texto activo esté por encima de los demás */
}

/* Eliminamos los delays individuales ya que usaremos JavaScript para controlar la animación */

@keyframes textChange {
    0% {
        opacity: 0;
        transform: translateY(15px); /* Aumentado para mejor visibilidad */
    }
    20% {
        opacity: 1;
        transform: translateY(0);
    }
    80% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-15px); /* Aumentado para mejor visibilidad */
    }
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    opacity: 0.9;
    max-width: 550px;
    line-height: 1.6;
    font-weight: 400;
    text-align: left;
}

/* App Store Buttons */
.app-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 0.5rem; /* Reducido de 1rem a 0.5rem */
    margin-bottom: 1.5rem; /* Reducido de 2rem a 1.5rem */
}

.store-button {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 1rem 1.8rem;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.store-button:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.black-button {
    background: #000;
    color: white;
}

.black-button:hover {
    background: #222;
}

.store-button i {
    font-size: 2.2rem;
    margin-right: 1rem;
}

.store-button span {
    text-align: left;
    line-height: 1.3;
    font-weight: 500;
}

/* Stats Banner */
.stats-banner {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    box-sizing: border-box;
}

.stats-icon {
    font-size: 2rem;
    color: var(--accent-color);
}

.stats-text {
    font-size: 1.3rem;
    line-height: 1.4;
    text-align: center;
}

/* Justice Visual */
.justice-visual {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center; /* Centrado para móvil */
    align-items: center; /* Centrado para móvil */
    padding-top: 1rem; /* Espacio reducido para móvil */
}

.justice-scale {
    width: 100%;
    max-width: 350px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Features Section */
.features {
    padding: 2rem 1rem;
    background: var(--light-bg);
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

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



/* Media Queries for Responsiveness */
@media (max-width: 1200px) {
    .nav-links {
        margin: 0 1rem;
    }
    .hero-heading-wrapper {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 992px) {

    .hero-content-wrapper {
        flex-direction: column;
        text-align: left;
    }

    .hero-content-left, .hero-content-right {
        flex: 1 1 100%;
        text-align: left;
        align-items: flex-start;
    }

    .hero-content-right {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-top: 2rem;
    }

    .hero-heading-wrapper {
        text-align: left;
    }

    .animated-heading {
        font-size: 4rem;
        text-align: left;
    }

    .subtitle {
        text-align: left;
        margin-left: 0;
        margin-right: auto;
    }

    .app-buttons {
        justify-content: flex-start;
    }

    .justice-visual {
        justify-content: center;
        align-items: center;
        width: 100%;
        display: flex;
        margin: 0;
        padding: 0;
    }

    .justice-scale {
        max-width: 280px;
        margin: 0 auto;
        display: block;
    }

    div > .static-text[data-translate-key="statsText"] {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding-bottom: 4rem; /* Increase padding-bottom */
    }

    .hero-container {
        padding: 1rem;
        text-align: left;
    }

    .hero-content-right {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-top: 1.5rem;
    }

    .hero-heading-wrapper {
        text-align: left;
    }

    .animated-heading {
        font-size: 3rem;
        text-align: left;
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 0.2rem;
    }

    .static-text {
        display: inline;
        font-size: 1.8rem; /* Reducido específicamente para móviles */
        white-space: normal; /* Permitir saltos de línea */
    }

    .changing-text {
        display: inline;
        position: relative;
        height: auto;
        min-width: auto;
        vertical-align: baseline;
        font-size: 1.8rem; /* Reducido específicamente para móviles */
    }

    .text-item {
        position: relative;
        display: inline;
        left: auto;
        top: auto;
        width: auto;
        vertical-align: baseline;
    }

    .stats-container {
        padding: 0 0.5rem;
    }

    div > .static-text[data-translate-key="statsText"] {
        font-size: 1.5rem;
        text-align: center; /* Asegurar centrado */
        width: 100%;
        padding: 0 1rem;
    }

    .justice-visual {
        justify-content: center;
        align-items: center;
        width: 100%;
        display: flex;
        margin: 0;
        padding: 0;
    }

    .justice-scale {
        max-width: 250px;
        margin: 0 auto;
        display: block;
    }
}

@media (max-width: 480px) {
    .hero-container {
        padding: 0.5rem;
    }

    .hero-content-right {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-top: 1rem;
    }

    .animated-heading {
        font-size: 1.8rem; /* Reducido de 2rem a 1.8rem */
        text-align: left;
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 0.15rem; /* Reducido el gap */
    }

    .static-text {
        display: inline;
        font-size: 1.6rem; /* Reducido para 480px */
        white-space: normal;
    }

    .changing-text {
        display: inline;
        position: relative;
        height: auto;
        min-width: auto;
        vertical-align: baseline;
        font-size: 1.6rem; /* Reducido para 480px */
    }

    .text-item {
        position: relative;
        display: inline;
        left: auto;
        top: auto;
        width: auto;
        vertical-align: baseline;
    }

    .justice-visual {
        justify-content: center;
        align-items: center;
        width: 100%;
        display: flex;
        margin: 0;
        padding: 0;
    }

    .justice-scale {
        max-width: 200px;
        margin: 0 auto;
        display: block;
    }
}

@media (max-width: 420px) {
    .hero-content-right {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-top: 1rem;
    }

    .animated-heading {
        font-size: 1.6rem; /* Reducido de 1.8rem a 1.6rem */
        text-align: left;
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 0.1rem; /* Reducido el gap */
    }

    .static-text {
        display: inline;
        font-size: 1.4rem; /* Reducido para 420px */
        white-space: normal;
    }

    .changing-text {
        display: inline;
        position: relative;
        height: auto;
        min-width: auto;
        vertical-align: baseline;
        font-size: 1.4rem; /* Reducido para 420px */
    }

    .text-item {
        position: relative;
        display: inline;
        left: auto;
        top: auto;
        width: auto;
        vertical-align: baseline;
    }

    .justice-visual {
        justify-content: center;
        align-items: center;
        width: 100%;
        display: flex;
        margin: 0;
        padding: 0;
    }

    .justice-scale {
        max-width: 180px;
        margin: 0 auto;
        display: block;
    }
}

/* iPhone 14 y dispositivos similares (390px) */
@media (max-width: 390px) {
    .hero-content-right {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-top: 1rem;
    }

    .animated-heading {
        font-size: 1.5rem; /* Aumentado de 1.3rem a 1.5rem para mejor legibilidad */
        text-align: left;
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 0.1rem; /* Aumentado ligeramente el gap */
    }

    .static-text {
        display: inline;
        font-size: 1.5rem; /* Aumentado de 1.3rem a 1.5rem */
        white-space: normal;
    }

    .changing-text {
        display: inline;
        position: relative;
        height: auto;
        min-width: auto;
        vertical-align: baseline;
        font-size: 1.5rem; /* Aumentado de 1.3rem a 1.5rem */
    }

    .text-item {
        position: relative;
        display: inline;
        left: auto;
        top: auto;
        width: auto;
        vertical-align: baseline;
    }

    .justice-visual {
        justify-content: center;
        align-items: center;
        width: 100%;
        display: flex;
        margin: 0;
        padding: 0;
    }

    .justice-scale {
        max-width: 170px;
        margin: 0 auto;
        display: block;
    }
}

@media (max-width: 380px) {
    .hero-content-right {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-top: 1rem;
    }

    .animated-heading {
        font-size: 1.3rem; /* Aumentado de 1.4rem a 1.3rem para mejor balance */
        text-align: left;
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 0.08rem; /* Ajustado el gap */
    }

    .static-text {
        display: inline;
        font-size: 1.3rem; /* Aumentado de 1.1rem a 1.3rem */
        white-space: normal;
    }

    .changing-text {
        display: inline;
        position: relative;
        height: auto;
        min-width: auto;
        vertical-align: baseline;
        font-size: 1.3rem; /* Aumentado de 1.1rem a 1.3rem */
    }

    .text-item {
        position: relative;
        display: inline;
        left: auto;
        top: auto;
        width: auto;
        vertical-align: baseline;
    }

    .justice-visual {
        justify-content: center;
        align-items: center;
        width: 100%;
        display: flex;
        margin: 0;
        padding: 0;
    }

    .justice-scale {
        max-width: 160px;
        margin: 0 auto;
        display: block;
    }
}

@media (max-width: 320px) {
    .hero-content-right {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-top: 1rem;
    }

    .animated-heading {
        font-size: 1.1rem; /* Aumentado de 1.2rem a 1.1rem para mejor balance */
        text-align: left;
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 0.06rem; /* Ajustado el gap */
    }

    .static-text {
        display: inline;
        font-size: 1.1rem; /* Aumentado de 1rem a 1.1rem */
        white-space: normal;
    }

    .changing-text {
        display: inline;
        position: relative;
        height: auto;
        min-width: auto;
        vertical-align: baseline;
        font-size: 1.1rem; /* Aumentado de 1rem a 1.1rem */
    }

    .text-item {
        position: relative;
        display: inline;
        left: auto;
        top: auto;
        width: auto;
        vertical-align: baseline;
    }

    .justice-visual {
        justify-content: center;
        align-items: center;
        width: 100%;
        display: flex;
        margin: 0;
        padding: 0;
    }

    .justice-scale {
        max-width: 140px;
        margin: 0 auto;
        display: block;
    }
}

@media (max-width: 280px) {
    .hero-content-right {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-top: 1rem;
    }

    .animated-heading {
        font-size: 1rem; /* Reducido de 1.2rem a 1rem */
        text-align: left;
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 0.05rem; /* Reducido el gap */
    }

    .static-text {
        display: inline;
        font-size: 0.9rem; /* Reducido para 280px */
        white-space: normal;
    }

    .changing-text {
        display: inline;
        position: relative;
        height: auto;
        min-width: auto;
        vertical-align: baseline;
        font-size: 0.9rem; /* Reducido para 280px */
    }

    .text-item {
        position: relative;
        display: inline;
        left: auto;
        top: auto;
        width: auto;
        vertical-align: baseline;
    }

    .justice-visual {
        justify-content: center;
        align-items: center;
        width: 100%;
        display: flex;
        margin: 0;
        padding: 0;
    }

    .justice-scale {
        max-width: 120px;
        margin: 0 auto;
        display: block;
    }
}

@media (max-width: 240px) {
    .hero-content-right {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-top: 1rem;
    }

    .animated-heading {
        font-size: 0.9rem; /* Reducido de 1rem a 0.9rem */
        text-align: left;
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 0.03rem; /* Reducido el gap */
    }

    .static-text {
        display: inline;
        font-size: 0.8rem; /* Reducido para 240px */
        white-space: normal;
    }

    .changing-text {
        display: inline;
        position: relative;
        height: auto;
        min-width: auto;
        vertical-align: baseline;
        font-size: 0.8rem; /* Reducido para 240px */
    }

    .text-item {
        position: relative;
        display: inline;
        left: auto;
        top: auto;
        width: auto;
        vertical-align: baseline;
    }

    .justice-visual {
        justify-content: center;
        align-items: center;
        width: 100%;
        display: flex;
        margin: 0;
        padding: 0;
    }

    .justice-scale {
        max-width: 100px;
        margin: 0 auto;
        display: block;
    }
}



    .download-button {
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
    }

    .store-button {
        padding: 0.8rem 1.2rem;
    }

    .store-button i {
        font-size: 1.8rem;
    }

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

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: #666;
}

/* Legal Areas Section */
.areas {
    padding: 2rem 1rem;
    background-color: var(--light-bg);
}

.areas h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

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

.area-card {
    text-align: center;
    padding: 1.2rem;
    border-radius: 10px;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.area-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

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

.area-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 0.8rem; /* Add some space above the title */
}

.area-card p {
    font-size: 0.85rem; /* Smaller font for example text */
    color: #555; /* Darker grey for example text for readability */
    line-height: 1.4;
    margin-top: 0.5rem; /* Space between title and example */
    flex-grow: 1; /* Allow paragraph to take available space */
}

/* Social Proof Section */
.social-proof {
    padding: 2rem 2rem;
    text-align: center;
    background-color: var(--light-bg);
}

.social-proof h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.stats-container {
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
}

.stats-text {
    font-size: 1.2rem;
    color: #555;
    font-weight: 500;
    padding: 0.8rem 1.5rem;
    background-color: rgba(40, 53, 147, 0.1);
    border-radius: 8px;
    display: inline-block;
}

/* Store Ratings Section */
.store-ratings {
    padding: 2rem 1rem 4rem;
    background: var(--light-bg);
}

.store-rating-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem;
    flex-wrap: wrap;
}

.store-rating-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.store-rating-item:hover {
    transform: translateY(-5px);
}

.store-rating-item i.fab {
    font-size: 2.5rem;
    margin-right: 1.5rem;
    color: var(--primary-color);
}

.rating-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rating-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
}

.rating-stars {
    color: #FFD700;
    margin: 0.3rem 0;
}

.store-name {
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
}

/* Reviews Grid */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Ajustado para reseñas */
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.review-card {
    text-align: center;
    padding: 1.2rem;
    border-radius: 10px;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.review-card .stars {
    color: #FFD700; /* Amarillo para las estrellas */
    margin-bottom: 1rem;
}

.review-card .stars i {
    font-size: 1.2rem;
}

.review-card .review-text {
    font-style: italic;
    margin-bottom: 1rem;
    flex-grow: 1; /* Permite que el texto ocupe espacio */
    color: #555; /* Color más oscuro para mejor legibilidad */
    line-height: 1.4;
}

.review-card .reviewer-name {
    font-weight: bold;
    color: var(--primary-color);
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    text-align: center;
    padding: 4rem 1rem;
}

.cta h2 {
    margin-bottom: 1rem;
}

.cta p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* App Mockups Section */
.app-mockups {
    padding: 2rem 1rem;
    text-align: center;
    background: var(--light-bg);
}

.app-mockups h2 {
    text-align: center;
    margin-bottom: 0.5rem; /* Reduced margin */
    color: var(--primary-color);
}

.app-mockups .section-subtitle {
    margin-bottom: 3rem;
    color: var(--text-color);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.desktop-only {
    display: none;
}

@media (min-width: 768px) {
    .mockups-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .desktop-only {
        display: block;
    }
}

.mockup-item {
    background: white;
    border-radius: 20px;
    padding: 1.0rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.mockup-item:hover {
    transform: translateY(-5px);
}

.mockup-item img {
    width: 100%;
    max-width: 280px; /* Increased max-width for images */
    height: auto; /* Ensure aspect ratio is maintained */
    border-radius: 20px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.mockup-item p {
    font-size: 0.9rem;
    color: var(--text-color);
}

/* Pricing Section */
.pricing {
    padding: 2rem 1rem;
    background-color: var(--light-bg);
}

.pricing h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.pricing-tagline {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.2rem;
    color: var(--text-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
    line-height: 1.2;
    position: relative;
    padding-bottom: 15px;
}

.pricing-tagline:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    border-radius: 3px;
}

.pricing-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
}

.pricing-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    width: 550px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    /* height: 560px; */ /* Eliminado para permitir altura dinámica */
    margin-bottom: 1rem;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured {
    border: 2px solid var(--accent-color);
    position: relative;
}

.featured-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background-color: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.premium-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.premium-option {
    padding: 0.5rem;
    padding-top: 1.2rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    width: calc(33.33% - 0.5rem);
    position: relative;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 10px;
}

.premium-option.selected {
    border-color: var(--accent-color);
    background-color: rgba(0, 225, 210, 0.1);
}

.premium-option h3 {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    color: var(--primary-color);
}

.premium-option .plan-price {
    font-size: 1.2rem;
    margin: 0.3rem 0;
    position: relative;
    padding-right: 5px;
}

.premium-option .plan-price span {
    font-size: 0.8rem;
    display: inline-block;
    margin-left: 2px;
}

.save-badge {
    position: absolute;
    top: -25px;
    right: 10px;
    background-color: #FF4757;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    transform: none;
    z-index: 2;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 1rem 0;
    height: 60px;
}

/* Estilo específico para el plan básico para alinear con premium */
.pricing-card:not(.featured) .plan-price {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px; /* Altura similar a .premium-options */
    margin: 1rem 0;
    margin-top: 10px; /* Alineado con margin-top de .premium-option */
}

.plan-price span {
    font-size: 1rem;
    font-weight: normal;
    color: #666;
    display: inline-block;
    margin-top: -5px;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    flex-grow: 1;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
}

.pricing-card p[data-translate-key="freePlanDesc"],
.pricing-card p[data-translate-key="premiumPlanDesc"] {
    margin-bottom: 1rem;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
    position: relative;
    top: 0;
}

.plan-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding-left: 1rem;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li i {
    margin-right: 10px;
}

.plan-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: auto;
}

.plan-button:hover {
    background-color: var(--secondary-color);
}

.feature-check {
    color: #4CAF50;
    margin-right: 5px;
}

.feature-times {
    color: #F44336;
    margin-right: 5px;
}

@media (max-width: 992px) {
    .pricing-container {
        flex-direction: column;
        align-items: center;
    }

    .pricing-card {
        width: 100%;
        max-width: 550px; /* Ajustado para mayor consistencia */
    }
}

@media (max-width: 768px) {
    .pricing-card {
        width: 100%;
        max-width: 400px;
        margin-bottom: 2rem;
        height: auto; /* Asegurar altura automática */
    }
    
    .premium-options {
        flex-direction: column;
    }
    
    .premium-option {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .plan-features {
        min-height: auto; /* Altura mínima automática */
    }
}

/* FAQ Section */
.faq {
    background-color: var(--light-bg);
    padding: 2rem 1rem;
}

.faq h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

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

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

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    line-height: 1.7;
    white-space: pre-line;
}

/* Footer */
.footer-cta {
    text-align: center;
    margin-bottom: 2rem;
}

.main-footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: bold;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 0.5rem 0;
}

.footer-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.footer-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -3px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

.footer-buttons {
    display: flex;
    justify-content: center;
    width: 100%;
}

.footer-app-buttons {
    justify-content: center;
    margin: 1rem 0;
}

.footer-copyright {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 992px) {

    .hero-container {
        text-align: center;
    }
    
    .hero-heading-wrapper {
        padding-left: 1rem;
        padding-right: 1rem;
        text-align: center;
    }
    
    .hero-content-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-content-left {
        max-width: 100%;
        text-align: left;
        margin-bottom: 1.5rem; /* Reducido de 2rem a 1.5rem para mantener consistencia con la versión desktop */
        padding-left: 1rem;
    }
    
    .animated-heading {
        font-size: 3rem;
        text-align: center;
        max-width: 100%;
        margin-bottom: 1rem; /* Reducido para mantener consistencia con la versión desktop */
    }
    
    

    .static-text {
        white-space: normal;
        display: block;
        margin-bottom: 0.5rem;
        text-align: center;
    }
    
    
    
    .changing-text {
        min-width: 100%;
        max-width: 100%;
        white-space: normal;
        height: auto;
        min-height: 100px; /* Aumentado para coincidir con la versión de escritorio */
        position: relative; /* Asegura que los elementos absolutos se posicionen correctamente */
        text-align: left;
    }
    
    .text-item {
        position: absolute;
        top: 10px; /* Ajustado para coincidir con la versión de escritorio */
        left: 0;
        white-space: normal;
        width: 100%;
        height: auto; /* Permite que el texto ocupe el espacio necesario */
        line-height: 1.2; /* Ajustado para mejor espaciado vertical */
        padding-top: 0; /* Eliminado porque ya tenemos top: 10px */
        text-align: left;
    }
    
    .subtitle {
        text-align: left;
        margin-bottom: 1rem; /* Reducido para mantener consistencia con la versión desktop */
    }
    
    .app-buttons {
        justify-content: flex-start;
        margin-top: 0.5rem;
        margin-bottom: 1.2rem; /* Reducido para mantener consistencia con la versión desktop */
    }
    
    .justice-visual {
        justify-content: flex-start; /* Alineamos la imagen a la izquierda */
        padding-top: 0;
        width: 100%;
        display: flex;
    }
    
    .justice-scale {
        max-width: 300px;
    }
    
    .stats-banner {
        padding: 1.2rem 1rem;
    }
    
    .stats-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        padding: 0.5rem 1rem;
    }
    
    .logo {
        margin-bottom: 0.5rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        margin: 0.5rem 0;
    }

    .language-selector {
        margin-top: 0.5rem; /* Add some space if stacked */
    }

    .hero h1 {
        font-size: 2rem;
    }
    
    /* Ajuste responsivo para el texto de estadísticas */
    div > .static-text[data-translate-key="statsText"] {
        font-size: 1.6rem; /* Texto más pequeño en móviles */
        margin: 0.8rem auto; /* Centrado horizontalmente */
        line-height: 1.1; /* Reducido de 1.4 a 1.1 */
        text-align: center;
    }
    
    .highlight-number {
        font-size: 2.2rem;
        margin: 0.1rem 0; /* Reducido de 0.3rem a 0.1rem */
        text-align: center;
    }
    
        .stats-container {
        margin: 0.3rem 0; /* Reducido */
        padding: 0 1rem;
        text-align: center;
    }

    .feature-grid,
    .areas-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .store-button {
        width: 100%;
        justify-content: center;
    }
    
    /* Estilos responsivos para el footer */
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-app-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-app-buttons .store-button {
        margin: 0.5rem 0;
    }
}

/* Image Viewer */
.image-viewer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.image-viewer-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.image-viewer-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 5px;
}

.close-viewer {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-size: 2.2rem;
}