/*
  Estilos para Ritmo Articular
  Paleta: morado oscuro, dorado, menta y marfil
*/
:root {
    --color-primary: #4A3F6A; /* morado oscuro */
    --color-secondary: #E2B548; /* dorado */
    --color-accent: #A7C7A2; /* menta */
    --color-light: #F8F6F2; /* marfil */
    --color-dark: #2B2D42; /* casi negro */
    --font-heading: 'Raleway', sans-serif;
    --font-body: 'Source Sans Pro', sans-serif;
}

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

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

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    margin-bottom: 0.6rem;
}

/* Container utility */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Header */
.header {
    background-color: #fff;
    position: sticky;
    top: 0;
    width: 100%;
    border-bottom: 1px solid #e5e5e5;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--color-primary);
}

.nav a {
    margin-left: 1.5rem;
    font-weight: 600;
    color: var(--color-dark);
    transition: color 0.3s;
}
.nav a:hover {
    color: var(--color-secondary);
}

/* Hero */
.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(42, 39, 71, 0.6);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 2.8rem;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    background-color: var(--color-secondary);
    color: var(--color-dark);
    padding: 0.8rem 1.6rem;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: var(--color-accent);
}

/* Guide Section */
.guide-section {
    background-color: var(--color-light);
    padding: 4rem 0;
}
.guide-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}
.guide-text {
    flex: 1 1 50%;
}
.guide-text h2 {
    color: var(--color-primary);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}
.guide-text p {
    margin-bottom: 1rem;
    font-size: 1rem;
}
.guide-text ul {
    list-style: none;
}
.guide-text li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.2rem;
}
.guide-text li::before {
    content: '\2023';
    position: absolute;
    left: 0;
    color: var(--color-secondary);
}
.guide-image {
    flex: 1 1 50%;
    text-align: center;
}
.guide-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Habitos Section */
.habitos-section {
    background-color: #fff;
    padding: 4rem 0;
}
.habitos-section h2 {
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 2rem;
    font-size: 2.2rem;
}
.habitos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.habito-item {
    background-color: var(--color-light);
    border: 1px solid #e6e3de;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s;
}
.habito-item:hover {
    transform: translateY(-4px);
}
.habito-item .icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-secondary);
}
.habito-item h3 {
    margin-bottom: 0.3rem;
    color: var(--color-primary);
    font-size: 1.3rem;
}
.habito-item p {
    font-size: 0.95rem;
    color: var(--color-dark);
}

/* Contact Section */
.contact-section {
    background-color: var(--color-accent);
    padding: 4rem 0;
    color: var(--color-dark);
}
.contact-inner h2 {
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
}
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact-form label {
    font-weight: 600;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}
.contact-form textarea {
    resize: vertical;
}
.contact-form .aceptar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}
.contact-form button {
    align-self: flex-start;
    background-color: var(--color-secondary);
    color: var(--color-dark);
    padding: 0.7rem 1.4rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}
.contact-form button:hover {
    background-color: var(--color-primary);
    color: #fff;
}

/* Footer */
.footer {
    background-color: var(--color-primary);
    color: #f3f3f3;
    padding-top: 3rem;
    padding-bottom: 1.5rem;
}
.footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
}
.footer-col h3 {
    margin-bottom: 0.5rem;
    color: var(--color-secondary);
    font-family: var(--font-heading);
    font-size: 1.4rem;
}
.footer-col p {
    margin-bottom: 0.4rem;
}
.subscribe-form input[type="email"] {
    width: 100%;
    padding: 0.5rem;
    border: none;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}
.subscribe-form button {
    background-color: var(--color-secondary);
    color: var(--color-dark);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}
.subscribe-form button:hover {
    background-color: var(--color-accent);
}
.footer-legal {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.85rem;
}
.footer-legal a {
    color: #dcd9e8;
    margin: 0 0.8rem;
}
.footer-legal a:hover {
    color: var(--color-secondary);
}
.footer-copy {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #bfbacb;
}

/* Responsive */
@media (max-width: 768px) {
    .guide-inner {
        flex-direction: column;
    }
    .guide-image,
    .guide-text {
        flex: 1 1 100%;
    }
    .nav a {
        margin-left: 1rem;
    }
    .footer-grid {
        flex-direction: column;
        align-items: flex-start;
    }
}