/* RESET Y BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f4f4f4;
}

/* TIPOGRAFÍAS ESPECIALES PARA TÍTULOS */
h1, h2, h3, h4, h5, h6,
.name,
.section-title,
.page-title,
.hero h1,
.welcome-title,
.contact-title,
.project-title,
.achievement-title {
    font-family: "Optima", "Lucida Grande", "Lucida Sans Unicode", Arial, sans-serif;
    font-weight: bold;
}

/* MENÚ SUPERIOR FIJO - MÁS COMPACTO */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 0;
    height: 70px; /* Altura fija más pequeña */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0.3rem 0.5rem; /* Padding reducido */
    gap: .3rem;
    height: 100%;
}

/* LOGO COMO BOTÓN - MÁS PEQUEÑO */
.logo-button {
    display: inline-block;
    transition: all 0.3s ease;
}

.logo-image {
    height: 50px; /* Reducido significativamente */
    width: auto;
    transition: all 0.3s ease;
    filter: brightness(1) saturate(1);
}

.logo-button:hover .logo-image {
    filter: brightness(1.2) saturate(1.3);
}

/* NOMBRE Y SUBTÍTULO - MÁS COMPACTO */
.name-section {
    margin-right: auto;
}

.name {
    font-size: 1.2rem; /* Reducido */
    font-weight: 600;
    color: #2c3e50;
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1.1; /* Más ajustado */
}

.subtitle {
    font-size: 0.75rem; /* Reducido */
    font-weight: 400;
    color: #ff6b35;
    letter-spacing: 0.5px;
    margin: 0;
    font-style: italic;
    font-family: "Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif;
}

/* MENÚ DE NAVEGACIÓN - MÁS COMPACTO */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem; /* Reducido */
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem; /* Reducido */
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 0.9rem; /* Reducido */
    font-family: "Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif;
}

.nav-link:hover {
    color: #6a9dac;
    background: rgba(64, 64, 64, 0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    color: white;
    background: linear-gradient(45deg, #7bafbd 0%, #6496a6 100%);
    box-shadow: 0 4px 15px rgba(64, 64, 64, 0.3);
}

/* MENÚ MÓVIL */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* CONTENIDO PRINCIPAL - AJUSTADO AL MENÚ MÁS PEQUEÑO */
.main-content {
    margin-top: 70px; /* Ajustado a la nueva altura del menú */
    min-height: calc(100vh - 70px);
}

.hero {
    background: linear-gradient(45deg, #7bafbd 0%, #6496a6 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
    font-weight: bold;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.3s both;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-family: "Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif;
}

.cta-button {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.6s both;
    font-weight: 600;
    letter-spacing: 1px;
    font-family: "Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif;
}

.cta-button:hover {
    background: white;
    color: #6a9dac;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* SECCIONES */
.section {
    padding: 4rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
    font-weight: bold;
    letter-spacing: 1px;
}

.page-title {
    text-align: center;
    font-size: 3rem;
    margin: 2rem 0;
    color: #2c3e50;
    font-weight: bold;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #7bafbd 0%, #6496a6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 2rem;
}

.content-section {
    background: white;
    margin: 2rem 0;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* PIE DE PÁGINA */
.footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
}

.footer p {
    margin: 0;
    opacity: 0.8;
    font-family: "Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif;
}

/* ANIMACIONES */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .navbar {
        height: 60px; /* Más pequeño en móvil */
    }

    .main-content {
        margin-top: 60px;
        min-height: calc(100vh - 60px);
    }

    .hamburger {
        display: flex;
    }

    .nav-container {
        padding: 0.3rem 0.5rem;
        justify-content: space-between;
    }

    .name-section {
        flex: none;
    }

    .name {
        font-size: 1rem;
    }

    .subtitle {
        font-size: 0.7rem;
    }

    .logo-image {
        height: 40px; /* Aún más pequeño en móviles */
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: all 0.3s ease;
        box-shadow: 0 10px 27px rgba(0,0,0,0.1);
        padding: 2rem 0;
        gap: 0.5rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-container {
        padding: 0 1rem;
    }

    .content-section {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 35px; /* Aún más pequeño en pantallas muy pequeñas */
    }

    .hero h1 {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2rem;
        margin: 1rem 0;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
    }
}

/* Agregar al final de estilos.css *//* CSS para el footer - agregar a estilos.css *//* CSS para el footer - agregar a estilos.css */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.email {
    color: white;
    margin-right: 10px;
}

.social-icon {
    width: 24px;
    height: 24px;
    filter: invert(1);
    transition: opacity 0.3s ease;
}

.social-icon:hover {
    opacity: 0.7;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 10px;
    }
}