/* Base Styles */
:root {
    --primary-color: #00E676; /* Verde brillante de tu logo */
    --secondary-color: #212121; /* Gris oscuro / Negro principal */
    --text-color: #E0E0E0; /* Gris claro para texto general */
    --dark-text-color: #4CAF50; /* Un verde más oscuro para contraste en texto */
    --bg-dark: #121212; /* Fondo muy oscuro */
    --card-bg: #1A1A1A; /* Fondo para tarjetas y elementos */
    --border-color: #333333; /* Color de borde para elementos */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Roboto Mono', monospace; /* Para un toque tecnológico */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Desplazamiento suave para los anclas */
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden; /* Evita scroll horizontal no deseado */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Reutilizable buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1em;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color); /* Texto oscuro sobre el botón verde */
}

.btn-primary:hover {
    background-color: #00C853; /* Un verde ligeramente más oscuro al pasar el ratón */
    color: var(--bg-dark);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}
.btn-sm { /* Small button for projects in index */
    padding: 8px 15px;
    font-size: 0.9em;
}

/* --- Notification Alert for Cart --- */
.notification-alert {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--card-bg);
    color: var(--text-color);
    padding: 15px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 10000;
    font-size: 1em;
    min-width: 250px;
    text-align: center;
}
.notification-alert.show {
    opacity: 1;
    visibility: visible;
}
.notification-alert.success {
    border-left: 5px solid var(--primary-color);
}
.notification-alert.info {
    border-left: 5px solid #2196F3; /* Azul para info */
}
/* Puedes añadir más tipos como .error */

/* --- Header --- */
.main-header {
    background-color: var(--secondary-color);
    padding: 15px 0;
    position: sticky; /* Sticky header */
    top: 0;
    z-index: 1000; /* Asegura que esté por encima de otros elementos */
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px; /* Ajusta el tamaño del logo */
    width: auto;
}
.logo a {
    display: block;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: var(--primary-color);
}

.main-nav ul li a .fas {
    color: var(--primary-color); /* Color del ícono */
    font-size: 1.1em;
}

.header-icons {
    display: flex;
    gap: 20px;
}

.header-icons .cart-icon,
.header-icons .user-icon {
    color: var(--text-color);
    font-size: 1.3em;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.header-icons .cart-icon:hover,
.header-icons .user-icon:hover {
    color: var(--primary-color);
}

.header-icons .cart-icon span {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-size: 0.7em;
    padding: 2px 6px;
    border-radius: 50%;
    position: absolute;
    top: -8px;
    right: -8px;
    font-weight: bold;
    display: flex; /* Para centrar el número */
    align-items: center;
    justify-content: center;
    min-width: 18px; /* Para que el círculo no se deforme con números grandes */
    height: 18px;
}
/* Hide cart count if 0 by default, JS will manage */
.header-icons .cart-icon span:empty {
    display: none;
}

/* --- Mobile Menu (Hamburger) --- */
.menu-toggle {
    display: none; /* Hidden by default, only for mobile */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001; /* Above nav */
}
.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease-in-out;
    border-radius: 5px;
}
/* Animación de la X */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background-color: var(--text-color); /* Color de la X */
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    background-color: var(--text-color); /* Color de la X */
}


/* --- Hero Section (Específico de index.php) --- */
.hero-section {
    background-color: var(--bg-dark);
    padding: 100px 0;
    text-align: center;
    min-height: 80vh; /* Ocupa al menos el 80% de la altura de la ventana */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden; /* Para cualquier elemento animado que salga de los límites */
}

.hero-content {
    max-width: 800px;
    z-index: 10;
}

.hero-logo {
    width: 150px; /* Tamaño del logo en el hero */
    margin-bottom: 30px;
    filter: drop-shadow(0 0 15px rgba(0, 230, 118, 0.5)); /* Efecto de brillo sutil */
}

