/* styles.css */

/* ========= VARIABLES Y ESTILOS GLOBALES ========= */
:root {
    --primary-color: #0D47A1; /* Un azul corporativo oscuro */
    --secondary-color: #fdd835; /* Un amarillo/dorado para acentos y botones */
    --background-light: #f8f9fa;
    --background-dark: #212529;
    --text-light: #ffffff;
    --text-dark: #343a40;
    --text-muted: #6c757d;
    --font-family: 'Poppins', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--text-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2, h3 {
    line-height: 1.2;
    font-weight: 600;
}

h1 { font-size: 2.8rem; margin-bottom: 1rem; }
h2 { font-size: 2.2rem; margin-bottom: 2rem; text-align: center;}
p { margin-bottom: 1rem; }
a { color: var(--primary-color); text-decoration: none; }

section {
    padding: 5rem 0;
}

/* ========= BOTONES ========= */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px; /* Botones más modernos y redondeados */
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.btn-primary:hover {
    background-color: #ffc107;
    transform: translateY(-3px);
}

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

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

/* ========= HEADER ========= */
.header {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 1rem 0;
    position: sticky;
    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 {
    height: 50px;
}

.nav a {
    color: var(--text-light);
    margin: 0 1rem;
    font-weight: 600;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}


/* ========= HERO SECTION ========= */
.hero-section {
    background-color: var(--background-light);
    padding: 4rem 0;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero-text {
    flex: 1;
}

.hero-image-container {
    flex: 1;
    text-align: right;
}

.hero-image {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ========= FEATURES SECTION ========= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    padding: 2.5rem 2rem;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    margin-bottom: 1.5rem;
}

.feature-icon svg {
    width: 50px;
    height: 50px;
    color: var(--primary-color);
}

/* ========= POWERED BY SECTION ========= */
.powered-by-section {
    background-color: var(--background-light);
}

.powered-by-container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.powered-by-logo {
    flex-basis: 30%;
    text-align: center;
}

.powered-by-logo img {
    max-width: 250px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.powered-by-logo img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.powered-by-text {
    flex-basis: 70%;
}
.powered-by-text h2 { text-align: left; }

/* ========= CTA & CONTACT SECTION ========= */
.cta-section {
    background: linear-gradient(rgba(13, 71, 161, 0.95), rgba(13, 71, 161, 0.95)), url('background-cta.jpg') no-repeat center center/cover;
    color: var(--text-light);
}
.cta-section h2 { text-align: left; }
.cta-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.contact-info a {
    color: var(--text-light);
    text-decoration: underline;
}
.cta-form form {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
}
.form-group {
    margin-bottom: 1rem;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-family);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(13, 71, 161, 0.2);
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.full-width {
    width: 100%;
    font-size: 1.1rem;
}

/* ========= FOOTER ========= */
.footer {
    background-color: var(--background-dark);
    color: var(--text-light);
    padding-top: 4rem;
}
.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 3rem;
}
.logo-footer {
    height: 40px;
    margin-bottom: 1rem;
}
.footer h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}
.footer-links a, .footer-about p {
    display: block;
    color: #ccc;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: var(--text-light);
}
.social-icons a { margin-right: 1rem; }
.social-icons svg {
    width: 24px;
    height: 24px;
    fill: #ccc;
    transition: fill 0.3s ease;
}
.social-icons a:hover svg { fill: var(--text-light); }
.footer-bottom {
    border-top: 1px solid #444;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.footer-bottom strong {
    color: #eee;
}

/* ========= RESPONSIVE DESIGN (MEDIA QUERIES) ========= */
@media (max-width: 992px) {
    h1 { font-size: 2.4rem; }
    h2 { font-size: 2rem; }
    .hero-container, .powered-by-container, .cta-container {
        grid-template-columns: 1fr;
        flex-direction: column;
        text-align: center;
    }
    .hero-text { order: 2; }
    .hero-image-container { order: 1; margin-bottom: 2rem; text-align: center;}
    .powered-by-text h2, .cta-section h2 { text-align: center; }
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav { display: none; } /* En un sitio real, aquí se implementaría un menú hamburguesa */
    .header-container .btn {
        display: none; /* Ocultar botón en móvil para simplicidad */
    }
    .container { padding: 0 1rem; }
    section { padding: 3rem 0; }
}