/* styles.css - Minimalista y Profesional */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

/* NAVBAR */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
}

.menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.menu a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    transition: color 0.3s;
}

.menu a:hover {
    color: #2d3748;
}

/* HERO */

.hero {
    display: flex;
    align-items: center;
    min-height: 80vh;
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 4rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #2d3748, #4a5568);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #4a5568;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #3182ce, #2b6cb0);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(49, 130, 206, 0.4);
}

/* IMÁGENES PRINCIPALES */

.hero-image,
.service-image,
.about-image {
    flex: 1;
    min-height: 400px;
    background: #e2e8f0;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image img,
.service-image img,
.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* SERVICIOS */

.services {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: #2d3748;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

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

.service-card h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    color: #2d3748;
}

/* NOSOTROS */

.about {
    padding: 6rem 5%;
    max-width: 1000px;
    margin: 0 auto;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text ul {
    list-style: none;
    padding-left: 0;
}

.about-text li {
    padding: 0.75rem 0;
    font-size: 1.1rem;
    color: #4a5568;
    position: relative;
    padding-left: 2rem;
}

.about-text li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #48bb78;
    font-weight: bold;
    font-size: 1.2rem;
}

/* CONTACTO */

.contact {
    padding: 6rem 5%;
    max-width: 800px;
    margin: 0 auto;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2d3748;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3182ce;
}

.contact-form button {
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, #3182ce, #2b6cb0);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-form button:hover {
    background: linear-gradient(135deg, #2b6cb0, #2c5282);
}

/* SUBPÁGINAS (artículos y legales) */

.subpage-header {
    padding: 4rem 5% 2rem;
    text-align: center;
}

.subpage-header h1 {
    font-size: 2.4rem;
    color: #2d3748;
}

.subpage-intro {
    margin-top: 0.75rem;
    color: #4a5568;
}

.legal-page {
    max-width: 900px;
    margin: 0 auto 4rem;
    padding: 0 5%;
}

.legal-page section {
    margin-bottom: 2.5rem;
}

.article-list {
    list-style: none;
    padding-left: 0;
}

.article-list li {
    margin-bottom: 1.5rem;
}

.article-list a {
    font-weight: 600;
    color: #2b6cb0;
    text-decoration: none;
}

.article-list a:hover {
    text-decoration: underline;
}

.article-excerpt {
    font-size: 0.95rem;
    color: #4a5568;
}

/* FOOTER */

footer {
    background: #1a202c;
    color: white;
    text-align: center;
    padding: 2rem 5%;
    margin-top: 4rem;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

/* RESPONSIVE */

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }

    .menu {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .hero-image,
    .about-image {
        min-height: 250px;
    }
}

/* BOTÓN FLOTANTE BLOG */

.floating-blog {
    position: fixed;
    right: 20px;
    bottom: 80px;
    /* un poco más arriba del borde para que no “pegue” al footer */
    z-index: 999;
    background: #2563eb;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.floating-blog:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.22);
}