/*
Theme Name: Madygan
Description: Tema personalizado para Madygan (madygansas.com), recreando el sitio original en WordPress.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Author: IAprosystems
*/

body {
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	color: #333;
	margin: 0;
}

a {
	text-decoration: none;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* Header */
.mg-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 40px;
	position: relative;
	background: #fff;
	box-shadow: 0 1px 4px rgba(0,0,0,0.08);
	z-index: 20;
}

.mg-logo {
	font-family: "Playfair Display", Georgia, serif;
	font-weight: 700;
	font-size: 28px;
	color: #b0d91c;
}

.mg-nav ul {
	list-style: none;
	display: flex;
	gap: 28px;
	margin: 0;
	padding: 0;
}

.mg-nav a {
	color: #333;
	font-weight: 600;
	font-size: 15px;
}

.mg-nav a:hover {
	color: #b0d91c;
}

.mg-menu-toggle {
	display: none;
	background: none;
	border: 1px solid currentColor;
	border-radius: 4px;
	padding: 8px 10px;
	cursor: pointer;
	color: inherit;
}

/* Hero */
.mg-hero {
	position: relative;
	min-height: 560px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	background-size: cover;
	background-position: center;
	padding: 100px 20px;
}

.mg-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.5);
}

.mg-hero-inner {
	position: relative;
	z-index: 2;
	color: #fff;
	max-width: 700px;
}

.mg-hero h1 {
	font-family: "Playfair Display", Georgia, serif;
	font-style: italic;
	font-size: 42px;
	line-height: 1.25;
	margin: 0 0 30px;
}

.mg-btn {
	display: inline-block;
	background: #ffbf00;
	color: #333;
	font-weight: 700;
	padding: 14px 34px;
	border-radius: 2px;
	border: none;
	cursor: pointer;
}

.mg-btn:hover {
	background: #e6ac00;
}

/* Section cards (home) */
.mg-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	max-width: 1100px;
	margin: 0 auto;
}

.mg-card img {
	width: 100%;
	height: 230px;
	object-fit: cover;
}

.mg-card-body {
	background: #f7f7f7;
	padding: 30px;
}

.mg-card-body h3 {
	font-family: "Playfair Display", Georgia, serif;
	font-size: 26px;
	margin: 0 0 14px;
}

.mg-card-body p {
	color: #555;
	line-height: 1.6;
	margin: 0;
}

/* Page header */
.mg-page-header {
	text-align: center;
	padding: 70px 20px 20px;
}

.mg-page-header h1 {
	font-family: "Playfair Display", Georgia, serif;
	font-weight: 700;
	font-size: 46px;
	margin: 0 0 20px;
}

.mg-page-header p {
	max-width: 800px;
	margin: 0 auto;
	color: #555;
	line-height: 1.7;
}

/* Two-image grid (Acerca de) */
.mg-img-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	max-width: 1100px;
	margin: 40px auto 80px;
	padding: 0 20px;
}

.mg-img-grid-2 img {
	width: 100%;
	height: 320px;
	object-fit: cover;
}

/* Services */
.mg-services {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	max-width: 1100px;
	margin: 20px auto 80px;
	padding: 0 20px;
}

.mg-service img {
	width: 100%;
	height: 300px;
	object-fit: cover;
	margin-bottom: 25px;
}

.mg-service h2 {
	font-family: "Playfair Display", Georgia, serif;
	font-size: 28px;
	margin: 0 0 16px;
}

.mg-service p {
	color: #555;
	line-height: 1.7;
	margin: 0 0 20px;
}

/* Gallery */
.mg-gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 4px;
	max-width: 1200px;
	margin: 20px auto 80px;
	padding: 0 20px;
}

.mg-gallery img {
	width: 100%;
	height: 340px;
	object-fit: cover;
}

/* Contact */
.mg-contact-wrap {
	max-width: 640px;
	margin: 20px auto 80px;
	padding: 0 20px;
}

.mg-contact-wrap label {
	display: block;
	font-weight: 600;
	margin: 18px 0 8px;
}

.mg-contact-wrap input[type="text"],
.mg-contact-wrap input[type="email"],
.mg-contact-wrap textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid #ccc;
	border-radius: 2px;
	font-family: inherit;
	font-size: 15px;
}

.mg-contact-wrap textarea {
	min-height: 140px;
	resize: vertical;
}

.mg-contact-wrap .mg-btn {
	margin-top: 24px;
}

.mg-form-message {
	margin: 16px 0;
	padding: 12px 16px;
	border-radius: 3px;
}

.mg-form-message.success {
	background: #eaf7d4;
	color: #4a6b0c;
}

.mg-form-message.error {
	background: #fde6e6;
	color: #a33;
}

/* Footer contact bar */
.mg-footer-bar {
	background: #b0d91c;
	color: #fff;
	display: grid;
	grid-template-columns: 1fr 1fr;
	text-align: center;
	padding: 40px 20px;
}

.mg-footer-bar strong {
	display: block;
	margin-bottom: 8px;
}

.mg-footer-bar a {
	color: #fff;
}

@media (max-width: 782px) {
	.mg-nav { display: none; }
	.mg-menu-toggle { display: inline-block; }
	.mg-cards, .mg-services, .mg-img-grid-2, .mg-gallery, .mg-footer-bar {
		grid-template-columns: 1fr;
	}
	.mg-hero h1 { font-size: 30px; }
	.mg-page-header h1 { font-size: 32px; }
}