/* Oficina Virtual COPE - Diseño Institucional */
/* Paleta de colores derivada del logo */

:root {
    /* Colores Institucionales COPE */
    --cope-blue-primary: #035684;
    --cope-blue-light: #4FA0E3;
    --cope-green-dark: #19763A;
    --cope-green-light: #7BC76A;
    --cope-yellow: #F7C942;
    --cope-yellow-light: #FFD75A;

    /* Colores de texto y fondo */
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
    --text-white: #ffffff;
    --bg-light: #F5F7F9;
    --bg-white: #ffffff;

    /* Diseño */
    --border-radius: 12px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.cope-home-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Navbar Superior */
.cope-navbar {
    background: linear-gradient(135deg, var(--cope-blue-primary) 0%, var(--cope-blue-light) 100%);
    box-shadow: 0 2px 8px rgba(3, 86, 132, 0.3);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo {
    height: 65px;
    width: auto;
}

.navbar-menu {
    display: flex;
    gap: 40px;
    list-style: none;
    align-items: center;
}

.navbar-menu a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.5rem;
    transition: var(--transition);
}

.navbar-menu a:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.navbar-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-white);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section con Degradado */
.hero-section {
    background: linear-gradient(135deg, var(--cope-blue-primary) 0%, var(--cope-blue-light) 100%);
    padding: 100px 0;
    color: var(--text-white);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 80px;
}

.hero-text {
    flex: 1;
}

.hero-title {
    font-size: 5.5rem;
    font-weight: 700;
    margin-bottom: 28px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 2.5rem;
    margin-bottom: 48px;
    line-height: 1.4;
    opacity: 0.95;
}

