html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Fondo general y texto */
body {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #e0e6f0;
    line-height: 1.6;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    padding-top: 100px; /* arriba */
    padding-right: 1px; /* derecha */
    padding-bottom: 5px; /* abajo */
    padding-left: 1px; /* izquierda */
    border-bottom: 10px solid #009797;
    box-shadow: none 0 0 20px #0ff;
    margin-bottom: 40px;
}

header h1 {
    font-size: 3.5rem;
    color: #00c7c7;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    text-shadow: 0 0 5px #00ffff8e, 0 0 20px rgb(0, 106, 113);
    margin-bottom: 10px;
}

header h1:hover {
    color: #ffffff;
}

header p {
    font-size: 1.25rem;
    color: #a0c9f8;
    font-weight: 300;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.236);
    padding-top: 1px; /* arriba */
    padding-right: 1px; /* derecha */
    padding-bottom: 1px; /* abajo */
    padding-left: 1px; /* izquierda */
}

/* Contenedor principal */
.contenedor-principal {
  display: flex;
  justify-content: flex-start; /* Alinea al inicio */
  gap: 40px; /* Espacio entre las dos secciones */
  max-width: 1300px; /* Para que no crezca demasiado */
  margin-left: 27px; /* Margen a la izquierda */
  margin-bottom: 40px;
  flex-direction: row-reverse;
}

.contenedor-principal > section:first-child {
  max-width: 700px; /* Ancho para servicios */
}

/* Quienes somos */
#quienes-somos {
  max-width: 550px;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.Quienes {
  text-align: left;
  margin-left: 0;
  padding-left: 0;
  border-left: none;
  margin-top: -60px;
}

#btn-subir {
    position: fixed;
    top: 40px;
    right: 30px;
    display: none; /* Inicia oculto */
    background: #00ffff;
    color: #0f2027;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 0 10px #00ffffaa;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    z-index: 1000;
    text-align: center;
    line-height: 50px;
}

#btn-subir:hover {
    background: #008e7ba8;
    box-shadow: 0 0 15px #00ffffdd;
}

/* Sección principal */
section {
    max-width: 750px;
    margin-left: 27px;
    top: 10px;
}

#quienes-somos {
  margin-left: auto !important;
  margin-right: 0 !important;
  max-width: 550px;
  padding: 20px;
  text-align: right;
  margin-top: 30px;
}

.descripcion-nivvux {
    background: rgba(0, 255, 255, 0.05);
    border-left: 4px solid #00ffff99;
    padding: 20px 25px;
    border-radius: 15px;
    font-size: 1.05rem;
    color: #cceeff;
    line-height: 1.8;
    text-align: justify;
    box-shadow: 0 0 10px #00ffff22;
    margin-bottom: 30px;
    transition: box-shadow 0.3s ease;
}

.descripcion-nivvux:hover {
    box-shadow: 0 0 20px #004e4e45;
    background: rgba(0, 255, 255, 0.08);
}

section h2 {
    font-size: 2.5rem;
    color: #04929a;
    margin-bottom: 25px;
    border-left: 6px solid #00ffff;
    padding-left: 15px;
    text-shadow: 0 0 8px #00616c63;
    margin-left: 10px;
}

.toggle-detalle {
    color: rgb(0, 194, 201);
    cursor: pointer;
    font-weight: bold;
}

.toggle-detalle:hover {
    color: #ffffff;
}

/* Artículos (servicios) */
article {
    background: rgba(15, 32, 39, 0.7);
    padding: 20px 25px;
    margin-bottom: 25px;
    border-radius: 30px;
    box-shadow: 0 0 15px #00ffff33;
    transition: box-shadow 0.3s ease;
    border-left: 5px solid #007676;
    max-width: 700px;
}

article:hover {
    box-shadow: 0 0 25px #00ffffaa;
}

article h3 {
    color: #00e5ff;
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

article h3:hover {
    color: #ffffff;
    text-shadow: 0 0 8px #00ffff;
}

article p {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #d0eaff;
}

article p strong {
    color: #00ffff;
    font-weight: 700;
    text-shadow: 0 0 10px #00ffff;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    color: #6dbbf9;
    border-top: 1px solid #1f2937;
    text-shadow: 0 0 5px #00bfff44;
}

/* Responsividad */
@media (max-width: 600px) {
    header h1 {
        font-size: 2.5rem;
    }

    section h2 {
        font-size: 2rem;
    }

    article {
        padding: 15px 20px;
    }
}

/* Formulario de contacto */
form {
    background: rgba(15, 32, 39, 0.85);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 0 15px #00ffff33;
    max-width: 500px;
    margin-bottom: 27px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

form:hover,
form:focus-within {
    box-shadow: 0 0 25px #00ffffaa;
    transform: translateY(-3px);
}

form label {
    color: #00e5ff;
    font-weight: 600;
    letter-spacing: 0.05em;
    font-size: 1rem;
}

form input,
form textarea {
    resize: none;
    padding: 8px 17px;
    border-radius: 20px;
    border: 1px solid #00ffff88;
    background: #122c38;
    color: #e0e6f0;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

form input:focus,
form textarea:focus {
    border-radius: 20px;
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 8px #00ffffaa;
    background: #0f2a38;
}

form textarea {
    resize: none;
}

form button {
    background: #00ffff;
    color: #0f2027;
    font-weight: 700;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 0 10px #00ffffbb;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

form button:hover,
form button:focus {
    background: #00d8ff;
    box-shadow: 0 0 20px #00ffffee;
    outline: none;
}

/* Responsividad para formulario */
@media (max-width: 600px) {
    form {
        padding: 20px;
    }
}

/* Estilo para autofill en inputs */
input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px #0f2027 inset !important; /* Fondo */
  -webkit-text-fill-color: #000000 !important; /* Color texto */
    transition: background-color 5000s ease-in-out 0s;
}

.info-detalle {
    display: none;
    margin-top: 10px;
    color: #a0e7e5;
    font-style: italic;
    transition: max-height 0.3s ease;
}

/* Clase para mostrar el detalle */
.info-detalle.show {
    display: block;
}

/* Responsividad para móviles */
@media (max-width: 600px) {
    header h1 {
        font-size: 2rem; /* Ajustamos el tamaño del título */
    }

    section h2 {
        font-size: 1.8rem; /* Tamaño de subtítulos */
    }

    .contenedor-principal {
        flex-direction: column; /* Apilar los elementos verticalmente */
        align-items: center;
    }

    .contenedor-principal > section:first-child {
        max-width: 100%;
    }

    article {
        padding: 15px 20px;
        width: 100%; /* Ancho completo */
        border-radius: 10px; /* Bordes más redondeados */
    }

    .descripcion-nivvux {
        font-size: 1rem;
        padding: 15px;
    }

    form {
        padding: 20px;
        width: 100%;
    }

    form input,
    form textarea {
        font-size: 0.9rem; /* Ajustar tamaño de texto */
        padding: 10px;
    }

    form button {
        padding: 12px 20px;
        font-size: 1rem; /* Ajustar tamaño de botón */
    }
}

.info-detalle {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: #a0e7e5;
  font-style: italic;
}

.info-detalle.show {
  display: block; /* Para que se vea */
  max-height: 500px; /* un valor grande para expandir */
}