.hero-section h1 {
    font-size: 3.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.hero-section h2 {
    font-size: 2.5em;
    color: var(--text-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-section p {
    font-size: 1.2em;
    color: var(--text-color);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Asegura que los botones se envuelvan en pantallas pequeñas */
}

/* --- Estilos Generales para Secciones (Aplicables a todas las páginas) --- */
section {
    padding: 80px 0;
    text-align: center;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
section:last-of-type {
    margin-bottom: 0; /* Elimina el margen inferior de la última sección */
}

/* Specific background for some sections */
.featured-services-section,
.projects-section,
.about-us-section,
.contact-section,
.guarantee-section {
    background-color: var(--secondary-color);
}

.why-choose-us-section,
.team-section { /* team-section en nosotros.php también tiene fondo oscuro */
    background-color: var(--bg-dark);
}

section h2, .section-title { /* Added .section-title for contact page */
    font-size: 2.5em;
    color: var(--text-color);
    margin-bottom: 15px;
    font-weight: 700;
}

section p, .section-description { /* Added .section-description for contact page */
    font-size: 1.1em;
    color: var(--text-color);
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

section h2 span {
    color: var(--primary-color);
}

/* CTA Final Section */
.cta-final-section {
    margin-bottom: 0;
    padding-bottom: 100px;
    background-color: var(--secondary-color);
}

.cta-final-section .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* --- Notification Alert for Cart --- */
.notification-alert {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--card-bg);
    color: var(--text-color);
    padding: 15px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 10000;
    font-size: 1em;
    min-width: 250px;
    text-align: center;
}
.notification-alert.show {
    opacity: 1;
    visibility: visible;
}
.notification-alert.success {
    border-left: 5px solid var(--primary-color);
}
.notification-alert.info {
    border-left: 5px solid #2196F3; /* Azul para info */
}
/* Puedes añadir más tipos como .error */

/* --- Nueva Sección: Garantía de Servicio (index.php) --- */
.guarantee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.guarantee-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guarantee-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 230, 118, 0.1);
}

.guarantee-item .fas {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.guarantee-item h3 {
    font-size: 1.5em;
    color: var(--text-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.guarantee-item p {
    font-size: 0.95em;
    color: #B0B0B0;
    line-height: 1.7;
    margin-bottom: 0; /* Override default section p margin */
}

/* --- Proyectos Destacados (index.php) --- */
.projects-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 50px; /* Espacio antes del botón "Ver todos los proyectos" */
}

.project-item-index { /* Nueva clase para diferenciar de project-item en proyectos.php */
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    max-width: 350px; /* Ajuste para que se vean bien 3 en fila */
    flex: 1; /* Permite que crezca */
    min-width: 280px; /* Mínimo para responsividad */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Empuja el botón hacia abajo */
}
.project-item-index:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 230, 118, 0.1);
}

.project-item-index img {
    width: 100%;
    height: 180px; /* Altura fija para la imagen */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.project-item-index h3 {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.project-item-index p {
    font-size: 0.95em;
    color: #B0B0B0;
    margin-bottom: 20px;
    flex-grow: 1; /* Para que el párrafo ocupe el espacio disponible */
}


/* --- Estilos para servicios.php (Reutilizando service-card) --- */
.service-filters-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 15px 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.service-filters-nav .filter-btn {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid transparent;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-filters-nav .filter-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.service-filters-nav .filter-btn.active {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 230, 118, 0.3);
}
.service-filters-nav .filter-btn.active .fas {
    color: var(--secondary-color);
}
.service-filters-nav .filter-btn .fas {
    color: var(--primary-color);
    transition: color 0.3s ease;
}


.services-full-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Mínimo de 280px */
    gap: 40px;
    margin-top: 50px;
}

/* Ocultar/Mostrar para el filtro - Esto es clave para la animación del filtro */
.service-card.hidden {
    opacity: 0;
    max-height: 0; /* Colapsa la altura */
    padding: 0;
    margin: 0;
    overflow: hidden;
    visibility: hidden;
    transform: scale(0.8); /* Pequeña escala para el efecto de desaparición */
    transition: opacity 0.4s ease-out, max-height 0.4s ease-out, padding 0.4s ease-out, margin 0.4s ease-out, transform 0.4s ease-out, visibility 0.4s ease-out;
}
.service-card:not(.hidden) {
    max-height: 800px; /* Suficientemente grande para cualquier tarjeta de servicio */
    padding: 25px; /* Restaura el padding original */
    margin-bottom: 0px; /* Restaura el margen */
    transform: scale(1);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease-in, max-height 0.4s ease-in, padding 0.4s ease-in, margin 0.4s ease-in, transform 0.4s ease-in, visibility 0.4s ease-in;
}


/* --- Estilos para proyectos.php y project_detail.php --- */
.projects-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.project-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}
/* Ocultar/Mostrar para el filtro de proyectos */
.project-item.hidden {
    opacity: 0;
    max-height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
    visibility: hidden;
    transform: scale(0.8);
    transition: opacity 0.4s ease-out, max-height 0.4s ease-out, padding 0.4s ease-out, margin 0.4s ease-out, transform 0.4s ease-out, visibility 0.4s ease-out;
}
.project-item:not(.hidden) {
    max-height: 800px; /* Altura suficiente para el contenido */
    padding: 0; /* Sin padding general en el project item, el contenido lo tiene */
    margin-bottom: 0px;
    transform: scale(1);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease-in, max-height 0.4s ease-in, padding 0.4s ease-in, margin 0.4s ease-in, transform 0.4s ease-in, visibility 0.4s ease-in;
}

.project-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 230, 118, 0.2);
}

