/*
    Tech Reset Website - CSS Stylesheet
    Author: Eduardo
    Description: Defines the styles for the Tech Reset website,
                 including Glassmorphism, Soft UI, and responsive design.
*/

/* --- General & Typography --- */
:root {
    --primary-color: #007bff; /* Un azul suave */
    --accent-color: #5d5dff; /* Un acento ligeramente más vibrante */
    --glass-bg: rgba(0, 0, 0, 0.2); /* Fondo negro semitransparente */
    --glass-border: rgba(0, 0, 0, 0.3); /* Borde negro */
    --soft-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    --text-color: #f0f0f0; /* Color de texto claro */
    --light-text-color: #333; /* Color de texto oscuro para contrastar */
    --background-gradient: linear-gradient(135deg, #222, #444); /* Fondo degradado oscuro */
    --button-shadow: 6px 6px 12px rgba(0, 0, 0, 0.4), -6px -6px 12px rgba(60, 60, 60, 0.8);
    --card-shadow: 10px 10px 30px rgba(0, 0, 0, 0.3), -10px -10px 30px rgba(60, 60, 60, 0.5);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--background-gradient);
    overflow-x: hidden;
}

h1, h2, h3 {
    font-weight: 600;
    color: var(--text-color);
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 10px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

.content-section {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* --- Glassmorphism / Soft UI Effects --- */
.glassmorphism-bg {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    box-shadow: var(--soft-shadow);
    padding: 2rem;
}

.glassmorphism-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.glassmorphism-card:hover {
    transform: translateY(-10px);
    box-shadow: 15px 15px 40px rgba(0, 0, 0, 0.4), -15px -15px 40px rgba(60, 60, 60, 0.8);
}

/* --- Header & Navigation --- */
.header {
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.05);
}

.logo img {
    height: 30px;
}

/* Esta regla ahora aplica la inversión solo al logo de la cabecera */
.logo img[src="imgs/logo.png"] {
    filter: invert(0);
}

.main-nav .nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-nav .nav-links a {
    font-weight: 500;
    color: var(--text-color);
    position: relative;
    transition: color 0.3s ease;
}

.main-nav .nav-links a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
    position: absolute;
    bottom: -5px;
    left: 0;
}

.main-nav .nav-links a:hover::after,
.main-nav .nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: 0.4s;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999;
    padding-top: 100px;
    transform: translateX(100%);
    transition: transform 0.5s ease-in-out;
}

.mobile-nav.open {
    transform: translateX(0);
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-nav a {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-color);
}

/* --- Hero Section --- */
.hero-section {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 100px;
    position: relative;
    
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('imgs/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #fff;
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-content .tagline {
    font-size: 1.25rem;
    color: #fff;
    font-weight: 300;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--light-text-color);
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-5px);
    background: #e0e0e0;
}

/* --- Misión & Visión Section --- */
.about-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.about-card {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    text-align: left;
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    text-align: left;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-top: 1rem;
}

.service-card .icon-container {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.service-card:hover .icon-container {
    transform: scale(1.1);
}

/* --- Values Section --- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    text-align: left;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.value-card h3 {
    font-size: 1.5rem;
    margin-top: 1rem;
}

.value-card .icon-container {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.value-card p {
    text-align: center;
}

/* --- Partners & Clients Sections (Carousel) --- */
.partners-section,
.clients-section {
    padding: 4rem 5%;
}

.image-carousel {
    display: flex;
    justify-content: center;
    overflow-x: auto;
    gap: 2rem;
    padding: 2rem 0;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.image-carousel::-webkit-scrollbar {
    display: none;
}

.image-carousel img {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: 10px;
    background: var(--glass-bg);
    padding: 1rem;
    box-shadow: var(--soft-shadow);
    scroll-snap-align: center;
}

/* --- Contact Form --- */
.contact-section {
    background: none;
}

.contact-form {
    max-width: 600px;
    margin: 3rem auto 0;
    text-align: left;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #f0f0f0;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.2), inset -2px -2px 5px rgba(60, 60, 60, 0.7);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    transition: box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: inset 3px 3px 8px rgba(0, 0, 0, 0.3), inset -3px -3px 8px rgba(60, 60, 60, 0.8);
}

.submit-button {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: var(--primary-color);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--button-shadow);
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.6), -8px -8px 16px rgba(60, 60, 60, 1);
}

.form-messages {
    margin-top: 1rem;
    font-weight: 500;
}

.form-messages.success {
    color: #28a745;
}

.form-messages.error {
    color: #dc3545;
}

/* --- Footer --- */
.footer {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding: 2rem 5%;
    text-align: left;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-column h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-column p,
.footer-column address {
    font-weight: 300;
    color: #ccc;
    margin-bottom: 0.5rem;
    font-style: normal;
}

.footer-column a {
    font-weight: 500;
}

.social-links {
    margin-top: 1rem;
}

.social-links a img {
    height: 30px;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.social-links a img:hover {
    transform: scale(1.1);
}

.footer-copyright {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #aaa;
}

/* --- About Page Specific Styles --- */
.about-header {
    min-height: 40vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 100px;
    margin-bottom: 2rem;
}

.about-header h1 {
    font-size: 3rem;
    padding: 2rem 3rem;
}

.content-text-block {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
    text-align: left;
    margin-top: 3rem;
}

.content-text-block .image-container {
    flex-shrink: 0;
    width: 40%;
}

.content-text-block img {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
}

.content-text-block p {
    flex-grow: 1;
}

.flex-container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 3rem;
}

.mission-vision-card {
    flex: 1;
    min-width: 300px;
}

.goals-list {
    max-width: 700px;
    margin: 3rem auto 0;
    text-align: left;
}

.goals-list ul {
    list-style: none;
}

.goals-list li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.goals-list .emoji {
    font-size: 1.5rem;
    margin-right: 15px;
}

.compliance-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* --- Responsiveness --- */
@media (max-width: 1024px) {
    .content-section {
        padding: 4rem 3%;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .header {
        padding: 1.5rem 5%;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content .tagline {
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .about-cards-container,
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .about-card,
    .value-card {
        min-height: auto;
    }

    .content-text-block {
        flex-direction: column;
    }
    
    .content-text-block .image-container {
        width: 100%;
        margin-bottom: 2rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .social-links {
        display: flex;
        justify-content: center;
        margin-top: 0.5rem;
    }
    
    .social-links a img {
        margin: 0 5px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1rem 5%;
    }
    
    .logo img {
        height: 25px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .image-carousel img {
        width: 120px;
        height: 120px;
    }
}