/* Variables CSS para una gestión de colores más sencilla */
:root {
    --primary-color: #007BFF; /* Azul para botones y acentos */
    --secondary-color: #6c757d; /* Gris para texto secundario */
    --dark-color: #000000; /* Color principal de texto y fondo del footer */
    --light-color: #f8f9fa; /* Fondo claro */
    --text-color: #000000; /* Color de texto general */
    --link-color: #444; /* Color de enlaces */
}

/* Estilos generales */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
    transition: all .2s linear;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #ffffff;
}

section {
    padding: 80px 0;
}

.title {
    font-size: 2.5rem;
    color: var(--dark-color);
    text-align: center;
    margin-bottom: 50px;
}

.title span {
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    background-color: var(--primary-color);
    color: #fff;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #0056b3;
}

/* ==================== Header y Navegación ==================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    padding: 15px 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo img {
    height: 40px;
}

.navigate ul {
    display: flex;
}

.navigate li a {
    font-size: 1rem;
    color: var(--link-color);
    margin: 0 10px;
    font-weight: 500;
}

.navigate li a:hover {
    color: var(--primary-color);
}

#menu {
    font-size: 1.5rem;
    color: var(--link-color);
    cursor: pointer;
    display: none;
}

/* Menú de hamburguesa para móviles */
.navigate {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

@media (max-width: 768px) {
    #menu {
        display: block;
    }

    .navigate {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid rgba(0, 0, 0, .1);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    }
    
    .navigate.nav-toggle {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .navigate ul {
        flex-direction: column;
        padding: 10px 0;
    }
    
    .navigate li {
        margin: 10px 0;
        text-align: center;
    }
}

/* ==================== Sección Principal (Home) ==================== */
.home {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://togrowagencia.com/wp-content/uploads/2022/06/Que-es-desarrollo-de-Software.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 0 20px;
}

.home h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.home-btn button {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 15px 30px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.home-btn button:hover {
    background-color: #fff;
    color: var(--primary-color);
}

/* ==================== Sección de Productos ==================== */
.product {
    text-align: center;
}

.product .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.product-col {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-col img {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
}

.product-info {
    text-align: center;
    width: 100%;
}

.product-info h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    width: 100%;
}

.product-price h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.product-stars .fas {
    color: gold;
    font-size: 1rem;
}

/* ==================== Sección de Servicios ==================== */
.service {
    background: var(--light-color);
    text-align: center;
}

.service-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.service-tabs .btn1 {
    display: block;
    padding: 12px 25px;
    font-weight: bold;
    border-radius: 5px;
    color: var(--dark-color);
    border: 2px solid var(--dark-color);
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-tabs .btn1.active,
.service-tabs .btn1:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.service-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    gap: 30px;
}

.service-content .image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.service-info {
    text-align: center;
}

.service-info h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* ==================== Footer y Contacto ==================== */
.contact {
    background: var(--dark-color);
    color: #fff;
    padding: 50px 0 20px;
    text-align: center;
}

.contact-container {
    max-width: 1100px;
    margin: 0 auto;
}

.contact-row {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.contact-col {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.contact-col img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.contact-col h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-col p {
    margin-bottom: 20px;
}

.contact form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact input, .contact textarea, .contact select {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: none;
}

.contact textarea {
    resize: vertical;
}

.contact .btn {
    align-self: flex-start;
}

.social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social a {
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social a:hover {
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    border-top: 1px solid #555;
    padding-top: 20px;
    position: relative;
}

.scroll-up-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 2rem;
    color: #fff;
    transition: color 0.3s ease;
}

.scroll-up-btn:hover {
    color: var(--primary-color);
}

/* Responsive para tablet y desktop */
@media (min-width: 768px) {
    .contact-row {
        flex-direction: row;
        text-align: left;
    }

    .contact-col.form-col {
        text-align: left;
    }

    .social {
        justify-content: flex-start;
    }
}













/* Nuevo estilo para los botones de "Ver en vivo" */
.product-col .btn-live {
    margin-top: 15px; /* Espacio entre el texto y el botón */
    width: auto; /* Ancho automático para que no ocupe todo el espacio */
    align-self: center; /* Centrar el botón en la columna */
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
}