/* DS Technologies — Stylesheet */

:root {
    --primary: #4a5350;
    --secondary: #8a9a8f;
    --dark: #3d4845;
    --light: #ecf0f1;
    --border: #bdc3c7;
    --success: #27ae60;
    --error: #e74c3c;
    --text: #333;
    --text-light: #666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: #fff;
}

/* Header & Navigation */
header {
    background: var(--dark);
    color: white;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 0;
}

nav li {
    margin: 0;
}

nav a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s;
}

nav a:hover,
nav a.active {
    background: var(--primary);
    color: white;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
}

/* Main Content */
main {
    flex: 1;
}

section {
    padding: 60px 20px;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.bg-gris {
    background: #f8f9fa;
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    color: white;
    padding: 100px 20px;
    background: var(--dark);
}

.hero.no-image {
    background: var(--dark);
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(61, 72, 69, 0.85);
    z-index: 1;
}

.hero .section-inner {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    font-weight: bold;
    margin: 20px 0;
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    margin: 20px 0;
    opacity: 0.95;
}

.eyebrow {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary);
    font-weight: 600;
}

.eyebrow-dark {
    color: var(--primary);
}

/* Typography */
h1 { font-size: 42px; margin: 30px 0 20px; font-weight: bold; }
h2 { font-size: 32px; margin: 25px 0 15px; font-weight: bold; }
h3 { font-size: 22px; margin: 20px 0 10px; font-weight: 600; }

.section-title {
    font-size: 32px;
    text-align: center;
    margin: 0 0 15px 0;
    color: var(--dark);
}

.section-sub {
    text-align: center;
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
}

/* Buttons */
.btn,
.submit {
    display: inline-block;
    padding: 12px 32px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    text-align: center;
}

.btn:hover,
.submit:hover {
    background: darken(#1a5f7a, 10%);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--dark);
}

/* Grid & Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.card h3 {
    margin: 15px 0 10px 0;
    color: var(--primary);
}

.card-photo {
    padding: 0 0 30px 0;
    overflow: hidden;
}

.card-photo img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.card-photo h3,
.card-photo p {
    margin-left: 30px;
    margin-right: 30px;
}

/* Nuestra historia */
.history-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.history-grid img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .history-grid {
        grid-template-columns: 1fr;
    }
}

.icon {
    width: 60px;
    height: 60px;
    background: var(--light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--primary);
    stroke-width: 2;
    fill: none;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
    margin: 40px 0;
}

.stats strong {
    display: block;
    font-size: 42px;
    color: var(--primary);
    margin-bottom: 10px;
}

.stats span {
    display: block;
    color: var(--text-light);
    font-size: 14px;
}

/* Partners / Tags */
.partners {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    align-items: center;
}

.partners img {
    max-height: 70px;
    max-width: 160px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s, opacity 0.3s;
}

.partners img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.tag {
    background: white;
    border: 2px solid var(--border);
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 500;
    color: var(--primary);
    transition: all 0.3s;
}

.tag:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-info p {
    margin: 20px 0;
    line-height: 1.8;
}

.contact-info a {
    color: var(--primary);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Form */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select,
textarea {
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.submit {
    margin-top: 10px;
}

#form-message {
    padding: 15px;
    border-radius: 4px;
    font-weight: 500;
}

#form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 50px 20px 20px;
    margin-top: auto;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-col h4 {
    font-size: 16px;
    margin: 0 0 15px 0;
    color: white;
}

.footer-col p,
.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin: 8px 0;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Insights Grid */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.insight-card {
    background: white;
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 8px;
    transition: box-shadow 0.3s;
}

.insight-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.insight-card h3 {
    margin: 0 0 10px 0;
}

.insight-card a {
    color: var(--primary);
    text-decoration: none;
}

.insight-card a:hover {
    text-decoration: underline;
}

.insight-card p {
    margin: 10px 0;
    font-size: 14px;
}

.insight-card small {
    color: var(--text-light);
}

/* Lists */
ul {
    margin: 20px 0 20px 20px;
}

li {
    margin: 10px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--dark);
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
    }

    nav a {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 15px 20px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }

    .section-title {
        font-size: 24px;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    section {
        padding: 40px 15px;
    }

    .hero {
        padding: 60px 15px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 14px;
    }

    h1 { font-size: 28px; }
    h2 { font-size: 22px; }
    h3 { font-size: 18px; }

    .grid {
        grid-template-columns: 1fr;
    }
}
