/* Variables CSS para la paleta de colores de La Cienaga Labs */
:root {
    --primary-purple: #6b46c1;
    --primary-purple-light: #8b5cf6;
    --primary-purple-dark: #553c9a;
    --accent-green: #10b981;
    --accent-green-light: #34d399;
    --accent-green-dark: #047857;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --gradient-primary: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-purple-light) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green-light) 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 1rem;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(107, 70, 193, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-link {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.nav-brand .logo {
    height: 50px;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.nav-brand .logo:hover {
    transform: scale(1.05);
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-purple);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-purple);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(107, 70, 193, 0.02) 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-family: 'Manrope', sans-serif;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-purple);
    border: 2px solid var(--primary-purple);
}

.btn-secondary:hover {
    background: var(--primary-purple);
    color: white;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pattern-container {
    position: relative;
    width: 400px;
    height: 400px;
}

.pattern {
    position: absolute;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.pattern-1 {
    top: 0;
    left: 0;
    width: 200px;
    animation-delay: 0s;
}

.pattern-2 {
    bottom: 0;
    right: 0;
    width: 150px;
    animation-delay: 2s;
}

.hero-logo {
    position: relative;
    z-index: 2;
    width: 200px;
    height: 200px;
    animation: pulse 4s ease-in-out infinite;
}

/* Sections */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: var(--bg-white);
}

.services-grid {
    display: grid;
    gap: 2rem;
}

.service-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.service-card:nth-child(even) {
    grid-template-columns: 1fr 1fr;
}

.service-card:nth-child(even) .service-media {
    order: 2;
}

.service-card:nth-child(even) .service-content {
    order: 1;
}

.service-media img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
}

.image-caption {
    font-size: 0.75rem;
    color: #333;
    text-align: left;
    margin: 0.5rem 0 0 0;
    font-style: italic;
    font-family: 'Poppins', sans-serif;
}

.service-content h3 {
    font-size: 1.5rem;
    color: var(--primary-purple);
    margin-bottom: 1rem;
}

.service-content p {
    color: var(--text-gray);
    line-height: 1.6;
}

.biosensors {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 2fr;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.gallery-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.05);
}

/* Imagen urbana específica - mostrar desde abajo */
.gallery-image[src="urbano.JPG"] {
    object-position: bottom;
}

/* Imagen eco1 específica - mostrar más de la parte superior */
.gallery-image[src="eco1.JPG"] {
    object-position: center 25%;
}

/* GIF animación continua */
.service-image[src="animacionmedida.gif"] {
    animation: none; /* Reset any existing animation */
}

/* Asegurar que el GIF se reproduzca en loop y se vea un poco más abajo */
img[src="animacionmedida.gif"] {
    object-fit: cover;
    object-position: center 40%;
    animation-iteration-count: infinite;
}

/* Impact Section */
.impact {
    padding: 80px 0;
    background: var(--bg-light);
}

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

.impact-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.impact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.impact-icon {
    margin-bottom: 1.5rem;
}

.impact-icon img {
    width: 80px;
    height: 80px;
}

.impact-card h3 {
    color: var(--primary-purple);
    margin-bottom: 1rem;
}

/* Team Section */
.team {
    padding: 80px 0;
    background: var(--bg-white);
}

.trust-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
    padding: 3rem;
    background: var(--gradient-primary);
    border-radius: 25px;
    color: white;
}

.trust-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.trust-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
}

.team-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.team-photo {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
}

.team-leader {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.leader-info h3 {
    color: var(--primary-purple);
    font-size: 1.5rem;
}

.leader-image img {
    width: 100%;
    max-width: 300px;
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Animación para la imagen del líder (andress) igual que team-photo */
.leader-image img:hover {
    filter: grayscale(0%) brightness(1.05);
    transform: scale(1.02);
}

/* Partners Section */
.partners {
    padding: 60px 0;
    background: var(--bg-light);
}

.partners-title {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.partners-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.partners-left,
.partners-center,
.partners-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.partners-center {
    justify-content: center;
}

.partner-link {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.partner-link:hover {
    transform: translateY(-5px);
}

.partner-logo {
    height: 60px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

/* Ajustar tamaños específicos para los nuevos logos */
.partner-logo[src="humboldt.png"] {
    height: 120px;
}

.partner-logo[src="FCM.png"] {
    height: 138px;
}

.partner-logo[src="University_of_Alaska.png"] {
    height: 110px;
}

.partner-logo[src="labyrinth.png"] {
    height: 100px;
}

.partner-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Footer */
.footer {
    background: var(--text-dark);
    padding: 2rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-brand img {
    max-width: 100%;
    height: auto;
}

.footer-contact {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.3;
    z-index: 1;
}

.contact-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
}

.contact-info {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
}

.contact-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--primary-purple-light);
}

.contact-person {
    margin-bottom: 1.5rem;
}

.contact-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.contact-role {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    background: rgba(107, 70, 193, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(107, 70, 193, 0.3);
    transition: all 0.3s ease;
    font-weight: 500;
}

.contact-link:hover {
    background: var(--gradient-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.contact-link.phone:hover {
    background: var(--gradient-accent);
}

.contact-link.email:hover {
    background: var(--gradient-primary);
}

.contact-icon {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .service-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .service-card:nth-child(even) {
        grid-template-columns: 1fr;
    }

    .service-card:nth-child(even) .service-media {
        order: 1;
    }

    .service-card:nth-child(even) .service-content {
        order: 2;
    }

    .biosensors {
        grid-template-columns: 1fr;
    }

    .trust-banner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .partners-grid {
        flex-direction: column;
        gap: 2rem;
    }

    .partners-left,
    .partners-center,
    .partners-right {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-details {
        align-items: center;
    }

    .contact-link {
        max-width: 280px;
        margin: 0 auto;
    }

    .pattern-container {
        width: 300px;
        height: 300px;
    }

    .hero-logo {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
} 