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

body {
  background: #2f5573 url("bg.gif") repeat;
  background-size: 300px; /* suaviza el patrón */
}

/* =========================
   LINKS GLOBALES
========================= */
a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  opacity: 0.85;
}

a:focus {
  outline: none;
}

/* =========================
   FONDO GENERAL
========================= */
body {
  background: #2f5573;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* =========================
   HOME
========================= */
.container {
  width: 100%;
  padding: 40px 20px;
}

.card {
  background: #eaeaea;
  max-width: 1100px;
  margin: auto;
  display: flex;
  padding: 40px;
  border-radius: 6px;
  gap: 40px;
}

.left {
  flex: 1;
}

.right {
  width: 320px;
  text-align: center;
}

/* SOLO TÍTULO HOME */
.card h1 {
  color: #5b6f7d;
  font-size: 35px;
  margin-bottom: 20px;
  text-align: right;
  letter-spacing: 1px;
}

.info p {
  color: #5b6f7d;
  margin-bottom: 5px;
  font-size: 19px;
  line-height: 1.1;
}

.bold {
  font-weight: bold;
}

.right-text {
  text-align: right;
}

/* =========================
   BOTONES HOME
========================= */
.buttons {
  margin-top: 20px;
}

.btn {
  display: block;
  background: #5b6f7d;
  color: white;
  text-align: center;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #4a5d69;
  transform: translateY(-2px);
}

.btn-group {
  background: #5b6f7d;
  color: white;
  padding: 10px;
  text-align: center;
  border-radius: 4px;
}

.btn-group a {
  color: white;
  margin: 0 5px;
  transition: 0.3s;
}

.btn-group a:hover {
  opacity: 0.7;
}

/* =========================
   REDES HOME IZQUIERDA
========================= */
.social {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 20px;
}

.social-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #5b6f7d;
  transition: all 0.3s ease;
  cursor: pointer;
}

.social-item:hover {
  transform: translateX(5px);
  opacity: 0.85;
}

.social-item img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

/* =========================
   FOTO HOME
========================= */
.right > img {
  width: 100%;
  border-radius: 20px;
  margin-bottom: 15px;
}

/* =========================
   CONTACTO HOME
========================= */
.contact {
  font-size: 18px;
  color: #5b6f7d;
  margin-bottom: 15px;
}

.email {
  font-weight: bold;
  font-size: 23px;
  margin-top: 10px;
}

/* =========================
   FACEBOOK DERECHA HOME
========================= */
.social-right {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  color: #5b6f7d;
  text-align: left;
  transition: all 0.3s ease;
  cursor: pointer;
}

.social-right:hover {
  transform: translateX(5px);
  opacity: 0.85;
}

.social-right a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
}

.social-right img,
.social-right .icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.social-right:hover img {
  transform: scale(1.08);
}

.social-right span {
  text-align: left;
  line-height: 1.1;
}

/* =========================
   FOOTER
========================= */
.footer {
  text-align: center;
  color: white;
  font-size: 13px;
  margin-top: 20px;
}

/* =========================
   RESPONSIVE HOME
========================= */
@media (max-width: 900px) {
  .card {
    flex-direction: column;
    text-align: center;
  }

  .card h1,
  .right-text {
    text-align: center;
  }

  .right {
    width: 100%;
  }

  .social {
    grid-template-columns: 1fr;
  }

  .social-right,
  .social-right a {
    justify-content: center;
  }
}

/* =========================
   PÁGINA PRESENTACIÓN
========================= */
.page-wrap {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  background: #ffffff;
}

/* HEADER PRESENTACIÓN */
.top-header {
  min-height: 110px;
  background: #ffffff;
  display: grid;
  grid-template-columns: 240px 1fr 140px;
  align-items: center;
  padding: 10px 20px;
  overflow: hidden;
}

.brand {
  min-width: 220px;
  color: #5b6f7d;
  text-align: right;
  padding-right: 12px;
  border-right: 2px solid #d8d8d8;
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 0.95;
}

.brand span {
  display: block;
  font-size: 34px;
  font-weight: bold;
  line-height: 0.95;
}

.brand small {
  display: block;
  font-size: 11px;
  margin-top: 5px;
  font-family: Arial, Helvetica, sans-serif;
}

.header-info {
  padding-left: 15px;
  color: #5b6f7d;
  font-size: 13px;
  font-weight: bold;
  line-height: 1.45;
}

.header-info p {
  margin: 0;
}

.header-photo {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  justify-self: center;
}

/* NAV PRESENTACIÓN */
.main-nav {
  min-height: 50px;
  background: #5f788a;
  color: white;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 40px;
  font-size: 16px;
  font-weight: bold;
}

.main-nav a {
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

.main-nav a:hover {
  opacity: 0.75;
  text-decoration: none;
}

.main-nav .italic {
  font-style: italic;
  font-size: 14px;
}

.mail {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mail-icon {
  width: 28px;
  height: 18px;
  display: inline-block;
  position: relative;
  background: white;
}

.mail-icon::before,
.mail-icon::after {
  content: "";
  position: absolute;
  top: 0;
  width: 22px;
  height: 2px;
  background: #5f788a;
  transform-origin: left center;
}

.mail-icon::before {
  left: 0;
  transform: rotate(35deg);
}

.mail-icon::after {
  right: -14px;
  transform: rotate(145deg);
}

/* CONTENIDO PRESENTACIÓN */
.content-box {
  position: relative;
  background: #ffffff;
  padding: 20px 30px 35px;
}

.triangle {
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 10px solid #5f788a;
  margin-left: 25px;
  margin-top: -14px;
  margin-bottom: 20px;
}

.section-title {
  color: #d29a00;
  font-size: 16px;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: normal;
  text-align: left;
  margin: 0 0 25px 0;
  letter-spacing: 0.5px;
}

.text-content {
  max-width: 850px;
  margin: 0 auto;
}

.text-content p {
  font-size: 15px;
  color: #000000;
  line-height: 1.15;
  text-align: justify;
  margin-bottom: 18px;
}

/* =========================
   RESPONSIVE PRESENTACIÓN
========================= */
@media (max-width: 768px) {
  body {
    align-items: flex-start;
  }

  .page-wrap {
    max-width: 100%;
  }

  .top-header {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 18px;
    gap: 12px;
  }

  .brand {
    text-align: center;
    border-right: 0;
    padding-right: 0;
    min-width: auto;
  }

  .header-info {
    padding-left: 0;
  }

  .header-photo {
    width: 150px;
    height: 120px;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
    padding: 16px;
    gap: 12px;
    font-size: 14px;
  }

  .content-box {
    padding: 20px;
  }

  .triangle {
    margin-left: 20px;
  }

  .text-content p {
    font-size: 14px;
    line-height: 1.35;
  }
}