/* Variables de Color y Reset */
:root {
    --primary-color: #1a4ba0;
    --primary-dark: #123370;
    --accent-color: #d9531e;
    --accent-hover: #b84113;
    --text-color: #333333;
    --bg-light: #f4f7fa;
    --white: #ffffff;
    --green-24h: #28a745;
    --shadow: 0 4px 15px rgba(0,0,0,0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
}

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

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

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

.logo h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo h2 span {
    color: var(--accent-color);
}

.logo small {
    display: block;
    font-size: 0.75rem;
    color: #666;
    font-style: italic;
}

.nav a {
    margin-left: 20px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s;
}

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

.btn-primary {
    background: var(--accent-color);
    color: var(--white) !important;
    padding: 8px 18px;
    border-radius: 20px;
}

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

/* Hero Section */
.hero {
    position: relative;
    height: 480px;
    overflow: hidden;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(18,51,112,0.85) 0%, rgba(26,75,160,0.65) 100%);
    display: flex;
    align-items: center;
}

.hero-content {
    color: var(--white);
    max-width: 650px;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.btn-hero {
    background: var(--accent-color);
    color: var(--white);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-right: 10px;
    display: inline-block;
}

.btn-hero-outline {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
}

/* Common Section Styles */
.section-padding {
    padding: 60px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    color: var(--primary-color);
    font-size: 2rem;
}

.section-title p {
    color: #666;
}

/* Grid Certificaciones */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.cert-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
}

.cert-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

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

/* Grid Sucursales */
.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.branch-card {
    background: var(--white);
    border-radius: 8px;
    padding: 25px;
    box-shadow: var(--shadow);
    position: relative;
    border-left: 4px solid var(--primary-color);
}

.branch-card.border-top-accent {
    border-left-color: var(--accent-color);
}

.branch-card h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.branch-card p {
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.branch-card p i {
    color: var(--primary-color);
    width: 20px;
}

.schedule {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
}

.schedule span {
    display: block;
}

.badge-24h {
    border-left-color: var(--green-24h);
}

.tag-24h {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--green-24h);
    color: var(--white);
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
}

/* Contacto */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    background: var(--white);
    box-shadow: var(--shadow);
    border-radius: 10px;
    overflow: hidden;
}

.contact-info {
    background: var(--primary-color);
    color: var(--white);
    padding: 40px;
}

.contact-info h2 {
    margin-bottom: 15px;
}

.info-list {
    list-style: none;
    margin-top: 30px;
}

.info-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.info-list li i {
    margin-right: 12px;
    font-size: 1.2rem;
    color: var(--accent-color);
}

.contact-form-container {
    padding: 40px;
}

.form-group {
    margin-bottom: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.9rem;
}

input, select, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.95rem;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.btn-submit {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    width: 100%;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: var(--primary-dark);
}

.alert {
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.alert.exito {
    background: #d4edda;
    color: #155724;
}

.alert.error {
    background: #f8d7da;
    color: #721c24;
}

/* Footer */
.footer {
    background: #111;
    color: #aaa;
    padding: 30px 0;
    font-size: 0.85rem;
}

.footer strong {
    color: var(--white);
}

.legal-notice {
    margin: 10px 0;
    font-size: 0.75rem;
    color: #888;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 10px;
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}