.project-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.project-item .project-content {
    padding: 25px; /* Padding para el contenido dentro de la tarjeta */
}

.project-item h3 {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-align: center;
}

.project-item p {
    font-size: 0.95em;
    color: #B0B0B0;
    margin-bottom: 20px;
    text-align: left;
    min-height: 70px; /* Altura mínima para el párrafo para que las tarjetas no varíen mucho de tamaño */
}

.project-item .project-tags {
    margin-top: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.project-item .project-tags span {
    display: inline-block;
    background-color: var(--border-color);
    color: var(--text-color);
    font-size: 0.8em;
    padding: 5px 10px;
    border-radius: 5px;
    margin: 5px;
    font-weight: 600;
}
.project-item .project-domain-link { /* Style for domain link */
    display: block;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9em;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}
.project-item .project-domain-link:hover {
    color: #00C853;
    text-decoration: underline;
}
.project-item .project_domain-link .fas {
    margin-right: 5px;
}


.project-item .btn {
    width: calc(100% - 0px); /* Ajusta el ancho para padding interno de la tarjeta */
    margin-top: 10px; /* Separación del botón */
}

/* --- Project Detail Page (project_detail.php) --- */
.project-detail-content { /* Contenedor principal de la sección de detalle */
    background-color: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    padding: 60px 40px; /* Padding general de la sección */
    text-align: center; /* Centrar todo el contenido */
}
.project-header-section {
    margin-bottom: 50px;
}
.project-image-wrapper {
    max-width: 800px; /* Controla el ancho máximo del contenedor de la imagen */
    height: auto; /* Permite que la altura se ajuste */
    margin: 0 auto 30px; /* Centra el contenedor y añade margen inferior */
    background-color: var(--card-bg); /* Fondo del cuadro de la imagen */
    border: 1px solid var(--border-color); /* Borde del cuadro */
    border-radius: 12px; /* Bordes redondeados */
    overflow: hidden; /* Asegura que la imagen no se desborde */
    display: flex; /* Para centrar la imagen dentro */
    align-items: center;
    justify-content: center;
    padding: 15px; /* Padding interno para que la imagen no toque los bordes */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.project-main-image {
    max-width: 100%; /* La imagen no superará el ancho de su contenedor */
    height: auto; /* Mantiene la proporción */
    display: block; /* Elimina espacio extra debajo de la imagen */
    border-radius: 8px; /* Bordes redondeados para la imagen dentro del cuadro */
    object-fit: contain; /* Asegura que la imagen se ajuste dentro del contenedor sin recortarse */
}
.project-detail-content h1 {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 10px;
}
.project-short-description {
    font-size: 1.2em;
    color: #B0B0B0;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.project-meta {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}
.category-badge {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.project-live-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}
.project-live-link:hover {
    color: #00C853;
    text-decoration: underline;
}

.project-long-description-section {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 40px;
    text-align: left; /* Alineado a la izquierda para mejor lectura */
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.project-long-description-section h3 {
    font-size: 1.8em;
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: center; /* Centrar título de descripción */
}
.project-long-description-section p {
    font-size: 1.05em;
    color: #B0B0B0;
    line-height: 1.8;
    margin-bottom: 20px;
}
.project-long-description-section p:last-child {
    margin-bottom: 0;
}

.project-detail-tags-section {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.project-detail-tags-section h4 {
    font-size: 1.3em;
    color: var(--text-color);
    margin-bottom: 20px;
}
.project-detail-tags-section .tags-list span {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-size: 0.9em;
    padding: 8px 15px;
    border-radius: 20px;
    margin: 5px;
    font-weight: 600;
}

.back-to-projects-section {
    margin-top: 50px;
    margin-bottom: 20px; /* Espacio antes del footer */
}


/* --- Estilos para nosotros.php --- */
.about-top-content {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 40px;
    margin-top: 50px;
    text-align: left;
    align-items: start; /* Alinea los elementos al inicio */
}
.mission-section {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.mission-section h3 {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}
.mission-section p {
    font-size: 1.05em;
    color: #B0B0B0;
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 100%;
}
.stats-section {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: center;
    justify-items: center; /* Centra los items en la cuadrícula */
    align-items: center;
}
.stat-item {
    background-color: var(--secondary-color);
    border-radius: 10px;
    padding: 20px;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.stat-item .stat-number {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}
.stat-item p {
    font-size: 0.9em;
    color: #B0B0B0;
    margin-bottom: 0;
    max-width: 100%;
}


.values-section {
    margin-top: 80px;
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 50px auto 0;
}

.value-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 230, 118, 0.15);
}

.value-card .value-icon {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 20px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.4);
}

.value-card h3 {
    font-size: 1.5em;
    color: var(--text-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.value-card p {
    font-size: 0.95em;
    color: #B0B0B0;
    line-height: 1.7;
    margin-bottom: 0;
}

.team-section {
    margin-top: 80px;
}
.team-members-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 50px;
}

.team-member-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    width: 280px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-member-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 230, 118, 0.1);
}

.team-member-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.4);
}

.team-member-card h4 {
    font-size: 1.4em;
    color: var(--text-color);
    margin-bottom: 5px;
}

.team-member-card p {
    font-size: 1em;
    color: #B0B0B0;
    margin-bottom: 15px;
    font-weight: 500;
}
.team-member-bio {
    text-align: left;
    margin-top: 15px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}
.team-member-bio p {
    font-size: 0.9em;
    color: #A0A0A0;
    line-height: 1.6;
    margin-bottom: 10px;
    max-width: 100%;
}
.team-member-bio ul {
    list-style: none;
    padding-left: 0;
}
.team-member-bio ul li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85em;
    color: var(--primary-color); /* Cambiado a primary-color para skills */
    margin-bottom: 5px;
}
.team-member-bio ul li .fas {
    color: var(--primary-color);
    font-size: 0.9em;
}

