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

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f9f9f9;
}

a {
    color: #d9534f;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

/* Header */
.header {
    background-color: #ffffff;
    border-bottom: 1px solid #e6e6e6;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    color: #d9534f;
    font-size: 1.3rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    margin-right: 0.5rem;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav a {
    color: #333;
    font-weight: 500;
    transition: color 0.2s;
}

.nav a:hover {
    color: #d9534f;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.bajada {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.hero-buttons .btn {
    margin-right: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}

.btn-primary {
    background-color: #d9534f;
    color: #fff;
}

.btn-primary:hover {
    background-color: #c9302c;
    color: #fff;
}

.btn-secondary {
    background-color: #fff;
    color: #d9534f;
    border: 2px solid #d9534f;
}

.btn-secondary:hover {
    background-color: #fdf0f0;
    color: #c9302c;
}

/* Help Block */
.help-block h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.help-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media(min-width: 768px) {
    .help-steps {
        flex-direction: row;
    }
}

.step {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    flex: 1;
}

.step-number {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #d9534f;
    color: #fff;
    text-align: center;
    line-height: 30px;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.step h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    color: #333;
}

/* Quick Emergencies */
.quick-emergencies {
    background-color: #f2f2f2;
    padding: 2rem 0;
    margin-top: 2rem;
}

.quick-emergencies h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.quick-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.quick-item {
    background-color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 140px;
}

.quick-item .number {
    font-size: 2rem;
    color: #d9534f;
    font-weight: 700;
}

.quick-item .label {
    font-size: 0.9rem;
    text-align: center;
    margin-top: 0.3rem;
}

.note {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* Situaciones */
.situaciones h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    list-style: none;
    margin-top: 1rem;
}

.tags li {
    background-color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Cobertura */
.cobertura {
    background-color: #fff;
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid #e6e6e6;
    border-bottom: 1px solid #e6e6e6;
}

.cobertura h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.cobertura-content p {
    max-width: 800px;
    margin: 0 auto 1rem;
    text-align: center;
}

.cobertura-columns {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media(min-width: 768px) {
    .cobertura-columns {
        flex-direction: row;
        justify-content: center;
    }
    .cobertura-columns > div {
        flex: 1;
        padding: 0 1rem;
    }
}

/* Guías */
.guias {
    background-color: #f2f2f2;
    padding: 2rem 0;
    margin-top: 2rem;
}

.guias h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.guia-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media(min-width: 768px) {
    .guia-cards {
        flex-direction: row;
    }
}

.guia-card {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    flex: 1;
}

.guia-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.guia-card p {
    margin-bottom: 0.5rem;
    color: #666;
}

.guia-card .link {
    font-weight: 600;
    color: #d9534f;
}

.guia-card .link i {
    margin-left: 0.3rem;
}

/* CTA final */
.cta-final {
    background-color: #d9534f;
    color: #fff;
    padding: 2rem 0;
    text-align: center;
}

.cta-final .btn {
    background-color: #fff;
    color: #d9534f;
    margin-top: 1rem;
}

.cta-final .btn:hover {
    background-color: #fdf0f0;
    color: #c9302c;
}

/* Footer */
.footer {
    background-color: #333;
    color: #f2f2f2;
    padding: 2rem 0;
}

.footer .footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-icon {
    width: 28px;
    height: 28px;
    margin-right: 0.5rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: #f2f2f2;
    font-size: 0.9rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

.copyright {
    font-size: 0.8rem;
    text-align: center;
    color: #ccc;
}

/* Page header for inner pages */
.page-header {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 4rem 0;
    color: #fff;
}

.page-header .hero-overlay {
    background: rgba(0, 0, 0, 0.55);
}

.page-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    max-width: 700px;
}

/* Sections */
.section {
    margin-top: 2rem;
}

.section h2 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    color: #d9534f;
}

.form-row {
    margin-bottom: 1rem;
}

.form-row label {
    display: block;
    margin-bottom: 0.3rem;
}

.form-row input[type="text"] {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
}

.small-text {
    font-size: 0.85rem;
    color: #666;
}

.grid-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.grid-options label {
    background-color: #fff;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
}

.grid-options input {
    margin-right: 0.5rem;
}

.results h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.result-group {
    margin-bottom: 1rem;
}

.result-group ul {
    list-style: disc;
    margin-left: 1.2rem;
}

.call-script ol, .call-script ul {
    margin-left: 1.2rem;
    margin-bottom: 1rem;
}