/* Estilos para el footer */
footer {
    background-color: var(--neutral-dark);
    color: var(--neutral-light);
    padding: 3rem 0;
    font-size: 0.9rem;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    max-width: 1200px;
    width: 90%;
    margin: 0 auto 2rem;
    padding: 0 20px;
}

.footer-logo {
    text-align: center;
    margin-bottom: 1rem;
    width: 100%;
}

.footer-logo img {
    max-width: 180px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-column {
    text-align: center;
}

.footer-column h4 {
    color: var(--neutral-light);
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: var(--primary);
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.7rem;
    line-height: 1.5;
    max-width: 100%;
    word-break: break-word;
    padding: 0 5px;
}

.footer-column a {
    color: var(--neutral-light);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-column a:hover {
    color: var(--primary);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.social-links i {
    font-size: 1.1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    margin-top: 1rem;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Media Queries para tablets */
@media screen and (min-width: 600px) {
    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
        gap: 2rem;
        width: 100%;
        max-width: 1000px;
        margin: 0 auto;
        padding: 0 1rem;
    }
    
    .footer-column {
        flex: 0 0 40%;
        max-width: 280px;
        margin-bottom: 1.5rem;
        text-align: center;
        box-sizing: border-box;
        padding: 0 10px;
    }
    
    .footer-column ul li {
        white-space: normal;
        word-break: break-word;
    }
}

/* Media Queries para escritorio */
@media screen and (min-width: 1024px) {
    .footer-content {
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
        gap: 4rem;
        padding: 0 2rem;
        max-width: 1200px;
        margin: 0 auto 2rem;
    }
    
    .footer-logo {
        flex: 0 0 220px;
        text-align: left;
        margin-top: 1rem;
        padding-right: 1rem;
    }
    
    .footer-logo img {
        margin: 0;
        max-width: 100%;
        height: auto;
    }
    
    .footer-links {
        flex: 1;
        display: flex;
        justify-content: space-between;
        gap: 1.5rem;
        margin-left: 2rem;
    }
    
    .footer-column {
        text-align: left;
        flex: 1;
        min-width: 0;
        padding: 0 0.5rem;
    }
    
    .footer-column h4 {
        padding-left: 0;
        margin-bottom: 1.5rem;
        font-size: 1.1rem;
    }
    
    .footer-column h4::after {
        left: 0;
        transform: none;
        width: 40px;
    }
    
    .footer-column ul li {
        margin-bottom: 0.8rem;
    }
    
    .social-links a {
        justify-content: flex-start;
    }
    
    /* Ajuste para pantallas muy anchas */
    @media (min-height: 800px) and (min-width: 1200px) {
        .footer-content {
            max-width: 1400px;
            margin: 0 auto 2rem;
        }
        
        .footer-logo {
            flex: 0 0 250px;
        }
        
        .footer-links {
            gap: 2.5rem;
        }
    }
}

/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* Mejoras de rendimiento para móviles */
html {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Mejoras de interacción táctil */
a, button, input, textarea {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* Prevenir zoom en inputs en iOS */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    input, select, textarea {
        font-size: 16px !important;
    }
}

:root {
    --primary: #00B8C8;
    --secondary: #F15A40;
    --neutral-light: #FFFFFF;
    --neutral-dark: #2E3A47;
    --accent: #F4A261;
}

/* ------------ BODY --------------------*/

body {
    font-family: 'Poppins', sans-serif;
    color: var(--neutral-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header y navegación */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
    text-decoration: none;
}

.logo {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav ul li a {
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--primary);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--neutral-light);
}

.btn-primary:hover {
    background-color: #e04a30;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--neutral-dark);
    border: 1px solid var(--neutral-dark);
}

.btn-secondary:hover {
    background-color: var(--neutral-dark);
    color: var(--neutral-light);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--neutral-light);
}

/* -------------- Hero Section -----------------------*/
.hero {
    height: 100vh;
    background-image: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin-left: 5%;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 3rem;
    border-radius: 10px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--neutral-dark);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--neutral-dark);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Featured Projects Section */
.featured-projects {
    padding: 5rem 5%;
    background-color: var(--primary);
    color: var(--neutral-light);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--neutral-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-image {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.project-info {
    padding: 1.5rem;
    color: var(--neutral-dark);
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-info p {
    color: #666;
}

/* Footer */
footer {
    background-color: var(--neutral-dark);
    color: var(--neutral-light);
    padding: 4rem 5% 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent);
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-column a:hover {
    color: var(--accent);
}

.footer-column p {
    margin-bottom: 0.8rem;
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Estilos para el menú móvil */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.menu-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--neutral-dark);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.logo-img {
    height: 50px;
    width: auto;
}

/* Navegación principal */
.main-nav {
    transition: transform 0.3s ease-in-out;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .project-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

/* Clase para cuando el menú está abierto */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Mejoras de rendimiento para animaciones */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 768px) {
    /* Ajustes generales para móvil */
    body {
        padding-top: 70px; /* Espacio para el header fijo */
    }
    
    /* Header y navegación */
    header {
        padding: 1rem 5% !important;
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100% !important;
        z-index: 1000 !important;
        background-color: white !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        height: 70px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .logo {
        z-index: 1001;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
        position: relative;
    }
    
    .menu-icon {
        display: block;
        width: 25px;
        height: 2px;
        background-color: var(--neutral-dark);
        margin: 3px 0;
        transition: all 0.3s ease;
    }
    
    .main-nav {
        position: fixed !important;
        top: 70px !important;
        right: -100% !important;
        width: 100% !important;
        height: calc(100vh - 70px) !important;
        background-color: white !important;
        box-shadow: none !important;
        padding: 20px 0 !important;
        margin: 0 !important;
        transition: right 0.3s ease-in-out !important;
        z-index: 999 !important;
        overflow-y: auto !important;
    }
    
    .main-nav.active {
        right: 0 !important;
    }
    
    .nav-links {
        flex-direction: column !important;
        gap: 0 !important;
        padding: 0 20px !important;
        margin: 0 !important;
    }
    
    .nav-links li {
        width: 100% !important;
        margin: 0 !important;
        text-align: center !important;
    }
    
    .nav-links a {
        display: block !important;
        padding: 15px 0 !important;
        font-size: 1.1rem !important;
        width: 100% !important;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    /* Hero Section */
    .hero {
        height: 80vh;
        min-height: 600px;
    }
    
    .hero-content {
        margin: 0 5%;
        padding: 2rem;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Featured Projects */
    .featured-projects {
        padding: 3rem 5%;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-logo img {
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
}

/* Efecto de menú activo */
.mobile-menu-toggle.active .menu-icon:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .menu-icon:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .menu-icon:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/*Estilo de la seccion de contacto por correo*/

.contact-invite {
    background: #f8f9fa;
    padding: 48px 0;
    text-align: center;
    border-radius: 16px;
    margin: 40px 0;
    box-shadow: 0 4px 24px rgba(0, 184, 200, 0.05);
}

.contact-invite-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-invite h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #00B8C8;
    margin-bottom: 16px;
    font-size: 2rem;
}

.contact-invite p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    color: #222;
    margin-bottom: 28px;
    line-height: 1.6;
}

.contact-invite .btn.btn-primary {
    background: #00B8C8;
    color: #fff;
    padding: 12px 32px;
    font-size: 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,184,200,0.07);
    transition: background 0.2s;
    display: inline-block;
}

.contact-invite .btn.btn-primary:hover {
    background: #008a97;
}

/* Responsivo */
@media (max-width: 600px) {
    .contact-invite {
        padding: 32px 0;
        border-radius: 0;
        margin: 24px 0;
    }
    .contact-invite-content {
        padding: 0 8px;
    }
    .contact-invite h2 {
        font-size: 1.25rem;
    }
    .contact-invite p {
        font-size: 1rem;
    }
    .contact-invite .btn.btn-primary {
        width: 100%;
        padding: 12px 0;
        font-size: 1rem;
    }
}

/* Fin de estilos de la seccion de contacto por correo */
