/* Reset and base styles */
:root {
    --primary: #0a2463;
    --secondary: #3e92cc;
    --accent: #3e92cc;
    --light: #fffaff;
    --dark: #1e1b18;
    --header-gray: #435363;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--header-gray);
    color: white;
    padding: 0.25rem 0;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 90px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

nav ul li a:hover {
    color: var(--secondary);
}

.mobile-menu {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: white;
    padding: 0.5rem;
}

/* Hero Section with Text Box */
.hero {
    height: 100vh;
    background: url('images/Kismet.webp') no-repeat center center/cover;
    color: white;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 80px;
    position: relative;
    margin-top: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, 
        var(--header-gray) 0%, 
        rgba(67, 83, 99, 0.8) 30%, 
        rgba(67, 83, 99, 0) 100%);
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 2rem;
    margin-bottom: -15%; /* Más porcentaje = más abajo */
}


.hero-text-box {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent blue box */
    padding: 2.5rem;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.7);
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: white;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid var(--accent);
    font-size: 1.1rem;
    margin: 0.5rem;
}

.btn:hover {
    background-color: transparent;
    color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary);
    border-color: white;
}

/* Services Section */
.services {
    padding: 5rem 0;
    background-color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-title p {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.service-card i {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.service-card p {
    color: #555;
}

/* About Us Section */
.about {
    padding: 5rem 0;
    background-color: #f5f7fa;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-img {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s;
}

.about-img:hover img {
    transform: scale(1.03);
}

.about-content h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    color: #555;
}

/* Projects Section */
.projects {
    padding: 5rem 0;
    background-color: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.project-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 250px;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 36, 99, 0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.project-overlay p {
    transform: translateY(20px);
    transition: transform 0.3s 0.1s;
}

.project-card:hover .project-overlay h3,
.project-card:hover .project-overlay p {
    transform: translateY(0);
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background-color: #f5f7fa;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 2rem;
    color: #555;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-details div {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-details i {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-right: 1rem;
    width: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(10, 36, 99, 0.1);
    border-radius: 50%;
    color: var(--primary);
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--secondary);
    color: white;
    transform: translateY(-3px);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(62, 146, 204, 0.2);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--header-gray);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--secondary);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #ddd;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .about-img {
        order: -1;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--header-gray);
        flex-direction: column;
        padding: 1rem 0;
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav ul li {
        margin: 0;
        padding: 0.8rem 2rem;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .hero::before {
        height: 120px;
    }
    
    .hero-text-box {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .logo img {
        height: 100px;
    }
}
/* Añade esto al final de tu CSS existente */

/* Clients Section */
.clients {
    padding: 5rem 0;
    background-color: white;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.client-card {
    position: relative;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
}

.client-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.client-card:hover img {
    transform: scale(1.05);
}

.client-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(10, 36, 99, 0.9), transparent);
    color: white;
}

/* Technical Projects */
.technical-projects {
    padding: 5rem 0;
    background-color: #f8fafc;
}

.project-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 50px;
    background: #e2e8f0;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.category-btn.active {
    background: var(--secondary);
    color: white;
}

.technical-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.tech-project {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.tech-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.before, .after {
    position: relative;
    height: 300px;
}

.before img, .after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.before span, .after span {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.tech-details {
    padding: 2rem;
}

.tech-details h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.tech-details ul {
    list-style: none;
    margin: 1.5rem 0;
}

.tech-details li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tech-details i {
    color: var(--secondary);
}

.btn-small {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    display: inline-block;
}

/* Responsive */
@media (max-width: 768px) {
    .tech-project {
        grid-template-columns: 1fr;
    }
    
    .tech-comparison {
        grid-template-columns: 1fr;
    }
    
    .before, .after {
        height: 200px;
    }
}
/* Añade esto al final de tu CSS existente */

/* Clients Carousel */
.clients {
    padding: 5rem 0;
    background-color: white;
}

.clients-swiper {
    padding: 2rem 1rem;
    position: relative;
}

.client-slide {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 400px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.client-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.client-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(10, 36, 99, 0.9), transparent);
    color: white;
}

.client-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Projects Carousel */
.technical-projects {
    padding: 5rem 0;
    background-color: #f8fafc;
}

.projects-swiper {
    padding: 2rem 1rem;
    position: relative;
}

.project-slide {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.project-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(10, 36, 99, 0.9), transparent);
    color: white;
}

.project-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.project-category {
    display: inline-block;
    background: var(--secondary);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Swiper Navigation */
.swiper-button-next, 
.swiper-button-prev {
    color: var(--secondary) !important;
    background: rgba(255,255,255,0.8);
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    backdrop-filter: blur(5px);
}

.swiper-button-next:after, 
.swiper-button-prev:after {
    font-size: 1.5rem !important;
    font-weight: bold !important;
}

.swiper-pagination-bullet {
    background: var(--secondary) !important;
    opacity: 0.5 !important;
}

.swiper-pagination-bullet-active {
    opacity: 1 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .client-slide,
    .project-slide {
        height: 350px;
    }
    
    .client-info,
    .project-info {
        padding: 1.5rem;
    }
    
    .project-info h3 {
        font-size: 1.5rem;
    }
}