.social-member-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed var(--border-color);
}
.social-member-links a {
    color: var(--text-color);
    font-size: 1.3em;
    transition: color 0.3s ease;
}
.social-member-links a:hover {
    color: var(--primary-color);
}


/* Trajectory Section */
.trajectory-section {
    margin-top: 80px;
}
.timeline {
    position: relative;
    max-width: 800px;
    margin: 50px auto;
    padding: 0 20px;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: var(--secondary-color);
    border: 4px solid var(--primary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.reveal-hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.timeline-item.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}


/* Izquierda del timeline */
.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

/* Derecha del timeline */
.timeline-item:nth-child(even) {
    left: 50%;
}

/* Flecha izquierda */
.timeline-item:nth-child(odd)::after {
    left: -16px;
}

/* Flecha derecha */
.timeline-item:nth-child(even)::after {
    left: -9px;
}

.timeline-year {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--card-bg);
    position: relative;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.timeline-content h3 {
    font-size: 1.3em;
    color: var(--text-color);
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 0.95em;
    color: #B0B0B0;
    margin-bottom: 0;
}


/* Ready to Work Section */
.ready-to-work-section {
    background-color: var(--secondary-color);
    padding: 80px 0;
    text-align: center;
    margin-top: 80px;
}
.ready-to-work-section h2 {
    font-size: 2.5em;
    color: var(--text-color);
    margin-bottom: 15px;
}
.ready-to-work-section p {
    font-size: 1.1em;
    color: var(--text-color);
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}


/* --- Estilos para contacto.php --- */
.contact-info-cards-grid { /* New grid for top contact info */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
    margin-bottom: 60px; /* Space before lower grid */
}

.contact-card-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; /* Added border-color for hover */
}
.contact-card-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    border-color: var(--primary-color); /* VERDE EN EL HOVER */
}
.contact-card-item .fas {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.contact-card-item h3 {
    font-size: 1.3em;
    color: var(--text-color);
    margin-bottom: 10px;
}
.contact-card-item .contact-detail {
    font-size: 1.1em;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
    word-wrap: break-word; /* Para que el texto largo se rompa */
    white-space: normal; /* Asegura el ajuste */
}
.contact-card-item .contact-description {
    font-size: 0.9em;
    color: #B0B0B0;
    margin-bottom: 0;
}
/* Specific style for email text to ensure it breaks correctly */
.contact-card-item .contact-detail.email-text {
    word-break: break-all; /* For long email addresses specifically */
}


.contact-lower-grid { /* Grid for form and map/emergency */
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Form a la izquierda, Sidebar a la derecha */
    gap: 40px;
    text-align: left;
}

.contact-form-block {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.contact-form-block h3 {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}
.contact-form-block .form-intro {
    font-size: 0.95em;
    color: #B0B0B0;
    margin-bottom: 30px;
    text-align: center;
}
.form-group-inline {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap; /* Permitir que se envuelvan en móvil */
}
.form-group-inline .form-group {
    flex: 1; /* Distribuye el espacio equitativamente */
    min-width: 200px; /* Ancho mínimo para cada campo */
    margin-bottom: 0; /* Anula margen por defecto */
}
.form-group label .fas { /* Iconos en los labels del formulario */
    margin-right: 8px;
    color: var(--primary-color);
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select { /* Añadido select */
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--secondary-color);
    color: var(--text-color);
    font-size: 1em;
    outline: none;
    transition: border-color 0.3s ease;
}
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.2);
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
.contact-form-block .btn {
    width: auto;
    padding: 15px 30px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.contact-form-block .btn .fas {
    margin-left: 0;
}


.contact-sidebar-block {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center; /* Centrar texto en estos bloques */
}
.map-location-block,
.emergency-support-block {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.map-location-block h3,
.emergency-support-block h3 {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}
.map-container iframe {
    border-radius: 10px;
}
.map-location-block p,
.emergency-support-block p {
    font-size: 0.95em;
    color: #B0B0B0;
    line-height: 1.7;
    margin-bottom: 10px;
}
.map-location-block p .fas {
    color: var(--primary-color);
    margin-right: 8px;
}

/* Alert messages for frontend forms */
.alert-message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}
.alert-success {
    background-color: #D4EDDA; /* light green */
    color: #155724; /* dark green */
    border: 1px solid #C3E6CB;
}
.alert-error-danger { /* Usamos un nombre diferente para evitar conflicto con alert-danger del admin si compartieran estilos */
    background-color: #F8D7DA; /* light red */
    color: #721C24; /* dark red */
    border: 1px solid #F5C6CB;
}


/* Responsive adjustments */
@media (max-width: 992px) {
    /* Header Responsive */
    .header-content {
        flex-wrap: wrap; /* Permite que los elementos se envuelvan */
        justify-content: space-between; /* Alinea logo a izq, iconos a der */
        gap: 15px; /* Espacio entre logo y menú/iconos */
        padding: 10px 20px; /* Ajusta padding para header en móvil */
    }
    .logo {
        order: 1; /* Pone el logo primero */
        flex-basis: auto; /* No ocupa todo el ancho */
        text-align: left; /* Alineado a la izquierda */
        margin-bottom: 0;
    }
    .header-icons {
        order: 3; /* Pone los iconos a la derecha del menú (si se colapsa) */
        margin-left: auto; /* Empuja los iconos a la derecha */
        margin-right: 0;
    }
    .menu-toggle {
        display: flex; /* Muestra el botón de hamburguesa */
        order: 2; /* Al lado del logo */
    }
    .main-nav {
        order: 4; /* Mueve la navegación al final */
        position: fixed; /* Fixed position for full screen overlay */
        top: 0; /* Align to top */
        left: 0;
        width: 100%;
        height: 100vh; /* Full viewport height */
        background-color: var(--secondary-color);
        box-shadow: 0 5px 15px rgba(0,0,0,0.4);
        padding-top: 80px; /* Space for fixed header content */
        transform: translateX(100%); /* Oculta el menú a la derecha */
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start; /* Alínea contenido al inicio */
        overflow-y: auto; /* Permite scroll si el contenido es largo */
    }
    .main-nav.active {
        transform: translateX(0); /* Muestra el menú desde la derecha */
        opacity: 1;
        visibility: visible;
    }
    .main-nav ul {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        padding: 0 20px; /* Padding para los enlaces */
    }
    .main-nav ul li {
        width: 100%;
        text-align: center;
    }
    .main-nav ul li a {
        padding: 15px 0; /* Más padding para enlaces de menú móvil */
        justify-content: center;
        font-size: 1.2em; /* Texto más grande */
        border-bottom: 1px solid var(--border-color); /* Separador entre enlaces */
    }
    .main-nav ul li:last-child a {
        border-bottom: none; /* No hay separador en el último */
    }

    /* Otras secciones responsive */
    .contact-info-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .contact-lower-grid {
        grid-template-columns: 1fr;
    }
    .contact-form-block,
    .map-location-block,
    .emergency-support-block {
        padding: 30px;
    }
    .form-group-inline {
        flex-direction: column;
        gap: 0;
    }
    .form-group-inline .form-group {
        margin-bottom: 20px;
    }
    /* Project Detail Page Responsive */
    .project-detail-content {
        padding: 40px 20px;
    }
    .project-detail-content h1 {
        font-size: 2.2em;
    }
    .project-short-description {
        font-size: 1em;
    }
    .project-image-wrapper {
        padding: 10px; /* Menos padding en móviles */
    }
    .project-long-description-section,
    .project-detail-tags-section {
        padding: 30px 20px;
    }
    .project-detail-tags-section .tags-list span { /* Ajuste en tag size para detalles */
        font-size: 0.8em;
        padding: 6px 12px;
    }
    /* Cart Page Responsive */
    .cart-items-container {
        grid-template-columns: 1fr; /* Una columna en móvil para los ítems */
        padding: 20px; /* Menos padding en móvil */
        gap: 15px; /* Menos gap */
    }
    .cart-item {
        flex-direction: column; /* Apila los elementos del ítem del carrito */
        align-items: flex-start; /* Alinea a la izquierda */
        gap: 10px;
        padding: 15px; /* Menos padding */
    }
    .cart-item .item-info {
        text-align: left;
        width: 100%;
    }
    .cart-item .item-name {
        font-size: 1em;
    }
    .cart-item .item-unit-price {
        font-size: 0.85em;
    }
    .cart-item .item-quantity-control {
        width: 100%;
        justify-content: flex-start;
        margin: 0;
    }
    .cart-item .item-total-price {
        width: 100%;
        text-align: left;
    }
    .cart-item .remove-item-btn {
        margin-left: 0;
        width: 100%; /* Ocupa todo el ancho */
    }
    .cart-summary {
        flex-direction: column; /* Asegura que se apile en móvil */
        align-items: stretch; /* Estira los elementos para que ocupen todo el ancho */
    }
    .cart-summary .cart-totals,
    .cart-actions,
    .paypal-checkout-section {
        max-width: 100%; /* Ocupa todo el ancho disponible */
    }
}
@media (max-width: 600px) {
    .contact-info-cards-grid {
        grid-template-columns: 1fr;
    }
    .project-item .project-tags span {
        font-size: 0.75em;
        padding: 4px 8px;
    }
    /* Header en móviles muy pequeños */
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
    }
    .logo {
        margin-bottom: 0;
    }
    .header-icons {
        order: 3;
    }
    .menu-toggle {
        order: 2;
        margin-left: auto;
    }
    .main-nav {
        top: 60px;
    }
}