/* Variables CSS */
:root {
    --primary: #005f73;
    --primary-dark: #003d4d;
    --secondary: #94d2bd;
    --accent: #e9d8a6;
    --dark: #001219;
    --light: #f8f9fa;
    --gray: #64748b;
    --light-gray: #e2e8f0;
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #10b981;
    --white: #ffffff;
    
    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    
    --rounded-sm: 0.25rem;
    --rounded: 0.5rem;
    --rounded-md: 0.75rem;
    --rounded-lg: 1rem;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--light);
}

/* Estilo base para el header */
.header-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.background-header {
    background-color: #ffffff;
    backdrop-filter: blur(12px);
    border-radius: 0px 0px 70px 70px; /* margen de la curvatura del inicio */
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #ffffff;
    box-shadow: 0 5px 30px rgba(255, 255, 255, 0.5);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--rounded);
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--dark);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* Header - Eliminada la duplicación */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11.1px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
}

.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--dark);
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('https://elperuano.pe/fotografia/thumbnail/2023/11/21/000274458M.jpg') center/cover;
    color: white;
    padding: 180px 0 100px;
    text-align: center;
    margin-top: 80px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    animation: fadeInDown 1s both;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    animation: fadeInUp 1s both 0.3s;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Características */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background-color: white;
    border-radius: var(--rounded-md);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 95, 115, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

/* Módulos */
.highlight {
    background-color: rgba(0, 95, 115, 0.05);
}

.modules-tabs {
    margin-top: 3rem;
}

.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.tab-button {
    padding: 0.75rem 1.5rem;
    background-color: var(--light-gray);
    border: none;
    border-radius: var(--rounded);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button.active {
    background-color: var(--primary);
    color: white;
}

.tab-content {
    display: none;
    background-color: white;
    border-radius: var(--rounded-md);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tab-content-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.tab-image {
    padding: 2rem;
    display: flex;
    align-items: center;
}

.tab-image img {
    border-radius: var(--rounded);
    box-shadow: var(--shadow-md);
}

.tab-text {
    padding: 2rem;
}

.tab-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.tab-text ul {
    margin-bottom: 2rem;
}

.tab-text li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.tab-text li i {
    color: var(--primary);
    margin-top: 0.25rem;
}

/* Dispositivos Biométricos */
.biometric-section {
    background-color: var(--light);
}

.biometric-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.biometric-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.biometric-content p {
    margin-bottom: 1.5rem;
    color: var(--gray);
}

.biometric-features {
    margin-top: 2rem;
}

.biometric-feature {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.biometric-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.biometric-image img {
    border-radius: var(--rounded-md);
    box-shadow: var(--shadow-lg);
}

/* App Móvil */
.app-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #e2e8f0 100%);
}

.app-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.app-image {
    position: relative;
    text-align: center;
}

.app-mockup {
    max-width: 300px;
    position: relative;
    z-index: 1;
}

.app-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background-color: var(--primary);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.1;
    z-index: 0;
}

.app-features {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feature-item i {
    color: var(--primary);
}

.app-stores {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.app-store {
    height: 45px;
}

/* Contacto */
.contact {
    background-color: var(--primary);
    color: white;
}

.contact .section-title,
.contact .section-subtitle {
    color: white;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: white;
}

.contact-info p {
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: white;
}

.contact-text a {
    color: var(--accent);
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--accent);
    color: var(--dark);
    transform: translateY(-3px);
}

.form-container {
    background-color: white;
    padding: 2rem;
    border-radius: var(--rounded-md);
    box-shadow: var(--shadow-lg);
}

#contactForm {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group.full-width,
.form-group:nth-child(5),
.form-group:nth-child(6) {
    grid-column: span 2;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

.form-group .required::after {
    content: " *";
    color: var(--danger);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--rounded);
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 95, 115, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.btn-submit {
    background-color: #ff0000;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--rounded);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-submit:hover {
    background-color: #9de3ad;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Footer */
footer {
    background: black;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-column h3 {
    color: white;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* ===== BARRA SOCIAL ===== */
.social-bar-container {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%) translateX(-30px);
    z-index: 2000;
    opacity: 0;
    animation: fadeSlideInLeft 1s ease-out forwards;
    animation-delay: 0.4s;
}

@keyframes fadeSlideInLeft {
    from {
        transform: translateY(-50%) translateX(-40px);
        opacity: 0;
        filter: blur(5px);
    }
    to {
        transform: translateY(-50%) translateX(0);
        opacity: 1;
        filter: blur(0);
    }
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    position: relative;
    transition: all 0.4s ease;
    text-decoration: none;
}

.social-link i {
    font-size: 20px;
    color: #fff;
    transition: transform 0.3s ease;
}

.social-text {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    padding: 5px 10px;
    border-radius: 0 4px 4px 0;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
    margin-left: 55px;
}

.social-link:hover {
    width: 60px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

.social-link:hover i {
    transform: scale(1.2);
}

.social-link:hover .social-text {
    opacity: 1;
    margin-left: 10px;
}

/* Colores específicos para cada red social */
.social-facebook {
    background-color: #1877f2;
}

.social-tiktok {
    background-color: #000000;
}

.social-twitter {
    background-color: #1da1f2;
}

.social-youtube {
    background-color: #ff0000;
}

.social-we {
    background-color: #4caf50;
}

/* Botones Info */
.btn-info {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin: 10px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s;
    box-shadow: 0 4px 15px rgba(0, 95, 115, 0.4);
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

.btn-info:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 95, 115, 0.6);
}

.btn-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-info:hover::before {
    left: 100%;
}

/* Responsive */
@media (max-width: 992px) {
    .tab-content-inner {
        grid-template-columns: 1fr;
    }
    
    .tab-image {
        display: none;
    }
    
    .biometric-container,
    .app-container,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .app-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background-color: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    #contactForm {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width,
    .form-group:nth-child(5),
    .form-group:nth-child(6) {
        grid-column: span 1;
    }
    
    .social-bar {
        display: none;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}

/*CHAT BOT*/

/* Botón flotante */
#chatbot-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #4CAF50;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: transform 0.3s;
}

#chatbot-icon:hover {
    transform: scale(1.1);
}

#chatbot-icon img {
    width: 70%;
    height: 70%;
}

/* Ventana del chatbot */
#chatbot-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 300px;
    height: 400px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
}

/* Encabezado */
.chatbot-header {
    background-color: #4CAF50;
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: bold;
}

/* Área de mensajes */
.chatbot-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    background-color: #f9f9f9;
}

/* Estilo de mensajes */
.message {
    margin: 8px 0;
    padding: 8px 12px;
    border-radius: 18px;
    max-width: 80%;
    font-size: 14px;
    word-wrap: break-word;
}

.user-message {
    background-color: #e2f7cb;
    margin-left: auto;
    border-bottom-right-radius: 5px;
}

.bot-message {
    background-color: #f1f1f1;
    margin-right: auto;
    border-bottom-left-radius: 5px;
}

/* Área de entrada */
.chatbot-input {
    display: flex;
    padding: 10px;
    background-color: white;
    border-top: 1px solid #eee;
}

.chatbot-input input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
}

.chatbot-input button {
    margin-left: 8px;
    padding: 8px 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.chatbot-input button:hover {
    background-color: #45a049;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.visible {
    display: flex !important;
    animation: fadeIn 0.3s ease-out;
}