/* === Reset básico === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background: rgba(255, 255, 255, 1);
}

/* === Header centrado === */
header {
    background: #004080; /* azul corporativo */
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

header .logo {
    font-size: 2rem;
    font-weight: bold;
    color: white;
}

/* === Hero / Banner === */
.hero {
    background: url('img/banner.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #ffffff; /* cambiado a blanco para mejor contraste */
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #ffffff; /* cambiado a blanco para mejor contraste */
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
}

.hero .btn {
    background: hsl(160, 69%, 51%);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}

.btn2 {
    background: hsl(160, 69%, 51%);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
}

/* === Secciones === */
section {
    padding: 20px 20px;
    text-align: center;
}

section h2 {
    font-size: 2rem;
    color: #004080;
    margin-bottom: 20px;
}

section p {
    max-width: 800px;
    margin: auto;
    margin-bottom: 20px;
}

/* === Logo oficina === */
.logo-oficina {
    display: flex;
    justify-content: center;
    /*margin: 40px 0;*/
}
/*
.logo-oficina img {
    width: 700px;   /* más grande */
    max-width: 80%; /* se adapta en pantallas chicas */
}
*/

.logo-oficina {
  perspective: 800px; /* añade profundidad para la rotación 3D */
  display: inline-block;
}

.logo-oficina img {
  width: 500px;
  margin-top: 20px;
  max-width: 80%; /* se adapta en pantallas chicas */
  animation: rotarY 3s linear infinite;
  transform-style: preserve-3d;
  /*backface-visibility: hidden;*/
}

@keyframes rotarY {
  0% {
    transform: rotateY(20deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

/* === Imagen oficina / logo === */
.about img {
    max-width: 100%;  /* se adapta al contenedor */
    height: center;     /* mantiene proporción */
    border-radius: 10px;
    margin-top: 20px;
}

/* === Cards de servicios === */
.cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 2px 5px rgba(0,0,0,0.1);
    width: 300px;
}

.card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.card h3 {
    margin-bottom: 10px;
    color: #004080;
}

/* === Logos de clientes === */
.client-logos {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.client-logos img {
    max-width: 150px;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.client-logos img:hover {
    filter: grayscale(0%);
}

/* === Pagos === */
.payments ul {
    list-style: none;
    margin-bottom: 20px;
}

.payments li {
    font-size: 1.2rem;
    margin: 10px 0;
}

/* === Botones === */
.btn {
    display: inline-block;
    background: #004080;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #00264d;
}

/* === Formulario Contacto Moderno === */
.contact-form {
    background: rgba(255, 255, 255, 0.8); /* fondo blanco semi-transparente */
    backdrop-filter: blur(10px);          /* desenfoque detrás del formulario */
    padding: 30px;
    max-width: 500px;
    margin: 40px auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3); /* sombra más marcada */
    border: 1px solid rgba(255,255,255,0.3); /* borde suave para efecto vidrio */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form:hover {
    transform: translateY(-5px);           /* levanta un poco al pasar el mouse */
    box-shadow: 0 12px 35px rgba(0,0,0,0.4);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.7); /* semitransparente */
    outline: none;
    transition: border 0.3s ease, background 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #004080;
    background: rgba(255, 255, 255, 0.9);
}

.contact-form button {
    background: linear-gradient(90deg, #004080, #0066cc);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease, transform 0.2s ease;
}

.contact-form button:hover {
    background: linear-gradient(90deg, #00264d, #004080);
    transform: scale(1.05);
}

/* === Contacto h2 centrado === */
.contact h2 {
    text-align: center !important;
    display: block !important;
    float: none !important;
    margin: 0 auto 20px !important;
    width: 100% !important;
}

/* === Footer === */
footer {
    background: #00264d;
    color: white;
    padding: 20px;
    text-align: center;
}

footer .footer-links {
    margin-bottom: 10px;
}

footer .footer-links a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
}

footer .footer-links a:hover {
    text-decoration: underline;
}

/* Contenedor que ocupa todo el ancho y centra los botones */
.botones-container {
    display: flex;
    flex-direction: column; /* uno debajo del otro */
    align-items: center;    /* centra horizontalmente */
    justify-content: center;
    width: 100%;            /* ocupa todo el ancho del contenedor padre */
    margin: 20px 0;         /* opcional: separación arriba/abajo */
}

/* Botones */
.botones-container a {
    width: 300px;          /* ancho fijo */
    text-align: center;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
    box-sizing: border-box; /* evita que el padding haga que se desborde */
}