/* ==========================================
   Estilo Principal: designweblp.com
   Autor: Luis Salvador Pacherres Vargas
   Perfil: Ingeniero Industrial | MBA | Experto en Procesos, Proyectos y Tecnología
   ========================================== */

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.7;
    color: #333;
    background: #f8f9fa;
    scroll-behavior: smooth;
}

/* Tipografías */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #003366;
    margin-bottom: 15px;
}

h1 {
    font-size: 2.8rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: #003366;
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
    color: #003366;
}

p {
    margin-bottom: 15px;
    color: #555;
}

a {
    text-decoration: none;
    color: #003366;
    transition: color 0.3s;
}

a:hover {
    color: #00509e;
}

/* ==========================================
   HEADER Y NAVEGACIÓN
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
    backdrop-filter: blur(5px);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.6rem;
    color: #003366;
    margin: 0;
    font-weight: 600;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #003366;
    cursor: pointer;
    z-index: 1001;
}

nav {
    position: fixed;
    top: 70px;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 999;
    padding: 20px;
    overflow-y: auto;
}

nav.show {
    right: 0;
}

nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: #2c3e50;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    text-decoration: none;
    display: block;
    padding: 10px 15px;
    border-radius: 8px;
    transition: background 0.3s;
}

nav ul li a:hover {
    color: #003366;
    background: #f8f9fa;
}

nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: #003366;
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

.lang-switcher {
    display: block;
}

.lang-switcher a {
    background: #003366;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
}

.lang-switcher a:hover {
    background: #00264d;
}

.overlay {
    display: none;
}

.overlay.show {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
}

/* ==========================================
   HERO SECTION (Inicio)
   ========================================== */
.hero {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, #003366 0%, #00509e 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    color: white;
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 15px;
}

.hero-content p {
    color: #dfe6f0;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.hero-buttons {
    margin-top: 20px;
}

.btn-primary {
    display: inline-block;
    background: #ffc107;
    color: #003366;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    margin-right: 15px;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 51, 102, 0.2);
    text-decoration: none;
}

.btn-primary:hover {
    background: #e0a800;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 51, 102, 0.3);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-secondary:hover {
    background: white;
    color: #003366;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.badges {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
}

/* ==========================================
   SECCIONES GENERALES
   ========================================== */
section {
    padding: 100px 0;
}

.perfil,
.servicios,
.experiencia,
.formacion,
.habilidades,
.portafolio,
.testimonios,
.contacto {
    background: white;
}

.perfil,
.formacion,
.testimonios {
    background: #f8f9fa;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   PERFIL PROFESIONAL
   ========================================== */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.stat {
    background: #003366;
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-size: 1rem;
}

.stat i {
    margin-right: 8px;
    font-size: 1.2rem;
}

.disponibilidad {
    margin-top: 20px;
    text-align: center;
}

.disponibilidad strong {
    color: #003366;
    margin-right: 10px;
}

.destacado {
    background: #ffc107;
    color: #003366;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.1rem;
}

/* ==========================================
   SERVICIOS
   ========================================== */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.servicio-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e9ecef;
}

.servicio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #003366;
}

.servicio-card h3 {
    color: #003366;
    font-size: 1.3rem;
}

.servicio-card p {
    color: #555;
    font-size: 0.95rem;
}

.btn-small {
    display: inline-block;
    background: #003366;
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-top: 10px;
    transition: background 0.3s;
    text-decoration: none;
}

.btn-small:hover {
    background: #00264d;
}

.btn-small i {
    margin-right: 5px;
}

/* ==========================================
   EXPERIENCIA LABORAL
   ========================================== */
.timeline {
    margin-top: 30px;
}

.timeline-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #003366;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.timeline-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.timeline-item h3 span {
    color: #00509e;
    font-weight: 600;
}

.timeline-item small {
    color: #003366;
    font-weight: 500;
    background: #e3f2fd;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.timeline-item ul {
    margin-left: 20px;
    margin-top: 10px;
    color: #555;
}

.timeline-item ul li {
    margin-bottom: 5px;
}

.btn-tiny {
    background: #003366;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    display: inline-block;
    margin-top: 10px;
    text-decoration: none;
}

.btn-tiny:hover {
    background: #00264d;
}

/* ==========================================
   FORMACIÓN
   ========================================== */
.formacion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.formacion-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.formacion-item h3 {
    color: #003366;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.formacion-item a {
    color: #003366;
    font-size: 0.9rem;
}

.formacion-item a:hover {
    text-decoration: underline;
}

.formacion-item ul {
    margin-left: 20px;
    margin-top: 10px;
    font-size: 0.95rem;
}

.formacion-item ul li {
    margin-bottom: 8px;
}

/* ==========================================
   HABILIDADES
   ========================================== */
.skills-container {
    margin-top: 30px;
}

.skill {
    margin-bottom: 20px;
}

.skill label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #003366;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress {
    height: 100%;
    background: #003366;
    border-radius: 6px;
    transition: width 1.2s ease-in-out;
}

/* ==========================================
   PORTAFOLIO
   ========================================== */
.portafolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.proyecto-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s;
}

.proyecto-card:hover {
    transform: translateY(-5px);
}

.proyecto-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.proyecto-card h3 {
    font-size: 1.2rem;
    color: #003366;
}

.proyecto-card p {
    font-size: 0.9rem;
    color: #555;
}

.proyecto-card .btn-small {
    margin-top: 15px;
}

/* ==========================================
   TESTIMONIOS
   ========================================== */
.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.testimonio {
    background: #003366;
    color: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonio p {
    font-style: italic;
    color: #dfe6f0;
    margin-bottom: 15px;
}

.testimonio strong {
    color: #ffc107;
    display: block;
    margin-top: 10px;
}

.testimonio small {
    color: #bdc3c7;
    font-size: 0.9rem;
}

.testimonio i {
    color: #ffc107;
    margin-right: 5px;
}

.testimonio-contact {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #ddd;
    font-size: 0.9rem;
    color: #dfe6f0;
}

.testimonio-contact i {
    color: #ffc107;
    width: 20px;
}

.testimonio-contact a {
    color: #dfe6f0;
    text-decoration: none;
}

.testimonio-contact a:hover {
    color: white;
    text-decoration: underline;
}

/* ==========================================
   CONTACTO
   ========================================== */
.contacto {
    background: #003366;
    color: white;
    position: relative;
    overflow: hidden;
}

.contacto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/bg-contact.jpg') no-repeat center;
    background-size: cover;
    opacity: 0.1;
    z-index: 0;
}

.contacto .container {
    position: relative;
    z-index: 1;
}

.contacto h2 {
    color: white;
    text-align: center;
    margin-bottom: 20px;
}

.contacto p {
    color: #dfe6f0;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 30px;
}

form {
    max-width: 600px;
    margin: 0 auto 40px;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 20px;
}

form input,
form select,
form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border 0.3s;
}

form input:focus,
form select:focus,
form textarea:focus {
    border-color: #003366;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

form button {
    width: 100%;
    padding: 14px;
    background: #003366;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

form button:hover {
    background: #00264d;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    color: #dfe6f0;
    font-size: 0.95rem;
}

.contact-info h3 {
    color: #ffc107;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.contact-info p {
    margin: 8px 0;
}

.contact-info a {
    color: #dfe6f0;
}

.contact-info a:hover {
    color: white;
    text-decoration: underline;
}

.contact-info i {
    margin-right: 8px;
    color: #ffc107;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: #00264d;
    color: #bdc3c7;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
}

.footer p {
    margin: 10px 0;
}

.footer a {
    color: #ffc107;
}

.footer a:hover {
    text-decoration: underline;
}

/* ==========================================
   RESPONSIVE (Tablet y Móvil)
   ========================================== */
@media (max-width: 992px) {
    .hero {
        padding: 150px 0 80px;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
    nav {
        top: 60px;
    }
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    .hero-image {
        margin-top: 30px;
    }
    .lang-switcher {
        position: absolute;
        top: 20px;
        right: 20px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.4rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    section {
        padding: 80px 0;
    }
    .hero-content h1 {
        font-size: 2.4rem;
    }
    .hero-buttons {
        text-align: center;
    }
    .btn-primary, .btn-secondary {
        display: block;
        margin: 10px auto;
        max-width: 250px;
    }
    .stats, .servicios-grid, .formacion-grid, .testimonios-grid, .portafolio-grid {
        grid-template-columns: 1fr;
    }
    .timeline-item small {
        display: block;
        margin-top: 5px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 10px 0;
    }
    .logo h1 {
        font-size: 1.4rem;
    }
    .menu-toggle {
        font-size: 1.3rem;
    }
    nav {
        width: 100%;
        top: 60px;
    }
    nav ul li a {
        padding: 12px 20px;
        font-size: 1.1rem;
    }
    .hero {
        padding: 130px 0 60px;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-image img {
        width: 220px;
        height: 220px;
    }
    form {
        padding: 20px;
    }
}
/* ==========================================
   HEADER RESPONSIVE
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.6rem;
    color: #003366;
    margin: 0;
    font-weight: 600;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #003366;
    cursor: pointer;
}

nav {
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    max-width: 300px;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

nav.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li a {
    display: block;
    padding: 12px 20px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #eee;
    transition: background 0.3s;
}

nav ul li a:hover {
    background: #f8f9fa;
    color: #003366;
}

.lang-switcher {
    display: block;
}

.lang-switcher a {
    background: #003366;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
}

.lang-switcher a:hover {
    background: #00264d;
}

/* ==========================================
   RESPONSIVE (Tablet y Móvil)
   ========================================== */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }

    nav {
        right: 20px;
        margin-top: 10px;
    }

    .lang-switcher {
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 1000;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .logo h1 {
        font-size: 1.4rem;
    }

    nav {
        max-width: 280px;
    }

    nav ul li a {
        font-size: 1rem;
        padding: 14px 20px;
    }
}

@media (max-width: 480px) {
    .menu-toggle {
        font-size: 1.3rem;
    }

    nav {
        max-width: 260px;
    }
}