/* ================================================================
   OFERTAPP - Términos y Condiciones
   static/css/landing/terminosycondiciones.css
   ================================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #2d3748;
    line-height: 1.6;
    overflow-x: hidden;
    background: #fafafa;
}

/* ================================================================
   BOTÓN VOLVER FLOTANTE
   ================================================================ */

.back-btn-floating {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.back-btn-floating:hover {
    transform: translateX(-5px);
    box-shadow: 0 6px 25px rgba(255, 107, 107, 0.25);
}

.back-btn-floating:hover i {
    transform: translateX(-3px);
}

.back-btn-floating i {
    transition: transform 0.3s ease;
}

/* ================================================================
   HERO SECTION
   ================================================================ */

.terms-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    position: relative;
    overflow: hidden;
    padding: 6rem 2rem 4rem;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -50px;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
}

.terms-hero-content {
    text-align: center;
    z-index: 1;
}

.hero-icon-container {
    margin-bottom: 1.5rem;
}

.hero-icon {
    width: 90px;
    height: 90px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.hero-icon i {
    font-size: 2.5rem;
    color: #667eea;
}

.terms-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* ================================================================
   INTRO SECTION
   ================================================================ */

.terms-intro {
    padding: 3rem 5%;
    background: white;
    border-bottom: 1px solid #f0f0f0;
}

.intro-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.intro-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(255, 142, 83, 0.1) 100%);
    border-radius: 50px;
    color: #ff6b6b;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.intro-container p {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.7;
}

/* ================================================================
   CONTENIDO PRINCIPAL
   ================================================================ */

.terms-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 5%;
}

.terms-section {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.terms-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.section-number {
    width: 45px;
    height: 45px;
    min-width: 45px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.section-content {
    flex: 1;
}

.section-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.section-content h2 i {
    color: #ff6b6b;
    font-size: 1.2rem;
}

.section-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin: 1.5rem 0 0.75rem;
}

.section-content h3:first-of-type {
    margin-top: 0;
}

/* ================================================================
   TERMS CARD
   ================================================================ */

.terms-card {
    background: #fafafa;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid #f0f0f0;
}

.terms-card p {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.terms-card p:last-child {
    margin-bottom: 0;
}

/* ================================================================
   LISTAS
   ================================================================ */

.terms-list {
    list-style: none;
    margin: 1rem 0;
}

.terms-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0;
    color: #4a5568;
    line-height: 1.5;
}

.terms-list li i {
    color: #22c55e;
    font-size: 0.9rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.terms-list.compact li {
    padding: 0.4rem 0;
}

.terms-list.danger li i {
    color: #ef4444;
}

.terms-list.numbered {
    counter-reset: item;
}

.terms-list.numbered li {
    counter-increment: item;
}

.terms-list.numbered li::before {
    content: counter(item) ".";
    font-weight: 600;
    color: #ff6b6b;
    min-width: 20px;
}

.terms-list.numbered li i {
    display: none;
}

/* ================================================================
   HIGHLIGHT BOXES
   ================================================================ */

.highlight-box {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 12px;
    margin: 1.25rem 0;
}

.highlight-box > i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.highlight-box strong {
    display: block;
    margin-bottom: 0.5rem;
}

.highlight-box ul {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
}

.highlight-box ul li {
    margin: 0.3rem 0;
    color: inherit;
}

.highlight-box.warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #92400e;
}

.highlight-box.warning > i {
    color: #f59e0b;
}

.highlight-box.danger {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #991b1b;
}

.highlight-box.danger > i {
    color: #ef4444;
}

.highlight-box.info {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #1e40af;
}

.highlight-box.info > i {
    color: #3b82f6;
}

.highlight-box.info a {
    color: #1d4ed8;
    text-decoration: underline;
}

/* ================================================================
   CONTACT INFO
   ================================================================ */

.contact-info {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #e2e8f0;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #4a5568;
}

.contact-info p i {
    color: #ff6b6b;
    width: 18px;
}

.contact-box {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: #ff6b6b;
    transform: translateX(5px);
}

.contact-item > i {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.contact-item div strong {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.2rem;
}

.contact-item div a,
.contact-item div span {
    color: #1a1a2e;
    font-weight: 600;
    text-decoration: none;
}

.contact-item div a:hover {
    color: #ff6b6b;
}

/* ================================================================
   ACCEPTANCE SECTION
   ================================================================ */

.terms-acceptance {
    padding: 4rem 5%;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    text-align: center;
}

.acceptance-content {
    max-width: 600px;
    margin: 0 auto;
}

.acceptance-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.acceptance-icon i {
    font-size: 2rem;
    color: #ff6b6b;
}

.acceptance-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
}

.acceptance-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    background: white;
    color: #ff6b6b;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-back-home:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* ================================================================
   FOOTER
   ================================================================ */

.terms-footer {
    padding: 3rem 5%;
    background: #1a1a2e;
    text-align: center;
}

.footer-content-terms {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 40px;
    height: 40px;
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.terms-footer p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.footer-copy {
    font-size: 0.9rem;
}

.footer-copy i {
    color: #ff6b6b;
    animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 768px) {
    .back-btn-floating {
        padding: 0.7rem;
        width: 50px;
        height: 50px;
        justify-content: center;
        border-radius: 50%;
    }

    .back-btn-floating span {
        display: none;
    }

    .terms-hero {
        min-height: auto;
        padding: 5rem 1.5rem 3rem;
    }

    .terms-hero h1 {
        font-size: 1.8rem;
    }

    .hero-icon {
        width: 70px;
        height: 70px;
    }

    .hero-icon i {
        font-size: 2rem;
    }

    .terms-content {
        padding: 2rem 4%;
    }

    .terms-section {
        flex-direction: column;
        gap: 1rem;
    }

    .section-number {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1rem;
    }

    .section-content h2 {
        font-size: 1.2rem;
    }

    .terms-card {
        padding: 1.25rem;
    }

    .highlight-box {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .highlight-box > i {
        margin: 0 auto;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }

    .acceptance-content h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .terms-hero h1 {
        font-size: 1.5rem;
    }

    .section-content h2 {
        font-size: 1.1rem;
        flex-wrap: wrap;
    }

    .terms-list li {
        font-size: 0.95rem;
    }

    .btn-back-home {
        width: 100%;
        justify-content: center;
    }
}

@supports (padding: env(safe-area-inset-bottom)) {
    .terms-footer {
        padding-bottom: calc(3rem + env(safe-area-inset-bottom));
    }

    .back-btn-floating {
        top: calc(20px + env(safe-area-inset-top));
    }
}