/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    /*background: linear-gradient(135deg, #494e4c 0%, #181a19 100%);*/
    /*background: linear-gradient(135deg, #x667eea 0%, #x764ba2 100%); original*/
    background: linear-gradient(135deg, #494e4c 0%, #181a19 100%);
    padding: 0.5rem 0;
    position: fixed;
    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: 50px;
}

.highlight {
    color: #ffd700;
}

.capital {
    color: #ffd700;
}

.nav-icons {
    display: flex;
    gap: 1.5rem;
}

.nav-icon {
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
    color: #8fb0f8;
}

.mobile-menu-btn {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 5rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 650px;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    color: #737976;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.eyebrow span {
    width: 25px;
    height: 2px;
    background: #737976;
}

.hero-title {
    font-size: 2.8rem;
    color: #2d3748;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #4a5568;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #494e4c 0%, #181a19 100%);
    color: white;
    padding: 1rem 2.2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    color: white;
}

.cta-button-secondary {
    background: linear-gradient(135deg, #494e4c 0%, #181a19 100%);
    box-shadow: 0 4px 15px rgba(45, 55, 72, 0.3);
}

.cta-button-secondary:hover {
    background: #1a202c;
    box-shadow: 0 6px 20px rgba(26, 32, 44, 0.4);
}

/* Efectos Visuales e Imagen Hero */
.hero-visual {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    transform: rotate(2deg);
}

.hero-image-wrapper img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 20px;
}

/* Tarjetas Flotantes (Contenedor) */
.floating-card {
    position: absolute;
    animation: floatCard 4s ease-in-out infinite;
}

/* Control del tamaño de las imágenes PNG */
.floating-card img {
    width: 160px; /* Ajusta según el tamaño deseado */
    height: auto;
    display: block;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.15));
}

/* Posicionamiento */
.card-left {
    left: -80px;
    bottom: 20px;
}

.card-right {
    right: -80px;
    top: -10px;
    animation-delay: -2s;
}

/* Animación Flotante */
@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Services Section */
.services {
    padding: 5rem 0;
    background: white;
}

.section-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.2rem;
    text-align: left;
    color: #2d3748;
    position: relative;
}

.section-title em {
    font-style: italic;
    color: #2866eb;
}

/* Layout Principal: 2 Columnas (Izquierda: Contenido | Derecha: Imagen) */
.services-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: end;
}

/* Alineación del texto superior izquierdo */
.services-header {
    margin-bottom: 2rem;
    text-align: left; /* Alineado a la izquierda */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Estilos de la imagen derecha */
.services-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
}

.services-image img {
    width: 100%;
    height: 100%;
    max-height: 450px;
    object-fit: cover;
}

.service-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #edf2f7;
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
    border-color: transparent;
}

.service-icon {
    font-size: 2.5rem;
    color: #2563eb;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.4rem;
    color: #2d3748;
    margin-bottom: 1rem;
}

.service-card p {
    color: #4a5568;
    line-height: 1.7;
    font-size: 1rem;
}

/* Section: Nuestra Filosofía (About) */
.about {
    padding: 5rem 0;
    background: #f7fafc;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image img{
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 20px;
}

.experience-card {
    position: absolute;
    right: -20px;
    bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    background: linear-gradient(135deg, #494e4c 0%, #181a19 100%);
    color: white;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.section-label {
    display: inline-block;
    color: #737976;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

.about-content h2 {
    font-size: 2.3rem;
    color: #2d3748;
    line-height: 1.25;
    margin-bottom: 1.5rem;
}

.about-content h2 em {
    font-style: italic;
    color: #2563eb;
}

.about-content p {
    color: #4a5568;
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

.about-points {
    margin: 2rem 0;
}

.about-points div {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.95rem;
    color: #2d3748;
    font-weight: 600;
}

.about-points i {
    color: #2563eb;
}

/* Contact Section ("¿Tienes un proyecto?") */
.contact {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);;
}

.contact-box {
    position: relative;
    padding: 4rem 3rem;
    background: white;
    border-radius: 25px;
    color: linear-gradient(135deg, #9fa1a4 0%, #646567 100%);
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    display: grid;
    grid-template-columns: 1fr 1fr; /* Columna izquierda (texto) | Columna derecha (imagen) */
    gap: 3rem;
    align-items: center;
}

.contact-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-image img {
    width: 100%;
    height: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 15px;
}

.contact-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.contact-content .section-label {
    color: black;
}

.contact-content h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.2rem;
    color: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
}

.contact-content h2 em {
    color: #2563eb ;
    font-style: italic;
}

.contact-content p {
    color: black;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-button {
    background: linear-gradient(135deg, #494e4c 0%, #181a19 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(229, 223, 223, 0.2);
}

.contact-button:hover {
    background: #2563eb;
    color: white;
    box-shadow: 0 6px 20px rgba(34, 0, 255, 0.4);
}

/* Círculos Decorativos de Contacto */
.contact-decoration {
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.circle {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.circle-one {
    width: 500px;
    height: 500px;
}

.circle-two {
    width: 360px;
    height: 360px;
    top: 70px;
    left: 70px;
}

.circle-three {
    width: 220px;
    height: 220px;
    top: 140px;
    left: 140px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #494e4c 0%, #181a19 100%);
    color: white;
    padding: 4rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #cbd5e0;
}

.footer-section p {
    color: #a0aec0;
    line-height: 1.7;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #8fb0f8;
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: #2563eb;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: #a0aec0;
    font-size: 0.9rem;
}

.footer img {
    height: 50px;
    margin-bottom: 1rem;
}

.hidden {
    display: none !important;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    width: 90%;
    max-width: 480px;
    position: relative;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.modal-content p {
    font-size: 14px;
}

.btn-cerrar {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #666;
}

#form-contacto {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

#form-contacto input,
#form-contacto textarea {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: inherit;
}

#form-contacto button[type="submit"] {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    padding: 0.9rem 1.5rem;
}

.cf-turnstile {
    display: flex;
    justify-content: center;
    margin: 0.5rem 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero .container,
    .about-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hero-title {
        font-size: 2.3rem;
    }

    .hero-image-wrapper {
        transform: none;
    }

    .about-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 20px;
    }

    .card-left {
        left: 20px;
    }

    .card-right {
        right: 20px;
    }

    .contact-box {
        padding: 3rem 1.5rem;
        grid-template-columns: 1fr;
    }

    .contact-image {
        display: none;
    }

    .services-container {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 1.5rem 1rem
    }

    .about-content {
        order: 1; /* Pasa arriba */
    }

    .about-image {
        order: 2; /* Pasa abajo */
    }
}

@media (max-width: 768px) {
    .floating-card img {
        width: 150px; 
    }

    .card-left {
        left: -10px;
        bottom: -40px;
    }

    .card-right {
        right: -10px;
        top: -30px;
    }

    .contact-box {
        padding: 3rem 1.5rem;
        grid-template-columns: 1fr;
    }

    .contact-image {
        display: none;
    }

    .contact-content h2 {
        font-size: 2rem;
    }

    .contact-decoration {
        display: none;
    }

    .services-container {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Asigna el orden visual en móviles */
    .about-content {
        order: 1; /* Pasa arriba */
    }

    .about-image {
        order: 2; /* Pasa abajo */
    }
}