.hero-actions {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.hero-banner {
    flex: 1;
    max-width: 550px;
}

.hero-banner img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Botones del Hero */
.btn-hero-primary {
    background: var(--cope-blue-primary);
    color: var(--text-white);
    border: none;
    padding: 22px 52px;
    font-size: 1.75rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.btn-hero-primary:hover {
    background: #024a6f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(3, 86, 132, 0.3);
    color: var(--text-white);
}

.btn-hero-secondary {
    background: var(--bg-white);
    color: var(--cope-blue-primary);
    border: 2px solid var(--bg-white);
    padding: 22px 52px;
    font-size: 1.75rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-hero-secondary:hover {
    background: transparent;
    color: var(--text-white);
    border-color: var(--text-white);
    transform: translateY(-2px);
}

/* Sección de Beneficios */
.benefits-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    text-align: center;
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 72px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.benefit-card {
    background: var(--bg-white);
    padding: 56px 40px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid #e9ecef;
    box-shadow: var(--shadow-sm);
}

.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.benefit-icon {
    width: 110px;
    height: 110px;
    margin: 0 auto 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--text-white);
}

.benefit-icon.green {
    background: linear-gradient(135deg, var(--cope-green-light) 0%, #6ab858 100%);
}

.benefit-icon.yellow {
    background: linear-gradient(135deg, var(--cope-yellow) 0%, var(--cope-yellow-light) 100%);
}

.benefit-icon.blue {
    background: linear-gradient(135deg, var(--cope-blue-primary) 0%, var(--cope-blue-light) 100%);
}

.benefit-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.benefit-text {
    color: var(--text-secondary);
    font-size: 1.5rem;
    line-height: 1.6;
}

/* Sección Crear Cuenta */
.account-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.account-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto;
}

.account-card {
    padding: 56px 48px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
    color: var(--text-white);
}

.account-card.titular {
    background: linear-gradient(135deg, var(--cope-blue-primary) 0%, #024a6f 100%);
}

.account-card.no-titular {
    background: linear-gradient(135deg, var(--cope-blue-light) 0%, #3a8fd3 100%);
}

.account-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(3, 86, 132, 0.3);
}

.account-card-title {
    font-size: 2.75rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.account-card-description {
    font-size: 1.6rem;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.95;
}

.account-card-button {
    background: var(--bg-white);
    color: var(--cope-blue-primary);
    border: 2px solid var(--bg-white);
    padding: 20px 44px;
    font-size: 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
    transition: var(--transition);
}

.account-card-button:hover {
    background: transparent;
    color: var(--bg-white);
    transform: translateY(-2px);
}

.account-note {
    background: rgba(255, 255, 255, 0.15);
    border-left: 4px solid var(--bg-white);
    padding: 24px;
    margin-top: 28px;
    border-radius: 4px;
    font-size: 1.375rem;
    text-align: left;
}

/* Sección App Móvil */
.app-section {
    padding: 80px 0;
    background: var(--bg-white);
    text-align: center;
}

.app-title {
    font-size: 3.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.app-subtitle {
    color: var(--text-secondary);
    font-size: 1.875rem;
    margin-bottom: 48px;
}

.app-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.app-button {
    display: inline-block;
    transition: transform 0.3s ease;
}

.app-button:hover {
    transform: scale(1.05);
}

.app-button img {
    height: 75px;
    width: auto;
}

/* Botón Flotante Mesa de Ayuda */
.floating-help-cope {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--cope-blue-primary);
    color: var(--text-white);
    border: none;
    border-radius: 50px;
    padding: 22px 40px;
    font-size: 1.5rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
}

.floating-help-cope:hover {
    background: #024a6f;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(3, 86, 132, 0.4);
}

.floating-help-cope .material-icons {
    font-size: 28px;
}

.help-label {
    font-size: 1.375rem;
}

/* Footer */
.cope-footer {
    background: linear-gradient(135deg, var(--cope-blue-primary) 0%, var(--cope-blue-light) 100%);
    padding: 18px 0;
    color: var(--text-white);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.footer-text {
    flex: 1;
}

.copyright-text {
    font-size: 1.25rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.rights-text {
    font-size: 1.125rem;
    opacity: 0.9;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.guanaco-logo {
    height: 60px;
    width: auto;
    opacity: 0.95;
    transition: var(--transition);
}

.guanaco-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content {
        gap: 50px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.75rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .account-cards {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--cope-blue-primary) 0%, var(--cope-blue-light) 100%);
        flex-direction: column;
        padding: 20px 24px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        gap: 0;
    }

    .navbar-menu.mobile-menu-open {
        display: flex;
    }

    .navbar-menu li {
        margin: 0;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar-menu li:last-child {
        border-bottom: none;
    }

    .navbar-menu a {
        font-size: 1.375rem;
        display: block;
        padding: 8px 0;
    }

    .navbar-toggle {
        display: block;
    }

    .hero-section {
        padding: 60px 0;
    }

    .hero-content {
        flex-direction: column-reverse;
        gap: 40px;
    }

    .hero-title {
        font-size: 2.75rem;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 1.375rem;
        text-align: center;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        padding: 18px 32px;
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .benefits-section,
    .account-section {
        padding: 60px 0;
    }

    .benefit-card {
        padding: 48px 32px;
    }

    .account-card {
        padding: 48px 32px;
    }

    .app-section {
        padding: 60px 0;
    }

    .app-title {
        font-size: 2rem;
    }

    .app-subtitle {
        font-size: 1.25rem;
    }

    .floating-help-cope {
        padding: 16px 28px;
    }

    .help-label {
        display: none;
    }

    .floating-help-cope {
        border-radius: 50%;
        width: 64px;
        height: 64px;
        padding: 0;
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .copyright-text {
        font-size: 1.125rem;
    }

    .rights-text {
        font-size: 1rem;
    }

    .guanaco-logo {
        height: 50px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .benefit-title {
        font-size: 1.75rem;
    }

    .benefit-text {
        font-size: 1.125rem;
    }

    .account-card-title {
        font-size: 2rem;
    }

    .section-container {
        padding: 0 16px;
    }

    .navbar-container {
        padding: 0 16px;
    }
}

/* Welcome Popup Modal */
.welcome-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.welcome-popup-modal {
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 100%;
    padding: 52px 44px;
    text-align: center;
    animation: slideUp 0.4s ease;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.welcome-popup-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cope-blue-primary) 0%, var(--cope-blue-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--text-white);
    box-shadow: 0 4px 16px rgba(3, 86, 132, 0.2);
}

.welcome-popup-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 28px;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.welcome-popup-text {
    font-size: 1.375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 36px;
    font-weight: 400;
}

.welcome-popup-button {
    background: var(--cope-blue-primary);
    color: var(--text-white);
    border: none;
    padding: 18px 52px;
    font-size: 1.25rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    width: 100%;
    max-width: 320px;
}

.welcome-popup-button:hover {
    background: #024a6f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(3, 86, 132, 0.3);
}

/* Responsive para el popup */
@media (max-width: 600px) {
    .welcome-popup-modal {
        padding: 36px 28px;
    }

    .welcome-popup-icon {
        width: 70px;
        height: 70px;
        font-size: 35px;
        margin-bottom: 24px;
    }

    .welcome-popup-title {
        font-size: 1.75rem;
    }

    .welcome-popup-text {
        font-size: 1.125rem;
    }

    .welcome-popup-button {
        padding: 14px 36px;
        font-size: 1rem;
        width: 100%;
        max-width: 100%;
    }
}