﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
    /* Estilos base */
    body

{
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to bottom, #1e3a8a, #1e40af, #0f766e); /* azul - azul oscuro - verde */
    color: white;
}

/* --- HERO --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

    .hero img {
        width: 140px;
        height: 140px;
        border-radius: 50%;
        object-fit: cover;
        margin-bottom: 1.5rem;
        border: 4px solid #14b8a6; /* verde agua */
        box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.5);
    }

    .hero h1 {
        font-size: 2.5rem;
        font-weight: bold;
        color: #5eead4; /* verde agua claro */
    }

    .hero p {
        margin-top: 0.5rem;
        font-size: 1.2rem;
        color: #e5e7eb; /* gris claro */
    }

    .hero a {
        margin-top: 1.5rem;
        padding: 0.8rem 2rem;
        background: linear-gradient(to right, #2563eb, #14b8a6);
        color: white;
        font-weight: bold;
        border-radius: 9999px;
        text-decoration: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        transition: 0.3s ease;
    }

        .hero a:hover {
            background: linear-gradient(to right, #1d4ed8, #0d9488);
        }

/* --- SECCIONES --- */
section {
    padding: 4rem 2rem;
    text-align: center;
}

    section h2 {
        font-size: 2rem;
        font-weight: bold;
        margin-bottom: 1rem;
        color: #1e40af; /* azul fuerte */
    }

    section p {
        max-width: 700px;
        margin: auto;
        color: #374151; /* gris oscuro */
    }

/* --- SOBRE NOSOTROS --- */
.sobre {
    background: linear-gradient(to right, #ffffff, #f9fafb);
    color: #111827;
}

/* --- PORTAFOLIO --- */
.portafolio {
    background: linear-gradient(to bottom, #f3f4f6, #ffffff);
    color: #111827;
}

    .portafolio .grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

@media (min-width: 768px) {
    .portafolio .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.portafolio .card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-top: 4px solid #2563eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .portafolio .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    }

    .portafolio .card h3 {
        color: #0f766e; /* verde */
    }

/* --- CONTACTO --- */
.contacto {
    background: linear-gradient(to right, #1d4ed8, #0d9488);
    color: white;
}

    .contacto a {
        display: inline-block;
        margin-top: 1rem;
        padding: 0.8rem 2rem;
        background: white;
        color: #1d4ed8;
        border-radius: 9999px;
        font-weight: bold;
        text-decoration: none;
        transition: background 0.3s ease;
    }

        .contacto a:hover {
            background: #e5e7eb;
        }

/* --- FOOTER --- */
footer {
    background: #111827;
    padding: 1rem;
    text-align: center;
    color: #9ca3af;
    font-size: 0.9rem;
}

    footer span {
        color: #14b8a6; /* verde agua */
        font-weight: bold;
    }


body {
  margin-bottom: 60px;
}
/* Animaciones globales */
.animate-fade-in {
    animation: fadeIn 1s ease-in-out;
}

.animate-slide-up {
    animation: slideUp 1s ease-out;
}

.delay-200 {
    animation-delay: 0.2s;
}

/* Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Ajustes personalizados de ALISOTEC */
.hero-logo {
    border-radius: 9999px; /* circular */
    border: 4px solid #14b8a6; /* teal-400 */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    object-fit: cover;
    width: 300px; /* tamaño más grande */
    height: 800px; /* mantiene la forma circular */
}

.hero-title {
    color: #5eead4; /* teal-300 */
    font-weight: bold;
    letter-spacing: 0.05em;
}

/* HERO con fondo translúcido */
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 30vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(to bottom, #1e3a8a, #0f766e); /* azul → teal */
    background-size: 50%; /* tamaño de la imagen */
    color: white;
    max-width: 800px; /* ancho máximo reducido */
    margin: 0 auto; /* centra horizontalmente */
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../images/computadoras.jpg") center center no-repeat;
    background-size: 75%; /* mismo tamaño que el gradient de hero-section */
    opacity: 0.35; /* visibilidad semitransparente */
    z-index: 0;
}

    /* Contenido encima del fondo */
    .hero-section > * {
        position: relative;
        z-index: 1;
    }

/* Logo */
.hero-logo {
    border-radius: 9999px;
    border: 3px solid #14b8a6;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    object-fit: cover;
    max-width: 120px; /* tamaño más pequeño */
    height: auto;
}

@media (min-width: 768px) {
    .hero-logo {
        max-width: 160px; /* tamaño en pantallas grandes */
    }
}

/* Título */
.hero-title {
    color: #5eead4;
    font-weight: bold;
    letter-spacing: 0.05em;
}

/* Animaciones */
.animate-fade-in {
    animation: fadeIn 1s ease-in-out;
}

.animate-slide-up {
    animation: slideUp 1s ease-out;
}

.delay-200 {
    animation-delay: 0.2s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}
