* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f7f7f7;
    color: #222;
    line-height: 1.6;
}

/* SECCIÓN SERVICIOS (FONDO PARALLAX) */
#servicios {
    position: relative;
    background: url("src/imagenfondo.png") no-repeat center center fixed;
    background-size: cover;
    color: #000;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 20px;
}

#servicios h2,
#servicios p,
#servicios .cards {
    position: relative;
    z-index: 1;
}

#servicios::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.25);
    z-index: 0;
}

/* NAV */
nav {
    background: #fff;
    padding: 15px 60px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

nav .nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

nav ul {
    display: flex;
    justify-content: center;
    gap: 40px;
    list-style: none;
}

.header-logo {
    display: flex;
    align-items: center;
    margin-right: 30px;
}

.nav-social {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-social img {
    width: 38px;
    height: auto;
    filter: grayscale(100%);
    transition: filter 0.2s, transform 0.2s;
}

.nav-social a:hover img {
    filter: none;
    transform: scale(1.05);
}

.header-logo img {
    height: 42px;
    width: auto;
}

nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: #fff;
    padding: 15px 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

nav ul {
    display: flex;
    justify-content: center;
    gap: 40px;
    list-style: none;
    margin: 0 auto;
}

nav a {
    text-decoration: none;
    color: #222;
    font-weight: bold;
    transition: 0.3s;
}

nav a:hover {
    color: #0078ff;
}

/* HEADER */
header {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    color: #555;
}

.flecha-abajo {
    width: 70px;
    height: auto;
    margin-top: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* MODAL SERVICIOS */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.45);
    padding: 20px;
    z-index: 200;
}

.modal.open {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 26px 26px 22px;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    text-align: left;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 1.6rem;
    cursor: pointer;
    color: rgba(0,0,0,0.65);
    transition: color 0.2s, transform 0.1s;
}

.modal-close:hover {
    color: rgba(0,0,0,0.9);
}

.modal-close:active {
    transform: scale(0.85);
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.4rem;
}

.modal-content p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

/* SECCIONES */
.section {
    padding: 100px 20px;
    text-align: center;
}

#contacto {
    padding-top: 140px;
}

.cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.card {
    position: relative;
    background: #e0f7ff;
    padding: 25px;
    width: 280px;
    border-radius: 10px;
    box-shadow: inset 0 0 0 3px #0078ff, 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, border 0.2s;
    border: 2px solid transparent;
    cursor: pointer;
}

.card-click {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    padding: 4px;
    border: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.card-click img {
    width: 100%;
    height: auto;
    pointer-events: none;
}

.card-click:hover {
    animation: clickPulse 0.6s ease-in-out;
}

.card-click:active {
    transform: scale(0.85);
}

.card-click:focus-visible {
    outline: none;
}

@keyframes clickPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.card:hover {
    transform: translateY(-5px);
    border-color: #0078ff;
}

/* SECCIÓN SOBRE NOSOTROS */
#nosotros {
    background: #fff;
    padding: 100px 20px;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.about-image {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
}

.about-image img {
    width: 100%;
    height: auto;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.about-text {
    flex: 1;
    min-width: 280px;
    text-align: left;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #333;
}

/* SECCIÓN RESEÑAS */
#resenas {
    background: #fff;
    padding: 60px 20px 100px 20px;
}

.reviews-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 50px auto 0;
}

.review-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 25px;
    width: 300px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.review-header {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 15px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.review-info h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
}

.review-stars {
    color: #ffc107;
    font-size: 0.95rem;
    letter-spacing: 2px;
}

.review-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
    font-style: italic;
}

/* FORMULARIO */
.contact-form {
    max-width: 460px;
    width: 100%;
    margin: 0 auto;
    padding: 30px 25px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

input, textarea {
    padding: 12px 14px;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #0078ff;
    box-shadow: 0 0 0 3px rgba(0,120,255,0.18);
}

button {
    padding: 12px;
    background: #0078ff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: #005fcc;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 20px;
    background: #fff;
    margin-top: 50px;
}

/* ANIMACIONES SCROLL */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.5s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}