:root {
    --primary: #1a2a44;
    --accent: #ff5e14;
    --success: #25d366;
    --bg: #f4f7f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--primary);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Navbar */
nav {
    background-color: var(--primary);
    color: white;
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.2);
}

.logo-container img {
    height: 55px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.2));
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
    font-size: 0.95rem;
    text-transform: uppercase;
}

nav ul li a:hover {
    color: var(--accent);
}

/* Hero */
.hero {
    margin-top: 75px;
    height: 45vh;
    background: linear-gradient(
        rgba(26, 42, 68, 0.85),
        rgba(26, 42, 68, 0.85)
    ),
    url('https://images.unsplash.com/photo-1581092921461-eab62e92c73e?auto=format&fit=crop&q=80&w=1000')
    center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Títulos */
.seccion-titulo {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--primary);
    text-align: center;
    font-weight: 800;
    position: relative;
}

.seccion-titulo::after {
    content: '';
    width: 60px;
    height: 4px;
    background: var(--accent);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Servicios */
.servicios {
    padding: 80px 5%;
    text-align: center;
}

.grid-servicios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.card-btn {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: none;
    border-bottom: 4px solid transparent;
    cursor: pointer;
    transition: 0.4s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--primary);
}

.card-btn:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--accent);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.card-btn i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.card-btn h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.card-btn p {
    font-size: 0.95rem;
    margin-bottom: 5px;
    color: #555;
}

/* Portafolio */
.portafolio {
    padding: 80px 5%;
    background: #eef2f5;
    text-align: center;
}

.grid-portafolio {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.item-trabajo {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    position: relative;
}

.item-trabajo:hover {
    transform: scale(1.02);
}

.item-trabajo img,
.item-trabajo video {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.info-mini {
    padding: 15px;
    font-weight: 700;
    background: white;
    color: var(--primary);
}

/* Reseñas */
.resenas {
    padding: 80px 5%;
    text-align: center;
    background: white;
}

.grid-resenas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 50px auto;
}

.card-resena {
    background: #fff;
    padding: 35px;
    border-radius: 25px;
    text-align: left;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
    position: relative;
    transition: 0.3s;
}

.card-resena::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: #f0f0f0;
}

.estrellas {
    color: #f1c40f;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.resena-texto {
    font-style: italic;
    color: #555;
    font-size: 1.05rem;
    margin-bottom: 20px;
    min-height: 60px;
}

.resena-autor {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    text-transform: uppercase;
}

/* Modales */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 25px;
    width: 100%;
    max-width: 650px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 35px;
    cursor: pointer;
    color: var(--primary);
    transition: 0.3s;
    z-index: 3000;
}

.close-modal:hover {
    color: var(--accent);
}

/* Formularios */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 8px;
}

input,
textarea,
select {
    padding: 14px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.btn-enviar {
    background: var(--success);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1.1rem;
    transition: 0.3s;
    margin-top: 10px;
}

.btn-enviar:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

/* Footer */
footer {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 60px 20px;
}

.footer-tel {
    font-size: 2.2rem;
    color: var(--accent);
    margin: 15px 0;
    display: block;
    text-decoration: none;
    font-weight: 800;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .grid-servicios {
        grid-template-columns: 1fr;
    }

    .close-modal {
        right: 10px;
        top: 10px;
        font-size: 40px;
    }
}
