/* Variables de Colores */
:root {
    --primary-color: #513ee0;
    --secondary-color: #00e676;
    --text-primary: #333333;
    --text-secondary: #666666;
    --bg-light: #f9f9f9;
    --bg-dark: #2c2c2c;
    --white: #ffffff;
}

/* Reset y Tipografía Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--white);
}

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

h1, h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-top: 10px;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 25px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    text-align: center;
}

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

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

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

.secondary-btn:hover {
    background-color: transparent;
    cursor: pointer;
    color: var(--secondary-color);
}

/* Header */
header {
    background-color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    margin-left: 30px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Hero Section */
#hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3a2e9d 100%);
    color: var(--white);
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

#hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

#hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Secciones Generales */
section {
    padding: 80px 0;
    text-align: center;
}

#about, #services, #contact {
    padding: 80px 0;
}

#about h2, #services h2, #contact h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-text strong {
    color: var(--primary-color);
}

/* Sección de Servicios */
#services {
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Sección de Contacto */
#contact {
    background: linear-gradient(rgba(81,62,224,0.9), rgba(60, 42, 197, 0.9));
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

#contact h2 {
    color: var(--white);
}

#contact .subtitle {
    color: var(--white);
}

#contact-form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 30px auto 0;
    gap: 15px;
}

#contact-form input, #contact-form textarea {
    padding: 15px;
    border: none;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    transition: box-shadow 0.3s ease;
}

#contact-form input:focus, #contact-form textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.5);
}

/* Footer */
footer {
    background-color: var(--bg-dark);
    color: var(--white);
    text-align: center;
    padding: 20px 0;
}

/* Media Queries para Responsividad */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
    }
    nav ul {
        margin-top: 15px;
    }
    nav ul li a {
        margin: 0 15px;
    }
    #hero h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    #hero h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    .btn {
        padding: 10px 20px;
    }
}

.hero-section {
   display: grid;
   /* 30% / 80%  */
   grid-template-columns: 20% 80%;
   gap: 20px;
   align-items: center;
   padding: 40px 20px;
   
}
.hero-section .hero-image {
   width: 100%;
   height: auto;
   max-height: 815px;
   border-radius: 10px;
}

/* Ajustes para pantallas pequeñas a row */
@media (max-width: 768px) {
    .hero-section {
        display: flex;
        flex-direction: column;
        text-align: center;
    }
    .hero-section .hero-image {
        max-height: 300px;
    }
   
}
