body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    color: #333;
    overflow-x: hidden;
}

header {
    background: #000;
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    max-width: 100%;
}

.responsive-logo {
    height: 60px;
    width: auto;
    max-width: 100%;
}

.logo {
    font-size: clamp(1.5em, 6vw, 2.5em);
    font-weight: bold;
    margin: 0;
    white-space: nowrap;
}

.logo span {
    color: #ff0000;
}

nav {
    background: #ff0000;
    padding: 10px 0;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav li {
    margin: 5px 10px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    white-space: nowrap;
}

section {
    padding: 20px 15px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

h2 {
    color: #ff0000;
    border-bottom: 2px solid #ff0000;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.services {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.service {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 15px;
    width: 100%;
    max-width: 300px;
    transition: transform 0.3s;
    box-sizing: border-box;
    text-align: left;
}
.service:hover { transform: translateY(-5px); }
.service h3 { color: #ff0000; margin-top: 0; font-size: 1.2em; }
.service ul { padding-left: 1.2rem; margin: 0; }
.service li { margin-bottom: 0.5rem; }
.service p, .service ul { color: #555; line-height: 1.6; }

.btn {
    background: #ff0000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background 0.3s;
    width: 100%;
}
.btn:hover { background: #cc0000; }

/* Formulario */
form {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 100%;
    box-sizing: border-box;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 0.9em;
}

input, textarea, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 0.9em;
}

footer {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    margin-top: 20px;
    font-size: 0.9em;
}

.social-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links img {
    height: 24px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.social-links img:hover { opacity: 1; }

.white-link { color: #fff; }
.no-style-link { color: inherit; text-decoration: none; }

/* Modales */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    overflow: auto;
    background: rgba(0,0,0,0.8);
}

.modal-content {
    background: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover { color: #ff0000; }

.modal-body { padding: 10px; }

.contact-info {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
}

.subtitle { font-size:14px; color:#000; }

.contacto-hide {
    visibility: hidden;
    display: none;
}

@media (max-width: 768px) {
    .responsive-logo { height: 50px; }
    .header-container { flex-direction: row; justify-content: center; padding: 0 15px;}
    .logo { font-size: 1.8em; }
    .services { flex-direction: column; }
    section { padding: 20px 10px; }
}

@media (min-width: 600px) {
    .services { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 2rem; }
    nav a { font-size: 1.1em; }
    section { padding: 40px 20px; }
    .btn { width: auto; }
}

@media (max-width: 600px) {
    .modal-content { width: 95%; margin: 10% auto; }
}

@media (max-width: 480px) {
    .logo { font-size: 1em; }
}
