/* ======== ESTILOS GENERALES ======== */
body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #eaf3ff; /* Fondo suave azul */
    color: #1b1b1b;
}

/* Títulos */
h1 {
    color: #1345ff;
    font-size: 32px;
    margin-top: 0;
}

h2 {
    color: white;
}

/* ======== MENU LATERAL ======== */
.sidebar {
    width: 250px;
    height: 100vh;
    background: linear-gradient(180deg, #1b2b7a, #3248c5);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    padding-top: 20px;
    box-shadow: 3px 0 10px rgba(0,0,0,0.3);
}

.sidebar h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    letter-spacing: 1px;
}

.sidebar a {
    display: block;
    padding: 15px 25px;
    color: #e8e8ff;
    text-decoration: none;
    font-size: 18px;
    transition: background 0.3s, padding-left 0.3s;
}

.sidebar a:hover {
    background: #4f66e6;
    padding-left: 35px;
}

/* ======== CONTENIDO ======== */
.content {
    margin-left: 260px;
    padding: 20px;
}

/* Secciones */
section {
    display: none;
    animation: fade 0.4s ease-in-out;
}

section.active {
    display: block;
}

/* Animación suave */
@keyframes fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ======== PORTAFOLIO ======== */
.proyecto {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-left: 5px solid #1345ff;
    background: white;
    margin: 15px 0;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.proyecto-info {
    display: flex;
    flex-direction: column;
}

.img-proyecto {
    border-radius: 10px;
    object-fit: cover;
}


.proyecto p {
    margin: 5px 0;
}

.proyecto a {
    color: #1345ff;
    font-weight: bold;
}

/* ============================
   ESTILO GENERAL DEL FORMULARIO
   ============================ */

.contact-container {
    max-width: 550px;
    margin: 30px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0px 4px 20px rgba(0,0,0,0.1);
}

/* Texto de etiquetas */
.contact-container label {
    font-weight: bold;
    margin-bottom: 6px;
    display: block;
    color: #444;
}

/* Inputs y textarea */
.contact-container input[type="text"],
.contact-container input[type="email"],
.contact-container input[type="asunto"],
.contact-container textarea {
    width: 100%;
    padding: 12px;
    margin: 6px 0 14px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

/* Animación cuando el usuario escribe */
.contact-container input:focus,
.contact-container textarea:focus {
    border-color: #4b8bf4;
    background: #fff;
    box-shadow: 0 0 6px rgba(75, 139, 244, 0.4);
    outline: none;
}

/* Botón */
.contact-container input[type="submit"] {
    width: 100%;
    padding: 12px;
    background: #4b8bf4;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

/* Hover del botón */
.contact-container input[type="submit"]:hover {
    background: #376ed7;
}

/* ============================
   POPUP
   ============================ */

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: white;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 350px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.popup-content button {
    padding: 10px 15px;
    background: #4b8bf4;
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
}

.popup-content button:hover {
    background: #376ed7;
}


/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
